Update app.py
Browse files
app.py
CHANGED
@@ -4,10 +4,10 @@ import json
|
|
4 |
import numpy as np
|
5 |
|
6 |
# Load model and columns
|
7 |
-
with open("
|
8 |
model = pickle.load(f)
|
9 |
|
10 |
-
with open("
|
11 |
data_columns = json.load(f)["data_columns"]
|
12 |
|
13 |
locations = data_columns[3:] # Extract location columns (FROM FORTH COLUMN TO END FOUND IN LOCATION)
|
|
|
4 |
import numpy as np
|
5 |
|
6 |
# Load model and columns
|
7 |
+
with open("banglore_home_prices_model.pickle", "rb") as f:
|
8 |
model = pickle.load(f)
|
9 |
|
10 |
+
with open("columns.json", "r") as f:
|
11 |
data_columns = json.load(f)["data_columns"]
|
12 |
|
13 |
locations = data_columns[3:] # Extract location columns (FROM FORTH COLUMN TO END FOUND IN LOCATION)
|