Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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..!!")
|