Skip to content

Commit

Permalink
ft_handler fix, remove unrequired indexing (deepjavalibrary#736)
Browse files Browse the repository at this point in the history
  • Loading branch information
rohithkrn authored May 22, 2023
1 parent eaa5394 commit 3d733b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion engines/python/setup/djl_python/fastertransformer.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ def inference(self, inputs: Input):
batch_size=len(input_text),
output_len=output_len,
beam_width=beam_width,
**parameters)[0]
**parameters)
result = [{"generated_text": s} for s in result]
outputs = Output().add(result)
except Exception as e:
Expand Down

0 comments on commit 3d733b0

Please sign in to comment.