Spaces:
Running
on
Zero
Running
on
Zero
Commit
•
e04fd6c
1
Parent(s):
7f10b7b
Update app.py (#5)
Browse files- Update app.py (75567509fcefe0d4099fbd52620ab298ce14b380)
Co-authored-by: Evgeniy Hristoforu <[email protected]>
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()
|