Spaces:
Runtime error
Runtime error
fix for audio
Browse files
app.py
CHANGED
@@ -305,7 +305,7 @@ with gr.Blocks(theme='ParityError/Anime') as iface :
|
|
305 |
image_button = gr.Button("process image")
|
306 |
with gr.Tab("speech to text translation"):
|
307 |
audio_input = gr.Audio(label="talk in french",
|
308 |
-
sources=["microphone"])
|
309 |
audio_output = gr.Markdown(label="output text")
|
310 |
audio_button = gr.Button("process audio")
|
311 |
text_button.click(process_and_query, inputs=text_input, outputs=text_output)
|
|
|
305 |
image_button = gr.Button("process image")
|
306 |
with gr.Tab("speech to text translation"):
|
307 |
audio_input = gr.Audio(label="talk in french",
|
308 |
+
sources=["microphone"],type="numpy")
|
309 |
audio_output = gr.Markdown(label="output text")
|
310 |
audio_button = gr.Button("process audio")
|
311 |
text_button.click(process_and_query, inputs=text_input, outputs=text_output)
|