manish72 commited on
Commit
3f9eef1
·
verified ·
1 Parent(s): e94114c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -4,8 +4,9 @@ import pandas as pd
4
  import pickle
5
 
6
  # Load your trained model
7
- model = joblib.load('models\model1.pkl')
8
-
 
9
  # Function to predict sales
10
  def predict_sales(input_data):
11
  # Make predictions using the loaded model
 
4
  import pickle
5
 
6
  # Load your trained model
7
+ with open('models/model1.pkl', 'rb') as file:
8
+ model = pickle.load(file)
9
+
10
  # Function to predict sales
11
  def predict_sales(input_data):
12
  # Make predictions using the loaded model