EC2 Default User commited on
Commit
e5f3be9
1 Parent(s): 39fa393

change mp3 file ab mode to wb mode

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -128,7 +128,7 @@ def download_file(bucket_name, object_key, file_path):
128
  def polly_text_to_audio(audio_file_name, text, audio_format):
129
 
130
  if os.path.exists(audio_file_name):
131
- os.remove(response_audio_filename)
132
  print("output mp3 file deleted successfully.")
133
  else:
134
  print("output mp3 file does not exist.")
 
128
  def polly_text_to_audio(audio_file_name, text, audio_format):
129
 
130
  if os.path.exists(audio_file_name):
131
+ os.remove(audio_file_name)
132
  print("output mp3 file deleted successfully.")
133
  else:
134
  print("output mp3 file does not exist.")