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