Update handler.py
Browse files- handler.py +1 -1
handler.py
CHANGED
@@ -19,5 +19,5 @@ class EndpointHandler():
|
|
19 |
inputs = self.processor(image, inputs['question'], return_tensors="pt").to(device)
|
20 |
outputs = self.model.generate(**inputs)
|
21 |
|
22 |
-
return self.processor.decode(
|
23 |
|
|
|
19 |
inputs = self.processor(image, inputs['question'], return_tensors="pt").to(device)
|
20 |
outputs = self.model.generate(**inputs)
|
21 |
|
22 |
+
return self.processor.decode(outputs[0], skip_special_tokens=True)
|
23 |
|