Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -16,7 +16,7 @@ pipe.scheduler = DPMSolverSinglestepScheduler.from_config(pipe.scheduler.config,
|
|
16 |
MAX_SEED = np.iinfo(np.int32).max
|
17 |
MAX_IMAGE_SIZE = 4096
|
18 |
|
19 |
-
@spaces.GPU(duration=120,queue=False)
|
20 |
def infer(
|
21 |
prompt: str,
|
22 |
negative_prompt: str = "",
|
@@ -147,4 +147,4 @@ with gr.Blocks(title="SDXL Flash", css=css) as demo:
|
|
147 |
outputs = [result]
|
148 |
)
|
149 |
|
150 |
-
demo.queue().launch(
|
|
|
16 |
MAX_SEED = np.iinfo(np.int32).max
|
17 |
MAX_IMAGE_SIZE = 4096
|
18 |
|
19 |
+
@spaces.GPU(duration=120, queue=False)
|
20 |
def infer(
|
21 |
prompt: str,
|
22 |
negative_prompt: str = "",
|
|
|
147 |
outputs = [result]
|
148 |
)
|
149 |
|
150 |
+
demo.queue(max_size=20).launch()
|