Skip to content

Commit

Permalink
fix syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
WeetHet committed Sep 24, 2024
1 parent b84f182 commit f417a87
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions verified_cogen/runners/chain_of_thought/step.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,15 @@ def __init__(self, data: str):
appending_to = current_question
for i, line in enumerate(data_lines):
if line.startswith("===== QUESTION_EXAMPLE ====="):
self.substeps.append(Substep("\n".join(current_question), "\n".join(current_answer)))
self.substeps.append(
Substep("\n".join(current_question), "\n".join(current_answer))
)
current_question, current_answer = [], []
appending_to = current_question
elif line.startswith("===== ANSWER =====")
elif line.startswith("===== ANSWER ====="):
appending_to = current_answer
elif line.startswith("===== QUESTION ====="):
self.question = "\n".join(data_lines[i + 1:])
self.question = "\n".join(data_lines[i + 1 :])
break
else:
appending_to.append(line)
Expand Down

0 comments on commit f417a87

Please sign in to comment.