Spaces:
Runtime error
Runtime error
zahoor54321
commited on
Commit
•
c161c7d
1
Parent(s):
edb20d9
Update app.py
Browse files
app.py
CHANGED
@@ -16,7 +16,7 @@ def asr(audio):
|
|
16 |
# Define the Gradio interface
|
17 |
title = "Urdu Automatic Speech Recognition"
|
18 |
description = "This model performs automatic speech recognition for the Urdu language."
|
19 |
-
input_audio = gr.inputs.Audio(source="microphone", type="
|
20 |
output_text = gr.outputs.Textbox(label="Transcription")
|
21 |
|
22 |
gr.Interface(fn=asr, inputs=input_audio, outputs=output_text, title=title, description=description).launch()
|
|
|
16 |
# Define the Gradio interface
|
17 |
title = "Urdu Automatic Speech Recognition"
|
18 |
description = "This model performs automatic speech recognition for the Urdu language."
|
19 |
+
input_audio = gr.inputs.Audio(source="microphone", type="numpy", label="Record your voice")
|
20 |
output_text = gr.outputs.Textbox(label="Transcription")
|
21 |
|
22 |
gr.Interface(fn=asr, inputs=input_audio, outputs=output_text, title=title, description=description).launch()
|