Skip to content

Commit

Permalink
Update eval_visualizer.py
Browse files Browse the repository at this point in the history
  • Loading branch information
SmartManoj committed Sep 13, 2024
1 parent dc3abc3 commit ca7755f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions evaluation/eval_visualizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,8 @@
if 1:
with open(file, 'r') as f:
data = f.readlines()
ansi_color_escape = re.compile(r'\u001b\[[0-9;]*m')
ansi_color_escape = re.compile(r'\\u001b\[[0-9;]*m')
data = [ansi_color_escape.sub('', line) for line in data]
# data = [json.loads(line) for line in data][-1]
data = [json.loads(line) for line in data]
history = []
for d in data:
Expand Down

0 comments on commit ca7755f

Please sign in to comment.