akhaliq HF staff commited on
Commit
874fda9
1 Parent(s): 94edfc6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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("DEFAULT_API_KEY")
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