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

Update src/streamlit_app.py

Browse files
Files changed (1) hide show
  1. src/streamlit_app.py +2 -2
src/streamlit_app.py CHANGED
@@ -327,7 +327,7 @@ if st.session_state.enable_llm:
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.
333
  try:
@@ -338,7 +338,7 @@ if st.session_state.enable_llm:
338
  # optional quick test: attempt to build a simple prompt but don't invoke network here
339
  except Exception as e:
340
  st.error(f"THIS IS THE REAL ERROR: {e}")
341
- st.session_state.enable_llm = False
342
  llm = None
343
  gen_q_model = None
344
  intro_model = None
 
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.
333
  try:
 
338
  # optional quick test: attempt to build a simple prompt but don't invoke network here
339
  except Exception as e:
340
  st.error(f"THIS IS THE REAL ERROR: {e}")
341
+ # st.session_state.enable_llm = False
342
  llm = None
343
  gen_q_model = None
344
  intro_model = None