Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -153,8 +153,8 @@ async def main(
|
|
153 |
|
154 |
|
155 |
# Rename the audio file based on the text input
|
156 |
-
renamed_audio_file = os.path.join(temp_dir, f"{text_input}.
|
157 |
-
|
158 |
# Save the generated audio as a temporary file
|
159 |
filepath = renamed_audio_file
|
160 |
|
|
|
153 |
|
154 |
|
155 |
# Rename the audio file based on the text input
|
156 |
+
renamed_audio_file = os.path.join(temp_dir, f"{text_input}.mp3")
|
157 |
+
audio.export(renamed_audio_file, format="mp3")
|
158 |
# Save the generated audio as a temporary file
|
159 |
filepath = renamed_audio_file
|
160 |
|