Update app.py
Browse files
app.py
CHANGED
@@ -21,8 +21,8 @@ def synthesis(audio_file: tempfile._TemporaryFileWrapper, text: str, ar_ckpt: st
|
|
21 |
output_audio = AudioSegment.from_file(output_file)
|
22 |
return output_audio
|
23 |
|
24 |
-
synthesis_interface = gr.Interface(synthesis,
|
25 |
inputs={"audio_file": gr.File(file_count="multiple"), "text": "text", "ar_ckpt": "text", "nar_ckpt": "text"}
|
26 |
live=True,
|
27 |
-
capture_session=True
|
28 |
synthesis_interface.launch()
|
|
|
21 |
output_audio = AudioSegment.from_file(output_file)
|
22 |
return output_audio
|
23 |
|
24 |
+
synthesis_interface = gr.Interface(synthesis,
|
25 |
inputs={"audio_file": gr.File(file_count="multiple"), "text": "text", "ar_ckpt": "text", "nar_ckpt": "text"}
|
26 |
live=True,
|
27 |
+
capture_session=True,outputs="audio")
|
28 |
synthesis_interface.launch()
|