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