Spaces:
Sleeping
Sleeping
Commit
•
c1ce586
1
Parent(s):
68cf2e8
up
Browse files
src/app/api/v1/edit/dialogues/route.ts
CHANGED
@@ -35,8 +35,10 @@ export async function POST(req: NextRequest) {
|
|
35 |
throw new Error(`Error, this endpoint being synchronous, it is designed for short stories only (max 32 shots).`)
|
36 |
}
|
37 |
|
38 |
-
const newerClap = mode === ClapCompletionMode.FULL ? existingClap : newClap(
|
39 |
-
|
|
|
|
|
40 |
// we process the shots in parallel (this will increase the queue size in the Gradio spaces)
|
41 |
await Promise.all(shotsSegments.map(shotSegment =>
|
42 |
processShot({
|
|
|
35 |
throw new Error(`Error, this endpoint being synchronous, it is designed for short stories only (max 32 shots).`)
|
36 |
}
|
37 |
|
38 |
+
const newerClap = mode === ClapCompletionMode.FULL ? existingClap : newClap({
|
39 |
+
meta: existingClap.meta
|
40 |
+
})
|
41 |
+
|
42 |
// we process the shots in parallel (this will increase the queue size in the Gradio spaces)
|
43 |
await Promise.all(shotsSegments.map(shotSegment =>
|
44 |
processShot({
|
src/app/api/v1/edit/entities/route.ts
CHANGED
@@ -28,7 +28,9 @@ export async function POST(req: NextRequest) {
|
|
28 |
|
29 |
const existingClap = await parseClap(blob)
|
30 |
|
31 |
-
const newerClap = mode === ClapCompletionMode.FULL ? existingClap : newClap(
|
|
|
|
|
32 |
|
33 |
await editEntities({
|
34 |
existingClap,
|
|
|
28 |
|
29 |
const existingClap = await parseClap(blob)
|
30 |
|
31 |
+
const newerClap = mode === ClapCompletionMode.FULL ? existingClap : newClap({
|
32 |
+
meta: existingClap.meta
|
33 |
+
})
|
34 |
|
35 |
await editEntities({
|
36 |
existingClap,
|
src/app/api/v1/edit/storyboards/route.ts
CHANGED
@@ -40,7 +40,9 @@ export async function POST(req: NextRequest) {
|
|
40 |
throw new Error(`Error, this endpoint being synchronous, it is designed for short stories only (max 32 shots).`)
|
41 |
}
|
42 |
|
43 |
-
const newerClap = mode === ClapCompletionMode.FULL ? existingClap : newClap(
|
|
|
|
|
44 |
|
45 |
// we process the shots in parallel (this will increase the queue size in the Gradio spaces)
|
46 |
await Promise.all(shotsSegments.map(shotSegment =>
|
|
|
40 |
throw new Error(`Error, this endpoint being synchronous, it is designed for short stories only (max 32 shots).`)
|
41 |
}
|
42 |
|
43 |
+
const newerClap = mode === ClapCompletionMode.FULL ? existingClap : newClap({
|
44 |
+
meta: existingClap.meta
|
45 |
+
})
|
46 |
|
47 |
// we process the shots in parallel (this will increase the queue size in the Gradio spaces)
|
48 |
await Promise.all(shotsSegments.map(shotSegment =>
|
src/app/api/v1/edit/videos/route.ts
CHANGED
@@ -40,7 +40,9 @@ export async function POST(req: NextRequest) {
|
|
40 |
throw new Error(`Error, this endpoint being synchronous, it is designed for short stories only (max 32 shots).`)
|
41 |
}
|
42 |
|
43 |
-
const newerClap = mode === ClapCompletionMode.FULL ? existingClap : newClap(
|
|
|
|
|
44 |
|
45 |
// we process the shots in parallel (this will increase the queue size in the Gradio spaces)
|
46 |
await Promise.all(shotsSegments.map(shotSegment =>
|
|
|
40 |
throw new Error(`Error, this endpoint being synchronous, it is designed for short stories only (max 32 shots).`)
|
41 |
}
|
42 |
|
43 |
+
const newerClap = mode === ClapCompletionMode.FULL ? existingClap : newClap({
|
44 |
+
meta: existingClap.meta
|
45 |
+
})
|
46 |
|
47 |
// we process the shots in parallel (this will increase the queue size in the Gradio spaces)
|
48 |
await Promise.all(shotsSegments.map(shotSegment =>
|