alinaL commited on
Commit
4072173
1 Parent(s): 6084f54

round to int

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -34,7 +34,7 @@ def predict_price(area, year, rooms, floor_number, distance_from_center, alarm_s
34
  'details__Ypatybės__Virtuvė sujungta su kambariu': kitchen_plus_livingroom
35
  }])
36
  print(x)
37
- return float(xgb.predict(x))
38
 
39
 
40
  iface = gr.Interface(fn=predict_price, inputs=[gr.inputs.Slider(10, 180, 1, 80),
 
34
  'details__Ypatybės__Virtuvė sujungta su kambariu': kitchen_plus_livingroom
35
  }])
36
  print(x)
37
+ return int(xgb.predict(x))
38
 
39
 
40
  iface = gr.Interface(fn=predict_price, inputs=[gr.inputs.Slider(10, 180, 1, 80),