mirror of
https://github.com/SillyTavern/SillyTavern-Extras.git
synced 2026-04-23 07:58:58 +00:00
Add download detection when initiated through tts request
This commit is contained in:
@@ -188,7 +188,9 @@ def coqui_generate_tts():
|
||||
|
||||
print(DEBUG_PREFIX,"Loading tts \n- model", model_name, "\n - speaker_id: ",speaker_id,"\n - language_id: ",language_id, "\n - using",("GPU" if gpu_mode else "CPU"))
|
||||
|
||||
is_downloading = True
|
||||
tts = TTS(model_name=model_name, progress_bar=True, gpu=gpu_mode)
|
||||
is_downloading = False
|
||||
|
||||
if tts.is_multi_lingual:
|
||||
if language_id is None:
|
||||
|
||||
Reference in New Issue
Block a user