Skip to content

Commit

Permalink
Update aiserver.py
Browse files Browse the repository at this point in the history
  • Loading branch information
YellowRoseCx authored Apr 22, 2023
1 parent 9fd1877 commit 25f8d5f
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions aiserver.py
Original file line number Diff line number Diff line change
Expand Up @@ -2472,14 +2472,11 @@ def __call__(

data = [tokenizer.decode(x) for x in input_ids]
null_character = tokenizer.encode(chr(0))[0]

if 'completed' not in self.__dict__:
self.completed = [False]*len(input_ids)

for i in range(len(input_ids)):
if data[i][-6:] == " > You":
self.completed[i] = True

if all(self.completed):
del self.completed
return True
Expand Down

0 comments on commit 25f8d5f

Please sign in to comment.