Update index.html
Browse files- index.html +1 -1
index.html
CHANGED
@@ -106,7 +106,7 @@
|
|
106 |
mask = gr.Image(label="Output Mask")
|
107 |
clear_points.click(lambda: ([], []), None, [points, points_state])
|
108 |
image.select(set_points, inputs=[image, points_state], outputs=[points, points_state])
|
109 |
-
points.change(None, inputs=[image, points], outputs=[mask],
|
110 |
demo.launch(show_api=False)
|
111 |
</gradio-lite>
|
112 |
</body>
|
|
|
106 |
mask = gr.Image(label="Output Mask")
|
107 |
clear_points.click(lambda: ([], []), None, [points, points_state])
|
108 |
image.select(set_points, inputs=[image, points_state], outputs=[points, points_state])
|
109 |
+
points.change(None, inputs=[image, points], outputs=[mask], _js=get_point_mask)
|
110 |
demo.launch(show_api=False)
|
111 |
</gradio-lite>
|
112 |
</body>
|