Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Commit
·
c0d281b
1
Parent(s):
048071f
make the AI comic factory faster on the production app
Browse files
src/app/interface/panel/index.tsx
CHANGED
@@ -58,7 +58,7 @@ export function Panel({
|
|
58 |
|
59 |
const enableRateLimiter = `${process.env.NEXT_PUBLIC_ENABLE_RATE_LIMITER}` === "true"
|
60 |
|
61 |
-
const delay = enableRateLimiter ? (
|
62 |
|
63 |
|
64 |
const startImageGeneration = ({ prompt, width, height }: { prompt: string, width: number, height: number}) => {
|
|
|
58 |
|
59 |
const enableRateLimiter = `${process.env.NEXT_PUBLIC_ENABLE_RATE_LIMITER}` === "true"
|
60 |
|
61 |
+
const delay = enableRateLimiter ? (1000 + (500 * panel)) : 1000
|
62 |
|
63 |
|
64 |
const startImageGeneration = ({ prompt, width, height }: { prompt: string, width: number, height: number}) => {
|