Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -54,7 +54,7 @@ def parse_metrics_f1(meta):
|
|
54 |
if "model-index" not in meta:
|
55 |
return None
|
56 |
result = meta["model-index"][0]["results"]
|
57 |
-
metrics = result[
|
58 |
f1 = metrics[1]["value"]
|
59 |
print("F1-score", f1)
|
60 |
return f1
|
|
|
54 |
if "model-index" not in meta:
|
55 |
return None
|
56 |
result = meta["model-index"][0]["results"]
|
57 |
+
metrics = result[1]["metrics"]
|
58 |
f1 = metrics[1]["value"]
|
59 |
print("F1-score", f1)
|
60 |
return f1
|