Spaces:
Runtime error
Runtime error
File size: 400 Bytes
e5d376a fbd37eb 7ed14c7 fbd37eb 7ed14c7 08bdaa2 fbd37eb 7ed14c7 |
1 2 3 4 5 6 7 8 9 10 |
import streamlit as st
import shutil
import os
if os.path.exists("./output/") == False:
os.mkdir("./output/")
archived = shutil.make_archive('E:/Zipped file', 'zip', 'E:/Folder to be zipped')
if st.download_button(label="Download output "+str(len(os.listdir("./output/"))), data=archived, file_name='output.zip', mime='application/x-zip'):
st.write("download")
st.write(os.listdir("./")) |