From 9ad118d7f00011b0fd3fe735ba5ff53d0f017dfe Mon Sep 17 00:00:00 2001 From: Luca Foppiano Date: Sun, 23 Jun 2024 07:34:28 +0900 Subject: [PATCH] fix default indexes --- streamlit_app.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/streamlit_app.py b/streamlit_app.py index cc78582..71654e5 100644 --- a/streamlit_app.py +++ b/streamlit_app.py @@ -257,8 +257,7 @@ def play_old_messages(): "Model:", options=OPENAI_MODELS + list(OPEN_MODELS.keys()), index=(OPENAI_MODELS + list(OPEN_MODELS.keys())).index( - "mistral-7b-instruct-v0.2") if "DEFAULT_MODEL" not in os.environ or not os.environ["DEFAULT_MODEL"] else ( - OPENAI_MODELS + list(OPEN_MODELS.keys())).index(os.environ["DEFAULT_MODEL"]), + os.environ["DEFAULT_MODEL"]) if "DEFAULT_MODEL" not in os.environ or not os.environ["DEFAULT_MODEL"] else 0, placeholder="Select model", help="Select the LLM model:", disabled=st.session_state['doc_id'] is not None or st.session_state['uploaded']