awacke1 commited on
Commit
805ff12
·
verified ·
1 Parent(s): 61e8716

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -946,7 +946,9 @@ def FileSidebar():
946
  os.remove(file)
947
  st.rerun()
948
  with Files2:
949
- if st.button("⬇️ Download"):
 
 
950
  zip_file = create_zip_of_files(all_files)
951
  st.sidebar.markdown(get_zip_download_link(zip_file), unsafe_allow_html=True)
952
  file_contents=''
 
946
  os.remove(file)
947
  st.rerun()
948
  with Files2:
949
+ unique_key = hashlib.sha256(str(time.time()).encode()).hexdigest()
950
+ #key=unique_key
951
+ if st.button("⬇️ Download", key=unique_key):
952
  zip_file = create_zip_of_files(all_files)
953
  st.sidebar.markdown(get_zip_download_link(zip_file), unsafe_allow_html=True)
954
  file_contents=''