Created
April 2, 2025 01:37
-
-
Save atodev/28b9941e22d7c07d2d5042a5bb8d36d1 to your computer and use it in GitHub Desktop.
[Gemini]
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from google import genai | |
from google.genai import types | |
from IPython.display import HTML, Markdown, display | |
from dotenv import load_dotenv | |
import os | |
GOOGLE_API_KEY = os.getenv("GOOGLE_API_KEY") | |
client = genai.Client(api_key=GOOGLE_API_KEY) | |
response = client.models.generate_content( | |
model="gemini-2.0-flash", | |
contents="Explain AI to me like I'm a kid.") | |
#print(response.text) | |
Markdown(response.text) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment