Spaces:
Build error
Build error
Commit
·
444bbdb
1
Parent(s):
f7f7c46
fix
Browse files- database.json +1 -1
- src/index.mts +2 -2
database.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
{
|
2 |
"version": 1,
|
3 |
-
"startAtShotId": "
|
4 |
"sequences": [
|
5 |
{
|
6 |
"sequenceId": "0489dbc6-791c-4cb8-97f6-ada01092fa91",
|
|
|
1 |
{
|
2 |
"version": 1,
|
3 |
+
"startAtShotId": "db03278b-a39e-4fab-ad2b-b34773401c3d",
|
4 |
"sequences": [
|
5 |
{
|
6 |
"sequenceId": "0489dbc6-791c-4cb8-97f6-ada01092fa91",
|
src/index.mts
CHANGED
@@ -66,7 +66,7 @@ Going to generate ${sequence.shots.length} for prompt:
|
|
66 |
${sequence.videoPrompt}
|
67 |
`)
|
68 |
|
69 |
-
const
|
70 |
|
71 |
const generatedShots: string[] = []
|
72 |
|
@@ -97,7 +97,7 @@ ${sequence.videoPrompt}
|
|
97 |
try {
|
98 |
const generatedVideoUrl = await callZeroscope(shot.videoPrompt)
|
99 |
|
100 |
-
const shotFileName = `inst_${instanceId}_seq_${sequenceId}_shot_${shotIndex++}_${Date.now()}.mp4`
|
101 |
|
102 |
console.log(`- downloading shot ${shotFileName} from ${generatedVideoUrl}`)
|
103 |
await downloadVideo(generatedVideoUrl, shotFileName)
|
|
|
66 |
${sequence.videoPrompt}
|
67 |
`)
|
68 |
|
69 |
+
const movieId = uuid()
|
70 |
|
71 |
const generatedShots: string[] = []
|
72 |
|
|
|
97 |
try {
|
98 |
const generatedVideoUrl = await callZeroscope(shot.videoPrompt)
|
99 |
|
100 |
+
const shotFileName = `inst_${instanceId}_movie_${movieId}_seq_${sequence.sequenceId}_shot_${shotIndex++}_${Date.now()}.mp4`
|
101 |
|
102 |
console.log(`- downloading shot ${shotFileName} from ${generatedVideoUrl}`)
|
103 |
await downloadVideo(generatedVideoUrl, shotFileName)
|