Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -20,7 +20,7 @@ def useZephyr(prompt):
|
|
| 20 |
"role": "system",
|
| 21 |
"content": "you are a chatbot who always responds politely and in the shortest possible way",
|
| 22 |
},
|
| 23 |
-
{"role": "user", "content": prompt},
|
| 24 |
]
|
| 25 |
# https://huggingface.co/docs/transformers/main/en/chat_templating
|
| 26 |
prompt = pipe.tokenizer.apply_chat_template(
|
|
|
|
| 20 |
"role": "system",
|
| 21 |
"content": "you are a chatbot who always responds politely and in the shortest possible way",
|
| 22 |
},
|
| 23 |
+
{"role": "user", "content": "{prompt}"},
|
| 24 |
]
|
| 25 |
# https://huggingface.co/docs/transformers/main/en/chat_templating
|
| 26 |
prompt = pipe.tokenizer.apply_chat_template(
|