Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -40,32 +40,23 @@ def add_new_eval(
|
|
40 |
family_prediction_dataset,
|
41 |
save,
|
42 |
):
|
43 |
-
gr.Info
|
44 |
-
value="Your submission is being processed...",
|
45 |
-
show_progress="full",
|
46 |
-
visible=True,
|
47 |
-
elem_id="processing-modal"
|
48 |
-
)
|
49 |
|
50 |
representation_name = model_name_textbox if revision_name_textbox == '' else revision_name_textbox
|
51 |
-
results = run_probe(benchmark_types, representation_name, human_file, skempi_file, similarity_tasks, function_prediction_aspect, function_prediction_dataset, family_prediction_dataset)
|
52 |
-
|
53 |
|
|
|
|
|
|
|
|
|
|
|
|
|
54 |
if save:
|
55 |
save_results(representation_name, benchmark_types, results)
|
56 |
-
gr.Info
|
57 |
-
|
58 |
-
show_progress="full",
|
59 |
-
visible=True,
|
60 |
-
elem_id="completion-modal"
|
61 |
-
)
|
62 |
else:
|
63 |
-
gr.Info
|
64 |
-
|
65 |
-
show_progress="full",
|
66 |
-
visible=True,
|
67 |
-
elem_id="completion-modal"
|
68 |
-
)
|
69 |
return 0
|
70 |
|
71 |
def refresh_data():
|
|
|
40 |
family_prediction_dataset,
|
41 |
save,
|
42 |
):
|
43 |
+
processing_info = gr.Info("Your submission is being processed...", elem_id="processing-modal")
|
|
|
|
|
|
|
|
|
|
|
44 |
|
45 |
representation_name = model_name_textbox if revision_name_textbox == '' else revision_name_textbox
|
|
|
|
|
46 |
|
47 |
+
try:
|
48 |
+
results = run_probe(benchmark_types, representation_name, human_file, skempi_file, similarity_tasks, function_prediction_aspect, function_prediction_dataset, family_prediction_dataset)
|
49 |
+
except:
|
50 |
+
completion_info = gr.Info("Your submission has not been processed. Please check your representation files!", elem_id="completion-modal")
|
51 |
+
|
52 |
+
|
53 |
if save:
|
54 |
save_results(representation_name, benchmark_types, results)
|
55 |
+
completion_info = gr.Info("Your submission has been processed and results are saved!", elem_id="completion-modal")
|
56 |
+
|
|
|
|
|
|
|
|
|
57 |
else:
|
58 |
+
completion_info = gr.Info("Your submission has been processed!", elem_id="completion-modal")
|
59 |
+
|
|
|
|
|
|
|
|
|
60 |
return 0
|
61 |
|
62 |
def refresh_data():
|