awacke1 commited on
Commit
61e8716
·
verified ·
1 Parent(s): 17fa92a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -939,7 +939,9 @@ def FileSidebar():
939
  # ⬇️ Download
940
  Files1, Files2 = st.sidebar.columns(2)
941
  with Files1:
942
- if st.button("🗑 Delete All"):
 
 
943
  for file in all_files:
944
  os.remove(file)
945
  st.rerun()
 
939
  # ⬇️ Download
940
  Files1, Files2 = st.sidebar.columns(2)
941
  with Files1:
942
+ unique_key = hashlib.sha256(str(time.time()).encode()).hexdigest()
943
+ #key=unique_key
944
+ if st.button("🗑 Delete All", key=unique_key):
945
  for file in all_files:
946
  os.remove(file)
947
  st.rerun()