Spaces:
Running
on
Zero
Running
on
Zero
ehristoforu
commited on
Commit
•
7556750
1
Parent(s):
7f10b7b
Update app.py
Browse files
app.py
CHANGED
@@ -47,7 +47,7 @@ def randomize_seed_fn(seed: int, randomize_seed: bool) -> int:
|
|
47 |
seed = random.randint(0, MAX_SEED)
|
48 |
return seed
|
49 |
|
50 |
-
@spaces.GPU(duration=
|
51 |
def generate(
|
52 |
prompt: str,
|
53 |
negative_prompt: str = "",
|
@@ -217,4 +217,4 @@ with gr.Blocks(css=css) as demo:
|
|
217 |
)
|
218 |
|
219 |
if __name__ == "__main__":
|
220 |
-
demo.queue(max_size=
|
|
|
47 |
seed = random.randint(0, MAX_SEED)
|
48 |
return seed
|
49 |
|
50 |
+
@spaces.GPU(duration=35, enable_queue=True)
|
51 |
def generate(
|
52 |
prompt: str,
|
53 |
negative_prompt: str = "",
|
|
|
217 |
)
|
218 |
|
219 |
if __name__ == "__main__":
|
220 |
+
demo.queue(max_size=50).launch()
|