MariaK commited on
Commit
11b003a
1 Parent(s): a061418

Added check for model cards with no metric

Browse files
Files changed (1) hide show
  1. app.py +3 -0
app.py CHANGED
@@ -75,6 +75,9 @@ def calculate_best_result(user_models, task):
75
  continue
76
  metric = parse_metrics(model, task)
77
 
 
 
 
78
  if larger_is_better:
79
  if metric > best_result:
80
  best_result = metric
 
75
  continue
76
  metric = parse_metrics(model, task)
77
 
78
+ if metric == None:
79
+ continue
80
+
81
  if larger_is_better:
82
  if metric > best_result:
83
  best_result = metric