import{s as yo,o as Mo,n as Ke}from"../chunks/scheduler.6062bdaf.js";import{S as To,i as vo,g as s,s as n,r as m,A as xo,h as d,f as t,c as a,j as ee,u as _,x as u,k as oe,y as i,a as r,v as b,d as w,t as y,w as M}from"../chunks/index.4bca734e.js";import{T as Uo}from"../chunks/Tip.b9ac1f03.js";import{D as we}from"../chunks/Docstring.81ba5e3c.js";import{C as wo}from"../chunks/CodeBlock.fa01571c.js";import{E as bo}from"../chunks/ExampleCodeBlock.30e7542f.js";import{H as O,E as $o}from"../chunks/EditOnGithub.74ab2baa.js";function Jo(D){let l,U;return l=new wo({props:{code:"JTVCJTIwJTIwOTYlNUQlMjAlMjAuJTBBJUUyJTk0JTk0JUUyJTk0JTgwJUUyJTk0JTgwJTIwJTVCJTIwMTYwJTVEJTIwJTIwbW9kZWxzLS1qdWxpZW4tYy0tRXNwZXJCRVJUby1zbWFsbCUwQSUyMCUyMCUyMCUyMCVFMiU5NCU5QyVFMiU5NCU4MCVFMiU5NCU4MCUyMCU1QiUyMDE2MCU1RCUyMCUyMGJsb2JzJTBBJTIwJTIwJTIwJTIwJUUyJTk0JTgyJTIwJTIwJTIwJUUyJTk0JTlDJUUyJTk0JTgwJUUyJTk0JTgwJTIwJTVCMzIxTSU1RCUyMCUyMDQwMzQ1MGUyMzRkNjU5NDNhN2RjZjdlMDVhNzcxY2UzYzkyZmFhODRkZDA3ZGI0YWMyMGY1OTIwMzdhMWU0YmQlMEElMjAlMjAlMjAlMjAlRTIlOTQlODIlMjAlMjAlMjAlRTIlOTQlOUMlRTIlOTQlODAlRTIlOTQlODAlMjAlNUIlMjAzOTglNUQlMjAlMjA3Y2IxOGRjOWJhZmJmY2Y3NDYyOWE0Yjc2MGFmMWIxNjA5NTdhODNlJTBBJTIwJTIwJTIwJTIwJUUyJTk0JTgyJTIwJTIwJTIwJUUyJTk0JTk0JUUyJTk0JTgwJUUyJTk0JTgwJTIwJTVCMS40SyU1RCUyMCUyMGQ3ZWRmNmJkMmE2ODFmYjAxNzVmNzczNTI5OTgzMWVlMWIyMmI4MTIlMEElMjAlMjAlMjAlMjAlRTIlOTQlOUMlRTIlOTQlODAlRTIlOTQlODAlMjAlNUIlMjAlMjA5NiU1RCUyMCUyMHJlZnMlMEElMjAlMjAlMjAlMjAlRTIlOTQlODIlMjAlMjAlMjAlRTIlOTQlOTQlRTIlOTQlODAlRTIlOTQlODAlMjAlNUIlMjAlMjA0MCU1RCUyMCUyMG1haW4lMEElMjAlMjAlMjAlMjAlRTIlOTQlOTQlRTIlOTQlODAlRTIlOTQlODAlMjAlNUIlMjAxMjglNUQlMjAlMjBzbmFwc2hvdHMlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlRTIlOTQlOUMlRTIlOTQlODAlRTIlOTQlODAlMjAlNUIlMjAxMjglNUQlMjAlMjAyNDM5ZjYwZWYzM2EwZDQ2ZDg1ZGE1MDAxZDUyYWVkYTViMDBjZTlmJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJUUyJTk0JTgyJTIwJTIwJTIwJUUyJTk0JTlDJUUyJTk0JTgwJUUyJTk0JTgwJTIwJTVCJTIwJTIwNTIlNUQlMjAlMjBSRUFETUUubWQlMjAtJTNFJTIwLi4lMkYuLiUyRmJsb2JzJTJGZDdlZGY2YmQyYTY4MWZiMDE3NWY3NzM1Mjk5ODMxZWUxYjIyYjgxMiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCVFMiU5NCU4MiUyMCUyMCUyMCVFMiU5NCU5NCVFMiU5NCU4MCVFMiU5NCU4MCUyMCU1QiUyMCUyMDc2JTVEJTIwJTIwcHl0b3JjaF9tb2RlbC5iaW4lMjAtJTNFJTIwLi4lMkYuLiUyRmJsb2JzJTJGNDAzNDUwZTIzNGQ2NTk0M2E3ZGNmN2UwNWE3NzFjZTNjOTJmYWE4NGRkMDdkYjRhYzIwZjU5MjAzN2ExZTRiZCUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCVFMiU5NCU5NCVFMiU5NCU4MCVFMiU5NCU4MCUyMCU1QiUyMDEyOCU1RCUyMCUyMGJiYzc3YzgxMzJhZjFjYzVjZjY3OGRhM2YxZGRmMmRlNDM2MDZkNDglMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlRTIlOTQlOUMlRTIlOTQlODAlRTIlOTQlODAlMjAlNUIlMjAlMjA1MiU1RCUyMCUyMFJFQURNRS5tZCUyMC0lM0UlMjAuLiUyRi4uJTJGYmxvYnMlMkY3Y2IxOGRjOWJhZmJmY2Y3NDYyOWE0Yjc2MGFmMWIxNjA5NTdhODNlJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJUUyJTk0JTk0JUUyJTk0JTgwJUUyJTk0JTgwJTIwJTVCJTIwJTIwNzYlNUQlMjAlMjBweXRvcmNoX21vZGVsLmJpbiUyMC0lM0UlMjAuLiUyRi4uJTJGYmxvYnMlMkY0MDM0NTBlMjM0ZDY1OTQzYTdkY2Y3ZTA1YTc3MWNlM2M5MmZhYTg0ZGQwN2RiNGFjMjBmNTkyMDM3YTFlNGJk",highlighted:`<span class="hljs-selector-attr">[  96]</span>  .
└── <span class="hljs-selector-attr">[ 160]</span>  models<span class="hljs-attr">--julien-c--EsperBERTo-small</span>
    ├── <span class="hljs-selector-attr">[ 160]</span>  blobs
    │   ├── <span class="hljs-selector-attr">[321M]</span>  <span class="hljs-number">403450</span>e234d65943a7dcf7e05a771ce3c92faa84dd07db4ac20f592037a1e4bd
    │   ├── <span class="hljs-selector-attr">[ 398]</span>  <span class="hljs-number">7</span>cb18dc9bafbfcf74629a4b760af1b160957a83e
    │   └── <span class="hljs-selector-attr">[1.4K]</span>  d7edf6bd2a681fb0175f7735299831ee1b22b812
    ├── <span class="hljs-selector-attr">[  96]</span>  refs
    │   └── <span class="hljs-selector-attr">[  40]</span>  <span class="hljs-selector-tag">main</span>
    └── <span class="hljs-selector-attr">[ 128]</span>  snapshots
        ├── <span class="hljs-selector-attr">[ 128]</span>  <span class="hljs-number">2439</span>f60ef33a0d46d85da5001d52aeda5b00ce9f
        │   ├── <span class="hljs-selector-attr">[  52]</span>  README<span class="hljs-selector-class">.md</span> -&gt; ../../blobs/d7edf6bd2a681fb0175f7735299831ee1b22b812
        │   └── <span class="hljs-selector-attr">[  76]</span>  pytorch_model<span class="hljs-selector-class">.bin</span> -&gt; ../../blobs/<span class="hljs-number">403450</span>e234d65943a7dcf7e05a771ce3c92faa84dd07db4ac20f592037a1e4bd
        └── <span class="hljs-selector-attr">[ 128]</span>  bbc77c8132af1cc5cf678da3f1ddf2de43606d48
            ├── <span class="hljs-selector-attr">[  52]</span>  README<span class="hljs-selector-class">.md</span> -&gt; ../../blobs/<span class="hljs-number">7</span>cb18dc9bafbfcf74629a4b760af1b160957a83e
            └── <span class="hljs-selector-attr">[  76]</span>  pytorch_model<span class="hljs-selector-class">.bin</span> -&gt; ../../blobs/<span class="hljs-number">403450</span>e234d65943a7dcf7e05a771ce3c92faa84dd07db4ac20f592037a1e4bd`,wrap:!1}}),{c(){m(l.$$.fragment)},l(c){_(l.$$.fragment,c)},m(c,f){b(l,c,f),U=!0},p:Ke,i(c){U||(w(l.$$.fragment,c),U=!0)},o(c){y(l.$$.fragment,c),U=!1},d(c){M(l,c)}}}function jo(D){let l,U="Example:",c,f,$;return f=new wo({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMGhmX2h1Yl91cmwlMEElMEFoZl9odWJfdXJsKCUwQSUyMCUyMCUyMCUyMHJlcG9faWQlM0QlMjJqdWxpZW4tYyUyRkVzcGVyQkVSVG8tc21hbGwlMjIlMkMlMjBmaWxlbmFtZSUzRCUyMnB5dG9yY2hfbW9kZWwuYmluJTIyJTBBKQ==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> hf_hub_url

<span class="hljs-meta">&gt;&gt;&gt; </span>hf_hub_url(
<span class="hljs-meta">... </span>    repo_id=<span class="hljs-string">&quot;julien-c/EsperBERTo-small&quot;</span>, filename=<span class="hljs-string">&quot;pytorch_model.bin&quot;</span>
<span class="hljs-meta">... </span>)
<span class="hljs-string">&#x27;https://huggingface.co/julien-c/EsperBERTo-small/resolve/main/pytorch_model.bin&#x27;</span>`,wrap:!1}}),{c(){l=s("p"),l.textContent=U,c=n(),m(f.$$.fragment)},l(g){l=d(g,"P",{"data-svelte-h":!0}),u(l)!=="svelte-11lpom8"&&(l.textContent=U),c=a(g),_(f.$$.fragment,g)},m(g,T){r(g,l,T),r(g,c,T),b(f,g,T),$=!0},p:Ke,i(g){$||(w(f.$$.fragment,g),$=!0)},o(g){y(f.$$.fragment,g),$=!1},d(g){g&&(t(l),t(c)),M(f,g)}}}function No(D){let l,U="Notes:",c,f,$=`Cloudfront is replicated over the globe so downloads are way faster for
the end user (and it also lowers our bandwidth costs).`,g,T,z=`Cloudfront aggressively caches files by default (default TTL is 24
hours), however this is not an issue here because we implement a
git-based versioning system on huggingface.co, which means that we store
the files on S3/Cloudfront in a content-addressable way (i.e., the file
name is its hash). Using content-addressable filenames means cache can’t
ever be stale.`,C,I,p=`In terms of client-side caching from this library, we base our caching
on the objects’ entity tag (<code>ETag</code>), which is an identifier of a
specific version of a resource [1]_. An object’s ETag is: its git-sha1
if stored in git, or its sha256 if stored in git-lfs.`;return{c(){l=s("p"),l.textContent=U,c=n(),f=s("p"),f.textContent=$,g=n(),T=s("p"),T.textContent=z,C=n(),I=s("p"),I.innerHTML=p},l(h){l=d(h,"P",{"data-svelte-h":!0}),u(l)!=="svelte-1biq3pv"&&(l.textContent=U),c=a(h),f=d(h,"P",{"data-svelte-h":!0}),u(f)!=="svelte-1jvra57"&&(f.textContent=$),g=a(h),T=d(h,"P",{"data-svelte-h":!0}),u(T)!=="svelte-1937cx5"&&(T.textContent=z),C=a(h),I=d(h,"P",{"data-svelte-h":!0}),u(I)!=="svelte-9bitld"&&(I.innerHTML=p)},m(h,E){r(h,l,E),r(h,c,E),r(h,f,E),r(h,g,E),r(h,T,E),r(h,C,E),r(h,I,E)},p:Ke,d(h){h&&(t(l),t(c),t(f),t(g),t(T),t(C),t(I))}}}function Co(D){let l,U,c,f,$,g,T,z,C,I,p,h,E,te,eo="Download a given file if it’s not already present in the local cache.",De,ne,oo="The new cache file layout looks like this:",Re,ae,to=`<li>The cache directory contains one subfolder per repo_id (namespaced by repo type)</li> <li>inside each repo folder:<ul><li>refs is a list of the latest known revision =&gt; commit_hash pairs</li> <li>blobs contains the actual file blobs (identified by their git-sha or sha256, depending on
whether they’re LFS files or not)</li> <li>snapshots contains one subfolder per commit, each “commit” contains the subset of the files
that have been resolved at that particular commit. Each filename is a symlink to the blob
at that particular commit.</li></ul></li>`,Fe,R,Ye,re,no=`If <code>local_dir</code> is provided, the file structure from the repo will be replicated in this location. When using this
option, the <code>cache_dir</code> will not be used and a <code>.cache/huggingface/</code> folder will be created at the root of <code>local_dir</code>
to store some metadata related to the downloaded files. While this mechanism is not as robust as the main
cache-system, it’s optimized for regularly pulling the latest version of a repository.`,ye,Q,Me,v,H,ze,ie,ao="Construct the URL of a file from the given information.",Qe,le,ro=`The resolved address can either be a huggingface.co-hosted url, or a link to
Cloudfront (a Content Delivery Network, or CDN) for large files which are
more than a few MBs.`,He,F,Le,Y,qe,se,io="References:",We,de,lo='<li>[1] <a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/ETag" rel="nofollow">https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/ETag</a></li>',Te,L,ve,J,q,Ze,ce,so="Download repo files.",Ge,he,co=`Download a whole snapshot of a repo’s files at the specified revision. This is useful when you want all files from
a repo, because you don’t know which ones you will need a priori. All files are nested inside a folder in order
to keep their actual filename relative to that folder. You can also filter which files to download using
<code>allow_patterns</code> and <code>ignore_patterns</code>.`,Ve,ge,ho=`If <code>local_dir</code> is provided, the file structure from the repo will be replicated in this location. When using this
option, the <code>cache_dir</code> will not be used and a <code>.cache/huggingface/</code> folder will be created at the root of <code>local_dir</code>
to store some metadata related to the downloaded files. While this mechanism is not as robust as the main
cache-system, it’s optimized for regularly pulling the latest version of a repository.`,Pe,fe,go=`An alternative would be to clone the repo but this requires git and git-lfs to be installed and properly
configured. It is also not possible to filter which files to download when cloning a repository using git.`,xe,W,Ue,Z,$e,A,G,Se,ue,fo="Fetch metadata of a file versioned on the Hub for a given url.",Je,V,je,k,P,Be,pe,uo="Data structure containing information about a file versioned on the Hub.",Xe,me,po='Returned by <a href="/docs/huggingface_hub/main/en/package_reference/file_download#huggingface_hub.get_hf_file_metadata">get_hf_file_metadata()</a> based on a URL.',Ne,S,Ce,B,mo=`The methods displayed above are designed to work with a caching system that prevents
re-downloading files. The caching system was updated in v0.8.0 to become the central
cache-system shared across libraries that depend on the Hub.`,Ie,X,_o=`Read the <a href="../guides/manage-cache">cache-system guide</a> for a detailed presentation of caching at
at HF.`,Ee,K,ke,be,Ae;return $=new O({props:{title:"Downloading files",local:"downloading-files",headingTag:"h1"}}),T=new O({props:{title:"Download a single file",local:"download-a-single-file",headingTag:"h2"}}),C=new O({props:{title:"hf_hub_download",local:"huggingface_hub.hf_hub_download",headingTag:"h3"}}),h=new we({props:{name:"huggingface_hub.hf_hub_download",anchor:"huggingface_hub.hf_hub_download",parameters:[{name:"repo_id",val:": str"},{name:"filename",val:": str"},{name:"subfolder",val:": Optional = None"},{name:"repo_type",val:": Optional = None"},{name:"revision",val:": Optional = None"},{name:"library_name",val:": Optional = None"},{name:"library_version",val:": Optional = None"},{name:"cache_dir",val:": Union = None"},{name:"local_dir",val:": Union = None"},{name:"user_agent",val:": Union = None"},{name:"force_download",val:": bool = False"},{name:"proxies",val:": Optional = None"},{name:"etag_timeout",val:": float = 10"},{name:"token",val:": Union = None"},{name:"local_files_only",val:": bool = False"},{name:"headers",val:": Optional = None"},{name:"endpoint",val:": Optional = None"},{name:"resume_download",val:": Optional = None"},{name:"force_filename",val:": Optional = None"},{name:"local_dir_use_symlinks",val:": Union = 'auto'"}],parametersDescription:[{anchor:"huggingface_hub.hf_hub_download.repo_id",description:`<strong>repo_id</strong> (<code>str</code>) &#x2014;
A user or an organization name and a repo name separated by a <code>/</code>.`,name:"repo_id"},{anchor:"huggingface_hub.hf_hub_download.filename",description:`<strong>filename</strong> (<code>str</code>) &#x2014;
The name of the file in the repo.`,name:"filename"},{anchor:"huggingface_hub.hf_hub_download.subfolder",description:`<strong>subfolder</strong> (<code>str</code>, <em>optional</em>) &#x2014;
An optional value corresponding to a folder inside the model repo.`,name:"subfolder"},{anchor:"huggingface_hub.hf_hub_download.repo_type",description:`<strong>repo_type</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Set to <code>&quot;dataset&quot;</code> or <code>&quot;space&quot;</code> if downloading from a dataset or space,
<code>None</code> or <code>&quot;model&quot;</code> if downloading from a model. Default is <code>None</code>.`,name:"repo_type"},{anchor:"huggingface_hub.hf_hub_download.revision",description:`<strong>revision</strong> (<code>str</code>, <em>optional</em>) &#x2014;
An optional Git revision id which can be a branch name, a tag, or a
commit hash.`,name:"revision"},{anchor:"huggingface_hub.hf_hub_download.library_name",description:`<strong>library_name</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The name of the library to which the object corresponds.`,name:"library_name"},{anchor:"huggingface_hub.hf_hub_download.library_version",description:`<strong>library_version</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The version of the library.`,name:"library_version"},{anchor:"huggingface_hub.hf_hub_download.cache_dir",description:`<strong>cache_dir</strong> (<code>str</code>, <code>Path</code>, <em>optional</em>) &#x2014;
Path to the folder where cached files are stored.`,name:"cache_dir"},{anchor:"huggingface_hub.hf_hub_download.local_dir",description:`<strong>local_dir</strong> (<code>str</code> or <code>Path</code>, <em>optional</em>) &#x2014;
If provided, the downloaded file will be placed under this directory.`,name:"local_dir"},{anchor:"huggingface_hub.hf_hub_download.user_agent",description:`<strong>user_agent</strong> (<code>dict</code>, <code>str</code>, <em>optional</em>) &#x2014;
The user-agent info in the form of a dictionary or a string.`,name:"user_agent"},{anchor:"huggingface_hub.hf_hub_download.force_download",description:`<strong>force_download</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether the file should be downloaded even if it already exists in
the local cache.`,name:"force_download"},{anchor:"huggingface_hub.hf_hub_download.proxies",description:`<strong>proxies</strong> (<code>dict</code>, <em>optional</em>) &#x2014;
Dictionary mapping protocol to the URL of the proxy passed to
<code>requests.request</code>.`,name:"proxies"},{anchor:"huggingface_hub.hf_hub_download.etag_timeout",description:`<strong>etag_timeout</strong> (<code>float</code>, <em>optional</em>, defaults to <code>10</code>) &#x2014;
When fetching ETag, how many seconds to wait for the server to send
data before giving up which is passed to <code>requests.request</code>.`,name:"etag_timeout"},{anchor:"huggingface_hub.hf_hub_download.token",description:`<strong>token</strong> (<code>str</code>, <code>bool</code>, <em>optional</em>) &#x2014;
A token to be used for the download.<ul>
<li>If <code>True</code>, the token is read from the HuggingFace config
folder.</li>
<li>If a string, it&#x2019;s used as the authentication token.</li>
</ul>`,name:"token"},{anchor:"huggingface_hub.hf_hub_download.local_files_only",description:`<strong>local_files_only</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
If <code>True</code>, avoid downloading the file and return the path to the
local cached file if it exists.`,name:"local_files_only"},{anchor:"huggingface_hub.hf_hub_download.headers",description:`<strong>headers</strong> (<code>dict</code>, <em>optional</em>) &#x2014;
Additional headers to be sent with the request.`,name:"headers"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/file_download.py#L662",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>Local path of file or if networking is off, last version of file cached on disk.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>str</code></p>
`,raiseDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<ul>
<li><a
  href="/docs/huggingface_hub/main/en/package_reference/utilities#huggingface_hub.errors.RepositoryNotFoundError"
>RepositoryNotFoundError</a> —
If the repository to download from cannot be found. This may be because it doesn’t exist,
or because it is set to <code>private</code> and you do not have access.</li>
<li><a
  href="/docs/huggingface_hub/main/en/package_reference/utilities#huggingface_hub.errors.RevisionNotFoundError"
>RevisionNotFoundError</a> —
If the revision to download from cannot be found.</li>
<li><a
  href="/docs/huggingface_hub/main/en/package_reference/utilities#huggingface_hub.errors.EntryNotFoundError"
>EntryNotFoundError</a> —
If the file to download cannot be found.</li>
<li><a
  href="/docs/huggingface_hub/main/en/package_reference/utilities#huggingface_hub.errors.LocalEntryNotFoundError"
>LocalEntryNotFoundError</a> —
If network is disabled or unavailable and file is not found in cache.</li>
<li><a
  href="https://docs.python.org/3/library/exceptions.html#EnvironmentError"
  rel="nofollow"
><code>EnvironmentError</code></a> —
If <code>token=True</code> but the token cannot be found.</li>
<li><a
  href="https://docs.python.org/3/library/exceptions.html#OSError"
  rel="nofollow"
><code>OSError</code></a> —
If ETag cannot be determined.</li>
<li><a
  href="https://docs.python.org/3/library/exceptions.html#ValueError"
  rel="nofollow"
><code>ValueError</code></a> —
If some parameter value is invalid.</li>
</ul>
`,raiseType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/huggingface_hub/main/en/package_reference/utilities#huggingface_hub.errors.RepositoryNotFoundError"
>RepositoryNotFoundError</a> or <a
  href="/docs/huggingface_hub/main/en/package_reference/utilities#huggingface_hub.errors.RevisionNotFoundError"
>RevisionNotFoundError</a> or <a
  href="/docs/huggingface_hub/main/en/package_reference/utilities#huggingface_hub.errors.EntryNotFoundError"
>EntryNotFoundError</a> or <a
  href="/docs/huggingface_hub/main/en/package_reference/utilities#huggingface_hub.errors.LocalEntryNotFoundError"
>LocalEntryNotFoundError</a> or <code>EnvironmentError</code> or <code>OSError</code> or <code>ValueError</code></p>
`}}),R=new bo({props:{anchor:"huggingface_hub.hf_hub_download.example",$$slots:{default:[Jo]},$$scope:{ctx:D}}}),Q=new O({props:{title:"hf_hub_url",local:"huggingface_hub.hf_hub_url",headingTag:"h3"}}),H=new we({props:{name:"huggingface_hub.hf_hub_url",anchor:"huggingface_hub.hf_hub_url",parameters:[{name:"repo_id",val:": str"},{name:"filename",val:": str"},{name:"subfolder",val:": Optional = None"},{name:"repo_type",val:": Optional = None"},{name:"revision",val:": Optional = None"},{name:"endpoint",val:": Optional = None"}],parametersDescription:[{anchor:"huggingface_hub.hf_hub_url.repo_id",description:`<strong>repo_id</strong> (<code>str</code>) &#x2014;
A namespace (user or an organization) name and a repo name separated
by a <code>/</code>.`,name:"repo_id"},{anchor:"huggingface_hub.hf_hub_url.filename",description:`<strong>filename</strong> (<code>str</code>) &#x2014;
The name of the file in the repo.`,name:"filename"},{anchor:"huggingface_hub.hf_hub_url.subfolder",description:`<strong>subfolder</strong> (<code>str</code>, <em>optional</em>) &#x2014;
An optional value corresponding to a folder inside the repo.`,name:"subfolder"},{anchor:"huggingface_hub.hf_hub_url.repo_type",description:`<strong>repo_type</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Set to <code>&quot;dataset&quot;</code> or <code>&quot;space&quot;</code> if downloading from a dataset or space,
<code>None</code> or <code>&quot;model&quot;</code> if downloading from a model. Default is <code>None</code>.`,name:"repo_type"},{anchor:"huggingface_hub.hf_hub_url.revision",description:`<strong>revision</strong> (<code>str</code>, <em>optional</em>) &#x2014;
An optional Git revision id which can be a branch name, a tag, or a
commit hash.`,name:"revision"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/file_download.py#L168"}}),F=new bo({props:{anchor:"huggingface_hub.hf_hub_url.example",$$slots:{default:[jo]},$$scope:{ctx:D}}}),Y=new Uo({props:{$$slots:{default:[No]},$$scope:{ctx:D}}}),L=new O({props:{title:"Download a snapshot of the repo",local:"huggingface_hub.snapshot_download",headingTag:"h2"}}),q=new we({props:{name:"huggingface_hub.snapshot_download",anchor:"huggingface_hub.snapshot_download",parameters:[{name:"repo_id",val:": str"},{name:"repo_type",val:": Optional = None"},{name:"revision",val:": Optional = None"},{name:"cache_dir",val:": Union = None"},{name:"local_dir",val:": Union = None"},{name:"library_name",val:": Optional = None"},{name:"library_version",val:": Optional = None"},{name:"user_agent",val:": Union = None"},{name:"proxies",val:": Optional = None"},{name:"etag_timeout",val:": float = 10"},{name:"force_download",val:": bool = False"},{name:"token",val:": Union = None"},{name:"local_files_only",val:": bool = False"},{name:"allow_patterns",val:": Union = None"},{name:"ignore_patterns",val:": Union = None"},{name:"max_workers",val:": int = 8"},{name:"tqdm_class",val:": Optional = None"},{name:"headers",val:": Optional = None"},{name:"endpoint",val:": Optional = None"},{name:"local_dir_use_symlinks",val:": Union = 'auto'"},{name:"resume_download",val:": Optional = None"}],parametersDescription:[{anchor:"huggingface_hub.snapshot_download.repo_id",description:`<strong>repo_id</strong> (<code>str</code>) &#x2014;
A user or an organization name and a repo name separated by a <code>/</code>.`,name:"repo_id"},{anchor:"huggingface_hub.snapshot_download.repo_type",description:`<strong>repo_type</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Set to <code>&quot;dataset&quot;</code> or <code>&quot;space&quot;</code> if downloading from a dataset or space,
<code>None</code> or <code>&quot;model&quot;</code> if downloading from a model. Default is <code>None</code>.`,name:"repo_type"},{anchor:"huggingface_hub.snapshot_download.revision",description:`<strong>revision</strong> (<code>str</code>, <em>optional</em>) &#x2014;
An optional Git revision id which can be a branch name, a tag, or a
commit hash.`,name:"revision"},{anchor:"huggingface_hub.snapshot_download.cache_dir",description:`<strong>cache_dir</strong> (<code>str</code>, <code>Path</code>, <em>optional</em>) &#x2014;
Path to the folder where cached files are stored.`,name:"cache_dir"},{anchor:"huggingface_hub.snapshot_download.local_dir",description:`<strong>local_dir</strong> (<code>str</code> or <code>Path</code>, <em>optional</em>) &#x2014;
If provided, the downloaded files will be placed under this directory.`,name:"local_dir"},{anchor:"huggingface_hub.snapshot_download.library_name",description:`<strong>library_name</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The name of the library to which the object corresponds.`,name:"library_name"},{anchor:"huggingface_hub.snapshot_download.library_version",description:`<strong>library_version</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The version of the library.`,name:"library_version"},{anchor:"huggingface_hub.snapshot_download.user_agent",description:`<strong>user_agent</strong> (<code>str</code>, <code>dict</code>, <em>optional</em>) &#x2014;
The user-agent info in the form of a dictionary or a string.`,name:"user_agent"},{anchor:"huggingface_hub.snapshot_download.proxies",description:`<strong>proxies</strong> (<code>dict</code>, <em>optional</em>) &#x2014;
Dictionary mapping protocol to the URL of the proxy passed to
<code>requests.request</code>.`,name:"proxies"},{anchor:"huggingface_hub.snapshot_download.etag_timeout",description:`<strong>etag_timeout</strong> (<code>float</code>, <em>optional</em>, defaults to <code>10</code>) &#x2014;
When fetching ETag, how many seconds to wait for the server to send
data before giving up which is passed to <code>requests.request</code>.`,name:"etag_timeout"},{anchor:"huggingface_hub.snapshot_download.force_download",description:`<strong>force_download</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether the file should be downloaded even if it already exists in the local cache.`,name:"force_download"},{anchor:"huggingface_hub.snapshot_download.token",description:`<strong>token</strong> (<code>str</code>, <code>bool</code>, <em>optional</em>) &#x2014;
A token to be used for the download.<ul>
<li>If <code>True</code>, the token is read from the HuggingFace config
folder.</li>
<li>If a string, it&#x2019;s used as the authentication token.</li>
</ul>`,name:"token"},{anchor:"huggingface_hub.snapshot_download.headers",description:`<strong>headers</strong> (<code>dict</code>, <em>optional</em>) &#x2014;
Additional headers to include in the request. Those headers take precedence over the others.`,name:"headers"},{anchor:"huggingface_hub.snapshot_download.local_files_only",description:`<strong>local_files_only</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
If <code>True</code>, avoid downloading the file and return the path to the
local cached file if it exists.`,name:"local_files_only"},{anchor:"huggingface_hub.snapshot_download.allow_patterns",description:`<strong>allow_patterns</strong> (<code>List[str]</code> or <code>str</code>, <em>optional</em>) &#x2014;
If provided, only files matching at least one pattern are downloaded.`,name:"allow_patterns"},{anchor:"huggingface_hub.snapshot_download.ignore_patterns",description:`<strong>ignore_patterns</strong> (<code>List[str]</code> or <code>str</code>, <em>optional</em>) &#x2014;
If provided, files matching any of the patterns are not downloaded.`,name:"ignore_patterns"},{anchor:"huggingface_hub.snapshot_download.max_workers",description:`<strong>max_workers</strong> (<code>int</code>, <em>optional</em>) &#x2014;
Number of concurrent threads to download files (1 thread = 1 file download).
Defaults to 8.`,name:"max_workers"},{anchor:"huggingface_hub.snapshot_download.tqdm_class",description:`<strong>tqdm_class</strong> (<code>tqdm</code>, <em>optional</em>) &#x2014;
If provided, overwrites the default behavior for the progress bar. Passed
argument must inherit from <code>tqdm.auto.tqdm</code> or at least mimic its behavior.
Note that the <code>tqdm_class</code> is not passed to each individual download.
Defaults to the custom HF progress bar that can be disabled by setting
<code>HF_HUB_DISABLE_PROGRESS_BARS</code> environment variable.`,name:"tqdm_class"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/_snapshot_download.py#L20",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>folder path of the repo snapshot.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>str</code></p>
`,raiseDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<ul>
<li><a
  href="/docs/huggingface_hub/main/en/package_reference/utilities#huggingface_hub.errors.RepositoryNotFoundError"
>RepositoryNotFoundError</a> —
If the repository to download from cannot be found. This may be because it doesn’t exist,
or because it is set to <code>private</code> and you do not have access.</li>
<li><a
  href="/docs/huggingface_hub/main/en/package_reference/utilities#huggingface_hub.errors.RevisionNotFoundError"
>RevisionNotFoundError</a> —
If the revision to download from cannot be found.</li>
<li><a
  href="https://docs.python.org/3/library/exceptions.html#EnvironmentError"
  rel="nofollow"
><code>EnvironmentError</code></a> —
If <code>token=True</code> and the token cannot be found.</li>
<li><a
  href="https://docs.python.org/3/library/exceptions.html#OSError"
  rel="nofollow"
><code>OSError</code></a> — if
ETag cannot be determined.</li>
<li><a
  href="https://docs.python.org/3/library/exceptions.html#ValueError"
  rel="nofollow"
><code>ValueError</code></a> —
if some parameter value is invalid.</li>
</ul>
`,raiseType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/huggingface_hub/main/en/package_reference/utilities#huggingface_hub.errors.RepositoryNotFoundError"
>RepositoryNotFoundError</a> or <a
  href="/docs/huggingface_hub/main/en/package_reference/utilities#huggingface_hub.errors.RevisionNotFoundError"
>RevisionNotFoundError</a> or <code>EnvironmentError</code> or <code>OSError</code> or <code>ValueError</code></p>
`}}),W=new O({props:{title:"Get metadata about a file",local:"get-metadata-about-a-file",headingTag:"h2"}}),Z=new O({props:{title:"get_hf_file_metadata",local:"huggingface_hub.get_hf_file_metadata",headingTag:"h3"}}),G=new we({props:{name:"huggingface_hub.get_hf_file_metadata",anchor:"huggingface_hub.get_hf_file_metadata",parameters:[{name:"url",val:": str"},{name:"token",val:": Union = None"},{name:"proxies",val:": Optional = None"},{name:"timeout",val:": Optional = 10"},{name:"library_name",val:": Optional = None"},{name:"library_version",val:": Optional = None"},{name:"user_agent",val:": Union = None"},{name:"headers",val:": Optional = None"}],parametersDescription:[{anchor:"huggingface_hub.get_hf_file_metadata.url",description:`<strong>url</strong> (<code>str</code>) &#x2014;
File url, for example returned by <a href="/docs/huggingface_hub/main/en/package_reference/file_download#huggingface_hub.hf_hub_url">hf_hub_url()</a>.`,name:"url"},{anchor:"huggingface_hub.get_hf_file_metadata.token",description:`<strong>token</strong> (<code>str</code> or <code>bool</code>, <em>optional</em>) &#x2014;
A token to be used for the download.<ul>
<li>If <code>True</code>, the token is read from the HuggingFace config
folder.</li>
<li>If <code>False</code> or <code>None</code>, no token is provided.</li>
<li>If a string, it&#x2019;s used as the authentication token.</li>
</ul>`,name:"token"},{anchor:"huggingface_hub.get_hf_file_metadata.proxies",description:`<strong>proxies</strong> (<code>dict</code>, <em>optional</em>) &#x2014;
Dictionary mapping protocol to the URL of the proxy passed to
<code>requests.request</code>.`,name:"proxies"},{anchor:"huggingface_hub.get_hf_file_metadata.timeout",description:`<strong>timeout</strong> (<code>float</code>, <em>optional</em>, defaults to 10) &#x2014;
How many seconds to wait for the server to send metadata before giving up.`,name:"timeout"},{anchor:"huggingface_hub.get_hf_file_metadata.library_name",description:`<strong>library_name</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The name of the library to which the object corresponds.`,name:"library_name"},{anchor:"huggingface_hub.get_hf_file_metadata.library_version",description:`<strong>library_version</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The version of the library.`,name:"library_version"},{anchor:"huggingface_hub.get_hf_file_metadata.user_agent",description:`<strong>user_agent</strong> (<code>dict</code>, <code>str</code>, <em>optional</em>) &#x2014;
The user-agent info in the form of a dictionary or a string.`,name:"user_agent"},{anchor:"huggingface_hub.get_hf_file_metadata.headers",description:`<strong>headers</strong> (<code>dict</code>, <em>optional</em>) &#x2014;
Additional headers to be sent with the request.`,name:"headers"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/file_download.py#L1245",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>A <a
  href="/docs/huggingface_hub/main/en/package_reference/file_download#huggingface_hub.HfFileMetadata"
>HfFileMetadata</a> object containing metadata such as location, etag, size and
commit_hash.</p>
`}}),V=new O({props:{title:"HfFileMetadata",local:"huggingface_hub.HfFileMetadata",headingTag:"h3"}}),P=new we({props:{name:"class huggingface_hub.HfFileMetadata",anchor:"huggingface_hub.HfFileMetadata",parameters:[{name:"commit_hash",val:": Optional"},{name:"etag",val:": Optional"},{name:"location",val:": str"},{name:"size",val:": Optional"}],parametersDescription:[{anchor:"huggingface_hub.HfFileMetadata.commit_hash",description:`<strong>commit_hash</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The commit_hash related to the file.`,name:"commit_hash"},{anchor:"huggingface_hub.HfFileMetadata.etag",description:`<strong>etag</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Etag of the file on the server.`,name:"etag"},{anchor:"huggingface_hub.HfFileMetadata.location",description:`<strong>location</strong> (<code>str</code>) &#x2014;
Location where to download the file. Can be a Hub url or not (CDN).`,name:"location"},{anchor:"huggingface_hub.HfFileMetadata.size",description:`<strong>size</strong> (<code>size</code>) &#x2014;
Size of the file. In case of an LFS file, contains the size of the actual
LFS file, not the pointer.`,name:"size"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/file_download.py#L144"}}),S=new O({props:{title:"Caching",local:"caching",headingTag:"h2"}}),K=new $o({props:{source:"https://github.com/huggingface/huggingface_hub/blob/main/docs/source/en/package_reference/file_download.md"}}),{c(){l=s("meta"),U=n(),c=s("p"),f=n(),m($.$$.fragment),g=n(),m(T.$$.fragment),z=n(),m(C.$$.fragment),I=n(),p=s("div"),m(h.$$.fragment),E=n(),te=s("p"),te.textContent=eo,De=n(),ne=s("p"),ne.textContent=oo,Re=n(),ae=s("ul"),ae.innerHTML=to,Fe=n(),m(R.$$.fragment),Ye=n(),re=s("p"),re.innerHTML=no,ye=n(),m(Q.$$.fragment),Me=n(),v=s("div"),m(H.$$.fragment),ze=n(),ie=s("p"),ie.textContent=ao,Qe=n(),le=s("p"),le.textContent=ro,He=n(),m(F.$$.fragment),Le=n(),m(Y.$$.fragment),qe=n(),se=s("p"),se.textContent=io,We=n(),de=s("ul"),de.innerHTML=lo,Te=n(),m(L.$$.fragment),ve=n(),J=s("div"),m(q.$$.fragment),Ze=n(),ce=s("p"),ce.textContent=so,Ge=n(),he=s("p"),he.innerHTML=co,Ve=n(),ge=s("p"),ge.innerHTML=ho,Pe=n(),fe=s("p"),fe.textContent=go,xe=n(),m(W.$$.fragment),Ue=n(),m(Z.$$.fragment),$e=n(),A=s("div"),m(G.$$.fragment),Se=n(),ue=s("p"),ue.textContent=fo,Je=n(),m(V.$$.fragment),je=n(),k=s("div"),m(P.$$.fragment),Be=n(),pe=s("p"),pe.textContent=uo,Xe=n(),me=s("p"),me.innerHTML=po,Ne=n(),m(S.$$.fragment),Ce=n(),B=s("p"),B.textContent=mo,Ie=n(),X=s("p"),X.innerHTML=_o,Ee=n(),m(K.$$.fragment),ke=n(),be=s("p"),this.h()},l(e){const o=xo("svelte-u9bgzb",document.head);l=d(o,"META",{name:!0,content:!0}),o.forEach(t),U=a(e),c=d(e,"P",{}),ee(c).forEach(t),f=a(e),_($.$$.fragment,e),g=a(e),_(T.$$.fragment,e),z=a(e),_(C.$$.fragment,e),I=a(e),p=d(e,"DIV",{class:!0});var j=ee(p);_(h.$$.fragment,j),E=a(j),te=d(j,"P",{"data-svelte-h":!0}),u(te)!=="svelte-gsbehr"&&(te.textContent=eo),De=a(j),ne=d(j,"P",{"data-svelte-h":!0}),u(ne)!=="svelte-1rkm1l0"&&(ne.textContent=oo),Re=a(j),ae=d(j,"UL",{"data-svelte-h":!0}),u(ae)!=="svelte-1t8qnom"&&(ae.innerHTML=to),Fe=a(j),_(R.$$.fragment,j),Ye=a(j),re=d(j,"P",{"data-svelte-h":!0}),u(re)!=="svelte-mwwpv9"&&(re.innerHTML=no),j.forEach(t),ye=a(e),_(Q.$$.fragment,e),Me=a(e),v=d(e,"DIV",{class:!0});var x=ee(v);_(H.$$.fragment,x),ze=a(x),ie=d(x,"P",{"data-svelte-h":!0}),u(ie)!=="svelte-x9zwnh"&&(ie.textContent=ao),Qe=a(x),le=d(x,"P",{"data-svelte-h":!0}),u(le)!=="svelte-1we5zn8"&&(le.textContent=ro),He=a(x),_(F.$$.fragment,x),Le=a(x),_(Y.$$.fragment,x),qe=a(x),se=d(x,"P",{"data-svelte-h":!0}),u(se)!=="svelte-k74mug"&&(se.textContent=io),We=a(x),de=d(x,"UL",{"data-svelte-h":!0}),u(de)!=="svelte-1xz5d1h"&&(de.innerHTML=lo),x.forEach(t),Te=a(e),_(L.$$.fragment,e),ve=a(e),J=d(e,"DIV",{class:!0});var N=ee(J);_(q.$$.fragment,N),Ze=a(N),ce=d(N,"P",{"data-svelte-h":!0}),u(ce)!=="svelte-t9d1pp"&&(ce.textContent=so),Ge=a(N),he=d(N,"P",{"data-svelte-h":!0}),u(he)!=="svelte-xxyl9g"&&(he.innerHTML=co),Ve=a(N),ge=d(N,"P",{"data-svelte-h":!0}),u(ge)!=="svelte-mwwpv9"&&(ge.innerHTML=ho),Pe=a(N),fe=d(N,"P",{"data-svelte-h":!0}),u(fe)!=="svelte-k7g81c"&&(fe.textContent=go),N.forEach(t),xe=a(e),_(W.$$.fragment,e),Ue=a(e),_(Z.$$.fragment,e),$e=a(e),A=d(e,"DIV",{class:!0});var Oe=ee(A);_(G.$$.fragment,Oe),Se=a(Oe),ue=d(Oe,"P",{"data-svelte-h":!0}),u(ue)!=="svelte-13tt6xv"&&(ue.textContent=fo),Oe.forEach(t),Je=a(e),_(V.$$.fragment,e),je=a(e),k=d(e,"DIV",{class:!0});var _e=ee(k);_(P.$$.fragment,_e),Be=a(_e),pe=d(_e,"P",{"data-svelte-h":!0}),u(pe)!=="svelte-gv2215"&&(pe.textContent=uo),Xe=a(_e),me=d(_e,"P",{"data-svelte-h":!0}),u(me)!=="svelte-34tmw1"&&(me.innerHTML=po),_e.forEach(t),Ne=a(e),_(S.$$.fragment,e),Ce=a(e),B=d(e,"P",{"data-svelte-h":!0}),u(B)!=="svelte-1jrl9hf"&&(B.textContent=mo),Ie=a(e),X=d(e,"P",{"data-svelte-h":!0}),u(X)!=="svelte-y9fu31"&&(X.innerHTML=_o),Ee=a(e),_(K.$$.fragment,e),ke=a(e),be=d(e,"P",{}),ee(be).forEach(t),this.h()},h(){oe(l,"name","hf:doc:metadata"),oe(l,"content",Io),oe(p,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),oe(v,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),oe(J,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),oe(A,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),oe(k,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8")},m(e,o){i(document.head,l),r(e,U,o),r(e,c,o),r(e,f,o),b($,e,o),r(e,g,o),b(T,e,o),r(e,z,o),b(C,e,o),r(e,I,o),r(e,p,o),b(h,p,null),i(p,E),i(p,te),i(p,De),i(p,ne),i(p,Re),i(p,ae),i(p,Fe),b(R,p,null),i(p,Ye),i(p,re),r(e,ye,o),b(Q,e,o),r(e,Me,o),r(e,v,o),b(H,v,null),i(v,ze),i(v,ie),i(v,Qe),i(v,le),i(v,He),b(F,v,null),i(v,Le),b(Y,v,null),i(v,qe),i(v,se),i(v,We),i(v,de),r(e,Te,o),b(L,e,o),r(e,ve,o),r(e,J,o),b(q,J,null),i(J,Ze),i(J,ce),i(J,Ge),i(J,he),i(J,Ve),i(J,ge),i(J,Pe),i(J,fe),r(e,xe,o),b(W,e,o),r(e,Ue,o),b(Z,e,o),r(e,$e,o),r(e,A,o),b(G,A,null),i(A,Se),i(A,ue),r(e,Je,o),b(V,e,o),r(e,je,o),r(e,k,o),b(P,k,null),i(k,Be),i(k,pe),i(k,Xe),i(k,me),r(e,Ne,o),b(S,e,o),r(e,Ce,o),r(e,B,o),r(e,Ie,o),r(e,X,o),r(e,Ee,o),b(K,e,o),r(e,ke,o),r(e,be,o),Ae=!0},p(e,[o]){const j={};o&2&&(j.$$scope={dirty:o,ctx:e}),R.$set(j);const x={};o&2&&(x.$$scope={dirty:o,ctx:e}),F.$set(x);const N={};o&2&&(N.$$scope={dirty:o,ctx:e}),Y.$set(N)},i(e){Ae||(w($.$$.fragment,e),w(T.$$.fragment,e),w(C.$$.fragment,e),w(h.$$.fragment,e),w(R.$$.fragment,e),w(Q.$$.fragment,e),w(H.$$.fragment,e),w(F.$$.fragment,e),w(Y.$$.fragment,e),w(L.$$.fragment,e),w(q.$$.fragment,e),w(W.$$.fragment,e),w(Z.$$.fragment,e),w(G.$$.fragment,e),w(V.$$.fragment,e),w(P.$$.fragment,e),w(S.$$.fragment,e),w(K.$$.fragment,e),Ae=!0)},o(e){y($.$$.fragment,e),y(T.$$.fragment,e),y(C.$$.fragment,e),y(h.$$.fragment,e),y(R.$$.fragment,e),y(Q.$$.fragment,e),y(H.$$.fragment,e),y(F.$$.fragment,e),y(Y.$$.fragment,e),y(L.$$.fragment,e),y(q.$$.fragment,e),y(W.$$.fragment,e),y(Z.$$.fragment,e),y(G.$$.fragment,e),y(V.$$.fragment,e),y(P.$$.fragment,e),y(S.$$.fragment,e),y(K.$$.fragment,e),Ae=!1},d(e){e&&(t(U),t(c),t(f),t(g),t(z),t(I),t(p),t(ye),t(Me),t(v),t(Te),t(ve),t(J),t(xe),t(Ue),t($e),t(A),t(Je),t(je),t(k),t(Ne),t(Ce),t(B),t(Ie),t(X),t(Ee),t(ke),t(be)),t(l),M($,e),M(T,e),M(C,e),M(h),M(R),M(Q,e),M(H),M(F),M(Y),M(L,e),M(q),M(W,e),M(Z,e),M(G),M(V,e),M(P),M(S,e),M(K,e)}}}const Io='{"title":"Downloading files","local":"downloading-files","sections":[{"title":"Download a single file","local":"download-a-single-file","sections":[{"title":"hf_hub_download","local":"huggingface_hub.hf_hub_download","sections":[],"depth":3},{"title":"hf_hub_url","local":"huggingface_hub.hf_hub_url","sections":[],"depth":3}],"depth":2},{"title":"Download a snapshot of the repo","local":"huggingface_hub.snapshot_download","sections":[],"depth":2},{"title":"Get metadata about a file","local":"get-metadata-about-a-file","sections":[{"title":"get_hf_file_metadata","local":"huggingface_hub.get_hf_file_metadata","sections":[],"depth":3},{"title":"HfFileMetadata","local":"huggingface_hub.HfFileMetadata","sections":[],"depth":3}],"depth":2},{"title":"Caching","local":"caching","sections":[],"depth":2}],"depth":1}';function Eo(D){return Mo(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class zo extends To{constructor(l){super(),vo(this,l,Eo,Co,yo,{})}}export{zo as component};
