Nathanotal commited on
Commit
9f26ac9
·
1 Parent(s): 3253628
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -130,7 +130,7 @@ def parsePrice(price):
130
  MIN = featureToMinMaxPrice['price'][0]
131
  MAX = featureToMinMaxPrice['price'][1]
132
  price = price * MAX + MIN
133
- return int(price)
134
 
135
  def xgbFix(df):
136
  features_to_categorical = ["area", "streetName", "brf", "agency"]
@@ -232,7 +232,7 @@ for feature in categoricalInputs:
232
  for feature in numericalInputs:
233
  minVal = featureToMinMax[feature][0]
234
  maxVal = featureToMinMax[feature][1]
235
- inputs.append(gr.inputs.Number(default=0, label=feature, min=minVal, max=maxVal))
236
 
237
 
238
 
 
130
  MIN = featureToMinMaxPrice['price'][0]
131
  MAX = featureToMinMaxPrice['price'][1]
132
  price = price * MAX + MIN
133
+ return f'{str(int(price))} SEK'
134
 
135
  def xgbFix(df):
136
  features_to_categorical = ["area", "streetName", "brf", "agency"]
 
232
  for feature in numericalInputs:
233
  minVal = featureToMinMax[feature][0]
234
  maxVal = featureToMinMax[feature][1]
235
+ inputs.append(gr.inputs.Number(default=0, label=feature, minimum=minVal, maximum=maxVal))
236
 
237
 
238