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/sophie-turner-flux', weight_name='Sophie_Turner_Flux.safetensors')
image = pipeline(' The image is a photograph from the HBO series "Game of Thrones." The scene appears to be set in a fortress. The image is capturing a young woman who has red hair. She has fair skin and piercing blue and green eyes that stand out vividly against her complexion. Her facial features are delicate, she is wearing a medieval style wolf fur cloak, black dress, stoic expression').images[0]