siriuszeina commited on
Commit
fbd37eb
1 Parent(s): 7ed14c7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -1,5 +1,8 @@
1
  import streamlit as st
 
2
  import os
3
- if os.path.exists("./output/"):
4
  os.mkdir("./output/")
 
 
5
  st.write(os.listdir("./"))
 
1
  import streamlit as st
2
+ import shutil
3
  import os
4
+ if os.path.exists("./output/") == False:
5
  os.mkdir("./output/")
6
+ if st.download_button(label="Download output "+str(len(os.listdir("./output/"))), data=None, file_name='output.zip', mime='application/x-zip'):
7
+ st.write("download")
8
  st.write(os.listdir("./"))