"...git@developer.sourcefind.cn:chenpangpang/transformers.git" did not exist on "638c423c89a7996dd5508f228ac2943a743673de"
Unverified Commit 6395d122 authored by Fei Wang's avatar Fei Wang Committed by GitHub
Browse files

Fixed type hint for pipelines/check_task (#19150)

parent ece76244
...@@ -385,7 +385,7 @@ def get_task(model: str, use_auth_token: Optional[str] = None) -> str: ...@@ -385,7 +385,7 @@ def get_task(model: str, use_auth_token: Optional[str] = None) -> str:
return task return task
def check_task(task: str) -> Tuple[Dict, Any]: def check_task(task: str) -> Tuple[str, Dict, Any]:
""" """
Checks an incoming task string, to validate it's correct and return the default Pipeline and Model classes, and Checks an incoming task string, to validate it's correct and return the default Pipeline and Model classes, and
default models if they exist. default models if they exist.
......
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