mgyigit commited on
Commit
11d1b83
·
verified ·
1 Parent(s): cdf41df

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
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.Error("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.Error("SKEMPI representations are required for affinity benchmark!")
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.Error("Your submission has not been processed. Please check your representation files!")
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