Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Rename dataframes
Browse files
app.py
CHANGED
|
@@ -42,10 +42,8 @@ with gr.Blocks(fill_height=True, fill_width=True, css=".col_heading {width: 50%}
|
|
| 42 |
with gr.Row():
|
| 43 |
with gr.Column():
|
| 44 |
model_id_1 = gr.Dropdown(choices=list(result_paths_per_model.keys()), label="Models")
|
| 45 |
-
dataframe_1 = gr.Dataframe(visible=False)
|
| 46 |
with gr.Column():
|
| 47 |
model_id_2 = gr.Dropdown(choices=list(result_paths_per_model.keys()), label="Models")
|
| 48 |
-
dataframe_2 = gr.Dataframe(visible=False)
|
| 49 |
|
| 50 |
with gr.Row():
|
| 51 |
with gr.Tab("Results"):
|
|
@@ -65,6 +63,8 @@ with gr.Blocks(fill_height=True, fill_width=True, css=".col_heading {width: 50%}
|
|
| 65 |
)
|
| 66 |
hide_std_errors = gr.Checkbox(label="Hide Standard Errors", value=True, info="Options")
|
| 67 |
results = gr.HTML()
|
|
|
|
|
|
|
| 68 |
with gr.Tab("Configs"):
|
| 69 |
load_configs_btn = gr.Button("Load", interactive=False)
|
| 70 |
clear_configs_btn = gr.Button("Clear")
|
|
@@ -123,7 +123,7 @@ with gr.Blocks(fill_height=True, fill_width=True, css=".col_heading {width: 50%}
|
|
| 123 |
).then(
|
| 124 |
fn=load_results_dataframes,
|
| 125 |
inputs=[model_id_1, model_id_2],
|
| 126 |
-
outputs=[
|
| 127 |
).then(
|
| 128 |
fn=update_tasks_component,
|
| 129 |
outputs=[results_task, configs_task],
|
|
@@ -144,14 +144,14 @@ with gr.Blocks(fill_height=True, fill_width=True, css=".col_heading {width: 50%}
|
|
| 144 |
# Display results
|
| 145 |
gr.on(
|
| 146 |
triggers=[
|
| 147 |
-
|
| 148 |
-
|
| 149 |
results_task.change,
|
| 150 |
hide_std_errors.change,
|
| 151 |
show_only_differences.change,
|
| 152 |
],
|
| 153 |
fn=display_results,
|
| 154 |
-
inputs=[results_task, hide_std_errors, show_only_differences,
|
| 155 |
outputs=[results, configs],
|
| 156 |
)
|
| 157 |
gr.on(
|
|
@@ -160,8 +160,8 @@ with gr.Blocks(fill_height=True, fill_width=True, css=".col_heading {width: 50%}
|
|
| 160 |
outputs=[
|
| 161 |
model_id_1,
|
| 162 |
model_id_2,
|
| 163 |
-
|
| 164 |
-
|
| 165 |
load_results_btn,
|
| 166 |
load_configs_btn,
|
| 167 |
results_task,
|
|
|
|
| 42 |
with gr.Row():
|
| 43 |
with gr.Column():
|
| 44 |
model_id_1 = gr.Dropdown(choices=list(result_paths_per_model.keys()), label="Models")
|
|
|
|
| 45 |
with gr.Column():
|
| 46 |
model_id_2 = gr.Dropdown(choices=list(result_paths_per_model.keys()), label="Models")
|
|
|
|
| 47 |
|
| 48 |
with gr.Row():
|
| 49 |
with gr.Tab("Results"):
|
|
|
|
| 63 |
)
|
| 64 |
hide_std_errors = gr.Checkbox(label="Hide Standard Errors", value=True, info="Options")
|
| 65 |
results = gr.HTML()
|
| 66 |
+
results_dataframe_1 = gr.Dataframe(visible=False)
|
| 67 |
+
results_dataframe_2 = gr.Dataframe(visible=False)
|
| 68 |
with gr.Tab("Configs"):
|
| 69 |
load_configs_btn = gr.Button("Load", interactive=False)
|
| 70 |
clear_configs_btn = gr.Button("Clear")
|
|
|
|
| 123 |
).then(
|
| 124 |
fn=load_results_dataframes,
|
| 125 |
inputs=[model_id_1, model_id_2],
|
| 126 |
+
outputs=[results_dataframe_1, results_dataframe_2],
|
| 127 |
).then(
|
| 128 |
fn=update_tasks_component,
|
| 129 |
outputs=[results_task, configs_task],
|
|
|
|
| 144 |
# Display results
|
| 145 |
gr.on(
|
| 146 |
triggers=[
|
| 147 |
+
results_dataframe_1.change,
|
| 148 |
+
results_dataframe_2.change,
|
| 149 |
results_task.change,
|
| 150 |
hide_std_errors.change,
|
| 151 |
show_only_differences.change,
|
| 152 |
],
|
| 153 |
fn=display_results,
|
| 154 |
+
inputs=[results_task, hide_std_errors, show_only_differences, results_dataframe_1, results_dataframe_2],
|
| 155 |
outputs=[results, configs],
|
| 156 |
)
|
| 157 |
gr.on(
|
|
|
|
| 160 |
outputs=[
|
| 161 |
model_id_1,
|
| 162 |
model_id_2,
|
| 163 |
+
results_dataframe_1,
|
| 164 |
+
results_dataframe_2,
|
| 165 |
load_results_btn,
|
| 166 |
load_configs_btn,
|
| 167 |
results_task,
|