Update app.py
Browse files
app.py
CHANGED
|
@@ -4,8 +4,9 @@ import pandas as pd
|
|
| 4 |
import pickle
|
| 5 |
|
| 6 |
# Load your trained model
|
| 7 |
-
|
| 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
|