prashant91 commited on
Commit
af7992c
·
verified ·
1 Parent(s): 556b68d

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. src/streamlit_app.py +4 -0
src/streamlit_app.py CHANGED
@@ -2,6 +2,9 @@ import streamlit as st
2
  import joblib
3
  import pandas as pd
4
 
 
 
 
5
  st.title("SuperKart Store Sales Forecasting")
6
 
7
  # Input form
@@ -33,4 +36,5 @@ if st.button("Predict Sales"):
33
  'Store_Age': store_age
34
  }])
35
 
 
36
  st.success(f"Predicted Sales: {round(prediction, 2)}")
 
2
  import joblib
3
  import pandas as pd
4
 
5
+ # Load the model
6
+ model = joblib.load("best_sales_model.pkl")
7
+
8
  st.title("SuperKart Store Sales Forecasting")
9
 
10
  # Input form
 
36
  'Store_Age': store_age
37
  }])
38
 
39
+ prediction = model.predict(input_data)[0]
40
  st.success(f"Predicted Sales: {round(prediction, 2)}")