forked from mrq/ai-voice-cloning
forgot to not require it to be relative
This commit is contained in:
parent
5cb86106ce
commit
2e33bf071a
|
@ -252,7 +252,7 @@ def generate(**kwargs):
|
||||||
|
|
||||||
full_start_time = time.time()
|
full_start_time = time.time()
|
||||||
|
|
||||||
outdir = f"./{args.results_folder}/{voice}/"
|
outdir = f"{args.results_folder}/{voice}/"
|
||||||
os.makedirs(outdir, exist_ok=True)
|
os.makedirs(outdir, exist_ok=True)
|
||||||
|
|
||||||
audio_cache = {}
|
audio_cache = {}
|
||||||
|
|
|
@ -120,7 +120,7 @@ def update_training_configs():
|
||||||
def history_view_results( voice ):
|
def history_view_results( voice ):
|
||||||
results = []
|
results = []
|
||||||
files = []
|
files = []
|
||||||
outdir = f"./{args.results_folder}/{voice}/"
|
outdir = f"{args.results_folder}/{voice}/"
|
||||||
for i, file in enumerate(sorted(os.listdir(outdir))):
|
for i, file in enumerate(sorted(os.listdir(outdir))):
|
||||||
if file[-4:] != ".wav":
|
if file[-4:] != ".wav":
|
||||||
continue
|
continue
|
||||||
|
@ -285,7 +285,7 @@ def update_voices():
|
||||||
)
|
)
|
||||||
|
|
||||||
def history_copy_settings( voice, file ):
|
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():
|
def setup_gradio():
|
||||||
global args
|
global args
|
||||||
|
@ -653,7 +653,7 @@ def setup_gradio():
|
||||||
]
|
]
|
||||||
)
|
)
|
||||||
history_results_list.change(
|
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=[
|
inputs=[
|
||||||
history_voices,
|
history_voices,
|
||||||
history_results_list,
|
history_results_list,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user