Spaces:
Running
Running
Update apps/viralcat.js
Browse files- apps/viralcat.js +1 -1
apps/viralcat.js
CHANGED
|
@@ -63,7 +63,7 @@ router.post('/admin/template', upload.single('video_file'), async (req, res) =>
|
|
| 63 |
if (!mediaData.success) throw new Error(mediaData.error);
|
| 64 |
|
| 65 |
// 🚨 FIX: Sample the frames so we don't hit the "Validation Error"
|
| 66 |
-
const sampledFrames = sampleFrames(mediaData.frames
|
| 67 |
console.log(`[CRAWLER] Sending ${sampledFrames.length} sampled frames to AI...`);
|
| 68 |
|
| 69 |
const aiPrompt = `Analyze these chronologically extracted frames and audio from a viral video.
|
|
|
|
| 63 |
if (!mediaData.success) throw new Error(mediaData.error);
|
| 64 |
|
| 65 |
// 🚨 FIX: Sample the frames so we don't hit the "Validation Error"
|
| 66 |
+
const sampledFrames = sampleFrames(mediaData.frames);
|
| 67 |
console.log(`[CRAWLER] Sending ${sampledFrames.length} sampled frames to AI...`);
|
| 68 |
|
| 69 |
const aiPrompt = `Analyze these chronologically extracted frames and audio from a viral video.
|