-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgemini.py
More file actions
25 lines (15 loc) · 729 Bytes
/
Copy pathgemini.py
File metadata and controls
25 lines (15 loc) · 729 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
API_KEY= "AIzaSyCFu6BynbPsa-kOupAlLZc21uTXCmaqjik"
import json
import google.generativeai as genai
import os
genai.configure(api_key=API_KEY)
# model = genai.GenerativeModel("gemini-1.5-flash")
# response = genai.send_instructions({
# "instruction": "gives details about songs like name release dates url to play that song , genre etc when song name is given",
# "model": model # Replace with the actual model or system setting
# })
model=genai.GenerativeModel(
model_name="gemini-1.5-flash",
system_instruction="gives details about songs like name release dates url to play that song , genre etc when song name is given in json format ")
response = model.generate_content("Waka Waka")
print(response.text)