Quazim0t0 commited on
Commit
77b0130
·
verified ·
1 Parent(s): 6072187

Update src/components/MultiSourceCaptioningView.tsx

Browse files
src/components/MultiSourceCaptioningView.tsx CHANGED
@@ -5,7 +5,7 @@ import { extractJsonFromMarkdown, drawBoundingBoxesOnCanvas } from "./BoxAnnotat
5
  const MODES = ["Webcam", "URL", "File"] as const;
6
  type Mode = typeof MODES[number];
7
 
8
- const EXAMPLE_VIDEO_URL = "/spaces/videos/1.mp4";
9
  const EXAMPLE_PROMPT = "Detect all people in the image. For each person, output a JSON array of objects with fields: 'label' (string) and 'bbox_2d' ([x1, y1, x2, y2]) where coordinates are in pixel values. Example: [{\"label\": \"person\", \"bbox_2d\": [100, 50, 200, 300]}]";
10
 
11
  function parseFlatBoxArray(arr: any[]): { label: string, bbox_2d: number[] }[] {
 
5
  const MODES = ["Webcam", "URL", "File"] as const;
6
  type Mode = typeof MODES[number];
7
 
8
+ const EXAMPLE_VIDEO_URL = "/space/videos/1.mp4";
9
  const EXAMPLE_PROMPT = "Detect all people in the image. For each person, output a JSON array of objects with fields: 'label' (string) and 'bbox_2d' ([x1, y1, x2, y2]) where coordinates are in pixel values. Example: [{\"label\": \"person\", \"bbox_2d\": [100, 50, 200, 300]}]";
10
 
11
  function parseFlatBoxArray(arr: any[]): { label: string, bbox_2d: number[] }[] {