Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -121,7 +121,7 @@ with main:
|
|
| 121 |
with col4:
|
| 122 |
if st.session_state['downloadable']:
|
| 123 |
with open(os.path.join(st.session_state['path'], 'out.mid'), 'rb') as f:
|
| 124 |
-
st.download_button('Download Midi', f, file_name='song.mid
|
| 125 |
if showOutput:
|
| 126 |
with st.container():
|
| 127 |
for i in st.session_state['history']:
|
|
@@ -162,4 +162,4 @@ with t2m:
|
|
| 162 |
with open(os.path.join(st.session_state['path'], 't2m.mid'), 'wb') as f:
|
| 163 |
song.writeFile(f)
|
| 164 |
with open(os.path.join(st.session_state['path'], 't2m.mid'), 'rb') as f:
|
| 165 |
-
st.download_button('Download Midi', f, file_name='
|
|
|
|
| 121 |
with col4:
|
| 122 |
if st.session_state['downloadable']:
|
| 123 |
with open(os.path.join(st.session_state['path'], 'out.mid'), 'rb') as f:
|
| 124 |
+
st.download_button('Download Midi', f, file_name='song.mid', key='main')
|
| 125 |
if showOutput:
|
| 126 |
with st.container():
|
| 127 |
for i in st.session_state['history']:
|
|
|
|
| 162 |
with open(os.path.join(st.session_state['path'], 't2m.mid'), 'wb') as f:
|
| 163 |
song.writeFile(f)
|
| 164 |
with open(os.path.join(st.session_state['path'], 't2m.mid'), 'rb') as f:
|
| 165 |
+
st.download_button('Download Midi', f, file_name='song.mid', key='t2m')
|