Spaces:
Runtime error
Runtime error
Commit
·
d47d9c3
1
Parent(s):
24d7747
Update app.py
Browse files
app.py
CHANGED
@@ -11,9 +11,9 @@ from tqdm import tqdm
|
|
11 |
|
12 |
# Login to hopsworks and get the feature store
|
13 |
|
14 |
-
|
15 |
-
|
16 |
-
columnHeaders = ['area','streetName','number','sqm','rooms','soldDate','monthlyFee','monthlyCost','floor','yearBuilt','agency','lat','lon','gdp','unemployment','interestRate']
|
17 |
|
18 |
|
19 |
def downloadModel():
|
@@ -91,14 +91,14 @@ def sthlm(streetName, area, number, sqm, rooms, monthlyFee, monthlyCost, floor,
|
|
91 |
soldDate = '2021-01-01' # TODO
|
92 |
price = None
|
93 |
agency = None
|
94 |
-
brf =
|
95 |
lat, lon = getAddressInfo(streetName, number)
|
96 |
gdp, unemployment, interestRate = getFinancialInfo(soldDate)
|
97 |
|
98 |
# Parse the input so we can run it through the model
|
99 |
# Create a dataframe from the input values
|
100 |
input_variables = pd.DataFrame(
|
101 |
-
[[area,streetName,number,sqm,rooms,soldDate,monthlyFee,monthlyCost,floor,yearBuilt,agency,lat,lon,gdp,unemployment,interestRate]], columns=columnHeaders)
|
102 |
|
103 |
df = normalizeData(input_variables)
|
104 |
|
|
|
11 |
|
12 |
# Login to hopsworks and get the feature store
|
13 |
|
14 |
+
# TODO: Remove brf
|
15 |
+
# area;streetName;number;sqm;rooms;soldDate;monthlyFee;monthlyCost;floor;yearBuilt;brf;agency;lat;lon;gdp;unemployment;interestRate
|
16 |
+
columnHeaders = ['area','streetName','number','sqm','rooms','soldDate','monthlyFee','monthlyCost','floor','yearBuilt', 'brf','agency','lat','lon','gdp','unemployment','interestRate']
|
17 |
|
18 |
|
19 |
def downloadModel():
|
|
|
91 |
soldDate = '2021-01-01' # TODO
|
92 |
price = None
|
93 |
agency = None
|
94 |
+
brf = 'BRF Kartboken 1' # TODO: remove
|
95 |
lat, lon = getAddressInfo(streetName, number)
|
96 |
gdp, unemployment, interestRate = getFinancialInfo(soldDate)
|
97 |
|
98 |
# Parse the input so we can run it through the model
|
99 |
# Create a dataframe from the input values
|
100 |
input_variables = pd.DataFrame(
|
101 |
+
[[area,streetName,number,sqm,rooms,soldDate,monthlyFee,monthlyCost,floor,yearBuilt, brf,agency,lat,lon,gdp,unemployment,interestRate]], columns=columnHeaders)
|
102 |
|
103 |
df = normalizeData(input_variables)
|
104 |
|