From 2e33bf071a0b83798320e3001cdc6d2498c2d2fe Mon Sep 17 00:00:00 2001 From: mrq Date: Sun, 19 Mar 2023 22:05:33 +0000 Subject: [PATCH] forgot to not require it to be relative --- src/utils.py | 2 +- src/webui.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/utils.py b/src/utils.py index 714b57c..181f1d9 100755 --- a/src/utils.py +++ b/src/utils.py @@ -252,7 +252,7 @@ def generate(**kwargs): full_start_time = time.time() - outdir = f"./{args.results_folder}/{voice}/" + outdir = f"{args.results_folder}/{voice}/" os.makedirs(outdir, exist_ok=True) audio_cache = {} diff --git a/src/webui.py b/src/webui.py index 0993e4e..4bffa29 100755 --- a/src/webui.py +++ b/src/webui.py @@ -120,7 +120,7 @@ def update_training_configs(): def history_view_results( voice ): results = [] files = [] - outdir = f"./{args.results_folder}/{voice}/" + outdir = f"{args.results_folder}/{voice}/" for i, file in enumerate(sorted(os.listdir(outdir))): if file[-4:] != ".wav": continue @@ -285,7 +285,7 @@ def update_voices(): ) def history_copy_settings( voice, file ): - return import_generate_settings( f"./{args.results_folder}/{voice}/{file}" ) + return import_generate_settings( f"{args.results_folder}/{voice}/{file}" ) def setup_gradio(): global args @@ -653,7 +653,7 @@ def setup_gradio(): ] ) history_results_list.change( - fn=lambda voice, file: f"./{args.results_folder}/{voice}/{file}", + fn=lambda voice, file: f"{args.results_folder}/{voice}/{file}", inputs=[ history_voices, history_results_list,