Upload folder using huggingface_hub
Browse files
app.py
CHANGED
|
@@ -9,7 +9,7 @@ st.title("SuperKart Sales Revenue Forecasting")
|
|
| 9 |
st.subheader("Online Prediction")
|
| 10 |
|
| 11 |
# Collect user input for product-store features
|
| 12 |
-
Product_Id = st.text_input("Product ID (e.g., FD123)")
|
| 13 |
Product_Weight = st.number_input("Product Weight (kg)", min_value=0.0, step=0.1, value=1.0)
|
| 14 |
Product_Sugar_Content = st.selectbox("Product Sugar Content", ["Low Sugar", "Regular", "No Sugar"])
|
| 15 |
Product_Allocated_Area = st.number_input("Allocated Display Area Ratio (0.0 to 1.0)", min_value=0.0, max_value=1.0, step=0.01, value=0.05)
|
|
@@ -27,7 +27,7 @@ Store_Type = st.selectbox("Store Type", ["Departmental Store", "Supermarket Type
|
|
| 27 |
|
| 28 |
# Convert user input into a DataFrame
|
| 29 |
input_data = pd.DataFrame([{
|
| 30 |
-
'Product_Id': Product_Id,
|
| 31 |
'Product_Weight': Product_Weight,
|
| 32 |
'Product_Sugar_Content': Product_Sugar_Content,
|
| 33 |
'Product_Allocated_Area': Product_Allocated_Area,
|
|
|
|
| 9 |
st.subheader("Online Prediction")
|
| 10 |
|
| 11 |
# Collect user input for product-store features
|
| 12 |
+
#Product_Id = st.text_input("Product ID (e.g., FD123)")
|
| 13 |
Product_Weight = st.number_input("Product Weight (kg)", min_value=0.0, step=0.1, value=1.0)
|
| 14 |
Product_Sugar_Content = st.selectbox("Product Sugar Content", ["Low Sugar", "Regular", "No Sugar"])
|
| 15 |
Product_Allocated_Area = st.number_input("Allocated Display Area Ratio (0.0 to 1.0)", min_value=0.0, max_value=1.0, step=0.01, value=0.05)
|
|
|
|
| 27 |
|
| 28 |
# Convert user input into a DataFrame
|
| 29 |
input_data = pd.DataFrame([{
|
| 30 |
+
#'Product_Id': Product_Id,
|
| 31 |
'Product_Weight': Product_Weight,
|
| 32 |
'Product_Sugar_Content': Product_Sugar_Content,
|
| 33 |
'Product_Allocated_Area': Product_Allocated_Area,
|