Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -20,8 +20,8 @@ def generate(
|
|
20 |
"role": "system",
|
21 |
"content": system_input,
|
22 |
},
|
23 |
-
{"role": "user", "content": "
|
24 |
-
{"role": "assistant", "content": "
|
25 |
{"role": "user", "content": user_input},
|
26 |
]
|
27 |
prompt = pipe.tokenizer.apply_chat_template(message_template, tokenize=False, add_generation_prompt=True)
|
|
|
20 |
"role": "system",
|
21 |
"content": system_input,
|
22 |
},
|
23 |
+
{"role": "user", "content": "Hi!"},
|
24 |
+
{"role": "assistant", "content": "Hello there. How can I assist you today?"},
|
25 |
{"role": "user", "content": user_input},
|
26 |
]
|
27 |
prompt = pipe.tokenizer.apply_chat_template(message_template, tokenize=False, add_generation_prompt=True)
|