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