Update app.py
Browse files
app.py
CHANGED
@@ -58,11 +58,11 @@ def predict(size_sqm, number_of_bedrooms, number_of_bathrooms, number_of_floors,
|
|
58 |
|
59 |
# Define Gradio interface components
|
60 |
inputs = [
|
61 |
-
gr.Number(label="Size (sqm)", value=0, minimum=0),
|
62 |
-
gr.Number(label="Number of Bedrooms", value=0, minimum=0),
|
63 |
-
gr.Number(label="Number of Bathrooms", value=0, minimum=0),
|
64 |
-
gr.Number(label="Number of Floors", value=0, minimum=0),
|
65 |
-
gr.Number(label="Parking Space", value=0, minimum=0),
|
66 |
gr.Dropdown(choices=list(location_mapping.keys()), label="Location"),
|
67 |
gr.Dropdown(choices=list(property_type_mapping.keys()), label="Property Type")
|
68 |
]
|
|
|
58 |
|
59 |
# Define Gradio interface components
|
60 |
inputs = [
|
61 |
+
gr.Number(label="Size (sqm)", value=0, placeholder="Enter size in sqm", minimum=0, interactive=True),
|
62 |
+
gr.Number(label="Number of Bedrooms", value=0, placeholder="Enter number of bedrooms", minimum=0, interactive=True),
|
63 |
+
gr.Number(label="Number of Bathrooms", value=0, placeholder="Enter number of bathrooms", minimum=0, interactive=True),
|
64 |
+
gr.Number(label="Number of Floors", value=0, placeholder="Enter number of floors", minimum=0, interactive=True),
|
65 |
+
gr.Number(label="Parking Space", value=0, placeholder="Enter parking space availability", minimum=0, interactive=True),
|
66 |
gr.Dropdown(choices=list(location_mapping.keys()), label="Location"),
|
67 |
gr.Dropdown(choices=list(property_type_mapping.keys()), label="Property Type")
|
68 |
]
|