Views
No views yet
perma_chef_mandil_tex_castao_dama_4_20250604_2059 to trigger the image generation.1import replicate
2
3input = {
4 "prompt": "perma_chef_mandil_tex_castao_dama_4_20250604_2059",
5 "lora_weights": "https://huggingface.co/BilateralBusiness/perma_chef_mandil_tex_castao_dama_4_20250604_2059/resolve/main/lora.safetensors"
6}
7
8output = replicate.run(
9 "black-forest-labs/flux-dev-lora",
10 input=input
11)
12for index, item in enumerate(output):
13 with open(f"output_{index}.webp", "wb") as file:
14 file.write(item.read())1from diffusers import AutoPipelineForText2Image
2import torch
3
4pipeline = AutoPipelineForText2Image.from_pretrained('black-forest-labs/FLUX.1-dev', torch_dtype=torch.float16).to('cuda')
5pipeline.load_lora_weights('BilateralBusiness/perma_chef_mandil_tex_castao_dama_4_20250604_2059', weight_name='lora.safetensors')
6image = pipeline('perma_chef_mandil_tex_castao_dama_4_20250604_2059').images[0]