Viper51 commited on
Commit
38df712
·
verified ·
1 Parent(s): 5f9fe27

Update src/streamlit_app.py

Browse files
Files changed (1) hide show
  1. src/streamlit_app.py +1 -1
src/streamlit_app.py CHANGED
@@ -326,7 +326,7 @@ if st.session_state.enable_llm:
326
  try:
327
  GOOGLE_API_KEY = os.environ.get("GOOGLE_API_KEY")
328
  if not GOOGLE_API_KEY:
329
- st.warning("GOOGLE_API_KEY not set; unchecking LLM enable.")
330
  st.session_state.enable_llm = False
331
  else:
332
  # Try to configure genai and perform a lightweight sanity check.
 
326
  try:
327
  GOOGLE_API_KEY = os.environ.get("GOOGLE_API_KEY")
328
  if not GOOGLE_API_KEY:
329
+ st.error("THIS IS THE REAL ERROR: GOOGLE_API_KEY not set. Check your Hugging Face secrets.")
330
  st.session_state.enable_llm = False
331
  else:
332
  # Try to configure genai and perform a lightweight sanity check.