Meteorama commited on
Commit
4614dae
·
verified ·
1 Parent(s): 771ae7b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -0
app.py CHANGED
@@ -57,4 +57,14 @@ for file in files_list:
57
 
58
  st.markdown(table_html + "</table>", unsafe_allow_html=True)
59
 
 
 
 
 
 
 
 
 
 
 
60
  st.caption("Meteo Rama..!!")
 
57
 
58
  st.markdown(table_html + "</table>", unsafe_allow_html=True)
59
 
60
+ if st.button("Delete All Files"):
61
+ files_list = glob(os.path.join(os.getcwd(),"files","*.*"))
62
+ for f in files_list:
63
+
64
+
65
+ if(os.path.exists(f)):
66
+ os.remove(f)
67
+
68
+ st.info("All files deleted!!! Refresh the page to see changes.")
69
+
70
  st.caption("Meteo Rama..!!")