Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -39,9 +39,7 @@ def generate_(prompt, negative_prompt, control_tensor, num_steps, controlnet_con
|
|
| 39 |
@spaces.GPU
|
| 40 |
def process(input_image, prompt, negative_prompt, num_steps, controlnet_conditioning_scale, seed):
|
| 41 |
|
| 42 |
-
|
| 43 |
-
input_image = resize_image(input_image)
|
| 44 |
-
image = resize_image(image)
|
| 45 |
mask = remove_bg_from_image(image_path)
|
| 46 |
control_tensor = get_control_image_tensor(pipe.vae, image, mask)
|
| 47 |
|
|
|
|
| 39 |
@spaces.GPU
|
| 40 |
def process(input_image, prompt, negative_prompt, num_steps, controlnet_conditioning_scale, seed):
|
| 41 |
|
| 42 |
+
image = resize_image(input_image)
|
|
|
|
|
|
|
| 43 |
mask = remove_bg_from_image(image_path)
|
| 44 |
control_tensor = get_control_image_tensor(pipe.vae, image, mask)
|
| 45 |
|