Victoria Oberascher commited on
Commit
6219d1f
·
1 Parent(s): da3cb24

try to fix bug

Browse files
Files changed (1) hide show
  1. horizon-metrics.py +0 -6
horizon-metrics.py CHANGED
@@ -178,12 +178,6 @@ class HorizonMetrics(evaluate.Metric):
178
  """
179
  # this means that the metric was called using the input field on huggingface website
180
 
181
- if (self.ground_truth_det is None or self.predictions is None):
182
- self.ground_truth_det = references[0]
183
- self.predictions = predictions[0]
184
- print(self.ground_truth_det)
185
- print(self.predictions)
186
-
187
  try:
188
  print(np.asarray(self.ground_truth_det).shape)
189
  print(np.asarray(self.predictions).shape)
 
178
  """
179
  # this means that the metric was called using the input field on huggingface website
180
 
 
 
 
 
 
 
181
  try:
182
  print(np.asarray(self.ground_truth_det).shape)
183
  print(np.asarray(self.predictions).shape)