Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -3,7 +3,7 @@ import gradio as gr
|
|
3 |
pipe = pipeline(model="PatrickML/whisper_small_hyper")
|
4 |
def transcribe(audio):
|
5 |
text = pipe(audio)["text"]
|
6 |
-
return text
|
7 |
|
8 |
mic = gr.Audio(source="microphone", type="filepath", label="Speak here...")
|
9 |
iface = gr.Interface(transcribe,mic,"text").launch()
|
|
|
3 |
pipe = pipeline(model="PatrickML/whisper_small_hyper")
|
4 |
def transcribe(audio):
|
5 |
text = pipe(audio)["text"]
|
6 |
+
return text
|
7 |
|
8 |
mic = gr.Audio(source="microphone", type="filepath", label="Speak here...")
|
9 |
iface = gr.Interface(transcribe,mic,"text").launch()
|