Skip to content

Commit

Permalink
Update text_generation.py
Browse files Browse the repository at this point in the history
  • Loading branch information
logankilpatrick authored Sep 15, 2024
1 parent b0779ad commit 2e2db45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion samples/text_generation.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def test_text_gen_text_only_prompt(self):
import google.generativeai as genai
import os

genai.configure(api_key=os.environ["API_KEY"])
genai.configure(api_key=os.environ["GOOGLE_API_KEY"])
model = genai.GenerativeModel("gemini-1.5-flash")
response = model.generate_content("Explain how AI works")
print(response.text)
Expand Down

0 comments on commit 2e2db45

Please sign in to comment.