Gregniuki commited on
Commit
a2cf0df
·
1 Parent(s): a654c36

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -192,8 +192,9 @@ async def main(
192
  # text_input = text_input[:100]
193
 
194
  # Rename the audio file based on the text input
195
- # renamed_audio_file = os.path.join(temp_dir, f"{text_input}.mp3")
196
- renamed_audio_file = temp_dir
 
197
  audio.export(renamed_audio_file, format="mp3")
198
  # Save the generated audio as a temporary file
199
  filepath = renamed_audio_file
 
192
  # text_input = text_input[:100]
193
 
194
  # Rename the audio file based on the text input
195
+ # renamed_audio_file = os.path.join(temp_dir, f"{text_input}.mp3")
196
+ renamed_audio_file = os.path.join(temp_dir, "download.mp3")
197
+
198
  audio.export(renamed_audio_file, format="mp3")
199
  # Save the generated audio as a temporary file
200
  filepath = renamed_audio_file