mirror of
https://github.com/huggingface/transformers.git
synced 2025-08-01 02:31:11 +06:00
Fixed type hint for pipelines/check_task (#19150)
This commit is contained in:
parent
ece762443e
commit
6395d1227f
@ -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.
|
||||||
|
Loading…
Reference in New Issue
Block a user