Lifeinhockey commited on
Commit
bdedce5
·
verified ·
1 Parent(s): 96f4a44

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -83,7 +83,7 @@ def infer(
83
  ):
84
  generator = torch.Generator(device).manual_seed(seed)
85
 
86
- if use_control_net and control_image and source_image is not None:
87
  # Используем ControlNet
88
  image = pipe_controlnet(
89
  prompt=prompt,
 
83
  ):
84
  generator = torch.Generator(device).manual_seed(seed)
85
 
86
+ if use_control_net and control_image is not None and source_image is not None:
87
  # Используем ControlNet
88
  image = pipe_controlnet(
89
  prompt=prompt,