Spaces:
Runtime error
Runtime error
siriuszeina
commited on
Commit
•
08bdaa2
1
Parent(s):
fbd37eb
Update app.py
Browse files
app.py
CHANGED
@@ -3,6 +3,8 @@ import shutil
|
|
3 |
import os
|
4 |
if os.path.exists("./output/") == False:
|
5 |
os.mkdir("./output/")
|
6 |
-
|
|
|
|
|
7 |
st.write("download")
|
8 |
st.write(os.listdir("./"))
|
|
|
3 |
import os
|
4 |
if os.path.exists("./output/") == False:
|
5 |
os.mkdir("./output/")
|
6 |
+
|
7 |
+
archived = shutil.make_archive('E:/Zipped file', 'zip', 'E:/Folder to be zipped')
|
8 |
+
if st.download_button(label="Download output "+str(len(os.listdir("./output/"))), data=archived, file_name='output.zip', mime='application/x-zip'):
|
9 |
st.write("download")
|
10 |
st.write(os.listdir("./"))
|