Mark0047 commited on
Commit
c92de58
·
verified ·
1 Parent(s): fe85c4a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -1,8 +1,8 @@
1
  import gradio as gr
2
 
3
- whisper = gr.load("models/openai/whisper-small")
4
 
5
  def transcribe(audio):
6
- return whisper(audio)
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()