Skip to content

Commit

Permalink
fix: linter format (#4832)
Browse files Browse the repository at this point in the history
GitOrigin-RevId: c5195206f02b13286677421bbe8c27f8df6bebc9
  • Loading branch information
berkecanrizai authored and Manul from Pathway committed Oct 20, 2023
1 parent 760b946 commit a65e20e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion llm_app/model_wrappers/huggingface_wrapper/pipelines.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,9 @@ def __call__(self, text, **kwargs):
},
{"role": "user", "content": text},
]
prompt = self.tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
prompt = self.tokenizer.apply_chat_template(
messages, tokenize=False, add_generation_prompt=True
)

output = self.pipeline(prompt, max_new_tokens=max_new_tokens, **kwargs)
return output[0]["generated_text"]

0 comments on commit a65e20e

Please sign in to comment.