ntam0001 commited on
Commit
ade5ce9
1 Parent(s): 87aff79

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
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
  ]