not-lain commited on
Commit
f0b4737
1 Parent(s): e8d566d

fix for audio

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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)