anton-l HF staff commited on
Commit
fef115e
1 Parent(s): 7f57e73

fix empty metrics

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -113,7 +113,10 @@ def retrieve_dataframes(
113
  # assuming that WER is given in 0.13 format
114
  result = 100 * result
115
  elif isinstance(result, list):
116
- result = result[0]
 
 
 
117
 
118
  results[model_id] = round(result, 2) if result is not None else None
119
 
 
113
  # assuming that WER is given in 0.13 format
114
  result = 100 * result
115
  elif isinstance(result, list):
116
+ if len(result) > 0:
117
+ result = result[0]
118
+ else:
119
+ result = None
120
 
121
  results[model_id] = round(result, 2) if result is not None else None
122