Update app.py
Browse files
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
|
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 |
|