Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,17 +1,18 @@
|
|
1 |
import gradio as gr
|
2 |
|
|
|
|
|
|
|
|
|
|
|
3 |
iface = gr.Interface(
|
|
|
4 |
inputs=[
|
5 |
-
gr.Textbox(),
|
6 |
-
gr.Radio(["Residential", "Office", "Regional Retail", "Local Retail", "Sit Down/High Turnover Restaurant", "Fast Food/without Drive Through",
|
7 |
-
|
8 |
],
|
9 |
-
outputs=
|
10 |
-
gr.outputs.Image(type="pil"),
|
11 |
-
gr.outputs.File(label="Building Buffers"),
|
12 |
-
gr.outputs.File(label="Union of Building Buffers"),
|
13 |
-
gr.outputs.Textbox(label="Building intersection descriptions"),
|
14 |
-
]
|
15 |
)
|
16 |
|
17 |
iface.launch()
|
|
|
1 |
import gradio as gr
|
2 |
|
3 |
+
def process_input(input_text, selected_option):
|
4 |
+
# Your processing logic here based on the input_text and selected_option
|
5 |
+
# For this example, let's just return the input_text as the output.
|
6 |
+
return input_text
|
7 |
+
|
8 |
iface = gr.Interface(
|
9 |
+
fn=process_input,
|
10 |
inputs=[
|
11 |
+
gr.inputs.Textbox(),
|
12 |
+
gr.inputs.Radio(["Residential", "Office", "Regional Retail", "Local Retail", "Sit Down/High Turnover Restaurant", "Fast Food/without Drive Through",
|
13 |
+
"Community Facility", "Off-Street Parking Facility"])
|
14 |
],
|
15 |
+
outputs=gr.outputs.Textbox(),
|
|
|
|
|
|
|
|
|
|
|
16 |
)
|
17 |
|
18 |
iface.launch()
|