Spaces:
Running
Running
Update app.py
Browse files
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:
|
| 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 |
|