Gregniuki commited on
Commit
7eb2754
·
1 Parent(s): cf92956

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -197,6 +197,7 @@ async def main(
197
  audio.export(temp_audio_file.name, format="mp3")
198
 
199
  # Rename the temporary audio file based on the text input
 
200
  renamed_audio_file = os.path.join(tempfile.gettempdir(), f"{text_input}.mp3")
201
  os.rename(temp_audio_file.name, renamed_audio_file)
202
 
 
197
  audio.export(temp_audio_file.name, format="mp3")
198
 
199
  # Rename the temporary audio file based on the text input
200
+ global renamed_audio_file
201
  renamed_audio_file = os.path.join(tempfile.gettempdir(), f"{text_input}.mp3")
202
  os.rename(temp_audio_file.name, renamed_audio_file)
203