Spaces:
Running
on
A10G
Running
on
A10G
Haobo Yuan
commited on
Commit
·
9a52c51
1
Parent(s):
1cf72c0
bugfix
Browse files
main.py
CHANGED
@@ -295,8 +295,8 @@ def clean_prompts(img_state):
|
|
295 |
|
296 |
|
297 |
def register_point_mode():
|
298 |
-
img_state_points = gr.State(IMGState())
|
299 |
-
img_state_bbox = gr.State(IMGState())
|
300 |
with gr.Row():
|
301 |
with gr.Column(scale=1):
|
302 |
gr.Markdown(title)
|
|
|
295 |
|
296 |
|
297 |
def register_point_mode():
|
298 |
+
img_state_points = gr.State(value=IMGState())
|
299 |
+
img_state_bbox = gr.State(value=IMGState())
|
300 |
with gr.Row():
|
301 |
with gr.Column(scale=1):
|
302 |
gr.Markdown(title)
|