Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -779,7 +779,7 @@ torch.cuda.empty_cache()
|
|
779 |
pipe = DiffusionPipeline.from_pretrained("black-forest-labs/FLUX.1-schnell", torch_dtype=dtype).to(device)
|
780 |
|
781 |
# Reduce the inference steps and image dimensions
|
782 |
-
def generate_image_flux(prompt, seed=42, width=
|
783 |
generator = torch.Generator(device).manual_seed(seed)
|
784 |
image = pipe(
|
785 |
prompt=prompt,
|
|
|
779 |
pipe = DiffusionPipeline.from_pretrained("black-forest-labs/FLUX.1-schnell", torch_dtype=dtype).to(device)
|
780 |
|
781 |
# Reduce the inference steps and image dimensions
|
782 |
+
def generate_image_flux(prompt, seed=42, width=400, height=400, num_inference_steps=1):
|
783 |
generator = torch.Generator(device).manual_seed(seed)
|
784 |
image = pipe(
|
785 |
prompt=prompt,
|