Update app.py
Browse files
app.py
CHANGED
@@ -1,8 +1,8 @@
|
|
1 |
import gradio as gr
|
2 |
|
3 |
-
|
4 |
|
5 |
def transcribe(audio):
|
6 |
-
return
|
7 |
|
8 |
gr.Interface(transcribe, gr.Audio(type="filepath"), gr.Textbox()).launch()
|
|
|
1 |
import gradio as gr
|
2 |
|
3 |
+
model = gr.load("models/superb/wav2vec2-base-superb-er")
|
4 |
|
5 |
def transcribe(audio):
|
6 |
+
return model(audio)
|
7 |
|
8 |
gr.Interface(transcribe, gr.Audio(type="filepath"), gr.Textbox()).launch()
|