Romanchello-bit commited on
Commit
3d922e8
·
1 Parent(s): eb2b942

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -222,8 +222,8 @@ try:
222
  # Try to get key from secrets (Cloud)
223
  if "GOOGLE_API_KEY" in st.secrets:
224
  api_key = st.secrets["GOOGLE_API_KEY"]
225
- except (FileNotFoundError, KeyError):
226
- # Secrets not found (Local run) -> Do nothing, stay None
227
  pass
228
 
229
  # Fallback to manual input if no key found yet
 
222
  # Try to get key from secrets (Cloud)
223
  if "GOOGLE_API_KEY" in st.secrets:
224
  api_key = st.secrets["GOOGLE_API_KEY"]
225
+ except:
226
+ # If secrets file is missing (Local run), just ignore and pass
227
  pass
228
 
229
  # Fallback to manual input if no key found yet