Spaces:
Running
Running
Update app.py
Browse files
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("
|
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 |
|