tommy24 commited on
Commit
cb62d78
·
1 Parent(s): 220d524

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -4
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
- with open("audio.mp3", "rb") as file:
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!"