Unverified Commit c46d39f3 authored by John Giorgi's avatar John Giorgi Committed by GitHub
Browse files

Fix check for falsey inputs in run_summarization (#18155)

parent ccc08978
......@@ -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])
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment