Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -46,10 +46,10 @@ def segment_buildings(im):
|
|
46 |
return Image.fromarray(out.get_image()[:, :, ::-1])
|
47 |
|
48 |
# gradio components
|
49 |
-
|
50 |
gr_slider_confidence = gr.inputs.Slider(0,1,.1,.7,
|
51 |
label='Set confidence threshold % for masks')
|
52 |
-
|
53 |
# gradio outputs
|
54 |
inputs = gr.inputs.Image(type="pil", label="Input Image")
|
55 |
outputs = gr.outputs.Image(type="pil", label="Output Image")
|
@@ -59,7 +59,7 @@ description = "An instance segmentation demo for identifying boundaries of build
|
|
59 |
|
60 |
# Create user interface and launch
|
61 |
gr.Interface(segment_buildings,
|
62 |
-
inputs = inputs,
|
63 |
outputs = outputs,
|
64 |
title = title,
|
65 |
description = description).launch(debug=True)
|
|
|
46 |
return Image.fromarray(out.get_image()[:, :, ::-1])
|
47 |
|
48 |
# gradio components
|
49 |
+
|
50 |
gr_slider_confidence = gr.inputs.Slider(0,1,.1,.7,
|
51 |
label='Set confidence threshold % for masks')
|
52 |
+
|
53 |
# gradio outputs
|
54 |
inputs = gr.inputs.Image(type="pil", label="Input Image")
|
55 |
outputs = gr.outputs.Image(type="pil", label="Output Image")
|
|
|
59 |
|
60 |
# Create user interface and launch
|
61 |
gr.Interface(segment_buildings,
|
62 |
+
inputs = [inputs, gr_slider_confidence],
|
63 |
outputs = outputs,
|
64 |
title = title,
|
65 |
description = description).launch(debug=True)
|