Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -43,9 +43,9 @@ def format_prompt(message, history, cust_p):
|
|
43 |
if history:
|
44 |
#<start_of_turn>userHow does the brain work?<end_of_turn><start_of_turn>model
|
45 |
for user_prompt, bot_response in history:
|
46 |
-
prompt += f"{user_prompt}
|
47 |
#print(prompt)
|
48 |
-
prompt += f"{bot_response}
|
49 |
#print(prompt)
|
50 |
#prompt += f"<start_of_turn>user\n{message}<end_of_turn>\n<start_of_turn>model\n"
|
51 |
prompt+=cust_p.replace("USER_INPUT",message)
|
|
|
43 |
if history:
|
44 |
#<start_of_turn>userHow does the brain work?<end_of_turn><start_of_turn>model
|
45 |
for user_prompt, bot_response in history:
|
46 |
+
prompt += f"<start_of_turn>user{user_prompt}<end_of_turn>"
|
47 |
#print(prompt)
|
48 |
+
prompt += f"<start_of_turn>model\n{bot_response}<end_of_turn>"
|
49 |
#print(prompt)
|
50 |
#prompt += f"<start_of_turn>user\n{message}<end_of_turn>\n<start_of_turn>model\n"
|
51 |
prompt+=cust_p.replace("USER_INPUT",message)
|