Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
transformers
Commits
7f740845
Commit
7f740845
authored
Dec 20, 2019
by
Morgan Funtowicz
Browse files
Fix leading axis added when saving through the command run
parent
c37815f1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
transformers/commands/run.py
transformers/commands/run.py
+2
-2
No files found.
transformers/commands/run.py
View file @
7f740845
...
...
@@ -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
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment