Spaces:
Runtime error
Runtime error
siriuszeina
commited on
Commit
•
330a6d1
1
Parent(s):
08bdaa2
Update app.py
Browse files
app.py
CHANGED
@@ -4,7 +4,7 @@ import os
|
|
4 |
if os.path.exists("./output/") == False:
|
5 |
os.mkdir("./output/")
|
6 |
|
7 |
-
archived = shutil.make_archive(
|
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("./"))
|
|
|
4 |
if os.path.exists("./output/") == False:
|
5 |
os.mkdir("./output/")
|
6 |
|
7 |
+
archived = shutil.make_archive("./output.zip", 'zip', "./output/")
|
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("./"))
|