vmoras commited on
Commit
0126647
·
1 Parent(s): 9220bc3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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
  """