Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -12,6 +12,9 @@ def process_input(address, selected_option, additional_input):
|
|
12 |
output_additional = f"Area (in 1000 GSF):\n{additional_input}"
|
13 |
|
14 |
output_transport_analysis = f"Transport Analysis Needed:\n{transport_analysis_needed}"
|
|
|
|
|
|
|
15 |
|
16 |
output_zone = f"Zone:\n{zone}"
|
17 |
|
@@ -22,18 +25,16 @@ iface = gr.Interface(
|
|
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
|
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="
|
31 |
gr.outputs.Textbox(label="Number of Units/Spaces or Area"),
|
32 |
gr.outputs.Textbox(label="Transport Analysis Needed"),
|
33 |
-
gr.outputs.Textbox(label="
|
34 |
],
|
35 |
)
|
36 |
|
37 |
iface.launch()
|
38 |
-
|
39 |
-
|
|
|
12 |
output_additional = f"Area (in 1000 GSF):\n{additional_input}"
|
13 |
|
14 |
output_transport_analysis = f"Transport Analysis Needed:\n{transport_analysis_needed}"
|
15 |
+
|
16 |
+
# Replace 'Your Zone Calculation Logic' with the actual zone calculation code
|
17 |
+
zone = 'Your Zone Calculation Logic'
|
18 |
|
19 |
output_zone = f"Zone:\n{zone}"
|
20 |
|
|
|
25 |
inputs=[
|
26 |
gr.inputs.Textbox(label="Enter your address"),
|
27 |
gr.inputs.Radio(["Residential", "Office", "Regional Retail", "Local Retail", "Sit Down/High Turnover Restaurant", "Fast Food/without Drive Through",
|
28 |
+
"Community Facility", "Off-Street Parking Facility"], label="Select an option"),
|
29 |
gr.inputs.Number(label="Number of Units/Spaces or Area (in 1000 GSF)", default=1) # Default value is 1
|
30 |
],
|
31 |
outputs=[
|
32 |
gr.outputs.Textbox(label="Address"),
|
33 |
+
gr.outputs.Textbox(label="Selected Option"),
|
34 |
gr.outputs.Textbox(label="Number of Units/Spaces or Area"),
|
35 |
gr.outputs.Textbox(label="Transport Analysis Needed"),
|
36 |
+
gr.outputs.Textbox(label="Zone")
|
37 |
],
|
38 |
)
|
39 |
|
40 |
iface.launch()
|
|
|
|