7sugiwa commited on
Commit
4144ab9
1 Parent(s): 39cdb93

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -1,3 +1,5 @@
 
 
1
  import streamlit as st
2
  import pandas as pd
3
  import numpy as np
@@ -57,8 +59,8 @@ elif selection == "Make a Prediction":
57
  discount = st.number_input('Discount', value=0.0, format="%.2f") # Example discount
58
 
59
 
60
- submit_button = st.form_submit_button("Predict")
61
-
62
  if submit_button:
63
  # Construct the input DataFrame
64
  input_features = pd.DataFrame([[ sales, discount, quantity, sub_category
 
1
+ # app.py
2
+
3
  import streamlit as st
4
  import pandas as pd
5
  import numpy as np
 
59
  discount = st.number_input('Discount', value=0.0, format="%.2f") # Example discount
60
 
61
 
62
+ submit_button = st.form_submit_button("Predict")
63
+
64
  if submit_button:
65
  # Construct the input DataFrame
66
  input_features = pd.DataFrame([[ sales, discount, quantity, sub_category