Quazim0t0 commited on
Commit
5a753ff
·
verified ·
1 Parent(s): 73be173

Upload 37 files

Browse files
src/components/MultiSourceCaptioningView.tsx CHANGED
@@ -59,6 +59,7 @@ export default function MultiSourceCaptioningView() {
59
  if (!ctx) return;
60
  ctx.drawImage(video, 0, 0, canvas.width, canvas.height);
61
  await runInference(video, prompt, (output: string) => {
 
62
  let boxes = extractJsonFromMarkdown(output) || [];
63
  if (boxes.length === 0 && Array.isArray(output)) {
64
  boxes = parseFlatBoxArray(output);
 
59
  if (!ctx) return;
60
  ctx.drawImage(video, 0, 0, canvas.width, canvas.height);
61
  await runInference(video, prompt, (output: string) => {
62
+ setDebugOutput(output); // <-- Ensure Raw Model Output is updated
63
  let boxes = extractJsonFromMarkdown(output) || [];
64
  if (boxes.length === 0 && Array.isArray(output)) {
65
  boxes = parseFlatBoxArray(output);