Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -329,7 +329,7 @@ def show_field(f: Field, index: int, data_collected):
|
|
329 |
case 'multiselect':
|
330 |
choices = default_choices if not f.other_params.get('choices') else f.other_params.get('choices')
|
331 |
st.multiselect(f.title,
|
332 |
-
options = choices,
|
333 |
format_func=lambda x: choices[x],
|
334 |
key=key, max_selections=3,
|
335 |
help=f.help)
|
|
|
329 |
case 'multiselect':
|
330 |
choices = default_choices if not f.other_params.get('choices') else f.other_params.get('choices')
|
331 |
st.multiselect(f.title,
|
332 |
+
options = list(range(len(choices))),
|
333 |
format_func=lambda x: choices[x],
|
334 |
key=key, max_selections=3,
|
335 |
help=f.help)
|