Spaces:
Runtime error
Runtime error
Tristan Thrush
commited on
Commit
·
fe77dfe
1
Parent(s):
3bebb47
added check in results loader
Browse files
app.py
CHANGED
@@ -46,7 +46,7 @@ def parse_metrics_rows(meta):
|
|
46 |
if not isinstance(meta["model-index"], list) or len(meta["model-index"]) == 0 or "results" not in meta["model-index"][0]:
|
47 |
return None
|
48 |
for result in meta["model-index"][0]["results"]:
|
49 |
-
if "dataset" not in result or "metrics" not in result or "type" not in result["dataset"]:
|
50 |
continue
|
51 |
dataset = result["dataset"]["type"]
|
52 |
if "args" not in result["dataset"]:
|
|
|
46 |
if not isinstance(meta["model-index"], list) or len(meta["model-index"]) == 0 or "results" not in meta["model-index"][0]:
|
47 |
return None
|
48 |
for result in meta["model-index"][0]["results"]:
|
49 |
+
if not isinstance(result, dict) or "dataset" not in result or "metrics" not in result or "type" not in result["dataset"]:
|
50 |
continue
|
51 |
dataset = result["dataset"]["type"]
|
52 |
if "args" not in result["dataset"]:
|