Patrick079 commited on
Commit
de94616
·
verified ·
1 Parent(s): fa9515b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -17,7 +17,7 @@ def chat_short_story(length, genre, theme, tone, writing_style):
17
  str: The generated short story, or an error message if unsuccessful.
18
  """
19
  # Retrieve the Gemini API key from the environment
20
- GEMINI_API_KEY = os.getenv("GEMINI_API_KEY")
21
  if not GEMINI_API_KEY:
22
  return "Error: Gemini API key not found. Please set the GEMINI_API_KEY environment variable."
23
 
 
17
  str: The generated short story, or an error message if unsuccessful.
18
  """
19
  # Retrieve the Gemini API key from the environment
20
+ GEMINI_API_KEY = os.getenv("GOOGLE_API_KEY")
21
  if not GEMINI_API_KEY:
22
  return "Error: Gemini API key not found. Please set the GEMINI_API_KEY environment variable."
23