rphrp1985 commited on
Commit
6b6ca97
·
verified ·
1 Parent(s): 4935248

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
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'