code_execution_files / black-forest-labs_FLUX.1-dev_1.txt
ariG23498's picture
ariG23498 HF Staff
Upload black-forest-labs_FLUX.1-dev_1.txt with huggingface_hub
e3866bb verified
raw
history blame
454 Bytes
```CODE:
from diffusers import DiffusionPipeline
pipe = DiffusionPipeline.from_pretrained("black-forest-labs/FLUX.1-dev")
prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k"
image = pipe(prompt).images[0]
```
ERROR:
Traceback (most recent call last):
File "/tmp/black-forest-labs_FLUX.1-dev_1T6Ekrx.py", line 14, in <module>
from diffusers import DiffusionPipeline
ModuleNotFoundError: No module named 'diffusers'