Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -30,19 +30,32 @@ def add_new_eval(
|
|
| 30 |
family_prediction_dataset,
|
| 31 |
save,
|
| 32 |
):
|
| 33 |
-
gr.
|
| 34 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 35 |
representation_name = model_name_textbox if revision_name_textbox == '' else revision_name_textbox
|
| 36 |
results = run_probe(benchmark_types, representation_name, human_file, skempi_file, similarity_tasks, function_prediction_aspect, function_prediction_dataset, family_prediction_dataset)
|
| 37 |
|
| 38 |
-
submission_result.update("Your submission has been processed.")
|
| 39 |
|
| 40 |
if save:
|
| 41 |
save_results(representation_name, benchmark_types, results)
|
| 42 |
-
gr.Info(
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 43 |
else:
|
| 44 |
-
gr.Info(
|
| 45 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 46 |
return 0
|
| 47 |
|
| 48 |
def refresh_data():
|
|
@@ -262,7 +275,6 @@ with block:
|
|
| 262 |
family_prediction_dataset,
|
| 263 |
save_checkbox,
|
| 264 |
],
|
| 265 |
-
outputs=submission_result
|
| 266 |
)
|
| 267 |
|
| 268 |
with gr.Row():
|
|
|
|
| 30 |
family_prediction_dataset,
|
| 31 |
save,
|
| 32 |
):
|
| 33 |
+
gr.Info.update(
|
| 34 |
+
value="Your submission is being processed...",
|
| 35 |
+
show_progress="full",
|
| 36 |
+
visible=True,
|
| 37 |
+
elem_id="processing-modal"
|
| 38 |
+
)
|
| 39 |
+
|
| 40 |
representation_name = model_name_textbox if revision_name_textbox == '' else revision_name_textbox
|
| 41 |
results = run_probe(benchmark_types, representation_name, human_file, skempi_file, similarity_tasks, function_prediction_aspect, function_prediction_dataset, family_prediction_dataset)
|
| 42 |
|
|
|
|
| 43 |
|
| 44 |
if save:
|
| 45 |
save_results(representation_name, benchmark_types, results)
|
| 46 |
+
gr.Info.update(
|
| 47 |
+
value="Your submission has been processed and results are saved!",
|
| 48 |
+
show_progress="full",
|
| 49 |
+
visible=True,
|
| 50 |
+
elem_id="completion-modal"
|
| 51 |
+
)
|
| 52 |
else:
|
| 53 |
+
gr.Info.update(
|
| 54 |
+
value="Your submission has been processed!",
|
| 55 |
+
show_progress="full",
|
| 56 |
+
visible=True,
|
| 57 |
+
elem_id="completion-modal"
|
| 58 |
+
)
|
| 59 |
return 0
|
| 60 |
|
| 61 |
def refresh_data():
|
|
|
|
| 275 |
family_prediction_dataset,
|
| 276 |
save_checkbox,
|
| 277 |
],
|
|
|
|
| 278 |
)
|
| 279 |
|
| 280 |
with gr.Row():
|