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
ceae85ad
Commit
ceae85ad
authored
Dec 20, 2019
by
thomwolf
Browse files
fix mc loading
parent
71883b6d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
transformers/pipelines.py
transformers/pipelines.py
+4
-0
No files found.
transformers/pipelines.py
View file @
ceae85ad
...
...
@@ -891,6 +891,10 @@ def pipeline(task: str, model: Optional = None,
if
isinstance
(
config
,
str
):
config
=
AutoConfig
.
from_pretrained
(
config
)
# Instantiate modelcard if needed
if
isinstance
(
modelcard
,
str
):
modelcard
=
ModelCard
.
from_pretrained
(
modelcard
)
# Instantiate model if needed
if
isinstance
(
model
,
str
):
# Handle transparent TF/PT model conversion
...
...
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