mskov commited on
Commit
4ef4640
β€’
1 Parent(s): f1a0ecb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -25,9 +25,11 @@ p = pipeline("automatic-speech-recognition")
25
  huggingface_token = os.environ["huggingface_token"]
26
 
27
  whisper_miso=WhisperModel.from_pretrained("mskov/whisper_miso", use_auth_token=huggingface_token)
28
- #miso_tokenizer = WhisperTokenizer.from_pretrained("mskov/whisper_miso", use_auth_token=huggingface_token)
29
- miso_tokenizer = WhisperTokenizer.from_pretrained("openai/whisper-small", use_auth_token=huggingface_token)
30
 
 
 
31
 
32
  task_evaluator = evaluator("automatic-speech-recognition")
33
  #url = {"test" : "https://huggingface.co/datasets/mskov/miso_test/blob/main/test_set.parquet"}
 
25
  huggingface_token = os.environ["huggingface_token"]
26
 
27
  whisper_miso=WhisperModel.from_pretrained("mskov/whisper_miso", use_auth_token=huggingface_token)
28
+ miso_tokenizer = WhisperTokenizer.from_pretrained("mskov/whisper_miso", use_auth_token=huggingface_token)
29
+ #miso_tokenizer = WhisperTokenizer.from_pretrained("openai/whisper-small", use_auth_token=huggingface_token)
30
 
31
+ task_evaluator = p.task_evaluator
32
+ task_evaluator.feature_extractor = whisper_miso.get_feature_extractor()
33
 
34
  task_evaluator = evaluator("automatic-speech-recognition")
35
  #url = {"test" : "https://huggingface.co/datasets/mskov/miso_test/blob/main/test_set.parquet"}