smease commited on
Commit
713ea2b
·
1 Parent(s): 614d437

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -33,7 +33,7 @@ if len(audio) > 0:
33
  #st.audio(audio.export().read())
34
 
35
  # To save audio to a file, use pydub export method:
36
- audio.export("audio.wav", format="wav")
37
  with tempfile.TemporaryDirectory() as tmpdirname:
38
  filepath = os.path.join(tmpdirname, "audio.mp3")
39
  audio.export(filepath, format="mp3")
 
33
  #st.audio(audio.export().read())
34
 
35
  # To save audio to a file, use pydub export method:
36
+ #audio.export("audio.wav", format="wav")
37
  with tempfile.TemporaryDirectory() as tmpdirname:
38
  filepath = os.path.join(tmpdirname, "audio.mp3")
39
  audio.export(filepath, format="mp3")