Skip to content

Commit

Permalink
Update prompt2model/dataset_retriever/description_dataset_retriever.py
Browse files Browse the repository at this point in the history
Co-authored-by: Saumya Gandhi <gandhisaumya8@gmail.com>
  • Loading branch information
ritugala and saum7800 authored Apr 10, 2024
1 parent 15a61eb commit 45704de
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,7 @@ def make_dataset_from_samples(
columns, "input_col" and "output_col".
"""
updated_inputs, updated_outputs = [], []
if len(inputs) < 0 or len(inputs) != len(outputs):
if len(inputs) <= 0 or len(inputs) != len(outputs):
logger.error("Length of inputs and outputs must be >0 and equal.")
else:
for i, o in zip(inputs, outputs):
Expand Down

0 comments on commit 45704de

Please sign in to comment.