Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -120,9 +120,6 @@ examples = [
|
|
120 |
],
|
121 |
]
|
122 |
|
123 |
-
def segment(input_image):
|
124 |
-
return remove(src_image_pil)
|
125 |
-
|
126 |
def run_for_examples(style_image, source_image, prompt, scale, control_scale):
|
127 |
return create_image(
|
128 |
image_pil=style_image,
|
@@ -231,6 +228,9 @@ def pil_to_cv2(image_pil):
|
|
231 |
image_cv2 = cv2.cvtColor(image_np, cv2.COLOR_RGB2BGR)
|
232 |
return image_cv2
|
233 |
|
|
|
|
|
|
|
234 |
|
235 |
# Description
|
236 |
title = r"""
|
|
|
120 |
],
|
121 |
]
|
122 |
|
|
|
|
|
|
|
123 |
def run_for_examples(style_image, source_image, prompt, scale, control_scale):
|
124 |
return create_image(
|
125 |
image_pil=style_image,
|
|
|
228 |
image_cv2 = cv2.cvtColor(image_np, cv2.COLOR_RGB2BGR)
|
229 |
return image_cv2
|
230 |
|
231 |
+
def segment(image_pil):
|
232 |
+
return remove(image_pil)
|
233 |
+
|
234 |
|
235 |
# Description
|
236 |
title = r"""
|