shhossain commited on
Commit
267bbc9
1 Parent(s): eb7ffba

Update sentpipeline.py

Browse files
Files changed (1) hide show
  1. sentpipeline.py +1 -1
sentpipeline.py CHANGED
@@ -14,7 +14,7 @@ class SentimentModelPipe(Pipeline):
14
  return self.smodel.encode(inputs, convert_to_tensor=True)
15
 
16
  def postprocess(self, outputs):
17
- return outputs.argmax(1).item()
18
 
19
  def _forward(self, tensor):
20
  with torch.no_grad():
 
14
  return self.smodel.encode(inputs, convert_to_tensor=True)
15
 
16
  def postprocess(self, outputs):
17
+ return outputs
18
 
19
  def _forward(self, tensor):
20
  with torch.no_grad():