ColeGuion commited on
Commit
6c67b51
·
verified ·
1 Parent(s): 9814153

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -0
app.py CHANGED
@@ -13,6 +13,9 @@ def format_prompt(message, history):
13
  for user_prompt, bot_response in history:
14
  prompt += f"[INST] {user_prompt} [/INST]"
15
  prompt += f" {bot_response}</s> "
 
 
 
16
  prompt += f"[INST] {message} [/INST]"
17
 
18
  return prompt
 
13
  for user_prompt, bot_response in history:
14
  prompt += f"[INST] {user_prompt} [/INST]"
15
  prompt += f" {bot_response}</s> "
16
+
17
+ prompt += "[INST] Instruction [/INST] The instruction is: 'Instruction'. The answer is: Model answer</s> "
18
+ #prompt += f"[INST] Please correct the grammar in the following sentence: {message} [/INST]"
19
  prompt += f"[INST] {message} [/INST]"
20
 
21
  return prompt