Spaces:
Sleeping
Sleeping
Upload folder using huggingface_hub
Browse files
app.py
CHANGED
|
@@ -7,7 +7,7 @@ st.title("Product Store Sales Total")
|
|
| 7 |
st.subheader("Online Prediction")
|
| 8 |
|
| 9 |
# Input fields for customer data
|
| 10 |
-
|
| 11 |
Product_Weight = st.number_input("Product Weight (e.g., 12.5)", min_value=0.0, value=100.0)
|
| 12 |
Product_Sugar_Content = st.selectbox("Product Sugar Content", ["Low Sugar", "Regular", "No Sugar"])
|
| 13 |
Product_Allocated_Area = st.number_input("Product Allocated Area (e.g., 0.05)", min_value=0.0, value=0.5)
|
|
@@ -23,7 +23,7 @@ Store_Type = st.selectbox("Store Type", ["Departmental Store", "Supermarket Type
|
|
| 23 |
|
| 24 |
# Prepare the JSON payload
|
| 25 |
product_data = {
|
| 26 |
-
"
|
| 27 |
"Product_Weight": Product_Weight,
|
| 28 |
"Product_Sugar_Content": Product_Sugar_Content,
|
| 29 |
"Product_Allocated_Area": Product_Allocated_Area,
|
|
|
|
| 7 |
st.subheader("Online Prediction")
|
| 8 |
|
| 9 |
# Input fields for customer data
|
| 10 |
+
Product_Id = st.text_input("Product ID")
|
| 11 |
Product_Weight = st.number_input("Product Weight (e.g., 12.5)", min_value=0.0, value=100.0)
|
| 12 |
Product_Sugar_Content = st.selectbox("Product Sugar Content", ["Low Sugar", "Regular", "No Sugar"])
|
| 13 |
Product_Allocated_Area = st.number_input("Product Allocated Area (e.g., 0.05)", min_value=0.0, value=0.5)
|
|
|
|
| 23 |
|
| 24 |
# Prepare the JSON payload
|
| 25 |
product_data = {
|
| 26 |
+
"Product_Id": Product_Id,
|
| 27 |
"Product_Weight": Product_Weight,
|
| 28 |
"Product_Sugar_Content": Product_Sugar_Content,
|
| 29 |
"Product_Allocated_Area": Product_Allocated_Area,
|