Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -142,16 +142,16 @@ def convert_scores_to_percentage(df):
|
|
| 142 |
return df
|
| 143 |
|
| 144 |
def choose_all_quailty():
|
| 145 |
-
return gr.update(value=QUALITY_LIST)
|
| 146 |
|
| 147 |
def choose_all_semantic():
|
| 148 |
-
return gr.update(value=SEMANTIC_LIST)
|
| 149 |
|
| 150 |
def disable_all():
|
| 151 |
-
return gr.update(value=[])
|
| 152 |
-
|
| 153 |
def enable_all():
|
| 154 |
-
return gr.update(value=TASK_INFO)
|
| 155 |
|
| 156 |
def on_filter_model_size_method_change(selected_columns):
|
| 157 |
updated_data = get_all_df(selected_columns)
|
|
@@ -221,10 +221,10 @@ with block:
|
|
| 221 |
visible=True,
|
| 222 |
)
|
| 223 |
|
| 224 |
-
choosen_q.click(choose_all_quailty, inputs=None, outputs=[checkbox_group, data_component
|
| 225 |
-
choosen_s.click(choose_all_semantic, inputs=None, outputs=[checkbox_group, data_component
|
| 226 |
-
enable_b.click(enable_all, inputs=None, outputs=[checkbox_group, data_component
|
| 227 |
-
disable_b.click(disable_all, inputs=None, outputs=[checkbox_group, data_component
|
| 228 |
checkbox_group.change(fn=on_filter_model_size_method_change, inputs=[ checkbox_group], outputs=data_component)
|
| 229 |
|
| 230 |
# table 2
|
|
|
|
| 142 |
return df
|
| 143 |
|
| 144 |
def choose_all_quailty():
|
| 145 |
+
return gr.update(value=QUALITY_LIST)
|
| 146 |
|
| 147 |
def choose_all_semantic():
|
| 148 |
+
return gr.update(value=SEMANTIC_LIST)
|
| 149 |
|
| 150 |
def disable_all():
|
| 151 |
+
return gr.update(value=[])
|
| 152 |
+
|
| 153 |
def enable_all():
|
| 154 |
+
return gr.update(value=TASK_INFO)
|
| 155 |
|
| 156 |
def on_filter_model_size_method_change(selected_columns):
|
| 157 |
updated_data = get_all_df(selected_columns)
|
|
|
|
| 221 |
visible=True,
|
| 222 |
)
|
| 223 |
|
| 224 |
+
choosen_q.click(choose_all_quailty, inputs=None, outputs=[checkbox_group]).then(fn=on_filter_model_size_method_change, inputs=[ checkbox_group], outputs=data_component)
|
| 225 |
+
choosen_s.click(choose_all_semantic, inputs=None, outputs=[checkbox_group]).then(fn=on_filter_model_size_method_change, inputs=[ checkbox_group], outputs=data_component)
|
| 226 |
+
enable_b.click(enable_all, inputs=None, outputs=[checkbox_group]).then(fn=on_filter_model_size_method_change, inputs=[ checkbox_group], outputs=data_component)
|
| 227 |
+
disable_b.click(disable_all, inputs=None, outputs=[checkbox_group]).then(fn=on_filter_model_size_method_change, inputs=[ checkbox_group], outputs=data_component)
|
| 228 |
checkbox_group.change(fn=on_filter_model_size_method_change, inputs=[ checkbox_group], outputs=data_component)
|
| 229 |
|
| 230 |
# table 2
|