Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -22,7 +22,6 @@ st.sidebar.markdown("**Shop ID**: Unique identifier for a specific shop.")
|
|
22 |
st.sidebar.markdown("**Item ID**: Unique identifier for a product.")
|
23 |
st.sidebar.markdown("**Item Price**: Current price of an item.")
|
24 |
st.sidebar.markdown("**Item Category ID**: Unique identifier for an item category.")
|
25 |
-
st.sidebar.markdown("**Total Sales**: The total daily sales.")
|
26 |
st.sidebar.markdown("**Day**: Day the product was purchased.")
|
27 |
st.sidebar.markdown("**Month**: Month the product was purchased.")
|
28 |
st.sidebar.markdown("**Year**: Year the product was purchased.")
|
@@ -44,7 +43,7 @@ with col2:
|
|
44 |
# Create a button to make a prediction
|
45 |
if st.button("Predict"):
|
46 |
# Feature Scaling
|
47 |
-
numerical_cols = ['shop_id', 'item_id', 'item_price', 'item_category_id', '
|
48 |
scaler = scaler
|
49 |
input_df = pd.DataFrame(input_data, index=[0])
|
50 |
input_df_scaled = scaler.fit_transform(input_df[numerical_cols])
|
|
|
22 |
st.sidebar.markdown("**Item ID**: Unique identifier for a product.")
|
23 |
st.sidebar.markdown("**Item Price**: Current price of an item.")
|
24 |
st.sidebar.markdown("**Item Category ID**: Unique identifier for an item category.")
|
|
|
25 |
st.sidebar.markdown("**Day**: Day the product was purchased.")
|
26 |
st.sidebar.markdown("**Month**: Month the product was purchased.")
|
27 |
st.sidebar.markdown("**Year**: Year the product was purchased.")
|
|
|
43 |
# Create a button to make a prediction
|
44 |
if st.button("Predict"):
|
45 |
# Feature Scaling
|
46 |
+
numerical_cols = ['shop_id', 'item_id', 'item_price', 'item_category_id', 'day', 'month', 'year']
|
47 |
scaler = scaler
|
48 |
input_df = pd.DataFrame(input_data, index=[0])
|
49 |
input_df_scaled = scaler.fit_transform(input_df[numerical_cols])
|