Spaces:
Running
on
Zero
Running
on
Zero
Add error handling
Browse files
app.py
CHANGED
@@ -488,7 +488,8 @@ def add_tracking_points(
|
|
488 |
|
489 |
|
490 |
def add_drag(tracking_points):
|
491 |
-
tracking_points
|
|
|
492 |
return {tracking_points_var: tracking_points}
|
493 |
|
494 |
|
|
|
488 |
|
489 |
|
490 |
def add_drag(tracking_points):
|
491 |
+
if not tracking_points or tracking_points[-1]:
|
492 |
+
tracking_points.append([])
|
493 |
return {tracking_points_var: tracking_points}
|
494 |
|
495 |
|