pdich2085 commited on
Commit
a7af85b
·
1 Parent(s): 55095dc

Update handler.py

Browse files
Files changed (1) hide show
  1. handler.py +1 -1
handler.py CHANGED
@@ -7,7 +7,7 @@ from transformers import BlipForConditionalGeneration, BlipProcessor
7
  device = torch.device('cuda' if torch.cuda.is_available() else 'cpu')
8
 
9
  class EndpointHandler():
10
- def __init__(self):
11
  self.processor = BlipProcessor.from_pretrained("Salesforce/blip-image-captioning-large")
12
  self.model = BlipForConditionalGeneration.from_pretrained(
13
  "Salesforce/blip-image-captioning-large"
 
7
  device = torch.device('cuda' if torch.cuda.is_available() else 'cpu')
8
 
9
  class EndpointHandler():
10
+ def __init__(self, path=""):
11
  self.processor = BlipProcessor.from_pretrained("Salesforce/blip-image-captioning-large")
12
  self.model = BlipForConditionalGeneration.from_pretrained(
13
  "Salesforce/blip-image-captioning-large"