mirror of
https://github.com/DrewThomasson/ebook2audiobook.git
synced 2026-01-08 21:38:12 -05:00
...
This commit is contained in:
@@ -1201,7 +1201,7 @@ def build_interface(args:dict)->gr.Blocks:
|
||||
for dir in os.listdir(custom_model_tts_dir)
|
||||
if os.path.isdir(os.path.join(custom_model_tts_dir, dir))
|
||||
]
|
||||
session['custom_model'] = session['custom_model'] if session['custom_model'] in [option[1] for option in custom_model_options] else custom_model_options[0][1]
|
||||
session['custom_model'] = session['custom_model'] if session['custom_model'] in [option[1] for option in custom_model_options] else custom_model_options[0][1] else session['custom_model']
|
||||
model_paths = {v[1] for v in custom_model_options}
|
||||
return gr.update(choices=custom_model_options, value=session['custom_model'])
|
||||
except Exception as e:
|
||||
|
||||
Reference in New Issue
Block a user