Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -49,7 +49,7 @@ def resize_image(image):
|
|
49 |
|
50 |
|
51 |
@spaces.GPU
|
52 |
-
def generate_(prompt, negative_prompt,
|
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 [
|
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 |
|