fixed reload tts being broken due to being as untouched as I am
This commit is contained in:
parent
aeb904a800
commit
0408d44602
|
@ -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")
|
||||||
|
|
Loading…
Reference in New Issue
Block a user