From 795d114af600a0c27970851b2dfdf25ac319d435 Mon Sep 17 00:00:00 2001 From: Daiki Arai Date: Thu, 4 Jan 2024 23:41:01 +0900 Subject: [PATCH] =?UTF-8?q?=E5=BC=95=E6=95=B0=E6=8C=87=E5=AE=9A=E3=82=92?= =?UTF-8?q?=E5=88=B6=E5=BE=A1=E3=81=97=E3=81=A6current=20recursive?= =?UTF-8?q?=E3=82=92=E9=98=B2=E3=81=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- webui_dataset.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/webui_dataset.py b/webui_dataset.py index 6984ae93..ffca25f3 100644 --- a/webui_dataset.py +++ b/webui_dataset.py @@ -26,8 +26,6 @@ def do_slice( output_dir = os.path.join(dataset_root, model_name, "raw") cmd = [ "slice.py", - "--input_dir", - input_dir, "--output_dir", output_dir, "--min_sec", @@ -37,6 +35,8 @@ def do_slice( "--min_silence_dur_ms", str(min_silence_dur_ms), ] + if input_dir != "": + cmd += ["--input_dir", input_dir] # onnxの警告が出るので無視する success, message = run_script_with_log(cmd, ignore_warning=True) if not success: @@ -123,7 +123,7 @@ def do_transcribe( input_dir = gr.Textbox( label="入力フォルダ名(デフォルトはinputs)", placeholder="inputs", - info="inputsフォルダにwavファイルを入れておいてください", + info="下記フォルダにwavファイルを入れておいてください", ) min_sec = gr.Slider( minimum=0, maximum=10, value=2, step=0.5, label="この秒数未満は切り捨てる"