1
0

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

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

View File

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

View File

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