inu-ai commited on
Commit
8035c99
1 Parent(s): 640e70f

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +2 -2
README.md CHANGED
@@ -65,8 +65,8 @@ def generate_response(role_instruction, conversation_history, new_conversation):
65
  if n + MAX_ASSISTANT_LENGTH <= MAX_INPUT_LENGTH:
66
  break
67
  else:
68
- conversation_history.pop()
69
- conversation_history.pop()
70
 
71
  with torch.no_grad():
72
  output_ids = model.generate(
 
65
  if n + MAX_ASSISTANT_LENGTH <= MAX_INPUT_LENGTH:
66
  break
67
  else:
68
+ conversation_history.pop(0)
69
+ conversation_history.pop(0)
70
 
71
  with torch.no_grad():
72
  output_ids = model.generate(