Merge pull request #123 from pyrater/neo

Change var from global to local
This commit is contained in:
Cohee
2023-08-15 12:53:18 +03:00
committed by GitHub
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>"
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()