Upload folder using huggingface_hub
Browse files- app.py +4 -6
- best_random_forest_model.pkl +2 -2
app.py
CHANGED
|
@@ -2,7 +2,7 @@ import streamlit as st
|
|
| 2 |
import pandas as pd
|
| 3 |
import joblib
|
| 4 |
|
| 5 |
-
#
|
| 6 |
model = joblib.load("best_random_forest_model.pkl")
|
| 7 |
|
| 8 |
st.set_page_config(page_title="SuperKart Sales Prediction", layout="centered")
|
|
@@ -15,11 +15,9 @@ st.subheader("📦 Product Details")
|
|
| 15 |
Product_Weight = st.number_input("Product Weight (kg)", min_value=0.0, value=10.0, step=0.1)
|
| 16 |
Product_Sugar_Content = st.selectbox("Product Sugar Content", ["Low Sugar", "Regular", "No Sugar"])
|
| 17 |
Product_Allocated_Area = st.number_input("Product Allocated Area (sq. m.)", min_value=0.0, value=1.0, step=0.1)
|
| 18 |
-
Product_Type = st.selectbox("Product Type", [
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
"Canned", "Breads", "Starchy Foods", "Breakfast", "Seafood", "Others"
|
| 22 |
-
])
|
| 23 |
Product_MRP = st.number_input("Product MRP (₹)", min_value=0.0, value=120.0, step=0.5)
|
| 24 |
|
| 25 |
# --- Store Inputs ---
|
|
|
|
| 2 |
import pandas as pd
|
| 3 |
import joblib
|
| 4 |
|
| 5 |
+
# Loading the trained model
|
| 6 |
model = joblib.load("best_random_forest_model.pkl")
|
| 7 |
|
| 8 |
st.set_page_config(page_title="SuperKart Sales Prediction", layout="centered")
|
|
|
|
| 15 |
Product_Weight = st.number_input("Product Weight (kg)", min_value=0.0, value=10.0, step=0.1)
|
| 16 |
Product_Sugar_Content = st.selectbox("Product Sugar Content", ["Low Sugar", "Regular", "No Sugar"])
|
| 17 |
Product_Allocated_Area = st.number_input("Product Allocated Area (sq. m.)", min_value=0.0, value=1.0, step=0.1)
|
| 18 |
+
Product_Type = st.selectbox("Product Type", ['Frozen Foods' 'Dairy' 'Canned' 'Baking Goods' 'Health and Hygiene'
|
| 19 |
+
'Snack Foods' 'Meat' 'Household' 'Hard Drinks' 'Fruits and Vegetables'
|
| 20 |
+
'Breads' 'Soft Drinks' 'Breakfast' 'Others' 'Starchy Foods' 'Seafood'])
|
|
|
|
|
|
|
| 21 |
Product_MRP = st.number_input("Product MRP (₹)", min_value=0.0, value=120.0, step=0.5)
|
| 22 |
|
| 23 |
# --- Store Inputs ---
|
best_random_forest_model.pkl
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:90adfd92d44772800d09470b4cf083e26608da16363ca4092a35fb1bf30e84d2
|
| 3 |
+
size 63804778
|