Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -33,7 +33,7 @@ def respond(message, history, system_message, max_tokens, temperature, top_p):
|
|
| 33 |
prompt += f"\nUser: {user_msg} output: "
|
| 34 |
if assistant_msg:
|
| 35 |
prompt += f"\nAssistant: {assistant_msg}"
|
| 36 |
-
prompt += f"\
|
| 37 |
|
| 38 |
# Tokenize the input prompt
|
| 39 |
inputs = tokenizer(prompt, return_tensors="pt", truncation=True)
|
|
|
|
| 33 |
prompt += f"\nUser: {user_msg} output: "
|
| 34 |
if assistant_msg:
|
| 35 |
prompt += f"\nAssistant: {assistant_msg}"
|
| 36 |
+
prompt += f"\n<user> input:{message} output:"
|
| 37 |
|
| 38 |
# Tokenize the input prompt
|
| 39 |
inputs = tokenizer(prompt, return_tensors="pt", truncation=True)
|