sayakpaul HF Staff commited on
Commit
d47a7a3
·
verified ·
1 Parent(s): b215789

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. test.py +8 -7
test.py CHANGED
@@ -1,8 +1,9 @@
1
- from qwen_prompt_expander import QwenPromptExpander
2
 
3
- # expander = QwenPromptExpander().init_pipeline()
4
- # output = expander(prompt="a dog sitting by the river, watching the sunset")
5
- # print(f"{output.values['prompt']=}")
6
-
7
-
8
- QwenPromptExpander().save_pretrained(".")
 
 
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']=}")