zolicsaki commited on
Commit
7ef322c
·
verified ·
1 Parent(s): 046b050

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -317,7 +317,10 @@ def main() -> None:
317
  initialize_env_variables(prod_mode, additional_env_vars)
318
 
319
  if 'input_disabled' not in st.session_state:
320
- st.session_state.input_disabled = True
 
 
 
321
  if 'chat_history' not in st.session_state:
322
  st.session_state.chat_history = []
323
  if 'search_performed' not in st.session_state:
 
317
  initialize_env_variables(prod_mode, additional_env_vars)
318
 
319
  if 'input_disabled' not in st.session_state:
320
+ if 'SAMBANOVA_API_KEY' in st.session_state:
321
+ st.session_state.input_disabled = False
322
+ else:
323
+ st.session_state.input_disabled = True
324
  if 'chat_history' not in st.session_state:
325
  st.session_state.chat_history = []
326
  if 'search_performed' not in st.session_state: