Update app.py
Browse files
app.py
CHANGED
@@ -5,10 +5,10 @@ import numpy as np
|
|
5 |
import pandas as pd
|
6 |
|
7 |
# Load model and columns
|
8 |
-
with open("
|
9 |
model = pickle.load(f)
|
10 |
|
11 |
-
with open("
|
12 |
data_columns = json.load(f)["data_columns"]
|
13 |
|
14 |
# Define the location and property type mappings
|
|
|
5 |
import pandas as pd
|
6 |
|
7 |
# Load model and columns
|
8 |
+
with open("kigali_model.pickle", "rb") as f:
|
9 |
model = pickle.load(f)
|
10 |
|
11 |
+
with open("columns.json", "r") as f:
|
12 |
data_columns = json.load(f)["data_columns"]
|
13 |
|
14 |
# Define the location and property type mappings
|