Skip to content

Commit

Permalink
Update prompt_based.py
Browse files Browse the repository at this point in the history
  • Loading branch information
VanyaBK authored Dec 5, 2023
1 parent 0802cdd commit 4665121
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions prompt2model/dataset_generator/prompt_based.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,15 +44,15 @@ def __eq__(self, other) -> bool:
self.input_col == other.input_col
and self.output_col == other.output_col
and self.explain_col == other.explain_col
) # noqa E501
) # noqa E501

def __lt__(self, other) -> bool:
"""Example less than."""
return (
self.input_col < other.input_col
or self.output_col < other.output_col
or self.explain_col < other.explain_col
) # noqa E501
) # noqa E501


class PromptBasedDatasetGenerator(DatasetGenerator):
Expand Down

0 comments on commit 4665121

Please sign in to comment.