Nikhil0987 commited on
Commit
a229453
·
verified ·
1 Parent(s): 542bd20

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -0
app.py CHANGED
@@ -18,6 +18,16 @@ api1 = os.getenv("GEMINI_API_KEY")
18
  apis = [
19
  api1
20
  ]
 
 
 
 
 
 
 
 
 
 
21
 
22
 
23
  def make_call(data):
 
18
  apis = [
19
  api1
20
  ]
21
+ from google import genai
22
+
23
+ client = genai.Client()
24
+
25
+ response = client.models.generate_content(
26
+ model="gemini-2.5-flash",
27
+ contents="Explain how AI works in a few words",
28
+ )
29
+
30
+ print(response.text)
31
 
32
 
33
  def make_call(data):