MariaK commited on
Commit
a061418
1 Parent(s): 5857a27

updated accuracy pattern

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -105,7 +105,7 @@ def extract_metric(model_card_content, task):
105
  Extract the metric value from the models' model card
106
  :param model_card_content: model card content
107
  """
108
- accuracy_pattern = r"Accuracy: (\d+\.\d+)"
109
  wer_pattern = r"Wer: (\d+\.\d+)"
110
 
111
  if task == "audio-classification":
 
105
  Extract the metric value from the models' model card
106
  :param model_card_content: model card content
107
  """
108
+ accuracy_pattern = r"(?:Accuracy|eval_accuracy): (\d+\.\d+)"
109
  wer_pattern = r"Wer: (\d+\.\d+)"
110
 
111
  if task == "audio-classification":