Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -32,11 +32,11 @@ def add_new_eval(
|
|
| 32 |
save,
|
| 33 |
):
|
| 34 |
if any(task in benchmark_types for task in ['similarity', 'family', 'function']) and human_file is None:
|
| 35 |
-
gr.
|
| 36 |
return -1
|
| 37 |
|
| 38 |
if 'affinity' in benchmark_types and skempi_file is None:
|
| 39 |
-
gr.
|
| 40 |
return -1
|
| 41 |
|
| 42 |
processing_info = gr.Info("Your submission is being processed...")
|
|
@@ -46,7 +46,7 @@ def add_new_eval(
|
|
| 46 |
try:
|
| 47 |
results = run_probe(benchmark_types, representation_name, human_file, skempi_file, similarity_tasks, function_prediction_aspect, function_prediction_dataset, family_prediction_dataset)
|
| 48 |
except:
|
| 49 |
-
completion_info = gr.
|
| 50 |
return -1
|
| 51 |
|
| 52 |
|
|
|
|
| 32 |
save,
|
| 33 |
):
|
| 34 |
if any(task in benchmark_types for task in ['similarity', 'family', 'function']) and human_file is None:
|
| 35 |
+
gr.Warning("Human representations are required for similarity, family, or function benchmarks!")
|
| 36 |
return -1
|
| 37 |
|
| 38 |
if 'affinity' in benchmark_types and skempi_file is None:
|
| 39 |
+
gr.Warning("SKEMPI representations are required for affinity benchmark!")
|
| 40 |
return -1
|
| 41 |
|
| 42 |
processing_info = gr.Info("Your submission is being processed...")
|
|
|
|
| 46 |
try:
|
| 47 |
results = run_probe(benchmark_types, representation_name, human_file, skempi_file, similarity_tasks, function_prediction_aspect, function_prediction_dataset, family_prediction_dataset)
|
| 48 |
except:
|
| 49 |
+
completion_info = gr.Warning("Your submission has not been processed. Please check your representation files!")
|
| 50 |
return -1
|
| 51 |
|
| 52 |
|