atz21 commited on
Commit
5dba943
·
verified ·
1 Parent(s): cdfefad

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -15,7 +15,7 @@ try:
15
  if not api_key:
16
  raise ValueError("GOOGLE_API_KEY not found. Please set it in the Hugging Face Space secrets.")
17
  genai.configure(api_key=api_key)
18
- model = genai.GenerativeModel('gemini-1.5-flash')
19
  except Exception as e:
20
  print(f"Error configuring GenerativeAI: {e}")
21
  # Handle the case where the API key is not set, e.g., by disabling the interface or showing an error.
 
15
  if not api_key:
16
  raise ValueError("GOOGLE_API_KEY not found. Please set it in the Hugging Face Space secrets.")
17
  genai.configure(api_key=api_key)
18
+ model = genai.GenerativeModel('gemini-2.5-flash')
19
  except Exception as e:
20
  print(f"Error configuring GenerativeAI: {e}")
21
  # Handle the case where the API key is not set, e.g., by disabling the interface or showing an error.