Spaces:
Runtime error
Runtime error
ercanburak
commited on
Commit
•
abcfaf7
1
Parent(s):
8a784a4
use selection order for multiselects
Browse files
app.py
CHANGED
@@ -188,7 +188,7 @@ with col2:
|
|
188 |
selected_sequence = st.selectbox('Select sequence', options=selected_dataset["sequences"].keys())
|
189 |
|
190 |
selected_model_names = st.multiselect('Select multiple methods to compare', model_display_names)
|
191 |
-
selected_models = [
|
192 |
|
193 |
disable_metrics = len(selected_models) == 0
|
194 |
|
@@ -202,7 +202,7 @@ usable_metric_display_names = get_display_names(usable_metrics)
|
|
202 |
|
203 |
selected_metric_names = st.multiselect('Select metrics to display', usable_metric_display_names,
|
204 |
disabled=disable_metrics, help=tooltip_str)
|
205 |
-
selected_metrics = [
|
206 |
|
207 |
if not selected_dataset['has_frames']:
|
208 |
usable_viz = [viz for viz in visualizations if viz['gt_type'] != 'frame']
|
@@ -211,7 +211,7 @@ else:
|
|
211 |
usable_viz_display_names = get_display_names(usable_viz)
|
212 |
|
213 |
selected_viz = st.multiselect('Select other visualizations to display', usable_viz_display_names)
|
214 |
-
selected_visualizations = [
|
215 |
|
216 |
if not st.button('Get Results'):
|
217 |
st.stop()
|
|
|
188 |
selected_sequence = st.selectbox('Select sequence', options=selected_dataset["sequences"].keys())
|
189 |
|
190 |
selected_model_names = st.multiselect('Select multiple methods to compare', model_display_names)
|
191 |
+
selected_models = [models[model_display_names.index(model_name)] for model_name in selected_model_names]
|
192 |
|
193 |
disable_metrics = len(selected_models) == 0
|
194 |
|
|
|
202 |
|
203 |
selected_metric_names = st.multiselect('Select metrics to display', usable_metric_display_names,
|
204 |
disabled=disable_metrics, help=tooltip_str)
|
205 |
+
selected_metrics = [metrics[metric_display_names.index(metric_name)] for metric_name in selected_metric_names]
|
206 |
|
207 |
if not selected_dataset['has_frames']:
|
208 |
usable_viz = [viz for viz in visualizations if viz['gt_type'] != 'frame']
|
|
|
211 |
usable_viz_display_names = get_display_names(usable_viz)
|
212 |
|
213 |
selected_viz = st.multiselect('Select other visualizations to display', usable_viz_display_names)
|
214 |
+
selected_visualizations = [visualizations[viz_display_names.index(viz_name)] for viz_name in selected_viz]
|
215 |
|
216 |
if not st.button('Get Results'):
|
217 |
st.stop()
|