Commit
•
26a5802
1
Parent(s):
ca5fb80
let's try it on the production server
Browse files- src/app/main.tsx +1 -25
src/app/main.tsx
CHANGED
@@ -444,30 +444,6 @@ export function Main() {
|
|
444 |
return
|
445 |
}
|
446 |
|
447 |
-
// approximate time in ms take by each step
|
448 |
-
// also we should find adjust the % displayed
|
449 |
-
const progressDelayInMsPerStage: Record<GenerationStage, number> = {
|
450 |
-
story: 2200,
|
451 |
-
entities: 2200,
|
452 |
-
music: 3000,
|
453 |
-
images: 1000,
|
454 |
-
voices: 2000,
|
455 |
-
videos: 2000,
|
456 |
-
final: 2500,
|
457 |
-
idle: 1000
|
458 |
-
}
|
459 |
-
|
460 |
-
const maxProgressPerStage: Record<GenerationStage, number> = {
|
461 |
-
story: 19,
|
462 |
-
entities: 29,
|
463 |
-
music: 39,
|
464 |
-
images: 49,
|
465 |
-
videos: 69,
|
466 |
-
voices: 84,
|
467 |
-
final: 99,
|
468 |
-
idle: 100
|
469 |
-
}
|
470 |
-
|
471 |
/*
|
472 |
console.log("progress function:", {
|
473 |
stage,
|
@@ -481,7 +457,7 @@ export function Main() {
|
|
481 |
})
|
482 |
|
483 |
// timerRef.current = setTimeout(timerFn, progressDelayInMsPerStage[stage])
|
484 |
-
timerRef.current = setTimeout(timerFn,
|
485 |
}
|
486 |
|
487 |
useEffect(() => {
|
|
|
444 |
return
|
445 |
}
|
446 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
447 |
/*
|
448 |
console.log("progress function:", {
|
449 |
stage,
|
|
|
457 |
})
|
458 |
|
459 |
// timerRef.current = setTimeout(timerFn, progressDelayInMsPerStage[stage])
|
460 |
+
timerRef.current = setTimeout(timerFn, 800)
|
461 |
}
|
462 |
|
463 |
useEffect(() => {
|