Skip to content

Commit

Permalink
fix LLM page
Browse files Browse the repository at this point in the history
  • Loading branch information
mschwoer committed Oct 25, 2024
1 parent fcebd7c commit 230857d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion alphastats/gui/pages/05_LLM.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,14 @@ def llm_config():
current_model = st.session_state.get(StateKeys.MODEL_NAME, None)

models = [Models.GPT4O, Models.OLLAMA_31_70B, Models.OLLAMA_31_8B]
st.session_state[StateKeys.MODEL_NAME] = st.selectbox(
model_name = st.selectbox(
"Select LLM",
models,
index=models.index(st.session_state.get(StateKeys.MODEL_NAME))
if current_model is not None
else 0,
)
st.session_state[StateKeys.MODEL_NAME] = model_name

base_url = None
if st.session_state[StateKeys.MODEL_NAME] in [Models.GPT4O]:
Expand Down

0 comments on commit 230857d

Please sign in to comment.