Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse filesreduce requested quota
app.py
CHANGED
|
@@ -13,7 +13,7 @@ pipe = DiffusionPipeline.from_pretrained("black-forest-labs/FLUX.1-schnell", tor
|
|
| 13 |
MAX_SEED = np.iinfo(np.int32).max
|
| 14 |
MAX_IMAGE_SIZE = 2048
|
| 15 |
|
| 16 |
-
@spaces.GPU()
|
| 17 |
def infer(prompt, seed=42, randomize_seed=False, width=1024, height=1024, num_inference_steps=4, progress=gr.Progress(track_tqdm=True)):
|
| 18 |
"""
|
| 19 |
Generate an image using the Flux 1 Schnell Image Generator.
|
|
|
|
| 13 |
MAX_SEED = np.iinfo(np.int32).max
|
| 14 |
MAX_IMAGE_SIZE = 2048
|
| 15 |
|
| 16 |
+
@spaces.GPU(duration=15)
|
| 17 |
def infer(prompt, seed=42, randomize_seed=False, width=1024, height=1024, num_inference_steps=4, progress=gr.Progress(track_tqdm=True)):
|
| 18 |
"""
|
| 19 |
Generate an image using the Flux 1 Schnell Image Generator.
|