mskov commited on
Commit
14427e6
β€’
1 Parent(s): 15fe17a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -20,7 +20,9 @@ disable_caching()
20
 
21
  from transformers import pipeline, WhisperModel, WhisperTokenizer, AutoConfig
22
  from datasets import load_dataset
23
- from transformers import WERMetric
 
 
24
 
25
  # Load the Whisper model and tokenizer
26
  huggingface_token = os.environ["huggingface_token"]
 
20
 
21
  from transformers import pipeline, WhisperModel, WhisperTokenizer, AutoConfig
22
  from datasets import load_dataset
23
+
24
+
25
+ metric = evaluate.load("wer")
26
 
27
  # Load the Whisper model and tokenizer
28
  huggingface_token = os.environ["huggingface_token"]