Upload folder using huggingface_hub
Browse files
test.py
CHANGED
|
@@ -1,8 +1,9 @@
|
|
| 1 |
-
from
|
| 2 |
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
|
|
|
|
|
| 1 |
+
from diffusers.modular_pipelines import ModularPipelineBlocks
|
| 2 |
|
| 3 |
+
expander_qwen = ModularPipelineBlocks.from_pretrained(
|
| 4 |
+
"diffusers-internal-dev/qwen-prompt-expander",
|
| 5 |
+
trust_remote_code=True,
|
| 6 |
+
)
|
| 7 |
+
expander_qwen = expander_qwen.init_pipeline()
|
| 8 |
+
output = expander_qwen(prompt="a dog sitting by the river, watching the sunset")
|
| 9 |
+
print(f"{output.values['prompt']=}")
|