mskov commited on
Commit
35a8357
β€’
1 Parent(s): 62b683d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -1,7 +1,7 @@
1
  import os
2
  import sys
3
  os.system("pip install transformers==4.27.0")
4
- from transformers import pipeline
5
  import gradio as gr
6
  os.system("pip install evaluate")
7
  os.system("pip install datasets")
@@ -21,7 +21,7 @@ disable_caching()
21
 
22
  p = pipeline("automatic-speech-recognition")
23
 
24
- whisper_miso=WhisperForConditionalGeneration.from_pretrained("mskov/whisper_miso", use_auth_token=huggingface_token)
25
 
26
 
27
  task_evaluator = evaluator("automatic-speech-recognition")
 
1
  import os
2
  import sys
3
  os.system("pip install transformers==4.27.0")
4
+ from transformers import pipeline, WhisperModel
5
  import gradio as gr
6
  os.system("pip install evaluate")
7
  os.system("pip install datasets")
 
21
 
22
  p = pipeline("automatic-speech-recognition")
23
 
24
+ whisper_miso=WhisperModel.from_pretrained("mskov/whisper_miso", use_auth_token=huggingface_token)
25
 
26
 
27
  task_evaluator = evaluator("automatic-speech-recognition")