Skip to content

Commit

Permalink
Merge pull request #109 from vyomakesh09/patch-2
Browse files Browse the repository at this point in the history
Update zephyr.py
  • Loading branch information
kyegomez committed Nov 8, 2023
2 parents 9aa4084 + 73b549b commit e0c712b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions swarms/models/zephyr.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def __init__(
self.messages = [
{
"role": "system",
"content": f"{self.systen_prompt}\n\nUser:",
"content": f"{self.system_prompt}\n\nUser:",
},
{
"role": "user",
Expand All @@ -71,8 +71,8 @@ def __call__(self, task: str):
add_generation_prompt=self.add_generation_prompt,
)
outputs = self.pipe(prompt) # max_new_token=self.max_new_tokens)
print(outputs[0])["generated_text"]

print(outputs[0]["generated_text"])
def chat(self, message: str):
"""
Adds a user message to the conversation and generates a chatbot response.
Expand Down

0 comments on commit e0c712b

Please sign in to comment.