Spaces:
Running
Running
Update app.py
Browse files
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
|