Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Commit
·
5f12238
1
Parent(s):
15081b3
let's not use the load limiter for video
Browse files
src/production/generateVideo.mts
CHANGED
@@ -21,11 +21,15 @@ export const generateVideo = async (prompt: string, options?: {
|
|
21 |
nbSteps: number;
|
22 |
}) => {
|
23 |
|
|
|
|
|
24 |
if (state.load === instances.length) {
|
25 |
throw new Error(`all video generation servers are busy, try again later..`)
|
26 |
}
|
|
|
27 |
|
28 |
state.load += 1
|
|
|
29 |
|
30 |
try {
|
31 |
const seed = options?.seed || generateSeed()
|
|
|
21 |
nbSteps: number;
|
22 |
}) => {
|
23 |
|
24 |
+
/* let's disable load control, and let it use the queue */
|
25 |
+
/*
|
26 |
if (state.load === instances.length) {
|
27 |
throw new Error(`all video generation servers are busy, try again later..`)
|
28 |
}
|
29 |
+
*/
|
30 |
|
31 |
state.load += 1
|
32 |
+
|
33 |
|
34 |
try {
|
35 |
const seed = options?.seed || generateSeed()
|