from diffusers import AutoPipelineForText2Image
import torch
device = "cuda"if torch.cuda.is_available() else"cpu"
pipeline = AutoPipelineForText2Image.from_pretrained('black-forest-labs/FLUX.1-dev', torch_dtype=torch.bfloat16).to(device)
pipeline.load_lora_weights('Keltezaa/scarlett-johansson-2003-flux', weight_name='Scarlett_Johansson-000032.safetensors')
image = pipeline('a highly detailed photo of scarlett johansson with a punk aesthetic. She has fair skin and a slender physique. Her hair is styled in a mohawk with a striking green and red gradient, with the green section covering the left side and the red section on the right. Her facial features are sharp and angular, with dark eyebrows and eyeliner that accentuate her almond-shaped eyes. She has a small nose ring and wears a silver metallic earpiece on her left ear. Her expression is neutral, with a slight hint of a smile. She has a tattoo of a large red rose on her neck, just below her jawline. She is wearing a sleeveless top that reveals her shoulders and upper arms, which are lightly tanned. The background is a gritty, industrial setting with a rusty, metallic texture. There are visible pipes and a large, metallic structure in the distance, suggesting an urban environment. The sky is a mix of blue and orange hues, indicating either early morning or late afternoon light. The image has a realistic texture and lighting, enhancing the sense of being in a real-world environment.').images[0]