Spaces:
Sleeping
Sleeping
fix default model
Browse files- 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"
|
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']
|