Commit
•
966ae7b
1
Parent(s):
dfd4a53
Fix loading message in case of timeout error
Browse files- app.py +2 -2
- src/details.py +3 -1
- src/results.py +3 -1
app.py
CHANGED
@@ -150,7 +150,7 @@ with gr.Blocks(fill_height=True, fill_width=True) as demo:
|
|
150 |
model_ids,
|
151 |
*base_and_derived_models,
|
152 |
],
|
153 |
-
outputs=results_dataframe,
|
154 |
).then(
|
155 |
fn=update_tasks_component,
|
156 |
outputs=[results_task, configs_task],
|
@@ -240,7 +240,7 @@ with gr.Blocks(fill_height=True, fill_width=True) as demo:
|
|
240 |
model_ids,
|
241 |
*base_and_derived_models,
|
242 |
],
|
243 |
-
outputs=details_dataframe,
|
244 |
).then(
|
245 |
fn=update_sample_idx_component,
|
246 |
inputs=[details_dataframe],
|
|
|
150 |
model_ids,
|
151 |
*base_and_derived_models,
|
152 |
],
|
153 |
+
outputs=[results_dataframe, results],
|
154 |
).then(
|
155 |
fn=update_tasks_component,
|
156 |
outputs=[results_task, configs_task],
|
|
|
240 |
model_ids,
|
241 |
*base_and_derived_models,
|
242 |
],
|
243 |
+
outputs=[details_dataframe, details],
|
244 |
).then(
|
245 |
fn=update_sample_idx_component,
|
246 |
inputs=[details_dataframe],
|
src/details.py
CHANGED
@@ -74,7 +74,9 @@ async def load_details(subtask, *model_ids_lists):
|
|
74 |
)
|
75 |
dfs = [df for df in dfs if df is not None]
|
76 |
if dfs:
|
77 |
-
return pd.concat(dfs)
|
|
|
|
|
78 |
|
79 |
|
80 |
def display_details(df, sample_idx, show_only_differences):
|
|
|
74 |
)
|
75 |
dfs = [df for df in dfs if df is not None]
|
76 |
if dfs:
|
77 |
+
return pd.concat(dfs), None
|
78 |
+
else:
|
79 |
+
return None, None
|
80 |
|
81 |
|
82 |
def display_details(df, sample_idx, show_only_differences):
|
src/results.py
CHANGED
@@ -58,7 +58,9 @@ async def load_results(result_paths_per_model, *model_ids_lists):
|
|
58 |
)
|
59 |
dfs = [df for df in dfs if df is not None]
|
60 |
if dfs:
|
61 |
-
return pd.concat(dfs)
|
|
|
|
|
62 |
|
63 |
|
64 |
def display_results(df, task, hide_std_errors, show_only_differences):
|
|
|
58 |
)
|
59 |
dfs = [df for df in dfs if df is not None]
|
60 |
if dfs:
|
61 |
+
return pd.concat(dfs), None
|
62 |
+
else:
|
63 |
+
return None, None
|
64 |
|
65 |
|
66 |
def display_results(df, task, hide_std_errors, show_only_differences):
|