Fix check for falsey inputs in run_summarization (#18155)

This commit is contained in:
John Giorgi 2022-07-18 00:50:32 -07:00 committed by GitHub
parent ccc0897804
commit c46d39f390
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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])