mirror of
https://github.com/xavidop/cardex.git
synced 2026-08-29 01:01:19 +00:00
feat: improve video generation
This commit is contained in:
@@ -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,
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user