from_pretrained

from_pretrained(
    repo_id=DEFAULT_REPO_ID,
    *,
    revision=None,
    token=None,
    cache_dir=None,
)

Download and load a txtcaptcha CRNN from the Hugging Face Hub.

revision accepts a branch, tag, or commit SHA. Defaults to main. Downloaded files are cached in the global huggingface_hub cache, so this is cheap after the first call.