Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,9 +1,20 @@
|
|
1 |
import gradio as gr
|
2 |
|
3 |
-
|
4 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5 |
|
6 |
-
|
7 |
-
|
8 |
-
if __name__ == "__main__":
|
9 |
-
demo.launch()
|
|
|
1 |
import gradio as gr
|
2 |
|
3 |
+
iface = gr.Interface(
|
4 |
+
inputs=[
|
5 |
+
gr.Textbox(···, label="Enter address of development")
|
6 |
+
gr.Radio(["Residential", "Office", "Regional Retail", "Local Retail", "Sit Down/High Turnover Restaurant", "Fast Food/without Drive Through",
|
7 |
+
"Community Facility", "Off-Street Parking Facility"],
|
8 |
+
label="Which Sensitive Sites?", info="From NYC DPR", type="index"),
|
9 |
+
gr.inputs.Slider(minimum=0.0, maximum=10.0, default=4.3, label="Building Height Multiplier"),
|
10 |
+
gr.inputs.Number(default=200, label="Default Building Height"), #Can I make this optional?
|
11 |
+
],
|
12 |
+
outputs=[
|
13 |
+
gr.outputs.Image(type="pil", label="Result Image"),
|
14 |
+
gr.outputs.File(label="Building Buffers"),
|
15 |
+
gr.outputs.File(label="Union of Building Buffers"),
|
16 |
+
gr.outputs.Textbox(label="Building intersection descriptions"),
|
17 |
+
]
|
18 |
+
)
|
19 |
|
20 |
+
iface.launch()
|
|
|
|
|
|