Update app.py
Browse files
app.py
CHANGED
@@ -28,8 +28,8 @@ metric = evaluate.load("wer")
|
|
28 |
|
29 |
# Load the Whisper model and tokenizer
|
30 |
huggingface_token = os.environ["huggingface_token"]
|
31 |
-
whisper_miso =
|
32 |
-
miso_tokenizer =
|
33 |
|
34 |
# Initialize the automatic-speech-recognition pipeline with the Whisper model and tokenizer
|
35 |
asr_pipeline = pipeline(
|
|
|
28 |
|
29 |
# Load the Whisper model and tokenizer
|
30 |
huggingface_token = os.environ["huggingface_token"]
|
31 |
+
whisper_miso =AutoModelForCTC.from_pretrained("mskov/whisper_miso", use_auth_token=huggingface_token)
|
32 |
+
miso_tokenizer = AutoModelForCTC.from_pretrained("mskov/whisper_miso", use_auth_token=huggingface_token)
|
33 |
|
34 |
# Initialize the automatic-speech-recognition pipeline with the Whisper model and tokenizer
|
35 |
asr_pipeline = pipeline(
|