lfoppiano commited on
Commit
3b9ffd5
1 Parent(s): 14963b3

fix default model

Browse files
Files changed (1) hide show
  1. streamlit_app.py +1 -1
streamlit_app.py CHANGED
@@ -254,7 +254,7 @@ with st.sidebar:
254
  "Model:",
255
  options=OPENAI_MODELS + list(OPEN_MODELS.keys()),
256
  index=(OPENAI_MODELS + list(OPEN_MODELS.keys())).index(
257
- os.environ["DEFAULT_MODEL"]) if "DEFAULT_MODEL" not in os.environ or not os.environ["DEFAULT_MODEL"] else 0,
258
  placeholder="Select model",
259
  help="Select the LLM model:",
260
  disabled=st.session_state['doc_id'] is not None or st.session_state['uploaded']
 
254
  "Model:",
255
  options=OPENAI_MODELS + list(OPEN_MODELS.keys()),
256
  index=(OPENAI_MODELS + list(OPEN_MODELS.keys())).index(
257
+ os.environ["DEFAULT_MODEL"]) if "DEFAULT_MODEL" in os.environ and os.environ["DEFAULT_MODEL"] else 0,
258
  placeholder="Select model",
259
  help="Select the LLM model:",
260
  disabled=st.session_state['doc_id'] is not None or st.session_state['uploaded']