Spaces:
Runtime error
Runtime error
adding audio file upload
Browse files
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(
|
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")
|