Update app.py
Browse files
app.py
CHANGED
@@ -10,7 +10,7 @@ model = SamModel.from_pretrained('facebook/sam-vit-huge')
|
|
10 |
processor = SamProcessor.from_pretrained('facebook/sam-vit-huge')
|
11 |
|
12 |
|
13 |
-
def set_predictor(image):
|
14 |
"""
|
15 |
Creates a Sam predictor object based on a given image and model.
|
16 |
"""
|
|
|
10 |
processor = SamProcessor.from_pretrained('facebook/sam-vit-huge')
|
11 |
|
12 |
|
13 |
+
def set_predictor(image, request: gr.Request):
|
14 |
"""
|
15 |
Creates a Sam predictor object based on a given image and model.
|
16 |
"""
|