Spaces:
Runtime error
Runtime error
Fix loop
Browse files
app.py
CHANGED
|
@@ -66,6 +66,7 @@ def get_supported_metrics():
|
|
| 66 |
except Exception as e:
|
| 67 |
print(e)
|
| 68 |
print("Skipping the following metric, which cannot load:", metric)
|
|
|
|
| 69 |
|
| 70 |
argspec = inspect.getfullargspec(metric_func.compute)
|
| 71 |
if "references" in argspec.kwonlyargs and "predictions" in argspec.kwonlyargs:
|
|
|
|
| 66 |
except Exception as e:
|
| 67 |
print(e)
|
| 68 |
print("Skipping the following metric, which cannot load:", metric)
|
| 69 |
+
continue
|
| 70 |
|
| 71 |
argspec = inspect.getfullargspec(metric_func.compute)
|
| 72 |
if "references" in argspec.kwonlyargs and "predictions" in argspec.kwonlyargs:
|