Views
No views yet
1python -c "
2from diffusers import FluxPipeline
3import torch
4pipe = FluxPipeline.from_pretrained('black-forest-labs/FLUX.1-schnell', torch_dtype=torch.bfloat16)
5pipe.to('cuda')
6image = pipe('Your prompt', num_inference_steps=4, guidance_scale=0.0).images[0]
7image.save('output.png')
8"curl -X POST "http://127.0.0.1:7860/generate" -d "prompt=Your prompt"