Commit
•
db4cf02
1
Parent(s):
9d9b5e2
Update handler.py
Browse files- handler.py +1 -1
handler.py
CHANGED
@@ -46,7 +46,7 @@ class EndpointHandler():
|
|
46 |
parameters = data.pop("parameters", {})
|
47 |
|
48 |
|
49 |
-
image = Image.open(BytesIO(inputs
|
50 |
image = self.transform(image).unsqueeze(0).to(device)
|
51 |
with torch.no_grad():
|
52 |
caption = self.model.generate(
|
|
|
46 |
parameters = data.pop("parameters", {})
|
47 |
|
48 |
|
49 |
+
image = Image.open(BytesIO(inputs))
|
50 |
image = self.transform(image).unsqueeze(0).to(device)
|
51 |
with torch.no_grad():
|
52 |
caption = self.model.generate(
|