Spaces:
Running
Running
Update app.py
Browse files
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):
|