w3robotics commited on
Commit
538187a
·
verified ·
1 Parent(s): 7fca317

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -7
app.py CHANGED
@@ -25,13 +25,9 @@ def delete_file():
25
  for root, dirs, file_names in os.walk(path):
26
  for file_name in file_names:
27
  if st.button(file_name):
28
- # Confirm User Wants to do this
29
- file_details = {"Confirm deletion of ":file_name}
30
- st.write(file_details)
31
- if st.button("Yes"):
32
- os.remove(os.path.join(path,file_name))
33
- st.success("Removed File")
34
- st.rerun()
35
 
36
  # File View
37
  @st.dialog("Files used by AI")
 
25
  for root, dirs, file_names in os.walk(path):
26
  for file_name in file_names:
27
  if st.button(file_name):
28
+ os.remove(os.path.join(path,file_name))
29
+ st.success("Removed File")
30
+ st.rerun()
 
 
 
 
31
 
32
  # File View
33
  @st.dialog("Files used by AI")