moooji commited on
Commit
e190089
1 Parent(s): cea90f5

Update handler.py

Browse files
Files changed (1) hide show
  1. 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(out[0], skip_special_tokens=True)
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