Skip to main content

hugging_face_repo

Function hugging_face_repo 

Source
pub fn hugging_face_repo(raw: &str) -> Option<String>
Expand description

The org/name repo a Hugging Face reference points at, or None if raw is not a plausible HF repo. A multi-segment path is only accepted from an explicit hf.co/huggingface.co link whose third segment is empty or a known HF subpath.