ahmetdogan47 commited on
Commit
3027bc9
·
verified ·
1 Parent(s): b072b9c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -4,8 +4,8 @@ import os
4
 
5
  listen_client = InferenceClient("openai/whisper-medium")
6
 
7
- def func(audio):
8
- return listen_client.automatic_speech_recognition(audio).text
9
 
10
- gr.Interface(fn=func, inputs=gr.Audio(type="numpy",sources=["microphone"]), outputs=gr.Text()).launch()
11
 
 
4
 
5
  listen_client = InferenceClient("openai/whisper-medium")
6
 
7
+ def func(audio_):
8
+ return listen_client.automatic_speech_recognition(audio_).text
9
 
10
+ gr.Interface(fn=func, inputs=gr.Audio(sources=["microphone"]), outputs=gr.Text()).launch()
11