1
0
Fork 0

fixed reload tts being broken due to being as untouched as I am

master
mrq 2023-03-16 14:24:44 +07:00
parent aeb904a800
commit 0408d44602
2 changed files with 3 additions and 3 deletions

@ -2224,8 +2224,8 @@ def unload_tts():
print("Unloaded TTS") print("Unloaded TTS")
do_gc() do_gc()
def reload_tts( model=None ): def reload_tts():
load_tts( restart=True, model=model ) load_tts( restart=True )
def get_current_voice(): def get_current_voice():
global current_voice global current_voice

@ -588,7 +588,7 @@ def setup_gradio():
gr.Button(value="Check for Updates").click(check_for_updates) gr.Button(value="Check for Updates").click(check_for_updates)
gr.Button(value="(Re)Load TTS").click( gr.Button(value="(Re)Load TTS").click(
reload_tts, reload_tts,
inputs=EXEC_SETTINGS['autoregressive_model'], inputs=None,
outputs=None outputs=None
) )
# kill_button = gr.Button(value="Close UI") # kill_button = gr.Button(value="Close UI")