Spaces:
Runtime error
Runtime error
jiaofengxu
commited on
Commit
Β·
10df649
1
Parent(s):
8e8ac02
Update app.py
Browse files
app.py
CHANGED
@@ -1,12 +1,13 @@
|
|
1 |
from transformers import pipeline
|
2 |
import gradio as gr
|
3 |
-
import nemo.collections.asr as nemo_asr
|
4 |
|
5 |
|
6 |
#model = pipeline("automatic-speech-recognition")
|
7 |
#model = pipeline("automatic-speech-recognition", model="openai/whisper-base.en")
|
8 |
#model = pipeline("automatic-speech-recognition", model="nvidia/parakeet-ctc-0.6b")
|
9 |
|
|
|
10 |
asr_model = nemo_asr.models.EncDecCTCModelBPE.from_pretrained(model_name="nvidia/parakeet-ctc-1.1b")
|
11 |
|
12 |
|
@@ -29,4 +30,6 @@ gr.Interface(
|
|
29 |
gr.Audio(sources="upload", type="filepath"),
|
30 |
],
|
31 |
outputs="text",
|
32 |
-
).launch(share=True)
|
|
|
|
|
|
1 |
from transformers import pipeline
|
2 |
import gradio as gr
|
3 |
+
#import nemo.collections.asr as nemo_asr
|
4 |
|
5 |
|
6 |
#model = pipeline("automatic-speech-recognition")
|
7 |
#model = pipeline("automatic-speech-recognition", model="openai/whisper-base.en")
|
8 |
#model = pipeline("automatic-speech-recognition", model="nvidia/parakeet-ctc-0.6b")
|
9 |
|
10 |
+
'''
|
11 |
asr_model = nemo_asr.models.EncDecCTCModelBPE.from_pretrained(model_name="nvidia/parakeet-ctc-1.1b")
|
12 |
|
13 |
|
|
|
30 |
gr.Audio(sources="upload", type="filepath"),
|
31 |
],
|
32 |
outputs="text",
|
33 |
+
).launch(share=True)
|
34 |
+
'''
|
35 |
+
gr.load("models/nvidia/parakeet-ctc-0.6b").launch(share=True)
|