mirror of
https://github.com/huggingface/transformers.git
synced 2025-07-31 02:02:21 +06:00
Fix check for falsey inputs in run_summarization (#18155)
This commit is contained in:
parent
ccc0897804
commit
c46d39f390
@ -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])
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user