Download test.py from diffusers-internal-dev/qwen-prompt-expander: direct link, hf CLI and curl.
- Browser
- Download file 363 Bytes
-
https://huggingface.co/diffusers-internal-dev/qwen-prompt-expander/resolve/main/test.py
- Command line
-
hf download hf://diffusers-internal-dev/qwen-prompt-expander/test.py
-
curl -L -o test.py https://huggingface.co/diffusers-internal-dev/qwen-prompt-expander/resolve/main/test.py
363 Bytes
| from diffusers.modular_pipelines import ModularPipelineBlocks | |
| expander_qwen = ModularPipelineBlocks.from_pretrained( | |
| "diffusers-internal-dev/qwen-prompt-expander", | |
| trust_remote_code=True, | |
| ) | |
| expander_qwen = expander_qwen.init_pipeline() | |
| output = expander_qwen(prompt="a dog sitting by the river, watching the sunset") | |
| print(f"{output.values['prompt']=}") | |