7sugiwa commited on
Commit
256c49a
1 Parent(s): d97a5a2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -5
app.py CHANGED
@@ -61,12 +61,9 @@ elif selection == "Make a Prediction":
61
 
62
  if submit_button:
63
  # Construct the input DataFrame
64
- input_features = pd.DataFrame([[
65
- order_date, ship_date, ship_mode, segment, country, city, state,
66
- postal_code, region, category, sub_category, product_name, sales, quantity, discount
67
  ]], columns=[
68
- 'Order Date', 'Ship Date', 'Ship Mode', 'Segment', 'Country', 'City', 'State',
69
- 'Postal Code', 'Region', 'Category', 'Sub-Category', 'Product Name', 'Sales', 'Quantity', 'Discount'
70
  ])
71
 
72
  # Preprocess and predict (You'll need to adjust this part based on how your model expects input)
 
61
 
62
  if submit_button:
63
  # Construct the input DataFrame
64
+ input_features = pd.DataFrame([[sub_category, sales, quantity, discount
 
 
65
  ]], columns=[
66
+ 'Sub-Category', 'Sales', 'Quantity', 'Discount'
 
67
  ])
68
 
69
  # Preprocess and predict (You'll need to adjust this part based on how your model expects input)