wop commited on
Commit
b53f7b3
·
verified ·
1 Parent(s): 8c1883c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -57,7 +57,7 @@ with col1:
57
  model_option = st.selectbox(
58
  "Choose a model:",
59
  options=list(models.keys()),
60
- format_func=lambda x: models[x]["name"],
61
  index=0, # Default to the first model in the list
62
  )
63
 
@@ -84,7 +84,7 @@ with col3:
84
  prompt_selection = st.selectbox(
85
  "Choose a prompt:",
86
  options=list(prompts.keys()),
87
- format_func=lambda x: prompts[x]["name"],
88
  index=0,
89
  )
90
 
 
57
  model_option = st.selectbox(
58
  "Choose a model:",
59
  options=list(models.keys()),
60
+ format_func=lambda x: x,
61
  index=0, # Default to the first model in the list
62
  )
63
 
 
84
  prompt_selection = st.selectbox(
85
  "Choose a prompt:",
86
  options=list(prompts.keys()),
87
+ format_func=lambda x: list(prompts.values())[x]["name"],
88
  index=0,
89
  )
90