sarang-shrivastava commited on
Commit
cd7fc31
1 Parent(s): 9a14462

Update handler

Browse files
Files changed (1) hide show
  1. handler.py +1 -1
handler.py CHANGED
@@ -83,7 +83,7 @@ class EndpointHandler():
83
  # question = "how many dogs are in the picture?"
84
  # inputs = self.processor(raw_image, question, return_tensors="pt").to("cuda")
85
 
86
- inputs = self.processor([raw_image]*batch_size, return_tensors="pt").to("cuda")
87
 
88
  out = self.model.generate(**inputs)
89
 
 
83
  # question = "how many dogs are in the picture?"
84
  # inputs = self.processor(raw_image, question, return_tensors="pt").to("cuda")
85
 
86
+ inputs = self.processor([raw_image]*batch_size, return_tensors="pt").to("cuda", torch.float16)
87
 
88
  out = self.model.generate(**inputs)
89