doevent commited on
Commit
2f9a388
·
1 Parent(s): 86b2f53

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
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
- if count > 50:
 
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