"vscode:/vscode.git/clone" did not exist on "eae6d8d14f1d25d62c3fe9e7e410607bbaf69787"
Commit ceae85ad authored by thomwolf's avatar thomwolf
Browse files

fix mc loading

parent 71883b6d
......@@ -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
......
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