Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -5,7 +5,8 @@ import os
|
|
5 |
listen_client = InferenceClient("openai/whisper-medium")
|
6 |
|
7 |
def func(audio_):
|
8 |
-
|
|
|
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 |
|