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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -5,7 +5,8 @@ import os
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
 
 
5
  listen_client = InferenceClient("openai/whisper-medium")
6
 
7
  def func(audio_):
8
+ val=listen_client.automatic_speech_recognition(audio_).text
9
+ return val
10
 
11
  gr.Interface(fn=func, inputs=gr.Audio(sources=["microphone"]), outputs=gr.Text()).launch()
12