Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -770,7 +770,7 @@ device = "cuda" if torch.cuda.is_available() else "cpu"
|
|
770 |
pipe = DiffusionPipeline.from_pretrained("black-forest-labs/FLUX.1-schnell", torch_dtype=dtype).to(device)
|
771 |
|
772 |
# Reduce inference steps to save memory
|
773 |
-
def generate_image_flux(prompt, seed=42, width=
|
774 |
generator = torch.Generator(device).manual_seed(seed)
|
775 |
image = pipe(
|
776 |
prompt=prompt,
|
|
|
770 |
pipe = DiffusionPipeline.from_pretrained("black-forest-labs/FLUX.1-schnell", torch_dtype=dtype).to(device)
|
771 |
|
772 |
# Reduce inference steps to save memory
|
773 |
+
def generate_image_flux(prompt, seed=42, width=width, height=height, num_inference_steps=2):
|
774 |
generator = torch.Generator(device).manual_seed(seed)
|
775 |
image = pipe(
|
776 |
prompt=prompt,
|