Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -73,7 +73,7 @@ def process_images_florence_lama(image, model_choice):
|
|
73 |
image_cv = cv2.cvtColor(np.array(image), cv2.COLOR_RGB2BGR)
|
74 |
|
75 |
# Run Florence to get mask
|
76 |
-
text_input = 'watermark
|
77 |
task_prompt = '<REGION_TO_SEGMENTATION>'
|
78 |
image_pil = Image.fromarray(image_cv) # Convert array to PIL Image
|
79 |
inputs = florence_processor(text=task_prompt + text_input, images=image_pil, return_tensors="pt").to("cuda")
|
|
|
73 |
image_cv = cv2.cvtColor(np.array(image), cv2.COLOR_RGB2BGR)
|
74 |
|
75 |
# Run Florence to get mask
|
76 |
+
text_input = 'watermark'
|
77 |
task_prompt = '<REGION_TO_SEGMENTATION>'
|
78 |
image_pil = Image.fromarray(image_cv) # Convert array to PIL Image
|
79 |
inputs = florence_processor(text=task_prompt + text_input, images=image_pil, return_tensors="pt").to("cuda")
|