Skip to content

Commit

Permalink
Update src/deepsparse/transformers/pipelines/text_generation.py
Browse files Browse the repository at this point in the history
Co-authored-by: Rahul Tuli <rahul@neuralmagic.com>
  • Loading branch information
dsikka and rahul-tuli committed Sep 21, 2023
1 parent 3a18e5f commit b833a22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/deepsparse/transformers/pipelines/text_generation.py
Original file line number Diff line number Diff line change
Expand Up @@ -491,7 +491,7 @@ def process_inputs(self, inputs: TextGenerationInput) -> List[numpy.ndarray]:
def _create_generated_text_output(
self,
sequence: str,
finish_reason: FinishReason = None,
finish_reason: Optional[FinishReason] = None,
logits: Optional[numpy.array] = None,
):
if finish_reason:
Expand Down

0 comments on commit b833a22

Please sign in to comment.