Spaces:
Runtime error
Runtime error
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("./")) |