Plsek commited on
Commit
db57a0d
·
1 Parent(s): 7c32f83

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -7
app.py CHANGED
@@ -227,10 +227,12 @@ if uploaded_file is not None:
227
  except: image_decomposed = np.zeros((128,128))
228
  plot_decomposed(image_decomposed)
229
 
230
- with col6:
231
- shutil.make_archive("predictions", 'zip', "predictions")
232
- with open('predictions.zip', 'rb') as f:
233
- res = f.read()
234
- st.markdown("")
235
- # st.markdown("""<style>[data-baseweb="select"] {margin-top: 16px;}</style>""", unsafe_allow_html=True)
236
- download = st.download_button(label="Download", data=res, file_name='prediction.zip', mime="application/octet-stream")
 
 
 
227
  except: image_decomposed = np.zeros((128,128))
228
  plot_decomposed(image_decomposed)
229
 
230
+ with col6:
231
+ shutil.make_archive("predictions", 'zip', "predictions")
232
+ with open('predictions.zip', 'rb') as f:
233
+ res = f.read()
234
+ st.markdown("")
235
+ st.markdown("")
236
+ st.markdown("")
237
+ # st.markdown("""<style>[data-baseweb="select"] {margin-top: 16px;}</style>""", unsafe_allow_html=True)
238
+ download = st.download_button(label="Download", data=res, file_name='prediction.zip', mime="application/octet-stream")