Gpagejr12 commited on
Commit
419d9bc
·
verified ·
1 Parent(s): 02510af

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -80,8 +80,6 @@ def main():
80
  left_co.write("""Music Generation through a prompt""")
81
  left_co.write(("""PS : First generation may take some time ......."""))
82
 
83
- save_path = "audio_output/"
84
- os.makedirs(save_path, exist_ok=True) # Create the directory if it doesn't exist
85
 
86
  if st.sidebar.button('Generate !'):
87
  with left_co:
@@ -110,6 +108,10 @@ if st.sidebar.button('Generate !'):
110
  st.audio(audio_bytes, format='audio/wav')
111
  st.markdown(get_binary_file_downloader_html(audio_filepath, 'Audio'), unsafe_allow_html=True)
112
 
 
 
 
 
113
 
114
  if __name__ == "__main__":
115
  main()
 
80
  left_co.write("""Music Generation through a prompt""")
81
  left_co.write(("""PS : First generation may take some time ......."""))
82
 
 
 
83
 
84
  if st.sidebar.button('Generate !'):
85
  with left_co:
 
108
  st.audio(audio_bytes, format='audio/wav')
109
  st.markdown(get_binary_file_downloader_html(audio_filepath, 'Audio'), unsafe_allow_html=True)
110
 
111
+ save_path = "audio_output/"
112
+ os.makedirs(save_path, exist_ok=True) # Create the directory if it doesn't exist
113
+
114
+
115
 
116
  if __name__ == "__main__":
117
  main()