mirror of
https://github.com/SillyTavern/SillyTavern-Extras.git
synced 2026-03-12 23:10:02 +00:00
removed global var to local
This commit is contained in:
@@ -24,7 +24,6 @@ from TTS.utils.manage import ModelManager
|
||||
|
||||
|
||||
DEBUG_PREFIX = "<Coqui-TTS module>"
|
||||
audio_buffer = io.BytesIO()
|
||||
|
||||
gpu_mode = False
|
||||
is_downloading = False
|
||||
@@ -164,7 +163,7 @@ def coqui_generate_tts():
|
||||
"""
|
||||
global gpu_mode
|
||||
global is_downloading
|
||||
global audio_buffer
|
||||
audio_buffer = io.BytesIO()
|
||||
|
||||
try:
|
||||
request_json = request.get_json()
|
||||
|
||||
Reference in New Issue
Block a user