Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -4,8 +4,8 @@ import os
|
|
4 |
|
5 |
listen_client = InferenceClient("openai/whisper-medium")
|
6 |
|
7 |
-
def func(
|
8 |
-
return listen_client.automatic_speech_recognition(
|
9 |
|
10 |
-
gr.Interface(fn=func, inputs=gr.Audio(
|
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 |
|