Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -148,6 +148,7 @@ def segment_frame(evt: gr.SelectData, label, video_state):
|
|
148 |
|
149 |
return Image.fromarray(painted_image)
|
150 |
|
|
|
151 |
def clear_clicks(video_state):
|
152 |
video_state["input_points"] = []
|
153 |
video_state["input_labels"] = []
|
|
|
148 |
|
149 |
return Image.fromarray(painted_image)
|
150 |
|
151 |
+
@spaces.GPU(duration=10)
|
152 |
def clear_clicks(video_state):
|
153 |
video_state["input_points"] = []
|
154 |
video_state["input_labels"] = []
|