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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -5
app.py CHANGED
@@ -1,5 +1,3 @@
1
- # app.py
2
-
3
  import streamlit as st
4
  import pandas as pd
5
  import numpy as np
@@ -60,12 +58,12 @@ elif selection == "Make a Prediction":
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([[sub_category, sales, quantity, discount
67
  ]], columns=[
68
- 'Sub-Category', 'Product Name', 'Sales', 'Quantity', 'Discount'
69
  ])
70
 
71
  # Preprocess and predict (You'll need to adjust this part based on how your model expects input)
 
 
 
1
  import streamlit as st
2
  import pandas as pd
3
  import numpy as np
 
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
65
  ]], columns=[
66
+ 'Sales', 'Discount', 'Quantity', 'Sub-Category'
67
  ])
68
 
69
  # Preprocess and predict (You'll need to adjust this part based on how your model expects input)