nanaj's picture
Upload folder using huggingface_hub (part 7)
e1a9145 verified
Raw
History Blame Contribute Delete
261 Bytes
def get_authorization_scheme_param(
authorization_header_value: str | None,
) -> tuple[str, str]:
if not authorization_header_value:
return "", ""
scheme, _, param = authorization_header_value.partition(" ")
return scheme, param.strip()