Spaces:
Runtime error
Runtime error
EC2 Default User
commited on
Commit
•
e5f3be9
1
Parent(s):
39fa393
change mp3 file ab mode to wb mode
Browse files
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(
|
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.")
|