TalHach61 commited on
Commit
1801f11
·
verified ·
1 Parent(s): b388c40

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -49,7 +49,7 @@ def resize_image(image):
49
 
50
 
51
  @spaces.GPU
52
- def generate_(prompt, negative_prompt, grayscale_image, num_steps, controlnet_conditioning_scale, seed):
53
  generator = torch.Generator("cuda").manual_seed(seed)
54
  images = pipe(
55
  prompt, negative_prompt=negative_prompt, image=grayscale_image, num_inference_steps=num_steps, controlnet_conditioning_scale=float(controlnet_conditioning_scale),
@@ -67,7 +67,7 @@ def process(input_image, prompt, negative_prompt, num_steps, controlnet_conditio
67
 
68
  images = generate_(prompt, negative_prompt, pose_image, num_steps, controlnet_conditioning_scale, seed)
69
 
70
- return [grayscale_image,images[0]]
71
 
72
  block = gr.Blocks().queue()
73
 
 
49
 
50
 
51
  @spaces.GPU
52
+ def generate_(prompt, negative_prompt, pose_image, num_steps, controlnet_conditioning_scale, seed):
53
  generator = torch.Generator("cuda").manual_seed(seed)
54
  images = pipe(
55
  prompt, negative_prompt=negative_prompt, image=grayscale_image, num_inference_steps=num_steps, controlnet_conditioning_scale=float(controlnet_conditioning_scale),
 
67
 
68
  images = generate_(prompt, negative_prompt, pose_image, num_steps, controlnet_conditioning_scale, seed)
69
 
70
+ return [pose_image,images[0]]
71
 
72
  block = gr.Blocks().queue()
73