Update app.py
Browse files
app.py
CHANGED
@@ -307,12 +307,12 @@ if submit and len(x) != 0:
|
|
307 |
)
|
308 |
|
309 |
with open(zipf, "rb") as f:
|
310 |
-
|
311 |
-
|
312 |
-
|
313 |
-
|
314 |
-
|
315 |
-
|
316 |
|
317 |
|
318 |
|
|
|
307 |
)
|
308 |
|
309 |
with open(zipf, "rb") as f:
|
310 |
+
bytes = f.read()
|
311 |
+
b64 = base64.b64encode(bytes).decode()
|
312 |
+
href = f'<a href="data:file/zip;base64,{b64}" download=\'allcsvs.zip\'>\
|
313 |
+
Click to download\
|
314 |
+
</a>'
|
315 |
+
st.sidebar.markdown(href, unsafe_allow_html=True)
|
316 |
|
317 |
|
318 |
|