Pijush2023 commited on
Commit
d022bee
·
verified ·
1 Parent(s): 726c820

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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=512, height=512, num_inference_steps=2):
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,