awacke1 commited on
Commit
f3a97a2
β€’
1 Parent(s): 0979664

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -0
app.py CHANGED
@@ -62,6 +62,10 @@ def main():
62
  htm_files = glob.glob("*.htm")
63
  for file in htm_files:
64
  st.sidebar.markdown(get_table_download_link(file), unsafe_allow_html=True)
 
 
 
 
65
 
66
  if __name__ == "__main__":
67
  main()
 
62
  htm_files = glob.glob("*.htm")
63
  for file in htm_files:
64
  st.sidebar.markdown(get_table_download_link(file), unsafe_allow_html=True)
65
+ if st.sidebar.button(f"Delete {file}"):
66
+ os.remove(file)
67
+ # Reload page after deletion to refresh the file list
68
+ st.experimental_rerun()
69
 
70
  if __name__ == "__main__":
71
  main()