Update app.py
Browse files
app.py
CHANGED
@@ -179,6 +179,8 @@ def respond(
|
|
179 |
role= qq['role']
|
180 |
content= qq['content']
|
181 |
instruction+= f'<|im_start|>{role}<|im_sep|>\n{content}\n<|im_end|>\n'
|
|
|
|
|
182 |
|
183 |
# for user, assistant in history:
|
184 |
# instruction += f'<|im_start|>user\n{user}\n<|im_end|>\n<|im_start|>assistant\n{assistant}\n<|im_end|>\n'
|
|
|
179 |
role= qq['role']
|
180 |
content= qq['content']
|
181 |
instruction+= f'<|im_start|>{role}<|im_sep|>\n{content}\n<|im_end|>\n'
|
182 |
+
|
183 |
+
instruction+='<|im_start|>assistant<|im_sep|>\n'
|
184 |
|
185 |
# for user, assistant in history:
|
186 |
# instruction += f'<|im_start|>user\n{user}\n<|im_end|>\n<|im_start|>assistant\n{assistant}\n<|im_end|>\n'
|