mskov commited on
Commit
1314963
Β·
1 Parent(s): decc59e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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 = WhisperModel.from_pretrained("mskov/whisper_miso", use_auth_token=huggingface_token)
32
- miso_tokenizer = WhisperTokenizer.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(
 
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(