feat: improve video generation

This commit is contained in:
xavidop
2025-07-23 23:46:15 +02:00
parent ada9184c0b
commit 3965209752
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -90,6 +90,7 @@ export async function generateCardVideo(input: GenerateCardVideoInput): Promise<
numberOfVideos: 1,
aspectRatio: '9:16',
durationSeconds: 5, // Set duration to 5 seconds
enhancePrompt: true,
}
});
+1 -1
View File
@@ -36,7 +36,7 @@ export default function CollectionPage() {
const interval = setInterval(() => {
console.log('Refreshing cards to check for video generation updates...');
fetchCards();
}, 5000); // Check every 15 seconds (more frequent for better UX)
}, 10000); // Check every 10 seconds (more frequent for better UX)
return () => {
console.log('Clearing automatic refresh interval');