Update app.py
Browse files
app.py
CHANGED
@@ -16,9 +16,11 @@ api_spa = TTS(f"tts_models/spa/fairseq/vits", gpu=False)
|
|
16 |
def audio_tts(txt, language, audio_file):
|
17 |
global count
|
18 |
count += 1
|
19 |
-
|
|
|
20 |
time.sleep(5)
|
21 |
os.system("rm -R /tmp/*")
|
|
|
22 |
count = 0
|
23 |
|
24 |
# TTS with on the fly voice conversion
|
|
|
16 |
def audio_tts(txt, language, audio_file):
|
17 |
global count
|
18 |
count += 1
|
19 |
+
print(f"Count: {count}")
|
20 |
+
if count > 100:
|
21 |
time.sleep(5)
|
22 |
os.system("rm -R /tmp/*")
|
23 |
+
print(f"Reset count: {count}")
|
24 |
count = 0
|
25 |
|
26 |
# TTS with on the fly voice conversion
|