From 6119fad025e1a6cf23351458a29bef36194427e2 Mon Sep 17 00:00:00 2001 From: Yurii Paniv Date: Thu, 19 Oct 2023 01:36:34 +0300 Subject: [PATCH] Fix parallel processing errors --- app.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/app.py b/app.py index 5596b7b..32c921f 100644 --- a/app.py +++ b/app.py @@ -49,10 +49,8 @@ class VoiceOption(Enum): print(f"CUDA available? {is_available()}") -ukr_tts = TTS(device="cuda" if is_available() else "cpu") - - def tts(text: str, voice: str): + ukr_tts = TTS(device="cuda" if is_available() else "cpu") # TODO: fix print("============================") print("Original text:", text) print("Voice", voice)