Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -225,7 +225,7 @@ with gr.Blocks() as demo:
|
|
225 |
|
226 |
|
227 |
|
228 |
-
canvas.upload(image_change, inputs=[], outputs=[text_button])
|
229 |
|
230 |
|
231 |
with gr.Tab(label="2 Optimization"):
|
@@ -360,8 +360,8 @@ with gr.Blocks() as demo:
|
|
360 |
outputs=[slider2]
|
361 |
)
|
362 |
|
363 |
-
text_button.click(load_image_ui, [false] ,
|
364 |
-
|
365 |
|
366 |
segment_button.click(run_segmentation_wrapper,
|
367 |
[canvas] ,
|
|
|
225 |
|
226 |
|
227 |
|
228 |
+
#canvas.upload(image_change, inputs=[], outputs=[text_button])
|
229 |
|
230 |
|
231 |
with gr.Tab(label="2 Optimization"):
|
|
|
360 |
outputs=[slider2]
|
361 |
)
|
362 |
|
363 |
+
#text_button.click(load_image_ui, [false] ,
|
364 |
+
# [image_loaded, segmentation, mask_np_list, mask_label_list, canvas, slider, slider2] )
|
365 |
|
366 |
segment_button.click(run_segmentation_wrapper,
|
367 |
[canvas] ,
|