Spaces:
Build error
Build error
Victoria Oberascher
commited on
Commit
·
9be0c88
1
Parent(s):
fb04593
try fo find bug
Browse files- horizon-metrics.py +2 -0
horizon-metrics.py
CHANGED
@@ -179,6 +179,8 @@ class HorizonMetrics(evaluate.Metric):
|
|
179 |
# this means that the metric was called using the input field on huggingface website
|
180 |
|
181 |
try:
|
|
|
|
|
182 |
self.ground_truth_det = references
|
183 |
self.predictions = predictions
|
184 |
print(np.asarray(self.ground_truth_det).shape)
|
|
|
179 |
# this means that the metric was called using the input field on huggingface website
|
180 |
|
181 |
try:
|
182 |
+
if predictions is None or references is None:
|
183 |
+
print("JA")
|
184 |
self.ground_truth_det = references
|
185 |
self.predictions = predictions
|
186 |
print(np.asarray(self.ground_truth_det).shape)
|