Added check for model cards with no metric
Browse files
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
|