Spaces:
Running
Running
Update tabs/inference/inference.py
Browse files
tabs/inference/inference.py
CHANGED
@@ -266,9 +266,11 @@ def inference_tab():
|
|
266 |
output_path = gr.Textbox(
|
267 |
label=i18n("Output Path"),
|
268 |
placeholder=i18n("Enter output path"),
|
269 |
-
value=
|
270 |
-
|
271 |
-
|
|
|
|
|
272 |
interactive=True,
|
273 |
)
|
274 |
split_audio = gr.Checkbox(
|
@@ -332,7 +334,7 @@ def inference_tab():
|
|
332 |
vc_output2 = gr.Audio(label=i18n("Export Audio"))
|
333 |
|
334 |
# Batch inference tab
|
335 |
-
|
336 |
with gr.Row():
|
337 |
with gr.Column():
|
338 |
input_folder_batch = gr.Textbox(
|
@@ -463,4 +465,4 @@ def inference_tab():
|
|
463 |
index_file,
|
464 |
],
|
465 |
outputs=[vc_output3],
|
466 |
-
)
|
|
|
266 |
output_path = gr.Textbox(
|
267 |
label=i18n("Output Path"),
|
268 |
placeholder=i18n("Enter output path"),
|
269 |
+
value=(
|
270 |
+
output_path_fn(audio_paths[0])
|
271 |
+
if audio_paths
|
272 |
+
else os.path.join(now_dir, "assets", "audios", "output.wav")
|
273 |
+
),
|
274 |
interactive=True,
|
275 |
)
|
276 |
split_audio = gr.Checkbox(
|
|
|
334 |
vc_output2 = gr.Audio(label=i18n("Export Audio"))
|
335 |
|
336 |
# Batch inference tab
|
337 |
+
with gr.Tab(i18n("Batch")):
|
338 |
with gr.Row():
|
339 |
with gr.Column():
|
340 |
input_folder_batch = gr.Textbox(
|
|
|
465 |
index_file,
|
466 |
],
|
467 |
outputs=[vc_output3],
|
468 |
+
)
|