Skip to content

Commit

Permalink
Remove print from parse_output
Browse files Browse the repository at this point in the history
  • Loading branch information
alvarobartt authored Dec 19, 2023
1 parent 46b5210 commit 60dbf78
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/distilabel/tasks/text_generation/self_instruct.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,6 @@ def output_args_names(self) -> List[str]:
def parse_output(self, output: str) -> Dict[str, List[str]]:
"""Parses the output of the model into the desired format."""
pattern = re.compile(r"\d+\.\s+(.*?)\n")
print(pattern.findall(output))
return {"instructions": pattern.findall(output)}

def to_argilla_dataset(self, dataset_row: Dict[str, Any]) -> "FeedbackDataset":
Expand Down

0 comments on commit 60dbf78

Please sign in to comment.