Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -44,26 +44,26 @@ def predict_price(
|
|
| 44 |
ui=gd.Interface(
|
| 45 |
fn=predict_price,
|
| 46 |
inputs=[
|
| 47 |
-
gd.inputs.Textbox(type="
|
| 48 |
-
gd.inputs.Textbox(type="
|
| 49 |
-
gd.inputs.Textbox(type="
|
| 50 |
-
gd.inputs.Textbox(type="
|
| 51 |
-
gd.inputs.Textbox(type="
|
| 52 |
-
gd.inputs.Textbox(type="
|
| 53 |
gd.Dropdown([1. , 2. , 1.5, 3. , 2.5, 3.5],label="FLOORS"),
|
| 54 |
gd.Dropdown([0,1],label="WATERFRONT"),
|
| 55 |
gd.Dropdown([0, 1, 2, 3, 4],label="VIEW"),
|
| 56 |
gd.Dropdown([1,2,3,4,5],label="CONDITION"),
|
| 57 |
-
gd.inputs.Textbox(type="
|
| 58 |
-
gd.inputs.Textbox(type="
|
| 59 |
-
gd.inputs.Textbox(type="
|
| 60 |
-
gd.inputs.Textbox(type="
|
| 61 |
-
gd.inputs.Textbox(type="
|
| 62 |
-
gd.inputs.Textbox(type="
|
| 63 |
-
gd.inputs.Textbox(type="
|
| 64 |
-
gd.inputs.Textbox(type="
|
| 65 |
-
gd.inputs.Textbox(type="
|
| 66 |
-
gd.inputs.Textbox(type="
|
| 67 |
],
|
| 68 |
|
| 69 |
title="HOUSE PRICE PREDICTOR",
|
|
|
|
| 44 |
ui=gd.Interface(
|
| 45 |
fn=predict_price,
|
| 46 |
inputs=[
|
| 47 |
+
gd.inputs.Textbox(type="text", placeholder="id",label="ID"),
|
| 48 |
+
gd.inputs.Textbox(type="text", placeholder="date",label="DATE"),
|
| 49 |
+
gd.inputs.Textbox(type="text", placeholder="bedrooms",numeric=True,label="BEDROOMS"),
|
| 50 |
+
gd.inputs.Textbox(type="text", placeholder="bathrooms",numeric=True,label="BATHROOMS"),
|
| 51 |
+
gd.inputs.Textbox(type="text", placeholder="sqft_living",numeric=True,label="SQFT_LIVING"),
|
| 52 |
+
gd.inputs.Textbox(type="text", placeholder="sqft_lot",numeric=True,label="SQFT_LOT"),
|
| 53 |
gd.Dropdown([1. , 2. , 1.5, 3. , 2.5, 3.5],label="FLOORS"),
|
| 54 |
gd.Dropdown([0,1],label="WATERFRONT"),
|
| 55 |
gd.Dropdown([0, 1, 2, 3, 4],label="VIEW"),
|
| 56 |
gd.Dropdown([1,2,3,4,5],label="CONDITION"),
|
| 57 |
+
gd.inputs.Textbox(type="text", placeholder="grade",numeric=True,label="GRADE"),
|
| 58 |
+
gd.inputs.Textbox(type="text", placeholder="sqft_above",numeric=True,label="SQFT_ABOVE"),
|
| 59 |
+
gd.inputs.Textbox(type="text", placeholder="sqft_basement",numeric=True,label="SQFT_BASEMENT"),
|
| 60 |
+
gd.inputs.Textbox(type="text", placeholder="yr_built",numeric=True,label="YR_BUILT"),
|
| 61 |
+
gd.inputs.Textbox(type="text", placeholder="yr_renovated",numeric=True,label="YR_RENOVATED"),
|
| 62 |
+
gd.inputs.Textbox(type="text", placeholder="zipcode",label="ZIPCODE"),
|
| 63 |
+
gd.inputs.Textbox(type="text", placeholder="lat",numeric=True,label="LATITUDE"),
|
| 64 |
+
gd.inputs.Textbox(type="text", placeholder="long",numeric=True,label="LONGITUDE"),
|
| 65 |
+
gd.inputs.Textbox(type="text", placeholder="sqft_living15",numeric=True,label="SQFT_LIVING15"),
|
| 66 |
+
gd.inputs.Textbox(type="text", placeholder="sqft_lot15",numeric=True,label="SQFT_LOT15"),
|
| 67 |
],
|
| 68 |
|
| 69 |
title="HOUSE PRICE PREDICTOR",
|