Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -58,8 +58,8 @@ def predict(message, history, system_prompt, temperature, max_new_tokens, top_k,
|
|
58 |
stop_tokens = [tokenizer.eos_token_id]
|
59 |
instruction = system_prompt + "\n\n"
|
60 |
for user, assistant in history:
|
61 |
-
instruction += f"
|
62 |
-
instruction += f"
|
63 |
|
64 |
print(instruction)
|
65 |
|
|
|
58 |
stop_tokens = [tokenizer.eos_token_id]
|
59 |
instruction = system_prompt + "\n\n"
|
60 |
for user, assistant in history:
|
61 |
+
instruction += f"<ο½Userο½>{user}<ο½Assistantο½>{assistant}\n"
|
62 |
+
instruction += f"<ο½Userο½>{message}<ο½Assistantο½>"
|
63 |
|
64 |
print(instruction)
|
65 |
|