Merge pull request #109 from vyomakesh09/patch-2

Update zephyr.py

Former-commit-id: e0c712b19b
pull/88/head
Eternal Reclaimer 1 year ago committed by GitHub
commit c77ed563d5

@ -55,7 +55,7 @@ class Zephyr:
self.messages = [
{
"role": "system",
"content": f"{self.systen_prompt}\n\nUser:",
"content": f"{self.system_prompt}\n\nUser:",
},
{
"role": "user",
@ -71,8 +71,8 @@ class Zephyr:
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.

Loading…
Cancel
Save