lokesh341 commited on
Commit
bdde3f6
·
verified ·
1 Parent(s): f657f24

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -55,7 +55,7 @@ def generate_audio_prompt(text, filename):
55
  tts.save(os.path.join("static", filename))
56
  except gtts.tts.gTTSError as e:
57
  print(f"Error: {e}")
58
- time.sleep(5) # Retry after 5 seconds
59
  generate_audio_prompt(text, filename)
60
 
61
  # Utility functions
 
55
  tts.save(os.path.join("static", filename))
56
  except gtts.tts.gTTSError as e:
57
  print(f"Error: {e}")
58
+ time.sleep(10) # Retry after 10 seconds
59
  generate_audio_prompt(text, filename)
60
 
61
  # Utility functions