arcan3 commited on
Commit
96d815f
1 Parent(s): 0dfadbb

adding audio file upload

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -283,7 +283,7 @@ def translation(audio, text, source_lang_nllb, target_code_nllb, output_type, se
283
 
284
  with gr.Blocks(title = "Octopus Translation App") as octopus_translator:
285
  with gr.Row():
286
- audio_file = gr.Audio(source="microphone")
287
 
288
  with gr.Row():
289
  input_text = gr.Textbox(label="Input text")
 
283
 
284
  with gr.Blocks(title = "Octopus Translation App") as octopus_translator:
285
  with gr.Row():
286
+ audio_file = gr.Audio([sources="microphone"])
287
 
288
  with gr.Row():
289
  input_text = gr.Textbox(label="Input text")