mirror of
https://github.com/huggingface/transformers.git
synced 2025-07-31 02:02:21 +06:00
Fix leading axis added when saving through the command run
This commit is contained in:
parent
c37815f130
commit
7f74084528
@ -50,9 +50,9 @@ class RunCommand(BaseTransformersCLICommand):
|
||||
nlp, output = self._nlp, []
|
||||
for entry in self._reader:
|
||||
if self._reader.is_multi_columns:
|
||||
output += [nlp(**entry)]
|
||||
output += nlp(**entry)
|
||||
else:
|
||||
output += [nlp(entry)]
|
||||
output += nlp(entry)
|
||||
|
||||
# Saving data
|
||||
if self._nlp.binary_output:
|
||||
|
Loading…
Reference in New Issue
Block a user