Fix check for falsey inputs in run_summarization (#18155)
This commit is contained in:
@@ -515,7 +515,7 @@ def main():
|
||||
|
||||
inputs, targets = [], []
|
||||
for i in range(len(examples[text_column])):
|
||||
if examples[text_column][i] is not None and examples[summary_column][i] is not None:
|
||||
if examples[text_column][i] and examples[summary_column][i]:
|
||||
inputs.append(examples[text_column][i])
|
||||
targets.append(examples[summary_column][i])
|
||||
|
||||
|
||||
Reference in New Issue
Block a user