w3robotics commited on
Commit
2fbe50a
·
verified ·
1 Parent(s): 1507a76

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -24,13 +24,14 @@ def delete_file():
24
  files = []
25
  for root, dirs, file_names in os.walk(path):
26
  for file_name in file_names:
27
- files.append(os.path.join(root, file_name))
28
 
29
  st.write(files)
30
  file_to_delete = st.text_input("Enter File Name to Delete:")
31
  if st.button("Delete"):
32
  # Delete the file
33
  os.remove(os.path.join(path,file_to_delete))
 
34
 
35
 
36
 
 
24
  files = []
25
  for root, dirs, file_names in os.walk(path):
26
  for file_name in file_names:
27
+ files.append(file_name)
28
 
29
  st.write(files)
30
  file_to_delete = st.text_input("Enter File Name to Delete:")
31
  if st.button("Delete"):
32
  # Delete the file
33
  os.remove(os.path.join(path,file_to_delete))
34
+ st.rerun()
35
 
36
 
37