Views
No views yet
pip install google-generativeaiexport GOOGLE_API_KEY="your-api-key-here"1from diffusers.modular_pipelines import ModularPipelineBlocks
2
3gemini_block = ModularPipelineBlocks.from_pretrained(
4 "diffusers-internal-dev/gemini-prompt-expander",
5 trust_remote_code=True,
6)
7gemini = gemini_block.init_pipeline()
8output = gemini(prompt="a dog sitting by the river, watching the sunset")
9print(f"{output.values['prompt']=}")mellon_pipeline_config.json for use with Mellon:diffusers-internal-dev/gemini-prompt-expander as the repo_id