Update app.py
Browse files
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 |
-
|
|
|
|
|
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"]
|