Create README.md
Browse files
README.md
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
tags:
|
| 3 |
+
- modular-diffusers
|
| 4 |
+
---
|
| 5 |
+
To test:
|
| 6 |
+
|
| 7 |
+
```py
|
| 8 |
+
from diffusers.modular_pipelines import ModularPipelineBlocks
|
| 9 |
+
|
| 10 |
+
expander_qwen = ModularPipelineBlocks.from_pretrained(
|
| 11 |
+
"diffusers-internal-dev/qwen-prompt-expander",
|
| 12 |
+
trust_remote_code=True,
|
| 13 |
+
)
|
| 14 |
+
expander_qwen = expander_qwen.init_pipeline()
|
| 15 |
+
output = expander_qwen(prompt="a dog sitting by the river, watching the sunset")
|
| 16 |
+
print(f"{output.values['prompt']=}")
|
| 17 |
+
```
|