rexthecoder commited on
Commit
5dfb7cd
·
1 Parent(s): 4f624b9

chore: fix game

Browse files
Files changed (1) hide show
  1. src/agent/tools/conversation.py +2 -2
src/agent/tools/conversation.py CHANGED
@@ -41,8 +41,8 @@ class Conversation():
41
 
42
  # convert the tokens to text, and then split the responses into the right format
43
  response = self.tokenizer.decode(history[0]).replace("<s>","").split("</s>")
44
- response = [(response[i], response[i+1]) for i in range(0, len(response), 2)] # convert to tuples of list
45
- return response
46
 
47
  # def generate(self, instruction, knowledge, dialog):
48
  # if knowledge != '':
 
41
 
42
  # convert the tokens to text, and then split the responses into the right format
43
  response = self.tokenizer.decode(history[0]).replace("<s>","").split("</s>")
44
+ #response = [(response[i], response[i+1]) for i in range(0, len(response), 2)] # convert to tuples of list
45
+ return f'{response}'
46
 
47
  # def generate(self, instruction, knowledge, dialog):
48
  # if knowledge != '':