Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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()
|