Skip to content

Commit

Permalink
Merge pull request yl4579#13 from darai0512/dev
Browse files Browse the repository at this point in the history
dataset.sliceの引数指定を制御してリポジトリルートからの再帰取得を防ぐ
  • Loading branch information
litagin02 authored Jan 5, 2024
2 parents c7571a7 + 795d114 commit b5a21af
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions webui_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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:
Expand Down Expand Up @@ -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="この秒数未満は切り捨てる"
Expand Down

0 comments on commit b5a21af

Please sign in to comment.