Omnibus commited on
Commit
0ead5c5
·
verified ·
1 Parent(s): 53848ee

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -2
app.py CHANGED
@@ -23,9 +23,12 @@ def format_prompt(message, history):
23
  if history:
24
  #<start_of_turn>userHow does the brain work?<end_of_turn><start_of_turn>model
25
  for user_prompt, bot_response in history:
26
- prompt += f"<start_of_turn>user{user_prompt}<end_of_turn>"
27
- prompt += f"<start_of_turn>model{bot_response}"
 
 
28
  prompt += f"<start_of_turn>user{message}<end_of_turn><start_of_turn>model"
 
29
  return prompt
30
 
31
 
 
23
  if history:
24
  #<start_of_turn>userHow does the brain work?<end_of_turn><start_of_turn>model
25
  for user_prompt, bot_response in history:
26
+ prompt += f"{user_prompt}"
27
+ print(prompt)
28
+ prompt += f"{bot_response}"
29
+ print(prompt)
30
  prompt += f"<start_of_turn>user{message}<end_of_turn><start_of_turn>model"
31
+ print(prompt)
32
  return prompt
33
 
34