Spaces:
Runtime error
Runtime error
Revert "debug"
Browse filesThis reverts commit e17a57fd9e9da65e9a7d307fb754fb185de72551.
app.py
CHANGED
@@ -121,13 +121,11 @@ def process(
|
|
121 |
return None, None
|
122 |
|
123 |
if is_image_empty(mask):
|
124 |
-
print("RUNNING MASKING")
|
125 |
mask = client.predict(
|
126 |
image_input=handle_file(image_path),
|
127 |
text_input=masking_prompt_text,
|
128 |
api_name="/process_image")
|
129 |
mask = Image.open(mask)
|
130 |
-
print("MASKING COMPLETED")
|
131 |
|
132 |
mask = mask.filter(ImageFilter.GaussianBlur(radius=5))
|
133 |
width, height = resize_image_dimensions(original_resolution_wh=image.size)
|
|
|
121 |
return None, None
|
122 |
|
123 |
if is_image_empty(mask):
|
|
|
124 |
mask = client.predict(
|
125 |
image_input=handle_file(image_path),
|
126 |
text_input=masking_prompt_text,
|
127 |
api_name="/process_image")
|
128 |
mask = Image.open(mask)
|
|
|
129 |
|
130 |
mask = mask.filter(ImageFilter.GaussianBlur(radius=5))
|
131 |
width, height = resize_image_dimensions(original_resolution_wh=image.size)
|