mirror of
https://github.com/SillyTavern/SillyTavern-Extras.git
synced 2026-05-01 03:41:24 +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>"
|
DEBUG_PREFIX = "<Coqui-TTS module>"
|
||||||
audio_buffer = io.BytesIO()
|
|
||||||
|
|
||||||
gpu_mode = False
|
gpu_mode = False
|
||||||
is_downloading = False
|
is_downloading = False
|
||||||
@@ -164,7 +163,7 @@ def coqui_generate_tts():
|
|||||||
"""
|
"""
|
||||||
global gpu_mode
|
global gpu_mode
|
||||||
global is_downloading
|
global is_downloading
|
||||||
global audio_buffer
|
audio_buffer = io.BytesIO()
|
||||||
|
|
||||||
try:
|
try:
|
||||||
request_json = request.get_json()
|
request_json = request.get_json()
|
||||||
|
|||||||
Reference in New Issue
Block a user