moooji commited on
Commit
ffdcfec
·
1 Parent(s): ed9455f

Update handler.py

Browse files
Files changed (1) hide show
  1. handler.py +1 -1
handler.py CHANGED
@@ -19,7 +19,7 @@ class EndpointHandler():
19
  inputs = self.processor(image, return_tensors="pt").to(device)
20
 
21
  with torch.no_grad():
22
- outputs = model(**inputs)
23
 
24
  last_hidden_states = outputs.last_hidden_state
25
  return last_hidden_states[2].tolist()
 
19
  inputs = self.processor(image, return_tensors="pt").to(device)
20
 
21
  with torch.no_grad():
22
+ outputs = self.model(**inputs)
23
 
24
  last_hidden_states = outputs.last_hidden_state
25
  return last_hidden_states[2].tolist()