zhen86 commited on
Commit
4c09be8
·
1 Parent(s): bd3fd33

Update app.py

Browse files

add gr.Interface

Files changed (1) hide show
  1. app.py +3 -0
app.py CHANGED
@@ -58,4 +58,7 @@ def housing_predict(longitude, latitude, housing_median_age, total_rooms, total_
58
  print(f"res={res}")
59
  return str(res[0])
60
 
 
 
 
61
 
 
58
  print(f"res={res}")
59
  return str(res[0])
60
 
61
+ gr.Interface(fn=housing_predict, inputs=[longitude, latitude, housing_median_age, total_rooms, total_bedrooms, population,
62
+ households, median_income], outputs=pred_house_price).launch(debug=True)
63
+
64