Spaces:
Running
Running
ciover2024
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -96,9 +96,9 @@ def resize_to_match(input_image, output_image):
|
|
96 |
|
97 |
# Function to generate the mask using Florence SAM Masking API (Replicate)
|
98 |
def generate_mask(image_path, text_prompt="clothing"):
|
99 |
-
client_sam = Client("SkalskiP/florence-sam")
|
100 |
mask_result = client_sam.predict(
|
101 |
-
mode_dropdown = "open vocabulary detection + image masks",
|
102 |
image_input=handle_file(image_path), # Provide your image path here
|
103 |
text_input=text_prompt, # Use "clothing" as the prompt
|
104 |
api_name="/process_image"
|
|
|
96 |
|
97 |
# Function to generate the mask using Florence SAM Masking API (Replicate)
|
98 |
def generate_mask(image_path, text_prompt="clothing"):
|
99 |
+
client_sam = Client("SkalskiP/florence-sam-masking")
|
100 |
mask_result = client_sam.predict(
|
101 |
+
#mode_dropdown = "open vocabulary detection + image masks",
|
102 |
image_input=handle_file(image_path), # Provide your image path here
|
103 |
text_input=text_prompt, # Use "clothing" as the prompt
|
104 |
api_name="/process_image"
|