removed global var to local

This commit is contained in:
joe
2023-08-15 18:50:21 +09:00
parent 7a5acbf076
commit 13cddfddcd
2 changed files with 1 additions and 2 deletions

View File

View File

@@ -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()