ljrmary commited on
Commit
0fbe956
1 Parent(s): 6bd4abf

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +17 -6
app.py CHANGED
@@ -1,9 +1,20 @@
1
  import gradio as gr
2
 
3
- def greet(name):
4
- return "Hello " + name + "!"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5
 
6
- demo = gr.Interface(fn=greet, inputs="text", outputs="text")
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()