Spaces:
Runtime error
Runtime error
jiaofengxu
commited on
Commit
Β·
df1bd47
1
Parent(s):
bd84b6c
Update app.py
Browse files
app.py
CHANGED
@@ -2,8 +2,8 @@ from transformers import pipeline
|
|
2 |
import gradio as gr
|
3 |
|
4 |
#model = pipeline("automatic-speech-recognition")
|
5 |
-
model = pipeline("automatic-speech-recognition", model="openai/whisper-base.en")
|
6 |
-
|
7 |
|
8 |
def transcribe_audio(mic=None, file=None):
|
9 |
if mic is not None:
|
@@ -23,4 +23,4 @@ gr.Interface(
|
|
23 |
gr.Audio(sources="upload", type="filepath"),
|
24 |
],
|
25 |
outputs="text",
|
26 |
-
).launch()
|
|
|
2 |
import gradio as gr
|
3 |
|
4 |
#model = pipeline("automatic-speech-recognition")
|
5 |
+
#model = pipeline("automatic-speech-recognition", model="openai/whisper-base.en")
|
6 |
+
model = pipeline("automatic-speech-recognition", model="nvidia/parakeet-ctc-0.6b")
|
7 |
|
8 |
def transcribe_audio(mic=None, file=None):
|
9 |
if mic is not None:
|
|
|
23 |
gr.Audio(sources="upload", type="filepath"),
|
24 |
],
|
25 |
outputs="text",
|
26 |
+
).launch(share)
|