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