mirror of
https://github.com/DrewThomasson/ebook2audiobook.git
synced 2026-01-10 06:18:02 -05:00
...
This commit is contained in:
@@ -1177,8 +1177,7 @@ def build_interface(args:dict)->gr.Blocks:
|
||||
if os.path.exists(new_voice_path) and any(v[1] == new_voice_path for v in voice_options):
|
||||
session['voice'] = new_voice_path
|
||||
else:
|
||||
parts[idx + 1] = 'eng'
|
||||
session['voice'] = str(Path(*parts))
|
||||
session['voice'] = models[session['fine_tuned']]['voice']
|
||||
else:
|
||||
if voice_options and voice_options[0][1] is not None:
|
||||
session['voice'] = models[session['fine_tuned']]['voice']
|
||||
|
||||
Reference in New Issue
Block a user