Lifeinhockey commited on
Commit
8f237a7
·
verified ·
1 Parent(s): 82392d3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -126,6 +126,7 @@ def infer(
126
  pipe_controlnet.lora_loaded = True # Помечаем, что LoRA загружена
127
 
128
  # Используем ControlNet с LoRA
 
129
  prompt_embeds = long_prompt_encoder(prompt, pipe.tokenizer, pipe.text_encoder)
130
  negative_prompt_embeds = long_prompt_encoder(negative_prompt, pipe.tokenizer, pipe.text_encoder)
131
  prompt_embeds, negative_prompt_embeds = align_embeddings(prompt_embeds, negative_prompt_embeds)
 
126
  pipe_controlnet.lora_loaded = True # Помечаем, что LoRA загружена
127
 
128
  # Используем ControlNet с LoRA
129
+ pipe = pipe_controlnet
130
  prompt_embeds = long_prompt_encoder(prompt, pipe.tokenizer, pipe.text_encoder)
131
  negative_prompt_embeds = long_prompt_encoder(negative_prompt, pipe.tokenizer, pipe.text_encoder)
132
  prompt_embeds, negative_prompt_embeds = align_embeddings(prompt_embeds, negative_prompt_embeds)