Spaces:
Runtime error
Runtime error
jiaofengxu
commited on
Commit
Β·
a90f28f
1
Parent(s):
df1bd47
Update app.py
Browse files
app.py
CHANGED
@@ -3,7 +3,7 @@ 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,4 +23,4 @@ gr.Interface(
|
|
23 |
gr.Audio(sources="upload", type="filepath"),
|
24 |
],
|
25 |
outputs="text",
|
26 |
-
).launch(share)
|
|
|
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="models/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=True)
|