Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -13,21 +13,24 @@ def process_input(address, selected_option, additional_input):
|
|
13 |
|
14 |
output_transport_analysis = f"Transport Analysis Needed:\n{transport_analysis_needed}"
|
15 |
|
16 |
-
|
|
|
|
|
17 |
|
18 |
iface = gr.Interface(
|
19 |
fn=process_input,
|
20 |
inputs=[
|
21 |
gr.inputs.Textbox(label="Enter your address"),
|
22 |
gr.inputs.Radio(["Residential", "Office", "Regional Retail", "Local Retail", "Sit Down/High Turnover Restaurant", "Fast Food/without Drive Through",
|
23 |
-
"Community Facility", "Off-Street Parking Facility"], label="Select
|
24 |
gr.inputs.Number(label="Number of Units/Spaces or Area (in 1000 GSF)", default=1) # Default value is 1
|
25 |
],
|
26 |
outputs=[
|
27 |
gr.outputs.Textbox(label="Address"),
|
28 |
-
gr.outputs.Textbox(label="
|
29 |
gr.outputs.Textbox(label="Number of Units/Spaces or Area"),
|
30 |
-
gr.outputs.Textbox(label="Transport Analysis Needed")
|
|
|
31 |
],
|
32 |
)
|
33 |
|
|
|
13 |
|
14 |
output_transport_analysis = f"Transport Analysis Needed:\n{transport_analysis_needed}"
|
15 |
|
16 |
+
output_zone = f"Zone:\n{zone}"
|
17 |
+
|
18 |
+
return output_address, output_option, output_additional, output_transport_analysis, output_zone
|
19 |
|
20 |
iface = gr.Interface(
|
21 |
fn=process_input,
|
22 |
inputs=[
|
23 |
gr.inputs.Textbox(label="Enter your address"),
|
24 |
gr.inputs.Radio(["Residential", "Office", "Regional Retail", "Local Retail", "Sit Down/High Turnover Restaurant", "Fast Food/without Drive Through",
|
25 |
+
"Community Facility", "Off-Street Parking Facility"], label="Select a development type"),
|
26 |
gr.inputs.Number(label="Number of Units/Spaces or Area (in 1000 GSF)", default=1) # Default value is 1
|
27 |
],
|
28 |
outputs=[
|
29 |
gr.outputs.Textbox(label="Address"),
|
30 |
+
gr.outputs.Textbox(label="Development Type"),
|
31 |
gr.outputs.Textbox(label="Number of Units/Spaces or Area"),
|
32 |
+
gr.outputs.Textbox(label="Transport Analysis Needed"),
|
33 |
+
gr.outputs.Textbox(label="Development Zone")
|
34 |
],
|
35 |
)
|
36 |
|