ikoghoemmanuell commited on
Commit
a97efd2
1 Parent(s): aa50c4b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -0
app.py CHANGED
@@ -122,6 +122,10 @@ if choice == 'Home':
122
  st.success(f"Total sales for the period is: #{formatted_sales}")
123
  except ValueError as e:
124
  st.error(str(e))
 
 
 
 
125
 
126
 
127
  # About section
 
122
  st.success(f"Total sales for the period is: #{formatted_sales}")
123
  except ValueError as e:
124
  st.error(str(e))
125
+ if st.button('Clear Data'):
126
+ predicted_data = pd.DataFrame(columns=['Start Date', 'End Date', 'Store', 'Category', 'On Promotion', 'City', 'Cluster', 'Predicted Sales'])
127
+ st.success("Data cleared successfully.")
128
+
129
 
130
 
131
  # About section