Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -22,7 +22,7 @@ pipe = FLUXPipelineWithIntermediateOutputs.from_pretrained(
|
|
22 |
torch.cuda.empty_cache()
|
23 |
|
24 |
# Inference function
|
25 |
-
@spaces.GPU(duration=25
|
26 |
def generate_image(prompt, seed=42, width=DEFAULT_WIDTH, height=DEFAULT_HEIGHT, randomize_seed=False, num_inference_steps=2, progress=gr.Progress(track_tqdm=True)):
|
27 |
if randomize_seed:
|
28 |
seed = random.randint(0, MAX_SEED)
|
|
|
22 |
torch.cuda.empty_cache()
|
23 |
|
24 |
# Inference function
|
25 |
+
@spaces.GPU(duration=25)
|
26 |
def generate_image(prompt, seed=42, width=DEFAULT_WIDTH, height=DEFAULT_HEIGHT, randomize_seed=False, num_inference_steps=2, progress=gr.Progress(track_tqdm=True)):
|
27 |
if randomize_seed:
|
28 |
seed = random.randint(0, MAX_SEED)
|