Spaces:
Running
on
Zero
Running
on
Zero
xiaoyuxi
commited on
Commit
·
649797e
1
Parent(s):
8a148af
backend
Browse files
app.py
CHANGED
|
@@ -227,7 +227,7 @@ def handle_video_upload(video):
|
|
| 227 |
50, # grid_size (not used for upload)
|
| 228 |
756, # vo_points (not used for upload)
|
| 229 |
3, # fps (not used for upload)
|
| 230 |
-
api_name="/
|
| 231 |
)
|
| 232 |
|
| 233 |
print(f"✅ Backend video upload API call successful!")
|
|
@@ -298,7 +298,7 @@ def select_point(original_img: str, sel_pix: list, point_type: str, evt: gr.Sele
|
|
| 298 |
50, # grid_size (not used for select_point)
|
| 299 |
756, # vo_points (not used for select_point)
|
| 300 |
3, # fps (not used for select_point)
|
| 301 |
-
api_name="/
|
| 302 |
)
|
| 303 |
|
| 304 |
print(f"✅ Backend select point API call successful!")
|
|
@@ -391,7 +391,7 @@ def reset_points(original_img: str, sel_pix):
|
|
| 391 |
50, # grid_size (not used for reset_points)
|
| 392 |
756, # vo_points (not used for reset_points)
|
| 393 |
3, # fps (not used for reset_points)
|
| 394 |
-
api_name="/
|
| 395 |
)
|
| 396 |
|
| 397 |
print(f"✅ Backend reset points API call successful!")
|
|
@@ -457,7 +457,7 @@ def launch_viz(grid_size, vo_points, fps, original_image_state):
|
|
| 457 |
grid_size, # grid_size
|
| 458 |
vo_points, # vo_points
|
| 459 |
fps, # fps
|
| 460 |
-
api_name="/
|
| 461 |
)
|
| 462 |
|
| 463 |
print(f"✅ Backend API call successful!")
|
|
|
|
| 227 |
50, # grid_size (not used for upload)
|
| 228 |
756, # vo_points (not used for upload)
|
| 229 |
3, # fps (not used for upload)
|
| 230 |
+
api_name="/unified_api"
|
| 231 |
)
|
| 232 |
|
| 233 |
print(f"✅ Backend video upload API call successful!")
|
|
|
|
| 298 |
50, # grid_size (not used for select_point)
|
| 299 |
756, # vo_points (not used for select_point)
|
| 300 |
3, # fps (not used for select_point)
|
| 301 |
+
api_name="/unified_api"
|
| 302 |
)
|
| 303 |
|
| 304 |
print(f"✅ Backend select point API call successful!")
|
|
|
|
| 391 |
50, # grid_size (not used for reset_points)
|
| 392 |
756, # vo_points (not used for reset_points)
|
| 393 |
3, # fps (not used for reset_points)
|
| 394 |
+
api_name="/unified_api"
|
| 395 |
)
|
| 396 |
|
| 397 |
print(f"✅ Backend reset points API call successful!")
|
|
|
|
| 457 |
grid_size, # grid_size
|
| 458 |
vo_points, # vo_points
|
| 459 |
fps, # fps
|
| 460 |
+
api_name="/unified_api"
|
| 461 |
)
|
| 462 |
|
| 463 |
print(f"✅ Backend API call successful!")
|