From 0408d44602776606e416f0e5017ff3dc781b7ace Mon Sep 17 00:00:00 2001 From: mrq Date: Thu, 16 Mar 2023 14:24:44 +0000 Subject: [PATCH] fixed reload tts being broken due to being as untouched as I am --- src/utils.py | 4 ++-- src/webui.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/utils.py b/src/utils.py index 6279659..ac19fb9 100755 --- a/src/utils.py +++ b/src/utils.py @@ -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 diff --git a/src/webui.py b/src/webui.py index fece74e..6761b2e 100755 --- a/src/webui.py +++ b/src/webui.py @@ -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")