Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -16,7 +16,7 @@ def chat_with_gemini(user_api_key, user_input, history):
|
|
16 |
tuple: The updated conversation history with the chatbot's reply.
|
17 |
"""
|
18 |
# Determine which API key to use
|
19 |
-
api_key = user_api_key.strip() if user_api_key else os.getenv("
|
20 |
|
21 |
if not api_key:
|
22 |
# If no API key is available, prompt the user
|
|
|
16 |
tuple: The updated conversation history with the chatbot's reply.
|
17 |
"""
|
18 |
# Determine which API key to use
|
19 |
+
api_key = user_api_key.strip() if user_api_key else os.getenv("YOUR_API_KEY")
|
20 |
|
21 |
if not api_key:
|
22 |
# If no API key is available, prompt the user
|