sandeep466 commited on
Commit
40e582c
·
verified ·
1 Parent(s): bf7c9cd

Upload folder using huggingface_hub

Browse files
Files changed (2) hide show
  1. app.py +4 -6
  2. 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
- # Load 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,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
- "Dairy", "Soft Drinks", "Meat", "Fruits", "Snack Foods", "Household",
20
- "Baking Goods", "Health and Hygiene", "Frozen Foods", "Hard Drinks",
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:02a80442a85c24b2707ae4d590ab4d32ec9de47ac9f7da57d4278eb9c846b672
3
- size 34699082
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:90adfd92d44772800d09470b4cf083e26608da16363ca4092a35fb1bf30e84d2
3
+ size 63804778