Spaces:
Sleeping
Sleeping
Rename google_api to google_api_key
Browse files- google_api +0 -1
- google_api_key +8 -0
google_api
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
AIzaSyB-BX2AF5lyV0TiA6I4dic3FxskbC6jJbM
|
|
|
|
google_api_key
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
from google import genai
|
2 |
+
|
3 |
+
client = genai.Client(api_key="YAIzaSyB-BX2AF5lyV0TiA6I4dic3FxskbC6jJbM")
|
4 |
+
|
5 |
+
response = client.models.generate_content(
|
6 |
+
model="gemini-2.0-flash", contents="Explain how AI works in a few words"
|
7 |
+
)
|
8 |
+
print(response.text)
|