Plsek commited on
Commit
0aaea8e
·
1 Parent(s): e94b44b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -12
app.py CHANGED
@@ -195,15 +195,15 @@ if uploaded_file is not None:
195
  except: image_decomposed = np.zeros((128,128))
196
  plot_decomposed(image_decomposed)
197
 
198
- with col6:
199
- try:
200
- name = 'predictions.zip'
201
- with open(name, 'rb') as f:
202
- res = f.read()
203
- except:
204
- name = uploaded_file
205
- with open(name, 'rb') as f:
206
- res = f.read()
207
- # st.markdown("""<style>[data-baseweb="select"] {margin-top: 16px;}</style>""", unsafe_allow_html=True)
208
- # # download = st.button('Download')
209
- download = st.download_button(label="Download", data=res, file_name=name, mime="application/octet-stream")
 
195
  except: image_decomposed = np.zeros((128,128))
196
  plot_decomposed(image_decomposed)
197
 
198
+ # with col6:
199
+ # try:
200
+ # name = 'predictions.zip'
201
+ # with open(name, 'rb') as f:
202
+ # res = f.read()
203
+ # except:
204
+ # name = uploaded_file
205
+ # with open(name, 'rb') as f:
206
+ # res = f.read()
207
+ # # st.markdown("""<style>[data-baseweb="select"] {margin-top: 16px;}</style>""", unsafe_allow_html=True)
208
+ # # # download = st.button('Download')
209
+ # download = st.download_button(label="Download", data=res, file_name=name, mime="application/octet-stream")