aryswisnu commited on
Commit
2120a9a
1 Parent(s): 182d0a2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -6
app.py CHANGED
@@ -88,9 +88,9 @@ with gr.Blocks() as demo:
88
  btn_process = gr.Button(label="Process")
89
 
90
  with gr.Column():
91
- # output_plot = gr.Plot(label="Segmentation Result")
92
  output_mask = gr.Image(label="Mask")
93
- # output_image = gr.Image(label="Output Image")
94
 
95
  btn_process.click(
96
  process_image,
@@ -98,10 +98,10 @@ with gr.Blocks() as demo:
98
  input_image,
99
  input_prompt,
100
  input_slider_T,
101
- input_slider_A
 
102
  ],
103
- outputs=[output_mask],
104
- api_name="masking"
105
  )
106
 
107
  gr.Examples(
@@ -119,4 +119,4 @@ with gr.Blocks() as demo:
119
  ],
120
  )
121
 
122
- demo.launch()
 
88
  btn_process = gr.Button(label="Process")
89
 
90
  with gr.Column():
91
+ output_plot = gr.Plot(label="Segmentation Result")
92
  output_mask = gr.Image(label="Mask")
93
+ output_image = gr.Image(label="Output Image")
94
 
95
  btn_process.click(
96
  process_image,
 
98
  input_image,
99
  input_prompt,
100
  input_slider_T,
101
+ input_slider_A,
102
+ draw_rectangles,
103
  ],
104
+ outputs=[output_plot, output_mask, output_image],api_name="masking"
 
105
  )
106
 
107
  gr.Examples(
 
119
  ],
120
  )
121
 
122
+ demo.launch()