sujalrajpoot commited on
Commit
ff9b9a2
·
verified ·
1 Parent(s): e8f3ace

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -126,7 +126,7 @@ def generate_tts(text:str, verbose:bool = True):
126
 
127
  filename = f"{uuid4().hex}.mp3"
128
  filepath = os.path.join(AUDIO_DIR, filename)
129
- with filepath.open('wb') as f:
130
  for chunk_num in sorted(audio_chunks.keys()):
131
  f.write(audio_chunks[chunk_num])
132
 
 
126
 
127
  filename = f"{uuid4().hex}.mp3"
128
  filepath = os.path.join(AUDIO_DIR, filename)
129
+ with open(filepath, 'wb') as f:
130
  for chunk_num in sorted(audio_chunks.keys()):
131
  f.write(audio_chunks[chunk_num])
132