Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -229,10 +229,7 @@ def function(Textbox, Textbox2, Textbox3, Dropdown):
|
|
229 |
download_audio(output, output_file)
|
230 |
convert_wav_to_mp3(output_file, "audio.mp3")
|
231 |
|
232 |
-
|
233 |
-
audio_data = file.read()
|
234 |
-
|
235 |
-
return audio_data
|
236 |
except Exception as e:
|
237 |
print(traceback.format_exc())
|
238 |
return "Please Wait!"
|
|
|
229 |
download_audio(output, output_file)
|
230 |
convert_wav_to_mp3(output_file, "audio.mp3")
|
231 |
|
232 |
+
return open("audio.mp3", "rb")
|
|
|
|
|
|
|
233 |
except Exception as e:
|
234 |
print(traceback.format_exc())
|
235 |
return "Please Wait!"
|