Update app.py
Browse files
app.py
CHANGED
|
@@ -32,9 +32,6 @@ def function1(prompt):
|
|
| 32 |
# Export the audio in MP3 format
|
| 33 |
sound.export(mp3_file, format="mp3")
|
| 34 |
|
| 35 |
-
# Delete the WAV file
|
| 36 |
-
os.remove("speech.wav")
|
| 37 |
-
|
| 38 |
# Return the path to the MP3 file
|
| 39 |
return os.path.abspath(mp3_file)
|
| 40 |
|
|
|
|
| 32 |
# Export the audio in MP3 format
|
| 33 |
sound.export(mp3_file, format="mp3")
|
| 34 |
|
|
|
|
|
|
|
|
|
|
| 35 |
# Return the path to the MP3 file
|
| 36 |
return os.path.abspath(mp3_file)
|
| 37 |
|