Create Dock
Browse files
Dock
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
pip install -q -U google-genai
|
| 2 |
+
from google import genai
|
| 3 |
+
|
| 4 |
+
client = genai.Client(api_key="AIzaSyB9mbTLPPqOVYOnmmyetsphJbT1GzKP4pU")
|
| 5 |
+
|
| 6 |
+
response = client.models.generate_content(
|
| 7 |
+
model="gemini-2.0-flash", contents="Explain how AI works in a few words"
|
| 8 |
+
)
|
| 9 |
+
print(response.text)
|