Update handler.py
Browse files- 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"
|