Quazim0t0 commited on
Commit
c53d679
·
verified ·
1 Parent(s): f83c163

Update src/components/MultiSourceCaptioningView.tsx

Browse files
src/components/MultiSourceCaptioningView.tsx CHANGED
@@ -6,7 +6,7 @@ const MODES = ["Webcam", "URL", "File"] as const;
6
  type Mode = typeof MODES[number];
7
 
8
  const EXAMPLE_VIDEO_URL = "https://huggingface.co/spaces/Quazim0t0/test/resolve/main/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[] }[] {
12
  if (typeof arr[0] === "string" && Array.isArray(arr[1])) {
 
6
  type Mode = typeof MODES[number];
7
 
8
  const EXAMPLE_VIDEO_URL = "https://huggingface.co/spaces/Quazim0t0/test/resolve/main/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.DO NOT USE THESE EXACT VALUES, THIS IS JUST AN Example: [{\"label\": \"person\", \"bbox_2d\": [100, 50, 200, 300]}]";
10
 
11
  function parseFlatBoxArray(arr: any[]): { label: string, bbox_2d: number[] }[] {
12
  if (typeof arr[0] === "string" && Array.isArray(arr[1])) {