import{s as So,o as Wo,n as B}from"../chunks/scheduler.6062bdaf.js";import{S as Yo,i as zo,g as u,s as a,r as h,A as Po,h as p,f as n,c as l,j,u as d,x as c,k as T,y as i,a as r,v as f,d as m,t as b,w as _}from"../chunks/index.4bca734e.js";import{H as k,g as Qo}from"../chunks/Heading.8904b53b.js";import{T as qo}from"../chunks/Tip.b9ac1f03.js";import{D as J}from"../chunks/Docstring.5a52fa73.js";import{C}from"../chunks/CodeBlock.fa01571c.js";import{E as V}from"../chunks/ExampleCodeBlock.5dee3e03.js";function Ao(w){let o,M="HuggingFace Hub has following logging levels:",y,g,$="<li><code>huggingface_hub.logging.CRITICAL</code>, <code>huggingface_hub.logging.FATAL</code></li> <li><code>huggingface_hub.logging.ERROR</code></li> <li><code>huggingface_hub.logging.WARNING</code>, <code>huggingface_hub.logging.WARN</code></li> <li><code>huggingface_hub.logging.INFO</code></li> <li><code>huggingface_hub.logging.DEBUG</code></li>";return{c(){o=u("p"),o.textContent=M,y=a(),g=u("ul"),g.innerHTML=$},l(t){o=p(t,"P",{"data-svelte-h":!0}),c(o)!=="svelte-8pck4"&&(o.textContent=M),y=l(t),g=p(t,"UL",{"data-svelte-h":!0}),c(g)!=="svelte-cayy8n"&&(g.innerHTML=$)},m(t,v){r(t,o,v),r(t,y,v),r(t,g,v)},p:B,d(t){t&&(n(o),n(y),n(g))}}}function Do(w){let o,M="Example:",y,g,$;return g=new C({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMGdldF9sb2dnZXIlMEElMEFsb2dnZXIlMjAlM0QlMjBnZXRfbG9nZ2VyKF9fZmlsZV9fKSUwQWxvZ2dlci5zZXRfdmVyYm9zaXR5X2luZm8oKQ==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> get_logger

<span class="hljs-meta">&gt;&gt;&gt; </span>logger = get_logger(__file__)
<span class="hljs-meta">&gt;&gt;&gt; </span>logger.set_verbosity_info()`,wrap:!1}}),{c(){o=u("p"),o.textContent=M,y=a(),h(g.$$.fragment)},l(t){o=p(t,"P",{"data-svelte-h":!0}),c(o)!=="svelte-11lpom8"&&(o.textContent=M),y=l(t),d(g.$$.fragment,t)},m(t,v){r(t,o,v),r(t,y,v),f(g,t,v),$=!0},p:B,i(t){$||(m(g.$$.fragment,t),$=!0)},o(t){b(g.$$.fragment,t),$=!1},d(t){t&&(n(o),n(y)),_(g,t)}}}function Ko(w){let o,M="Example:",y,g,$;return g=new C({props:{code:"aW1wb3J0JTIwcmVxdWVzdHMlMEFmcm9tJTIwaHVnZ2luZ2ZhY2VfaHViJTIwaW1wb3J0JTIwY29uZmlndXJlX2h0dHBfYmFja2VuZCUyQyUyMGdldF9zZXNzaW9uJTBBJTBBJTIzJTIwQ3JlYXRlJTIwYSUyMGZhY3RvcnklMjBmdW5jdGlvbiUyMHRoYXQlMjByZXR1cm5zJTIwYSUyMFNlc3Npb24lMjB3aXRoJTIwY29uZmlndXJlZCUyMHByb3hpZXMlMEFkZWYlMjBiYWNrZW5kX2ZhY3RvcnkoKSUyMC0lM0UlMjByZXF1ZXN0cy5TZXNzaW9uJTNBJTBBJTIwJTIwJTIwJTIwc2Vzc2lvbiUyMCUzRCUyMHJlcXVlc3RzLlNlc3Npb24oKSUwQSUyMCUyMCUyMCUyMHNlc3Npb24ucHJveGllcyUyMCUzRCUyMCU3QiUyMmh0dHAlMjIlM0ElMjAlMjJodHRwJTNBJTJGJTJGMTAuMTAuMS4xMCUzQTMxMjglMjIlMkMlMjAlMjJodHRwcyUyMiUzQSUyMCUyMmh0dHBzJTNBJTJGJTJGMTAuMTAuMS4xMSUzQTEwODAlMjIlN0QlMEElMjAlMjAlMjAlMjByZXR1cm4lMjBzZXNzaW9uJTBBJTBBJTIzJTIwU2V0JTIwaXQlMjBhcyUyMHRoZSUyMGRlZmF1bHQlMjBzZXNzaW9uJTIwZmFjdG9yeSUwQWNvbmZpZ3VyZV9odHRwX2JhY2tlbmQoYmFja2VuZF9mYWN0b3J5JTNEYmFja2VuZF9mYWN0b3J5KSUwQSUwQSUyMyUyMEluJTIwcHJhY3RpY2UlMkMlMjB0aGlzJTIwaXMlMjBtb3N0bHklMjBkb25lJTIwaW50ZXJuYWxseSUyMGluJTIwJTYwaHVnZ2luZ2ZhY2VfaHViJTYwJTBBc2Vzc2lvbiUyMCUzRCUyMGdldF9zZXNzaW9uKCk=",highlighted:`<span class="hljs-keyword">import</span> requests
<span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> configure_http_backend, get_session

<span class="hljs-comment"># Create a factory function that returns a Session with configured proxies</span>
<span class="hljs-keyword">def</span> <span class="hljs-title function_">backend_factory</span>() -&gt; requests.Session:
    session = requests.Session()
    session.proxies = {<span class="hljs-string">&quot;http&quot;</span>: <span class="hljs-string">&quot;http://10.10.1.10:3128&quot;</span>, <span class="hljs-string">&quot;https&quot;</span>: <span class="hljs-string">&quot;https://10.10.1.11:1080&quot;</span>}
    <span class="hljs-keyword">return</span> session

<span class="hljs-comment"># Set it as the default session factory</span>
configure_http_backend(backend_factory=backend_factory)

<span class="hljs-comment"># In practice, this is mostly done internally in \`huggingface_hub\`</span>
session = get_session()`,wrap:!1}}),{c(){o=u("p"),o.textContent=M,y=a(),h(g.$$.fragment)},l(t){o=p(t,"P",{"data-svelte-h":!0}),c(o)!=="svelte-11lpom8"&&(o.textContent=M),y=l(t),d(g.$$.fragment,t)},m(t,v){r(t,o,v),r(t,y,v),f(g,t,v),$=!0},p:B,i(t){$||(m(g.$$.fragment,t),$=!0)},o(t){b(g.$$.fragment,t),$=!1},d(t){t&&(n(o),n(y)),_(g,t)}}}function Oo(w){let o,M="Example:",y,g,$;return g=new C({props:{code:"aW1wb3J0JTIwcmVxdWVzdHMlMEFmcm9tJTIwaHVnZ2luZ2ZhY2VfaHViJTIwaW1wb3J0JTIwY29uZmlndXJlX2h0dHBfYmFja2VuZCUyQyUyMGdldF9zZXNzaW9uJTBBJTBBJTIzJTIwQ3JlYXRlJTIwYSUyMGZhY3RvcnklMjBmdW5jdGlvbiUyMHRoYXQlMjByZXR1cm5zJTIwYSUyMFNlc3Npb24lMjB3aXRoJTIwY29uZmlndXJlZCUyMHByb3hpZXMlMEFkZWYlMjBiYWNrZW5kX2ZhY3RvcnkoKSUyMC0lM0UlMjByZXF1ZXN0cy5TZXNzaW9uJTNBJTBBJTIwJTIwJTIwJTIwc2Vzc2lvbiUyMCUzRCUyMHJlcXVlc3RzLlNlc3Npb24oKSUwQSUyMCUyMCUyMCUyMHNlc3Npb24ucHJveGllcyUyMCUzRCUyMCU3QiUyMmh0dHAlMjIlM0ElMjAlMjJodHRwJTNBJTJGJTJGMTAuMTAuMS4xMCUzQTMxMjglMjIlMkMlMjAlMjJodHRwcyUyMiUzQSUyMCUyMmh0dHBzJTNBJTJGJTJGMTAuMTAuMS4xMSUzQTEwODAlMjIlN0QlMEElMjAlMjAlMjAlMjByZXR1cm4lMjBzZXNzaW9uJTBBJTBBJTIzJTIwU2V0JTIwaXQlMjBhcyUyMHRoZSUyMGRlZmF1bHQlMjBzZXNzaW9uJTIwZmFjdG9yeSUwQWNvbmZpZ3VyZV9odHRwX2JhY2tlbmQoYmFja2VuZF9mYWN0b3J5JTNEYmFja2VuZF9mYWN0b3J5KSUwQSUwQSUyMyUyMEluJTIwcHJhY3RpY2UlMkMlMjB0aGlzJTIwaXMlMjBtb3N0bHklMjBkb25lJTIwaW50ZXJuYWxseSUyMGluJTIwJTYwaHVnZ2luZ2ZhY2VfaHViJTYwJTBBc2Vzc2lvbiUyMCUzRCUyMGdldF9zZXNzaW9uKCk=",highlighted:`<span class="hljs-keyword">import</span> requests
<span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> configure_http_backend, get_session

<span class="hljs-comment"># Create a factory function that returns a Session with configured proxies</span>
<span class="hljs-keyword">def</span> <span class="hljs-title function_">backend_factory</span>() -&gt; requests.Session:
    session = requests.Session()
    session.proxies = {<span class="hljs-string">&quot;http&quot;</span>: <span class="hljs-string">&quot;http://10.10.1.10:3128&quot;</span>, <span class="hljs-string">&quot;https&quot;</span>: <span class="hljs-string">&quot;https://10.10.1.11:1080&quot;</span>}
    <span class="hljs-keyword">return</span> session

<span class="hljs-comment"># Set it as the default session factory</span>
configure_http_backend(backend_factory=backend_factory)

<span class="hljs-comment"># In practice, this is mostly done internally in \`huggingface_hub\`</span>
session = get_session()`,wrap:!1}}),{c(){o=u("p"),o.textContent=M,y=a(),h(g.$$.fragment)},l(t){o=p(t,"P",{"data-svelte-h":!0}),c(o)!=="svelte-11lpom8"&&(o.textContent=M),y=l(t),d(g.$$.fragment,t)},m(t,v){r(t,o,v),r(t,y,v),f(g,t,v),$=!0},p:B,i(t){$||(m(g.$$.fragment,t),$=!0)},o(t){b(g.$$.fragment,t),$=!1},d(t){t&&(n(o),n(y)),_(g,t)}}}function ei(w){let o,M="Example:",y,g,$;return g=new C({props:{code:"JTIwJTIwJTIwJTIwaW1wb3J0JTIwcmVxdWVzdHMlMEElMjAlMjAlMjAlMjBmcm9tJTIwaHVnZ2luZ2ZhY2VfaHViLnV0aWxzJTIwaW1wb3J0JTIwZ2V0X3Nlc3Npb24lMkMlMjBoZl9yYWlzZV9mb3Jfc3RhdHVzJTJDJTIwSGZIdWJIVFRQRXJyb3IlMEElMEElMjAlMjAlMjAlMjByZXNwb25zZSUyMCUzRCUyMGdldF9zZXNzaW9uKCkucG9zdCguLi4pJTBBJTIwJTIwJTIwJTIwdHJ5JTNBJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwaGZfcmFpc2VfZm9yX3N0YXR1cyhyZXNwb25zZSklMEElMjAlMjAlMjAlMjBleGNlcHQlMjBIZkh1YkhUVFBFcnJvciUyMGFzJTIwZSUzQSUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMHByaW50KHN0cihlKSklMjAlMjMlMjBmb3JtYXR0ZWQlMjBtZXNzYWdlJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwZS5yZXF1ZXN0X2lkJTJDJTIwZS5zZXJ2ZXJfbWVzc2FnZSUyMCUyMyUyMGRldGFpbHMlMjByZXR1cm5lZCUyMGJ5JTIwc2VydmVyJTBBJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIzJTIwQ29tcGxldGUlMjB0aGUlMjBlcnJvciUyMG1lc3NhZ2UlMjB3aXRoJTIwYWRkaXRpb25hbCUyMGluZm9ybWF0aW9uJTIwb25jZSUyMGl0J3MlMjByYWlzZWQlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjBlLmFwcGVuZF90b19tZXNzYWdlKCUyMiUwQWF0ZV9jb21taXQlNjAlMjBleHBlY3RzJTIwdGhlJTIwcmVwb3NpdG9yeSUyMHRvJTIwZXhpc3QuJTIyKSUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMHJhaXNl",highlighted:`    <span class="hljs-keyword">import</span> requests
    <span class="hljs-keyword">from</span> huggingface_hub.utils <span class="hljs-keyword">import</span> get_session, hf_raise_for_status, HfHubHTTPError

    response = get_session().post(...)
    <span class="hljs-keyword">try</span>:
        hf_raise_for_status(response)
    <span class="hljs-keyword">except</span> HfHubHTTPError <span class="hljs-keyword">as</span> e:
        <span class="hljs-built_in">print</span>(<span class="hljs-built_in">str</span>(e)) <span class="hljs-comment"># formatted message</span>
        e.request_id, e.server_message <span class="hljs-comment"># details returned by server</span>

        <span class="hljs-comment"># Complete the error message with additional information once it&#x27;s raised</span>
        e.append_to_message(<span class="hljs-string">&quot;
ate_commit\` expects the repository to exist.&quot;</span>)
        <span class="hljs-keyword">raise</span>`,wrap:!1}}),{c(){o=u("p"),o.textContent=M,y=a(),h(g.$$.fragment)},l(t){o=p(t,"P",{"data-svelte-h":!0}),c(o)!=="svelte-11lpom8"&&(o.textContent=M),y=l(t),d(g.$$.fragment,t)},m(t,v){r(t,o,v),r(t,y,v),f(g,t,v),$=!0},p:B,i(t){$||(m(g.$$.fragment,t),$=!0)},o(t){b(g.$$.fragment,t),$=!1},d(t){t&&(n(o),n(y)),_(g,t)}}}function ti(w){let o,M="Raises when the request has failed:",y,g,$=`<li><a href="/docs/huggingface_hub/v0.19.3/en/package_reference/utilities#huggingface_hub.utils.RepositoryNotFoundError">RepositoryNotFoundError</a>
If the repository to download from cannot be found. This may be because it
doesn’t exist, because <code>repo_type</code> is not set correctly, or because the repo
is <code>private</code> and you do not have access.</li> <li><a href="/docs/huggingface_hub/v0.19.3/en/package_reference/utilities#huggingface_hub.utils.GatedRepoError">GatedRepoError</a>
If the repository exists but is gated and the user is not on the authorized
list.</li> <li><a href="/docs/huggingface_hub/v0.19.3/en/package_reference/utilities#huggingface_hub.utils.RevisionNotFoundError">RevisionNotFoundError</a>
If the repository exists but the revision couldn’t be find.</li> <li><a href="/docs/huggingface_hub/v0.19.3/en/package_reference/utilities#huggingface_hub.utils.EntryNotFoundError">EntryNotFoundError</a>
If the repository exists but the entry (e.g. the requested file) couldn’t be
find.</li> <li><a href="/docs/huggingface_hub/v0.19.3/en/package_reference/utilities#huggingface_hub.utils.BadRequestError">BadRequestError</a>
If request failed with a HTTP 400 BadRequest error.</li> <li><a href="/docs/huggingface_hub/v0.19.3/en/package_reference/utilities#huggingface_hub.utils.HfHubHTTPError">HfHubHTTPError</a>
If request failed for a reason not listed above.</li>`;return{c(){o=u("p"),o.textContent=M,y=a(),g=u("ul"),g.innerHTML=$},l(t){o=p(t,"P",{"data-svelte-h":!0}),c(o)!=="svelte-2ocftk"&&(o.textContent=M),y=l(t),g=p(t,"UL",{"data-svelte-h":!0}),c(g)!=="svelte-4d37mh"&&(g.innerHTML=$)},m(t,v){r(t,o,v),r(t,y,v),r(t,g,v)},p:B,d(t){t&&(n(o),n(y),n(g))}}}function si(w){let o,M="Example:",y,g,$;return g=new C({props:{code:"JTIwJTIwJTIwJTIwaW1wb3J0JTIwcmVxdWVzdHMlMEElMjAlMjAlMjAlMjBmcm9tJTIwaHVnZ2luZ2ZhY2VfaHViLnV0aWxzJTIwaW1wb3J0JTIwZ2V0X3Nlc3Npb24lMkMlMjBoZl9yYWlzZV9mb3Jfc3RhdHVzJTJDJTIwSGZIdWJIVFRQRXJyb3IlMEElMEElMjAlMjAlMjAlMjByZXNwb25zZSUyMCUzRCUyMGdldF9zZXNzaW9uKCkucG9zdCguLi4pJTBBJTIwJTIwJTIwJTIwdHJ5JTNBJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwaGZfcmFpc2VfZm9yX3N0YXR1cyhyZXNwb25zZSklMEElMjAlMjAlMjAlMjBleGNlcHQlMjBIZkh1YkhUVFBFcnJvciUyMGFzJTIwZSUzQSUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMHByaW50KHN0cihlKSklMjAlMjMlMjBmb3JtYXR0ZWQlMjBtZXNzYWdlJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwZS5yZXF1ZXN0X2lkJTJDJTIwZS5zZXJ2ZXJfbWVzc2FnZSUyMCUyMyUyMGRldGFpbHMlMjByZXR1cm5lZCUyMGJ5JTIwc2VydmVyJTBBJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIzJTIwQ29tcGxldGUlMjB0aGUlMjBlcnJvciUyMG1lc3NhZ2UlMjB3aXRoJTIwYWRkaXRpb25hbCUyMGluZm9ybWF0aW9uJTIwb25jZSUyMGl0J3MlMjByYWlzZWQlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjBlLmFwcGVuZF90b19tZXNzYWdlKCUyMiUwQWF0ZV9jb21taXQlNjAlMjBleHBlY3RzJTIwdGhlJTIwcmVwb3NpdG9yeSUyMHRvJTIwZXhpc3QuJTIyKSUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMHJhaXNl",highlighted:`    <span class="hljs-keyword">import</span> requests
    <span class="hljs-keyword">from</span> huggingface_hub.utils <span class="hljs-keyword">import</span> get_session, hf_raise_for_status, HfHubHTTPError

    response = get_session().post(...)
    <span class="hljs-keyword">try</span>:
        hf_raise_for_status(response)
    <span class="hljs-keyword">except</span> HfHubHTTPError <span class="hljs-keyword">as</span> e:
        <span class="hljs-built_in">print</span>(<span class="hljs-built_in">str</span>(e)) <span class="hljs-comment"># formatted message</span>
        e.request_id, e.server_message <span class="hljs-comment"># details returned by server</span>

        <span class="hljs-comment"># Complete the error message with additional information once it&#x27;s raised</span>
        e.append_to_message(<span class="hljs-string">&quot;
ate_commit\` expects the repository to exist.&quot;</span>)
        <span class="hljs-keyword">raise</span>`,wrap:!1}}),{c(){o=u("p"),o.textContent=M,y=a(),h(g.$$.fragment)},l(t){o=p(t,"P",{"data-svelte-h":!0}),c(o)!=="svelte-11lpom8"&&(o.textContent=M),y=l(t),d(g.$$.fragment,t)},m(t,v){r(t,o,v),r(t,y,v),f(g,t,v),$=!0},p:B,i(t){$||(m(g.$$.fragment,t),$=!0)},o(t){b(g.$$.fragment,t),$=!1},d(t){t&&(n(o),n(y)),_(g,t)}}}function ni(w){let o,M="Example:",y,g,$;return g=new C({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMG1vZGVsX2luZm8lMEFtb2RlbF9pbmZvKCUyMiUzQ25vbl9leGlzdGVudF9yZXBvc2l0b3J5JTNFJTIyKSUwQQ==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> model_info
<span class="hljs-meta">&gt;&gt;&gt; </span>model_info(<span class="hljs-string">&quot;&lt;non_existent_repository&gt;&quot;</span>)
(...)
huggingface_hub.utils._errors.RepositoryNotFoundError: <span class="hljs-number">401</span> Client Error. (Request ID: PvMw_VjBMjVdMz53WKIzP)

Repository Not Found <span class="hljs-keyword">for</span> url: https://huggingface.co/api/models/%3Cnon_existent_repository%3E.
Please make sure you specified the correct \`repo_id\` <span class="hljs-keyword">and</span> \`repo_type\`.
If the repo <span class="hljs-keyword">is</span> private, make sure you are authenticated.
Invalid username <span class="hljs-keyword">or</span> password.`,wrap:!1}}),{c(){o=u("p"),o.textContent=M,y=a(),h(g.$$.fragment)},l(t){o=p(t,"P",{"data-svelte-h":!0}),c(o)!=="svelte-11lpom8"&&(o.textContent=M),y=l(t),d(g.$$.fragment,t)},m(t,v){r(t,o,v),r(t,y,v),f(g,t,v),$=!0},p:B,i(t){$||(m(g.$$.fragment,t),$=!0)},o(t){b(g.$$.fragment,t),$=!1},d(t){t&&(n(o),n(y)),_(g,t)}}}function ai(w){let o,M="Example:",y,g,$;return g=new C({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMG1vZGVsX2luZm8lMEFtb2RlbF9pbmZvKCUyMiUzQ2dhdGVkX3JlcG9zaXRvcnklM0UlMjIpJTBB",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> model_info
<span class="hljs-meta">&gt;&gt;&gt; </span>model_info(<span class="hljs-string">&quot;&lt;gated_repository&gt;&quot;</span>)
(...)
huggingface_hub.utils._errors.GatedRepoError: <span class="hljs-number">403</span> Client Error. (Request ID: ViT1Bf7O_026LGSQuVqfa)

Cannot access gated repo <span class="hljs-keyword">for</span> url https://huggingface.co/api/models/ardent-figment/gated-model.
Access to model ardent-figment/gated-model <span class="hljs-keyword">is</span> restricted <span class="hljs-keyword">and</span> you are <span class="hljs-keyword">not</span> <span class="hljs-keyword">in</span> the authorized <span class="hljs-built_in">list</span>.
Visit https://huggingface.co/ardent-figment/gated-model to ask <span class="hljs-keyword">for</span> access.`,wrap:!1}}),{c(){o=u("p"),o.textContent=M,y=a(),h(g.$$.fragment)},l(t){o=p(t,"P",{"data-svelte-h":!0}),c(o)!=="svelte-11lpom8"&&(o.textContent=M),y=l(t),d(g.$$.fragment,t)},m(t,v){r(t,o,v),r(t,y,v),f(g,t,v),$=!0},p:B,i(t){$||(m(g.$$.fragment,t),$=!0)},o(t){b(g.$$.fragment,t),$=!1},d(t){t&&(n(o),n(y)),_(g,t)}}}function li(w){let o,M="Example:",y,g,$;return g=new C({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMGhmX2h1Yl9kb3dubG9hZCUwQWhmX2h1Yl9kb3dubG9hZCgnYmVydC1iYXNlLWNhc2VkJyUyQyUyMCdjb25maWcuanNvbiclMkMlMjByZXZpc2lvbiUzRCclM0Nub24tZXhpc3RlbnQtcmV2aXNpb24lM0UnKSUwQQ==",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_download
<span class="hljs-meta">&gt;&gt;&gt; </span>hf_hub_download(<span class="hljs-string">&#x27;bert-base-cased&#x27;</span>, <span class="hljs-string">&#x27;config.json&#x27;</span>, revision=<span class="hljs-string">&#x27;&lt;non-existent-revision&gt;&#x27;</span>)
(...)
huggingface_hub.utils._errors.RevisionNotFoundError: <span class="hljs-number">404</span> Client Error. (Request ID: Mwhe_c3Kt650GcdKEFomX)

Revision Not Found <span class="hljs-keyword">for</span> url: https://huggingface.co/bert-base-cased/resolve/%3Cnon-existent-revision%3E/config.json.`,wrap:!1}}),{c(){o=u("p"),o.textContent=M,y=a(),h(g.$$.fragment)},l(t){o=p(t,"P",{"data-svelte-h":!0}),c(o)!=="svelte-11lpom8"&&(o.textContent=M),y=l(t),d(g.$$.fragment,t)},m(t,v){r(t,o,v),r(t,y,v),f(g,t,v),$=!0},p:B,i(t){$||(m(g.$$.fragment,t),$=!0)},o(t){b(g.$$.fragment,t),$=!1},d(t){t&&(n(o),n(y)),_(g,t)}}}function ri(w){let o,M="Example:",y,g,$;return g=new C({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMGhmX2h1Yl9kb3dubG9hZCUwQWhmX2h1Yl9kb3dubG9hZCgnYmVydC1iYXNlLWNhc2VkJyUyQyUyMCclM0Nub24tZXhpc3RlbnQtZmlsZSUzRScpJTBB",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_download
<span class="hljs-meta">&gt;&gt;&gt; </span>hf_hub_download(<span class="hljs-string">&#x27;bert-base-cased&#x27;</span>, <span class="hljs-string">&#x27;&lt;non-existent-file&gt;&#x27;</span>)
(...)
huggingface_hub.utils._errors.EntryNotFoundError: <span class="hljs-number">404</span> Client Error. (Request ID: 53pNl6M0MxsnG5Sw8JA6x)

Entry Not Found <span class="hljs-keyword">for</span> url: https://huggingface.co/bert-base-cased/resolve/main/%3Cnon-existent-file%3E.`,wrap:!1}}),{c(){o=u("p"),o.textContent=M,y=a(),h(g.$$.fragment)},l(t){o=p(t,"P",{"data-svelte-h":!0}),c(o)!=="svelte-11lpom8"&&(o.textContent=M),y=l(t),d(g.$$.fragment,t)},m(t,v){r(t,o,v),r(t,y,v),f(g,t,v),$=!0},p:B,i(t){$||(m(g.$$.fragment,t),$=!0)},o(t){b(g.$$.fragment,t),$=!1},d(t){t&&(n(o),n(y)),_(g,t)}}}function oi(w){let o,M="Example:",y,g,$;return g=new C({props:{code:"cmVzcCUyMCUzRCUyMHJlcXVlc3RzLnBvc3QoJTIyaGYuY28lMkZhcGklMkZjaGVjayUyMiUyQyUyMC4uLiklMEFoZl9yYWlzZV9mb3Jfc3RhdHVzKHJlc3AlMkMlMjBlbmRwb2ludF9uYW1lJTNEJTIyY2hlY2slMjIp",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span>resp = requests.post(<span class="hljs-string">&quot;hf.co/api/check&quot;</span>, ...)
<span class="hljs-meta">&gt;&gt;&gt; </span>hf_raise_for_status(resp, endpoint_name=<span class="hljs-string">&quot;check&quot;</span>)
huggingface_hub.utils._errors.BadRequestError: Bad request <span class="hljs-keyword">for</span> check endpoint: {details} (Request ID: XXX)`,wrap:!1}}),{c(){o=u("p"),o.textContent=M,y=a(),h(g.$$.fragment)},l(t){o=p(t,"P",{"data-svelte-h":!0}),c(o)!=="svelte-11lpom8"&&(o.textContent=M),y=l(t),d(g.$$.fragment,t)},m(t,v){r(t,o,v),r(t,y,v),f(g,t,v),$=!0},p:B,i(t){$||(m(g.$$.fragment,t),$=!0)},o(t){b(g.$$.fragment,t),$=!1},d(t){t&&(n(o),n(y)),_(g,t)}}}function ii(w){let o,M="Example:",y,g,$;return g=new C({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMGhmX2h1Yl9kb3dubG9hZCUwQWhmX2h1Yl9kb3dubG9hZCgnYmVydC1iYXNlLWNhc2VkJyUyQyUyMCclM0Nub24tY2FjaGVkLWZpbGUlM0UnJTJDJTIwJTIwbG9jYWxfZmlsZXNfb25seSUzRFRydWUp",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_download
<span class="hljs-meta">&gt;&gt;&gt; </span>hf_hub_download(<span class="hljs-string">&#x27;bert-base-cased&#x27;</span>, <span class="hljs-string">&#x27;&lt;non-cached-file&gt;&#x27;</span>,  local_files_only=<span class="hljs-literal">True</span>)
(...)
huggingface_hub.utils._errors.LocalEntryNotFoundError: Cannot find the requested files <span class="hljs-keyword">in</span> the disk cache <span class="hljs-keyword">and</span> outgoing traffic has been disabled. To enable hf.co look-ups <span class="hljs-keyword">and</span> downloads online, <span class="hljs-built_in">set</span> <span class="hljs-string">&#x27;local_files_only&#x27;</span> to <span class="hljs-literal">False</span>.`,wrap:!1}}),{c(){o=u("p"),o.textContent=M,y=a(),h(g.$$.fragment)},l(t){o=p(t,"P",{"data-svelte-h":!0}),c(o)!=="svelte-11lpom8"&&(o.textContent=M),y=l(t),d(g.$$.fragment,t)},m(t,v){r(t,o,v),r(t,y,v),f(g,t,v),$=!0},p:B,i(t){$||(m(g.$$.fragment,t),$=!0)},o(t){b(g.$$.fragment,t),$=!1},d(t){t&&(n(o),n(y)),_(g,t)}}}function gi(w){let o,M="Example:",y,g,$;return g=new C({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1Yi51dGlscyUyMGltcG9ydCUyMHNlbmRfdGVsZW1ldHJ5JTBBJTBBc2VuZF90ZWxlbWV0cnkoJTIycGluZyUyMiklMEElMEFzZW5kX3RlbGVtZXRyeSglMjJncmFkaW8lMkZsb2NhbF9saW5rJTIyJTJDJTIwbGlicmFyeV9uYW1lJTNEJTIyZ3JhZGlvJTIyJTJDJTIwbGlicmFyeV92ZXJzaW9uJTNEJTIyMy4yMi4xJTIyKSUwQSUwQXNlbmRfdGVsZW1ldHJ5KCUwQSUyMCUyMCUyMCUyMHRvcGljJTNEJTIyZXhhbXBsZXMlMjIlMkMlMEElMjAlMjAlMjAlMjBsaWJyYXJ5X25hbWUlM0QlMjJ0cmFuc2Zvcm1lcnMlMjIlMkMlMEElMjAlMjAlMjAlMjBsaWJyYXJ5X3ZlcnNpb24lM0QlMjI0LjI2LjAlMjIlMkMlMEElMjAlMjAlMjAlMjB1c2VyX2FnZW50JTNEJTdCJTIycGlwZWxpbmUlMjIlM0ElMjAlMjJ0ZXh0X2NsYXNzaWZpY2F0aW9uJTIyJTJDJTIwJTIyZnJhbWV3b3JrJTIyJTNBJTIwJTIyZmxheCUyMiU3RCUyQyUwQSk=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> huggingface_hub.utils <span class="hljs-keyword">import</span> send_telemetry

<span class="hljs-comment"># Send telemetry without library information</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>send_telemetry(<span class="hljs-string">&quot;ping&quot;</span>)

<span class="hljs-comment"># Send telemetry to subtopic with library information</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>send_telemetry(<span class="hljs-string">&quot;gradio/local_link&quot;</span>, library_name=<span class="hljs-string">&quot;gradio&quot;</span>, library_version=<span class="hljs-string">&quot;3.22.1&quot;</span>)

<span class="hljs-comment"># Send telemetry with additional data</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>send_telemetry(
<span class="hljs-meta">... </span>    topic=<span class="hljs-string">&quot;examples&quot;</span>,
<span class="hljs-meta">... </span>    library_name=<span class="hljs-string">&quot;transformers&quot;</span>,
<span class="hljs-meta">... </span>    library_version=<span class="hljs-string">&quot;4.26.0&quot;</span>,
<span class="hljs-meta">... </span>    user_agent={<span class="hljs-string">&quot;pipeline&quot;</span>: <span class="hljs-string">&quot;text_classification&quot;</span>, <span class="hljs-string">&quot;framework&quot;</span>: <span class="hljs-string">&quot;flax&quot;</span>},
<span class="hljs-meta">... </span>)`,wrap:!1}}),{c(){o=u("p"),o.textContent=M,y=a(),h(g.$$.fragment)},l(t){o=p(t,"P",{"data-svelte-h":!0}),c(o)!=="svelte-11lpom8"&&(o.textContent=M),y=l(t),d(g.$$.fragment,t)},m(t,v){r(t,o,v),r(t,y,v),f(g,t,v),$=!0},p:B,i(t){$||(m(g.$$.fragment,t),$=!0)},o(t){b(g.$$.fragment,t),$=!1},d(t){t&&(n(o),n(y)),_(g,t)}}}function ui(w){let o,M="Example:",y,g,$;return g=new C({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1Yi51dGlscyUyMGltcG9ydCUyMHZhbGlkYXRlX2hmX2h1Yl9hcmdzJTBBJTBBJTQwdmFsaWRhdGVfaGZfaHViX2FyZ3MlMEFkZWYlMjBteV9jb29sX21ldGhvZChyZXBvX2lkJTNBJTIwc3RyKSUzQSUwQSUyMCUyMCUyMCUyMHByaW50KHJlcG9faWQpJTBBJTBBbXlfY29vbF9tZXRob2QocmVwb19pZCUzRCUyMnZhbGlkX3JlcG9faWQlMjIpJTBBJTBBbXlfY29vbF9tZXRob2QoJTIyb3RoZXIuLnJlcG8uLmlkJTIyKSUwQSUwQW15X2Nvb2xfbWV0aG9kKHJlcG9faWQlM0QlMjJvdGhlci4ucmVwby4uaWQlMjIpJTBBJTBBJTQwdmFsaWRhdGVfaGZfaHViX2FyZ3MlMEFkZWYlMjBteV9jb29sX2F1dGhfbWV0aG9kKHRva2VuJTNBJTIwc3RyKSUzQSUwQSUyMCUyMCUyMCUyMHByaW50KHRva2VuKSUwQSUwQW15X2Nvb2xfYXV0aF9tZXRob2QodG9rZW4lM0QlMjJhJTIwdG9rZW4lMjIpJTBBJTBBbXlfY29vbF9hdXRoX21ldGhvZCh1c2VfYXV0aF90b2tlbiUzRCUyMmElMjB1c2VfYXV0aF90b2tlbiUyMiklMEElMEFteV9jb29sX2F1dGhfbWV0aG9kKHRva2VuJTNEJTIyYSUyMHRva2VuJTIyJTJDJTIwdXNlX2F1dGhfdG9rZW4lM0QlMjJhJTIwdXNlX2F1dGhfdG9rZW4lMjIp",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> huggingface_hub.utils <span class="hljs-keyword">import</span> validate_hf_hub_args

<span class="hljs-meta">&gt;&gt;&gt; </span>@validate_hf_hub_args
<span class="hljs-meta">... </span><span class="hljs-keyword">def</span> <span class="hljs-title function_">my_cool_method</span>(<span class="hljs-params">repo_id: <span class="hljs-built_in">str</span></span>):
<span class="hljs-meta">... </span>    <span class="hljs-built_in">print</span>(repo_id)

<span class="hljs-meta">&gt;&gt;&gt; </span>my_cool_method(repo_id=<span class="hljs-string">&quot;valid_repo_id&quot;</span>)
valid_repo_id

<span class="hljs-meta">&gt;&gt;&gt; </span>my_cool_method(<span class="hljs-string">&quot;other..repo..id&quot;</span>)
huggingface_hub.utils._validators.HFValidationError: Cannot have -- <span class="hljs-keyword">or</span> .. <span class="hljs-keyword">in</span> repo_id: <span class="hljs-string">&#x27;other..repo..id&#x27;</span>.

<span class="hljs-meta">&gt;&gt;&gt; </span>my_cool_method(repo_id=<span class="hljs-string">&quot;other..repo..id&quot;</span>)
huggingface_hub.utils._validators.HFValidationError: Cannot have -- <span class="hljs-keyword">or</span> .. <span class="hljs-keyword">in</span> repo_id: <span class="hljs-string">&#x27;other..repo..id&#x27;</span>.

<span class="hljs-meta">&gt;&gt;&gt; </span>@validate_hf_hub_args
<span class="hljs-meta">... </span><span class="hljs-keyword">def</span> <span class="hljs-title function_">my_cool_auth_method</span>(<span class="hljs-params">token: <span class="hljs-built_in">str</span></span>):
<span class="hljs-meta">... </span>    <span class="hljs-built_in">print</span>(token)

<span class="hljs-meta">&gt;&gt;&gt; </span>my_cool_auth_method(token=<span class="hljs-string">&quot;a token&quot;</span>)
<span class="hljs-string">&quot;a token&quot;</span>

<span class="hljs-meta">&gt;&gt;&gt; </span>my_cool_auth_method(use_auth_token=<span class="hljs-string">&quot;a use_auth_token&quot;</span>)
<span class="hljs-string">&quot;a use_auth_token&quot;</span>

<span class="hljs-meta">&gt;&gt;&gt; </span>my_cool_auth_method(token=<span class="hljs-string">&quot;a token&quot;</span>, use_auth_token=<span class="hljs-string">&quot;a use_auth_token&quot;</span>)
UserWarning: Both \`token\` <span class="hljs-keyword">and</span> \`use_auth_token\` are passed (...)
<span class="hljs-string">&quot;a token&quot;</span>`,wrap:!1}}),{c(){o=u("p"),o.textContent=M,y=a(),h(g.$$.fragment)},l(t){o=p(t,"P",{"data-svelte-h":!0}),c(o)!=="svelte-11lpom8"&&(o.textContent=M),y=l(t),d(g.$$.fragment,t)},m(t,v){r(t,o,v),r(t,y,v),f(g,t,v),$=!0},p:B,i(t){$||(m(g.$$.fragment,t),$=!0)},o(t){b(g.$$.fragment,t),$=!1},d(t){t&&(n(o),n(y)),_(g,t)}}}function pi(w){let o,M="Example:",y,g,$;return g=new C({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1Yi51dGlscyUyMGltcG9ydCUyMHZhbGlkYXRlX3JlcG9faWQlMEF2YWxpZGF0ZV9yZXBvX2lkKHJlcG9faWQlM0QlMjJ2YWxpZF9yZXBvX2lkJTIyKSUwQXZhbGlkYXRlX3JlcG9faWQocmVwb19pZCUzRCUyMm90aGVyLi5yZXBvLi5pZCUyMik=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> huggingface_hub.utils <span class="hljs-keyword">import</span> validate_repo_id
<span class="hljs-meta">&gt;&gt;&gt; </span>validate_repo_id(repo_id=<span class="hljs-string">&quot;valid_repo_id&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>validate_repo_id(repo_id=<span class="hljs-string">&quot;other..repo..id&quot;</span>)
huggingface_hub.utils._validators.HFValidationError: Cannot have -- <span class="hljs-keyword">or</span> .. <span class="hljs-keyword">in</span> repo_id: <span class="hljs-string">&#x27;other..repo..id&#x27;</span>.`,wrap:!1}}),{c(){o=u("p"),o.textContent=M,y=a(),h(g.$$.fragment)},l(t){o=p(t,"P",{"data-svelte-h":!0}),c(o)!=="svelte-11lpom8"&&(o.textContent=M),y=l(t),d(g.$$.fragment,t)},m(t,v){r(t,o,v),r(t,y,v),f(g,t,v),$=!0},p:B,i(t){$||(m(g.$$.fragment,t),$=!0)},o(t){b(g.$$.fragment,t),$=!1},d(t){t&&(n(o),n(y)),_(g,t)}}}function ci(w){let o,M,y,g,$,t,v,Tn,Xe,br=`The <code>huggingface_hub</code> package exposes a <code>logging</code> utility to control the logging level of the package itself.
You can import it as such:`,jn,Ge,Jn,Re,_r="Then, you may define the verbosity in order to update the amount of logs you’ll see:",kn,Ne,xn,Ve,yr="The levels should be understood as follows:",Hn,Fe,$r=`<li><code>error</code>: only show critical logs about usage which may result in an error or unexpected behavior.</li> <li><code>warning</code>: show logs that aren’t critical but usage may result in unintended behavior.
Additionally, important informative logs may be shown.</li> <li><code>info</code>: show most logs, including some verbose logging regarding what is happening under the hood.
If something is behaving in an unexpected manner, we recommend switching the verbosity level to this in order
to get more information.</li> <li><code>debug</code>: show all logs, including some internal logs which may be used to track exactly what’s happening
under the hood.</li>`,Un,P,Le,Aa,ds,vr="Return the current level for the HuggingFace Hub’s root logger.",Da,be,Cn,le,qe,Ka,fs,Mr="Sets the level for the HuggingFace Hub’s root logger.",In,re,Se,Oa,ms,wr="Sets the verbosity to <code>logging.INFO</code>.",Zn,oe,We,el,bs,Tr="Sets the verbosity to <code>logging.DEBUG</code>.",En,ie,Ye,tl,_s,jr="Sets the verbosity to <code>logging.WARNING</code>.",Bn,ge,ze,sl,ys,Jr="Sets the verbosity to <code>logging.ERROR</code>.",Xn,ue,Pe,nl,$s,kr=`Disable propagation of the library log outputs. Note that log propagation is
disabled by default.`,Gn,pe,Qe,al,vs,xr=`Enable propagation of the library log outputs. Please disable the
HuggingFace Hub’s default handler to prevent double logging if the root
logger has been configured.`,Rn,Ae,Nn,De,Hr=`The methods exposed below are relevant when modifying modules from the <code>huggingface_hub</code> library itself.
Using these shouldn’t be necessary if you use <code>huggingface_hub</code> and you don’t modify them.`,Vn,Q,Ke,ll,Ms,Ur=`Returns a logger with the specified name. This function is not supposed
to be directly accessed by library users.`,rl,_e,Fn,Oe,Ln,et,Cr=`Progress bars are a useful tool to display information to the user while a long-running task is being executed (e.g.
when downloading or uploading files). <code>huggingface_hub</code> exposes a <code>tqdm</code> wrapper to display progress bars in a
consistent way across the library.`,qn,tt,Ir=`By default, progress bars are enabled. You can disable them globally by setting <code>HF_HUB_DISABLE_PROGRESS_BARS</code>
environment variable. You can also enable/disable them using <a href="/docs/huggingface_hub/v0.19.3/en/package_reference/utilities#huggingface_hub.utils.enable_progress_bars">enable_progress_bars()</a> and
<a href="/docs/huggingface_hub/v0.19.3/en/package_reference/utilities#huggingface_hub.utils.disable_progress_bars">disable_progress_bars()</a>. If set, the environment variable has priority on the helpers.`,Sn,st,Wn,nt,Yn,A,at,ol,ws,Zr="Return whether progress bars are globally disabled or not.",il,Ts,Er=`Progress bars used in <code>huggingface_hub</code> can be enable or disabled globally using <a href="/docs/huggingface_hub/v0.19.3/en/package_reference/utilities#huggingface_hub.utils.enable_progress_bars">enable_progress_bars()</a>
and <a href="/docs/huggingface_hub/v0.19.3/en/package_reference/utilities#huggingface_hub.utils.disable_progress_bars">disable_progress_bars()</a> or by setting <code>HF_HUB_DISABLE_PROGRESS_BARS</code> as environment variable.`,zn,lt,Pn,D,rt,gl,js,Br=`Disable globally progress bars used in <code>huggingface_hub</code> except if <code>HF_HUB_DISABLE_PROGRESS_BARS</code> environment
variable has been set.`,ul,Js,Xr='Use <a href="/docs/huggingface_hub/v0.19.3/en/package_reference/utilities#huggingface_hub.utils.enable_progress_bars">enable_progress_bars()</a> to re-enable them.',Qn,ot,An,K,it,pl,ks,Gr=`Enable globally progress bars used in <code>huggingface_hub</code> except if <code>HF_HUB_DISABLE_PROGRESS_BARS</code> environment
variable has been set.`,cl,xs,Rr='Use <a href="/docs/huggingface_hub/v0.19.3/en/package_reference/utilities#huggingface_hub.utils.disable_progress_bars">disable_progress_bars()</a> to disable them.',Dn,gt,Kn,ut,Nr=`In some environments, you might want to configure how HTTP calls are made, for example if you are using a proxy.
<code>huggingface_hub</code> let you configure this globally using <a href="/docs/huggingface_hub/v0.19.3/en/package_reference/utilities#huggingface_hub.configure_http_backend">configure_http_backend()</a>. All requests made to the Hub will
then use your settings. Under the hood, <code>huggingface_hub</code> uses <code>requests.Session</code> so you might want to refer to the
<a href="https://requests.readthedocs.io/en/latest/user/advanced" rel="nofollow"><code>requests</code> documentation</a> to learn more about the available
parameters.`,On,pt,Vr=`Since <code>requests.Session</code> is not guaranteed to be thread-safe, <code>huggingface_hub</code> creates one session instance per thread.
Using sessions allows us to keep the connection open between HTTP calls and ultimately save time. If you are
integrating <code>huggingface_hub</code> in a third-party library and wants to make a custom call to the Hub, use <a href="/docs/huggingface_hub/v0.19.3/en/package_reference/utilities#huggingface_hub.get_session">get_session()</a>
to get a Session configured by your users (i.e. replace any <code>requests.get(...)</code> call by <code>get_session().get(...)</code>).`,ea,X,ct,hl,Hs,Fr=`Configure the HTTP backend by providing a <code>backend_factory</code>. Any HTTP calls made by <code>huggingface_hub</code> will use a
Session object instantiated by this factory. This can be useful if you are running your scripts in a specific
environment requiring custom configuration (e.g. custom proxy or certifications).`,dl,Us,Lr=`Use <a href="/docs/huggingface_hub/v0.19.3/en/package_reference/utilities#huggingface_hub.get_session">get_session()</a> to get a configured Session. Since <code>requests.Session</code> is not guaranteed to be thread-safe,
<code>huggingface_hub</code> creates 1 Session instance per thread. They are all instantiated using the same <code>backend_factory</code>
set in <a href="/docs/huggingface_hub/v0.19.3/en/package_reference/utilities#huggingface_hub.configure_http_backend">configure_http_backend()</a>. A LRU cache is used to cache the created sessions (and connections) between
calls. Max size is 128 to avoid memory leaks if thousands of threads are spawned.`,fl,Cs,qr='See <a href="https://github.com/psf/requests/issues/2766" rel="nofollow">this issue</a> to know more about thread-safety in <code>requests</code>.',ml,ye,ta,G,ht,bl,Is,Sr="Get a <code>requests.Session</code> object, using the session factory from the user.",_l,Zs,Wr=`Use <a href="/docs/huggingface_hub/v0.19.3/en/package_reference/utilities#huggingface_hub.get_session">get_session()</a> to get a configured Session. Since <code>requests.Session</code> is not guaranteed to be thread-safe,
<code>huggingface_hub</code> creates 1 Session instance per thread. They are all instantiated using the same <code>backend_factory</code>
set in <a href="/docs/huggingface_hub/v0.19.3/en/package_reference/utilities#huggingface_hub.configure_http_backend">configure_http_backend()</a>. A LRU cache is used to cache the created sessions (and connections) between
calls. Max size is 128 to avoid memory leaks if thousands of threads are spawned.`,yl,Es,Yr='See <a href="https://github.com/psf/requests/issues/2766" rel="nofollow">this issue</a> to know more about thread-safety in <code>requests</code>.',$l,$e,sa,dt,na,ft,zr=`<code>huggingface_hub</code> defines its own HTTP errors to refine the <code>HTTPError</code> raised by
<code>requests</code> with additional information sent back by the server.`,aa,mt,la,bt,Pr=`<a href="/docs/huggingface_hub/v0.19.3/en/package_reference/utilities#huggingface_hub.utils.hf_raise_for_status">hf_raise_for_status()</a> is meant to be the central method to “raise for status” from any
request made to the Hub. It wraps the base <code>requests.raise_for_status</code> to provide
additional information. Any <code>HTTPError</code> thrown is converted into a <code>HfHubHTTPError</code>.`,ra,_t,oa,R,yt,vl,Bs,Qr=`Internal version of <code>response.raise_for_status()</code> that will refine a
potential HTTPError. Raised exception will be an instance of <code>HfHubHTTPError</code>.`,Ml,Xs,Ar=`This helper is meant to be the unique method to raise_for_status when making a call
to the Hugging Face Hub.`,wl,ve,Tl,Me,ia,$t,ga,vt,Dr="Here is a list of HTTP errors thrown in <code>huggingface_hub</code>.",ua,Mt,pa,wt,Kr=`<code>HfHubHTTPError</code> is the parent class for any HF Hub HTTP error. It takes care of parsing
the server response and format the error message to provide as much information to the
user as possible.`,ca,U,Tt,jl,Gs,Or="HTTPError to inherit from for any custom HTTP Error raised in HF Hub.",Jl,Rs,eo=`Any HTTPError is converted at least into a <code>HfHubHTTPError</code>. If some information is
sent back by the server, it will be added to the error message.`,kl,Ns,to="Added details:",xl,Vs,so="<li>Request id from “X-Request-Id” header if exists.</li> <li>Server error message from the header “X-Error-Message”.</li> <li>Server error message if we can found one in the response body.</li>",Hl,we,Ul,Te,jt,Cl,Fs,no="Append additional information to the <code>HfHubHTTPError</code> initial message.",ha,Jt,da,O,kt,Il,Ls,ao=`Raised when trying to access a hf.co URL with an invalid repository name, or
with a private repo name the user does not have access to.`,Zl,je,fa,xt,ma,F,Ht,El,qs,lo=`Raised when trying to access a gated repository for which the user is not on the
authorized list.`,Bl,Ss,ro="Note: derives from <code>RepositoryNotFoundError</code> to ensure backward compatibility.",Xl,Je,ba,Ut,_a,ee,Ct,Gl,Ws,oo=`Raised when trying to access a hf.co URL with a valid repository but an invalid
revision.`,Rl,ke,ya,It,$a,te,Zt,Nl,Ys,io=`Raised when trying to access a hf.co URL with a valid repository and revision
but an invalid filename.`,Vl,xe,va,Et,Ma,se,Bt,Fl,zs,go="Raised by <code>hf_raise_for_status</code> when the server returns a HTTP 400 error.",Ll,He,wa,Xt,Ta,L,Gt,ql,Ps,uo=`Raised when trying to access a file that is not on the disk when network is
disabled or unavailable (connection issue). The entry may exist on the Hub.`,Sl,Qs,po=`Note: <code>ValueError</code> type is to ensure backward compatibility.
Note: <code>LocalEntryNotFoundError</code> derives from <code>HTTPError</code> because of <code>EntryNotFoundError</code>
even when it is not a network issue.`,Wl,Ue,ja,Rt,Ja,Nt,co=`<code>huggingface_hub</code> includes an helper to send telemetry data. This information helps us debug issues and prioritize new features.
Users can disable telemetry collection at any time by setting the <code>HF_HUB_DISABLE_TELEMETRY=1</code> environment variable.
Telemetry is also disabled in offline mode (i.e. when setting HF_HUB_OFFLINE=1).`,ka,Vt,ho=`If you are maintainer of a third-party library, sending telemetry data is as simple as making a call to <code>send_telemetry</code>.
Data is sent in a separate thread to reduce as much as possible the impact for users.`,xa,N,Ft,Yl,As,fo="Sends telemetry that helps tracking usage of different HF libraries.",zl,Ds,mo=`This usage data helps us debug issues and prioritize new features. However, we understand that not everyone wants
to share additional information, and we respect your privacy. You can disable telemetry collection by setting the
<code>HF_HUB_DISABLE_TELEMETRY=1</code> as environment variable. Telemetry is also disabled in offline mode (i.e. when setting
<code>HF_HUB_OFFLINE=1</code>).`,Pl,Ks,bo="Telemetry collection is run in a separate thread to minimize impact for the user.",Ql,Ce,Ha,Lt,Ua,qt,_o=`<code>huggingface_hub</code> includes custom validators to validate method arguments automatically.
Validation is inspired by the work done in <a href="https://pydantic-docs.helpmanual.io/" rel="nofollow">Pydantic</a>
to validate type hints but with more limited features.`,Ca,St,Ia,Wt,yo=`<a href="/docs/huggingface_hub/v0.19.3/en/package_reference/utilities#huggingface_hub.utils.validate_hf_hub_args">validate_hf_hub_args()</a> is a generic decorator to encapsulate
methods that have arguments following <code>huggingface_hub</code>’s naming. By default, all
arguments that has a validator implemented will be validated.`,Za,Yt,$o=`If an input is not valid, a <a href="/docs/huggingface_hub/v0.19.3/en/package_reference/utilities#huggingface_hub.utils.HFValidationError">HFValidationError</a> is thrown. Only
the first non-valid value throws an error and stops the validation process.`,Ea,zt,vo="Usage:",Ba,Pt,Xa,Qt,Ga,I,At,Al,Os,Mo="Validate values received as argument for any public method of <code>huggingface_hub</code>.",Dl,en,wo=`The goal of this decorator is to harmonize validation of arguments reused
everywhere. By default, all defined validators are tested.`,Kl,tn,To="Validators:",Ol,sn,jo=`<li><a href="/docs/huggingface_hub/v0.19.3/en/package_reference/utilities#huggingface_hub.utils.validate_repo_id">validate_repo_id()</a>: <code>repo_id</code> must be <code>&quot;repo_name&quot;</code>
or <code>&quot;namespace/repo_name&quot;</code>. Namespace is a username or an organization.</li> <li><a href="/docs/huggingface_hub/v0.19.3/en/package_reference/utilities#huggingface_hub.utils.smoothly_deprecate_use_auth_token">smoothly_deprecate_use_auth_token()</a>: Use <code>token</code> instead of
<code>use_auth_token</code> (only if <code>use_auth_token</code> is not expected by the decorated
function - in practice, always the case in <code>huggingface_hub</code>).</li>`,er,Ie,Ra,Dt,Na,ne,Kt,tr,nn,Jo="Generic exception thrown by <code>huggingface_hub</code> validators.",sr,an,ko='Inherits from <a href="https://docs.python.org/3/library/exceptions.html#ValueError" rel="nofollow"><code>ValueError</code></a>.',Va,Ot,Fa,es,xo=`Validators can also be used individually. Here is a list of all arguments that can be
validated.`,La,ts,qa,x,ss,nr,ln,Ho="Validate <code>repo_id</code> is valid.",ar,rn,Uo=`This is not meant to replace the proper validation made on the Hub but rather to
avoid local inconsistencies whenever possible (example: passing <code>repo_type</code> in the
<code>repo_id</code> is forbidden).`,lr,on,Co="Rules:",rr,gn,Io="<li>Between 1 and 96 characters.</li> <li>Either “repo_name” or “namespace/repo_name”</li> <li>[a-zA-Z0-9] or ”-”, ”_”, ”.”</li> <li>”—” and ”..” are forbidden</li>",or,un,Zo="Valid: <code>&quot;foo&quot;</code>, <code>&quot;foo/bar&quot;</code>, <code>&quot;123&quot;</code>, <code>&quot;Foo-BAR_foo.bar123&quot;</code>",ir,pn,Eo="Not valid: <code>&quot;datasets/foo/bar&quot;</code>, <code>&quot;.repo_id&quot;</code>, <code>&quot;foo--bar&quot;</code>, <code>&quot;foo.git&quot;</code>",gr,Ze,ur,cn,Bo=`Discussed in <a href="https://github.com/huggingface/huggingface_hub/issues/1008" rel="nofollow">https://github.com/huggingface/huggingface_hub/issues/1008</a>.
In moon-landing (internal repository):`,pr,hn,Xo='<li><a href="https://github.com/huggingface/moon-landing/blob/main/server/lib/Names.ts#L27" rel="nofollow">https://github.com/huggingface/moon-landing/blob/main/server/lib/Names.ts#L27</a></li> <li><a href="https://github.com/huggingface/moon-landing/blob/main/server/views/components/NewRepoForm/NewRepoForm.svelte#L138" rel="nofollow">https://github.com/huggingface/moon-landing/blob/main/server/views/components/NewRepoForm/NewRepoForm.svelte#L138</a></li>',Sa,ns,Wa,as,Go="Not exactly a validator, but ran as well.",Ya,Z,ls,cr,dn,Ro="Smoothly deprecate <code>use_auth_token</code> in the <code>huggingface_hub</code> codebase.",hr,fn,No=`The long-term goal is to remove any mention of <code>use_auth_token</code> in the codebase in
favor of a unique and less verbose <code>token</code> argument. This will be done a few steps:`,dr,rs,Vo=`<li><p>Step 0: methods that require a read-access to the Hub use the <code>use_auth_token</code>
argument (<code>str</code>, <code>bool</code> or <code>None</code>). Methods requiring write-access have a <code>token</code>
argument (<code>str</code>, <code>None</code>). This implicit rule exists to be able to not send the
token when not necessary (<code>use_auth_token=False</code>) even if logged in.</p></li> <li><p>Step 1: we want to harmonize everything and use <code>token</code> everywhere (supporting
<code>token=False</code> for read-only methods). In order not to break existing code, if
<code>use_auth_token</code> is passed to a function, the <code>use_auth_token</code> value is passed
as <code>token</code> instead, without any warning.
a. Corner case: if both <code>use_auth_token</code> and <code>token</code> values are passed, a warning
is thrown and the <code>use_auth_token</code> value is ignored.</p></li> <li><p>Step 2: Once it is release, we should push downstream libraries to switch from
<code>use_auth_token</code> to <code>token</code> as much as possible, but without throwing a warning
(e.g. manually create issues on the corresponding repos).</p></li> <li><p>Step 3: After a transitional period (6 months e.g. until April 2023?), we update
<code>huggingface_hub</code> to throw a warning on <code>use_auth_token</code>. Hopefully, very few
users will be impacted as it would have already been fixed.
In addition, unit tests in <code>huggingface_hub</code> must be adapted to expect warnings
to be thrown (but still use <code>use_auth_token</code> as before).</p></li> <li><p>Step 4: After a normal deprecation cycle (3 releases ?), remove this validator.
<code>use_auth_token</code> will definitely not be supported.
In addition, we update unit tests in <code>huggingface_hub</code> to use <code>token</code> everywhere.</p></li>`,fr,mn,Fo="This has been discussed in:",mr,bn,Lo='<li><a href="https://github.com/huggingface/huggingface_hub/issues/1094" rel="nofollow">https://github.com/huggingface/huggingface_hub/issues/1094</a>.</li> <li><a href="https://github.com/huggingface/huggingface_hub/pull/928" rel="nofollow">https://github.com/huggingface/huggingface_hub/pull/928</a></li> <li>(related) <a href="https://github.com/huggingface/huggingface_hub/pull/1064" rel="nofollow">https://github.com/huggingface/huggingface_hub/pull/1064</a></li>',za,wn,Pa;return $=new k({props:{title:"Utilities",local:"utilities",headingTag:"h1"}}),v=new k({props:{title:"Configure logging",local:"huggingface_hub.utils.logging.get_verbosity",headingTag:"h2"}}),Ge=new C({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMGxvZ2dpbmc=",highlighted:'<span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> logging',wrap:!1}}),Ne=new C({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMGxvZ2dpbmclMEElMEFsb2dnaW5nLnNldF92ZXJib3NpdHlfZXJyb3IoKSUwQWxvZ2dpbmcuc2V0X3ZlcmJvc2l0eV93YXJuaW5nKCklMEFsb2dnaW5nLnNldF92ZXJib3NpdHlfaW5mbygpJTBBbG9nZ2luZy5zZXRfdmVyYm9zaXR5X2RlYnVnKCklMEElMEFsb2dnaW5nLnNldF92ZXJib3NpdHkoLi4uKQ==",highlighted:`<span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> logging

logging.set_verbosity_error()
logging.set_verbosity_warning()
logging.set_verbosity_info()
logging.set_verbosity_debug()

logging.set_verbosity(...)`,wrap:!1}}),Le=new J({props:{name:"huggingface_hub.utils.logging.get_verbosity",anchor:"huggingface_hub.utils.logging.get_verbosity",parameters:[],source:"https://github.com/huggingface/huggingface_hub/blob/v0.19.3/src/huggingface_hub/utils/logging.py#L103",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>Logging level, e.g., <code>huggingface_hub.logging.DEBUG</code> and
<code>huggingface_hub.logging.INFO</code>.</p>
`}}),be=new qo({props:{$$slots:{default:[Ao]},$$scope:{ctx:w}}}),qe=new J({props:{name:"huggingface_hub.utils.logging.set_verbosity",anchor:"huggingface_hub.utils.logging.set_verbosity",parameters:[{name:"verbosity",val:": int"}],parametersDescription:[{anchor:"huggingface_hub.utils.logging.set_verbosity.verbosity",description:`<strong>verbosity</strong> (<code>int</code>) &#x2014;
Logging level, e.g., <code>huggingface_hub.logging.DEBUG</code> and
<code>huggingface_hub.logging.INFO</code>.`,name:"verbosity"}],source:"https://github.com/huggingface/huggingface_hub/blob/v0.19.3/src/huggingface_hub/utils/logging.py#L125"}}),Se=new J({props:{name:"huggingface_hub.utils.logging.set_verbosity_info",anchor:"huggingface_hub.utils.logging.set_verbosity_info",parameters:[],source:"https://github.com/huggingface/huggingface_hub/blob/v0.19.3/src/huggingface_hub/utils/logging.py#L137"}}),We=new J({props:{name:"huggingface_hub.utils.logging.set_verbosity_debug",anchor:"huggingface_hub.utils.logging.set_verbosity_debug",parameters:[],source:"https://github.com/huggingface/huggingface_hub/blob/v0.19.3/src/huggingface_hub/utils/logging.py#L151"}}),Ye=new J({props:{name:"huggingface_hub.utils.logging.set_verbosity_warning",anchor:"huggingface_hub.utils.logging.set_verbosity_warning",parameters:[],source:"https://github.com/huggingface/huggingface_hub/blob/v0.19.3/src/huggingface_hub/utils/logging.py#L144"}}),ze=new J({props:{name:"huggingface_hub.utils.logging.set_verbosity_error",anchor:"huggingface_hub.utils.logging.set_verbosity_error",parameters:[],source:"https://github.com/huggingface/huggingface_hub/blob/v0.19.3/src/huggingface_hub/utils/logging.py#L158"}}),Pe=new J({props:{name:"huggingface_hub.utils.logging.disable_propagation",anchor:"huggingface_hub.utils.logging.disable_propagation",parameters:[],source:"https://github.com/huggingface/huggingface_hub/blob/v0.19.3/src/huggingface_hub/utils/logging.py#L165"}}),Qe=new J({props:{name:"huggingface_hub.utils.logging.enable_propagation",anchor:"huggingface_hub.utils.logging.enable_propagation",parameters:[],source:"https://github.com/huggingface/huggingface_hub/blob/v0.19.3/src/huggingface_hub/utils/logging.py#L173"}}),Ae=new k({props:{title:"Repo-specific helper methods",local:"huggingface_hub.utils.logging.get_logger",headingTag:"h3"}}),Ke=new J({props:{name:"huggingface_hub.utils.logging.get_logger",anchor:"huggingface_hub.utils.logging.get_logger",parameters:[{name:"name",val:": typing.Optional[str] = None"}],parametersDescription:[{anchor:"huggingface_hub.utils.logging.get_logger.name",description:`<strong>name</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The name of the logger to get, usually the filename`,name:"name"}],source:"https://github.com/huggingface/huggingface_hub/blob/v0.19.3/src/huggingface_hub/utils/logging.py#L78"}}),_e=new V({props:{anchor:"huggingface_hub.utils.logging.get_logger.example",$$slots:{default:[Do]},$$scope:{ctx:w}}}),Oe=new k({props:{title:"Configure progress bars",local:"configure-progress-bars",headingTag:"h2"}}),st=new C({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMHNuYXBzaG90X2Rvd25sb2FkJTBBZnJvbSUyMGh1Z2dpbmdmYWNlX2h1Yi51dGlscyUyMGltcG9ydCUyMGFyZV9wcm9ncmVzc19iYXJzX2Rpc2FibGVkJTJDJTIwZGlzYWJsZV9wcm9ncmVzc19iYXJzJTJDJTIwZW5hYmxlX3Byb2dyZXNzX2JhcnMlMEElMEElMjMlMjBEaXNhYmxlJTIwcHJvZ3Jlc3MlMjBiYXJzJTIwZ2xvYmFsbHklMEFkaXNhYmxlX3Byb2dyZXNzX2JhcnMoKSUwQSUwQSUyMyUyMFByb2dyZXNzJTIwYmFyJTIwd2lsbCUyMG5vdCUyMGJlJTIwc2hvd24lMjAhJTBBc25hcHNob3RfZG93bmxvYWQoJTIyZ3B0MiUyMiklMEElMEFhcmVfcHJvZ3Jlc3NfYmFyc19kaXNhYmxlZCgpJTBBJTBBJTIzJTIwUmUtZW5hYmxlJTIwcHJvZ3Jlc3MlMjBiYXJzJTIwZ2xvYmFsbHklMEFlbmFibGVfcHJvZ3Jlc3NfYmFycygp",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> snapshot_download
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> huggingface_hub.utils <span class="hljs-keyword">import</span> are_progress_bars_disabled, disable_progress_bars, enable_progress_bars

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># Disable progress bars globally</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>disable_progress_bars()

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># Progress bar will not be shown !</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>snapshot_download(<span class="hljs-string">&quot;gpt2&quot;</span>)

<span class="hljs-meta">&gt;&gt;&gt; </span>are_progress_bars_disabled()
<span class="hljs-literal">True</span>

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># Re-enable progress bars globally</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>enable_progress_bars()`,wrap:!1}}),nt=new k({props:{title:"are_progress_bars_disabled",local:"huggingface_hub.utils.are_progress_bars_disabled",headingTag:"h3"}}),at=new J({props:{name:"huggingface_hub.utils.are_progress_bars_disabled",anchor:"huggingface_hub.utils.are_progress_bars_disabled",parameters:[],source:"https://github.com/huggingface/huggingface_hub/blob/v0.19.3/src/huggingface_hub/utils/tqdm.py#L112"}}),lt=new k({props:{title:"disable_progress_bars",local:"huggingface_hub.utils.disable_progress_bars",headingTag:"h3"}}),rt=new J({props:{name:"huggingface_hub.utils.disable_progress_bars",anchor:"huggingface_hub.utils.disable_progress_bars",parameters:[],source:"https://github.com/huggingface/huggingface_hub/blob/v0.19.3/src/huggingface_hub/utils/tqdm.py#L78"}}),ot=new k({props:{title:"enable_progress_bars",local:"huggingface_hub.utils.enable_progress_bars",headingTag:"h3"}}),it=new J({props:{name:"huggingface_hub.utils.enable_progress_bars",anchor:"huggingface_hub.utils.enable_progress_bars",parameters:[],source:"https://github.com/huggingface/huggingface_hub/blob/v0.19.3/src/huggingface_hub/utils/tqdm.py#L95"}}),gt=new k({props:{title:"Configure HTTP backend",local:"huggingface_hub.configure_http_backend",headingTag:"h2"}}),ct=new J({props:{name:"huggingface_hub.configure_http_backend",anchor:"huggingface_hub.configure_http_backend",parameters:[{name:"backend_factory",val:": typing.Callable[[], requests.sessions.Session] = <function _default_backend_factory at 0x7fad68e96af0>"}],source:"https://github.com/huggingface/huggingface_hub/blob/v0.19.3/src/huggingface_hub/utils/_http.py#L83"}}),ye=new V({props:{anchor:"huggingface_hub.configure_http_backend.example",$$slots:{default:[Ko]},$$scope:{ctx:w}}}),ht=new J({props:{name:"huggingface_hub.get_session",anchor:"huggingface_hub.get_session",parameters:[],source:"https://github.com/huggingface/huggingface_hub/blob/v0.19.3/src/huggingface_hub/utils/_http.py#L119"}}),$e=new V({props:{anchor:"huggingface_hub.get_session.example",$$slots:{default:[Oo]},$$scope:{ctx:w}}}),dt=new k({props:{title:"Handle HTTP errors",local:"handle-http-errors",headingTag:"h2"}}),mt=new k({props:{title:"Raise for status",local:"huggingface_hub.utils.hf_raise_for_status",headingTag:"h3"}}),_t=new C({props:{code:"aW1wb3J0JTIwcmVxdWVzdHMlMEFmcm9tJTIwaHVnZ2luZ2ZhY2VfaHViLnV0aWxzJTIwaW1wb3J0JTIwaGZfcmFpc2VfZm9yX3N0YXR1cyUyQyUyMEhmSHViSFRUUEVycm9yJTBBJTBBcmVzcG9uc2UlMjAlM0QlMjByZXF1ZXN0cy5wb3N0KC4uLiklMEF0cnklM0ElMEElMjAlMjAlMjAlMjBoZl9yYWlzZV9mb3Jfc3RhdHVzKHJlc3BvbnNlKSUwQWV4Y2VwdCUyMEhmSHViSFRUUEVycm9yJTIwYXMlMjBlJTNBJTBBJTIwJTIwJTIwJTIwcHJpbnQoc3RyKGUpKSUyMCUyMyUyMGZvcm1hdHRlZCUyMG1lc3NhZ2UlMEElMjAlMjAlMjAlMjBlLnJlcXVlc3RfaWQlMkMlMjBlLnNlcnZlcl9tZXNzYWdlJTIwJTIzJTIwZGV0YWlscyUyMHJldHVybmVkJTIwYnklMjBzZXJ2ZXIlMEElMEElMjAlMjAlMjAlMjAlMjMlMjBDb21wbGV0ZSUyMHRoZSUyMGVycm9yJTIwbWVzc2FnZSUyMHdpdGglMjBhZGRpdGlvbmFsJTIwaW5mb3JtYXRpb24lMjBvbmNlJTIwaXQncyUyMHJhaXNlZCUwQSUyMCUyMCUyMCUyMGUuYXBwZW5kX3RvX21lc3NhZ2UoJTIyJTVDbiU2MGNyZWF0ZV9jb21taXQlNjAlMjBleHBlY3RzJTIwdGhlJTIwcmVwb3NpdG9yeSUyMHRvJTIwZXhpc3QuJTIyKSUwQSUyMCUyMCUyMCUyMHJhaXNl",highlighted:`<span class="hljs-keyword">import</span> requests
<span class="hljs-keyword">from</span> huggingface_hub.utils <span class="hljs-keyword">import</span> hf_raise_for_status, HfHubHTTPError

response = requests.post(...)
<span class="hljs-keyword">try</span>:
    hf_raise_for_status(response)
<span class="hljs-keyword">except</span> HfHubHTTPError <span class="hljs-keyword">as</span> e:
    <span class="hljs-built_in">print</span>(<span class="hljs-built_in">str</span>(e)) <span class="hljs-comment"># formatted message</span>
    e.request_id, e.server_message <span class="hljs-comment"># details returned by server</span>

    <span class="hljs-comment"># Complete the error message with additional information once it&#x27;s raised</span>
    e.append_to_message(<span class="hljs-string">&quot;\\n\`create_commit\` expects the repository to exist.&quot;</span>)
    <span class="hljs-keyword">raise</span>`,wrap:!1}}),yt=new J({props:{name:"huggingface_hub.utils.hf_raise_for_status",anchor:"huggingface_hub.utils.hf_raise_for_status",parameters:[{name:"response",val:": Response"},{name:"endpoint_name",val:": typing.Optional[str] = None"}],parametersDescription:[{anchor:"huggingface_hub.utils.hf_raise_for_status.response",description:`<strong>response</strong> (<code>Response</code>) &#x2014;
Response from the server.`,name:"response"},{anchor:"huggingface_hub.utils.hf_raise_for_status.endpoint_name",description:`<strong>endpoint_name</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Name of the endpoint that has been called. If provided, the error message
will be more complete.`,name:"endpoint_name"}],source:"https://github.com/huggingface/huggingface_hub/blob/v0.19.3/src/huggingface_hub/utils/_errors.py#L214"}}),ve=new V({props:{anchor:"huggingface_hub.utils.hf_raise_for_status.example",$$slots:{default:[ei]},$$scope:{ctx:w}}}),Me=new qo({props:{warning:!0,$$slots:{default:[ti]},$$scope:{ctx:w}}}),$t=new k({props:{title:"HTTP errors",local:"http-errors",headingTag:"h3"}}),Mt=new k({props:{title:"HfHubHTTPError",local:"huggingface_hub.utils.HfHubHTTPError",headingTag:"h4"}}),Tt=new J({props:{name:"class huggingface_hub.utils.HfHubHTTPError",anchor:"huggingface_hub.utils.HfHubHTTPError",parameters:[{name:"message",val:": str"},{name:"response",val:": typing.Optional[requests.models.Response] = None"}],source:"https://github.com/huggingface/huggingface_hub/blob/v0.19.3/src/huggingface_hub/utils/_errors.py#L16"}}),we=new V({props:{anchor:"huggingface_hub.utils.HfHubHTTPError.example",$$slots:{default:[si]},$$scope:{ctx:w}}}),jt=new J({props:{name:"append_to_message",anchor:"huggingface_hub.utils.HfHubHTTPError.append_to_message",parameters:[{name:"additional_message",val:": str"}],source:"https://github.com/huggingface/huggingface_hub/blob/v0.19.3/src/huggingface_hub/utils/_errors.py#L93"}}),Jt=new k({props:{title:"RepositoryNotFoundError",local:"huggingface_hub.utils.RepositoryNotFoundError",headingTag:"h4"}}),kt=new J({props:{name:"class huggingface_hub.utils.RepositoryNotFoundError",anchor:"huggingface_hub.utils.RepositoryNotFoundError",parameters:[{name:"message",val:": str"},{name:"response",val:": typing.Optional[requests.models.Response] = None"}],source:"https://github.com/huggingface/huggingface_hub/blob/v0.19.3/src/huggingface_hub/utils/_errors.py#L98"}}),je=new V({props:{anchor:"huggingface_hub.utils.RepositoryNotFoundError.example",$$slots:{default:[ni]},$$scope:{ctx:w}}}),xt=new k({props:{title:"GatedRepoError",local:"huggingface_hub.utils.GatedRepoError",headingTag:"h4"}}),Ht=new J({props:{name:"class huggingface_hub.utils.GatedRepoError",anchor:"huggingface_hub.utils.GatedRepoError",parameters:[{name:"message",val:": str"},{name:"response",val:": typing.Optional[requests.models.Response] = None"}],source:"https://github.com/huggingface/huggingface_hub/blob/v0.19.3/src/huggingface_hub/utils/_errors.py#L119"}}),Je=new V({props:{anchor:"huggingface_hub.utils.GatedRepoError.example",$$slots:{default:[ai]},$$scope:{ctx:w}}}),Ut=new k({props:{title:"RevisionNotFoundError",local:"huggingface_hub.utils.RevisionNotFoundError",headingTag:"h4"}}),Ct=new J({props:{name:"class huggingface_hub.utils.RevisionNotFoundError",anchor:"huggingface_hub.utils.RevisionNotFoundError",parameters:[{name:"message",val:": str"},{name:"response",val:": typing.Optional[requests.models.Response] = None"}],source:"https://github.com/huggingface/huggingface_hub/blob/v0.19.3/src/huggingface_hub/utils/_errors.py#L141"}}),ke=new V({props:{anchor:"huggingface_hub.utils.RevisionNotFoundError.example",$$slots:{default:[li]},$$scope:{ctx:w}}}),It=new k({props:{title:"EntryNotFoundError",local:"huggingface_hub.utils.EntryNotFoundError",headingTag:"h4"}}),Zt=new J({props:{name:"class huggingface_hub.utils.EntryNotFoundError",anchor:"huggingface_hub.utils.EntryNotFoundError",parameters:[{name:"message",val:": str"},{name:"response",val:": typing.Optional[requests.models.Response] = None"}],source:"https://github.com/huggingface/huggingface_hub/blob/v0.19.3/src/huggingface_hub/utils/_errors.py#L159"}}),xe=new V({props:{anchor:"huggingface_hub.utils.EntryNotFoundError.example",$$slots:{default:[ri]},$$scope:{ctx:w}}}),Et=new k({props:{title:"BadRequestError",local:"huggingface_hub.utils.BadRequestError",headingTag:"h4"}}),Bt=new J({props:{name:"class huggingface_hub.utils.BadRequestError",anchor:"huggingface_hub.utils.BadRequestError",parameters:[{name:"message",val:": str"},{name:"response",val:": typing.Optional[requests.models.Response] = None"}],source:"https://github.com/huggingface/huggingface_hub/blob/v0.19.3/src/huggingface_hub/utils/_errors.py#L200"}}),He=new V({props:{anchor:"huggingface_hub.utils.BadRequestError.example",$$slots:{default:[oi]},$$scope:{ctx:w}}}),Xt=new k({props:{title:"LocalEntryNotFoundError",local:"huggingface_hub.utils.LocalEntryNotFoundError",headingTag:"h4"}}),Gt=new J({props:{name:"class huggingface_hub.utils.LocalEntryNotFoundError",anchor:"huggingface_hub.utils.LocalEntryNotFoundError",parameters:[{name:"message",val:": str"}],source:"https://github.com/huggingface/huggingface_hub/blob/v0.19.3/src/huggingface_hub/utils/_errors.py#L177"}}),Ue=new V({props:{anchor:"huggingface_hub.utils.LocalEntryNotFoundError.example",$$slots:{default:[ii]},$$scope:{ctx:w}}}),Rt=new k({props:{title:"Telemetry",local:"huggingface_hub.utils.send_telemetry",headingTag:"h2"}}),Ft=new J({props:{name:"huggingface_hub.utils.send_telemetry",anchor:"huggingface_hub.utils.send_telemetry",parameters:[{name:"topic",val:": str"},{name:"library_name",val:": typing.Optional[str] = None"},{name:"library_version",val:": typing.Optional[str] = None"},{name:"user_agent",val:": typing.Union[typing.Dict, str, NoneType] = None"}],parametersDescription:[{anchor:"huggingface_hub.utils.send_telemetry.topic",description:`<strong>topic</strong> (<code>str</code>) &#x2014;
Name of the topic that is monitored. The topic is directly used to build the URL. If you want to monitor
subtopics, just use &#x201D;/&#x201D; separation. Examples: &#x201C;gradio&#x201D;, &#x201C;transformers/examples&#x201D;,&#x2026;`,name:"topic"},{anchor:"huggingface_hub.utils.send_telemetry.library_name",description:`<strong>library_name</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The name of the library that is making the HTTP request. Will be added to the user-agent header.`,name:"library_name"},{anchor:"huggingface_hub.utils.send_telemetry.library_version",description:`<strong>library_version</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The version of the library that is making the HTTP request. Will be added to the user-agent header.`,name:"library_version"},{anchor:"huggingface_hub.utils.send_telemetry.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 single string. It will be completed with information about the installed packages.`,name:"user_agent"}],source:"https://github.com/huggingface/huggingface_hub/blob/v0.19.3/src/huggingface_hub/utils/_telemetry.py#L20"}}),Ce=new V({props:{anchor:"huggingface_hub.utils.send_telemetry.example",$$slots:{default:[gi]},$$scope:{ctx:w}}}),Lt=new k({props:{title:"Validators",local:"validators",headingTag:"h2"}}),St=new k({props:{title:"Generic decorator",local:"generic-decorator",headingTag:"h3"}}),Pt=new C({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1Yi51dGlscyUyMGltcG9ydCUyMHZhbGlkYXRlX2hmX2h1Yl9hcmdzJTBBJTBBJTQwdmFsaWRhdGVfaGZfaHViX2FyZ3MlMEFkZWYlMjBteV9jb29sX21ldGhvZChyZXBvX2lkJTNBJTIwc3RyKSUzQSUwQSUyMCUyMCUyMCUyMHByaW50KHJlcG9faWQpJTBBJTBBbXlfY29vbF9tZXRob2QocmVwb19pZCUzRCUyMnZhbGlkX3JlcG9faWQlMjIpJTBBJTBBbXlfY29vbF9tZXRob2QoJTIyb3RoZXIuLnJlcG8uLmlkJTIyKSUwQSUwQW15X2Nvb2xfbWV0aG9kKHJlcG9faWQlM0QlMjJvdGhlci4ucmVwby4uaWQlMjIpJTBBJTBBJTQwdmFsaWRhdGVfaGZfaHViX2FyZ3MlMEFkZWYlMjBteV9jb29sX2F1dGhfbWV0aG9kKHRva2VuJTNBJTIwc3RyKSUzQSUwQSUyMCUyMCUyMCUyMHByaW50KHRva2VuKSUwQSUwQW15X2Nvb2xfYXV0aF9tZXRob2QodG9rZW4lM0QlMjJhJTIwdG9rZW4lMjIpJTBBJTBBbXlfY29vbF9hdXRoX21ldGhvZCh1c2VfYXV0aF90b2tlbiUzRCUyMmElMjB1c2VfYXV0aF90b2tlbiUyMiklMEElMEFteV9jb29sX2F1dGhfbWV0aG9kKHRva2VuJTNEJTIyYSUyMHRva2VuJTIyJTJDJTIwdXNlX2F1dGhfdG9rZW4lM0QlMjJhJTIwdXNlX2F1dGhfdG9rZW4lMjIp",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> huggingface_hub.utils <span class="hljs-keyword">import</span> validate_hf_hub_args

<span class="hljs-meta">&gt;&gt;&gt; </span>@validate_hf_hub_args
<span class="hljs-meta">... </span><span class="hljs-keyword">def</span> <span class="hljs-title function_">my_cool_method</span>(<span class="hljs-params">repo_id: <span class="hljs-built_in">str</span></span>):
<span class="hljs-meta">... </span>    <span class="hljs-built_in">print</span>(repo_id)

<span class="hljs-meta">&gt;&gt;&gt; </span>my_cool_method(repo_id=<span class="hljs-string">&quot;valid_repo_id&quot;</span>)
valid_repo_id

<span class="hljs-meta">&gt;&gt;&gt; </span>my_cool_method(<span class="hljs-string">&quot;other..repo..id&quot;</span>)
huggingface_hub.utils._validators.HFValidationError: Cannot have -- <span class="hljs-keyword">or</span> .. <span class="hljs-keyword">in</span> repo_id: <span class="hljs-string">&#x27;other..repo..id&#x27;</span>.

<span class="hljs-meta">&gt;&gt;&gt; </span>my_cool_method(repo_id=<span class="hljs-string">&quot;other..repo..id&quot;</span>)
huggingface_hub.utils._validators.HFValidationError: Cannot have -- <span class="hljs-keyword">or</span> .. <span class="hljs-keyword">in</span> repo_id: <span class="hljs-string">&#x27;other..repo..id&#x27;</span>.

<span class="hljs-meta">&gt;&gt;&gt; </span>@validate_hf_hub_args
<span class="hljs-meta">... </span><span class="hljs-keyword">def</span> <span class="hljs-title function_">my_cool_auth_method</span>(<span class="hljs-params">token: <span class="hljs-built_in">str</span></span>):
<span class="hljs-meta">... </span>    <span class="hljs-built_in">print</span>(token)

<span class="hljs-meta">&gt;&gt;&gt; </span>my_cool_auth_method(token=<span class="hljs-string">&quot;a token&quot;</span>)
<span class="hljs-string">&quot;a token&quot;</span>

<span class="hljs-meta">&gt;&gt;&gt; </span>my_cool_auth_method(use_auth_token=<span class="hljs-string">&quot;a use_auth_token&quot;</span>)
<span class="hljs-string">&quot;a use_auth_token&quot;</span>

<span class="hljs-meta">&gt;&gt;&gt; </span>my_cool_auth_method(token=<span class="hljs-string">&quot;a token&quot;</span>, use_auth_token=<span class="hljs-string">&quot;a use_auth_token&quot;</span>)
UserWarning: Both \`token\` <span class="hljs-keyword">and</span> \`use_auth_token\` are passed (...). \`use_auth_token\` value will be ignored.
<span class="hljs-string">&quot;a token&quot;</span>`,wrap:!1}}),Qt=new k({props:{title:"validate_hf_hub_args",local:"huggingface_hub.utils.validate_hf_hub_args",headingTag:"h4"}}),At=new J({props:{name:"huggingface_hub.utils.validate_hf_hub_args",anchor:"huggingface_hub.utils.validate_hf_hub_args",parameters:[{name:"fn",val:": CallableT"}],source:"https://github.com/huggingface/huggingface_hub/blob/v0.19.3/src/huggingface_hub/utils/_validators.py#L46",raiseDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<ul>
<li><a
  href="/docs/huggingface_hub/v0.19.3/en/package_reference/utilities#huggingface_hub.utils.HFValidationError"
>HFValidationError</a> —
If an input is not valid.</li>
</ul>
`,raiseType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/huggingface_hub/v0.19.3/en/package_reference/utilities#huggingface_hub.utils.HFValidationError"
>HFValidationError</a></p>
`}}),Ie=new V({props:{anchor:"huggingface_hub.utils.validate_hf_hub_args.example",$$slots:{default:[ui]},$$scope:{ctx:w}}}),Dt=new k({props:{title:"HFValidationError",local:"huggingface_hub.utils.HFValidationError",headingTag:"h4"}}),Kt=new J({props:{name:"class huggingface_hub.utils.HFValidationError",anchor:"huggingface_hub.utils.HFValidationError",parameters:"",source:"https://github.com/huggingface/huggingface_hub/blob/v0.19.3/src/huggingface_hub/utils/_validators.py#L39"}}),Ot=new k({props:{title:"Argument validators",local:"argument-validators",headingTag:"h3"}}),ts=new k({props:{title:"repo_id",local:"huggingface_hub.utils.validate_repo_id",headingTag:"h4"}}),ss=new J({props:{name:"huggingface_hub.utils.validate_repo_id",anchor:"huggingface_hub.utils.validate_repo_id",parameters:[{name:"repo_id",val:": str"}],source:"https://github.com/huggingface/huggingface_hub/blob/v0.19.3/src/huggingface_hub/utils/_validators.py#L123"}}),Ze=new V({props:{anchor:"huggingface_hub.utils.validate_repo_id.example",$$slots:{default:[pi]},$$scope:{ctx:w}}}),ns=new k({props:{title:"smoothly_deprecate_use_auth_token",local:"huggingface_hub.utils.smoothly_deprecate_use_auth_token",headingTag:"h4"}}),ls=new J({props:{name:"huggingface_hub.utils.smoothly_deprecate_use_auth_token",anchor:"huggingface_hub.utils.smoothly_deprecate_use_auth_token",parameters:[{name:"fn_name",val:": str"},{name:"has_token",val:": bool"},{name:"kwargs",val:": typing.Dict[str, typing.Any]"}],source:"https://github.com/huggingface/huggingface_hub/blob/v0.19.3/src/huggingface_hub/utils/_validators.py#L177"}}),{c(){o=u("meta"),M=a(),y=u("p"),g=a(),h($.$$.fragment),t=a(),h(v.$$.fragment),Tn=a(),Xe=u("p"),Xe.innerHTML=br,jn=a(),h(Ge.$$.fragment),Jn=a(),Re=u("p"),Re.textContent=_r,kn=a(),h(Ne.$$.fragment),xn=a(),Ve=u("p"),Ve.textContent=yr,Hn=a(),Fe=u("ul"),Fe.innerHTML=$r,Un=a(),P=u("div"),h(Le.$$.fragment),Aa=a(),ds=u("p"),ds.textContent=vr,Da=a(),h(be.$$.fragment),Cn=a(),le=u("div"),h(qe.$$.fragment),Ka=a(),fs=u("p"),fs.textContent=Mr,In=a(),re=u("div"),h(Se.$$.fragment),Oa=a(),ms=u("p"),ms.innerHTML=wr,Zn=a(),oe=u("div"),h(We.$$.fragment),el=a(),bs=u("p"),bs.innerHTML=Tr,En=a(),ie=u("div"),h(Ye.$$.fragment),tl=a(),_s=u("p"),_s.innerHTML=jr,Bn=a(),ge=u("div"),h(ze.$$.fragment),sl=a(),ys=u("p"),ys.innerHTML=Jr,Xn=a(),ue=u("div"),h(Pe.$$.fragment),nl=a(),$s=u("p"),$s.textContent=kr,Gn=a(),pe=u("div"),h(Qe.$$.fragment),al=a(),vs=u("p"),vs.textContent=xr,Rn=a(),h(Ae.$$.fragment),Nn=a(),De=u("p"),De.innerHTML=Hr,Vn=a(),Q=u("div"),h(Ke.$$.fragment),ll=a(),Ms=u("p"),Ms.textContent=Ur,rl=a(),h(_e.$$.fragment),Fn=a(),h(Oe.$$.fragment),Ln=a(),et=u("p"),et.innerHTML=Cr,qn=a(),tt=u("p"),tt.innerHTML=Ir,Sn=a(),h(st.$$.fragment),Wn=a(),h(nt.$$.fragment),Yn=a(),A=u("div"),h(at.$$.fragment),ol=a(),ws=u("p"),ws.textContent=Zr,il=a(),Ts=u("p"),Ts.innerHTML=Er,zn=a(),h(lt.$$.fragment),Pn=a(),D=u("div"),h(rt.$$.fragment),gl=a(),js=u("p"),js.innerHTML=Br,ul=a(),Js=u("p"),Js.innerHTML=Xr,Qn=a(),h(ot.$$.fragment),An=a(),K=u("div"),h(it.$$.fragment),pl=a(),ks=u("p"),ks.innerHTML=Gr,cl=a(),xs=u("p"),xs.innerHTML=Rr,Dn=a(),h(gt.$$.fragment),Kn=a(),ut=u("p"),ut.innerHTML=Nr,On=a(),pt=u("p"),pt.innerHTML=Vr,ea=a(),X=u("div"),h(ct.$$.fragment),hl=a(),Hs=u("p"),Hs.innerHTML=Fr,dl=a(),Us=u("p"),Us.innerHTML=Lr,fl=a(),Cs=u("p"),Cs.innerHTML=qr,ml=a(),h(ye.$$.fragment),ta=a(),G=u("div"),h(ht.$$.fragment),bl=a(),Is=u("p"),Is.innerHTML=Sr,_l=a(),Zs=u("p"),Zs.innerHTML=Wr,yl=a(),Es=u("p"),Es.innerHTML=Yr,$l=a(),h($e.$$.fragment),sa=a(),h(dt.$$.fragment),na=a(),ft=u("p"),ft.innerHTML=zr,aa=a(),h(mt.$$.fragment),la=a(),bt=u("p"),bt.innerHTML=Pr,ra=a(),h(_t.$$.fragment),oa=a(),R=u("div"),h(yt.$$.fragment),vl=a(),Bs=u("p"),Bs.innerHTML=Qr,Ml=a(),Xs=u("p"),Xs.textContent=Ar,wl=a(),h(ve.$$.fragment),Tl=a(),h(Me.$$.fragment),ia=a(),h($t.$$.fragment),ga=a(),vt=u("p"),vt.innerHTML=Dr,ua=a(),h(Mt.$$.fragment),pa=a(),wt=u("p"),wt.innerHTML=Kr,ca=a(),U=u("div"),h(Tt.$$.fragment),jl=a(),Gs=u("p"),Gs.textContent=Or,Jl=a(),Rs=u("p"),Rs.innerHTML=eo,kl=a(),Ns=u("p"),Ns.textContent=to,xl=a(),Vs=u("ul"),Vs.innerHTML=so,Hl=a(),h(we.$$.fragment),Ul=a(),Te=u("div"),h(jt.$$.fragment),Cl=a(),Fs=u("p"),Fs.innerHTML=no,ha=a(),h(Jt.$$.fragment),da=a(),O=u("div"),h(kt.$$.fragment),Il=a(),Ls=u("p"),Ls.textContent=ao,Zl=a(),h(je.$$.fragment),fa=a(),h(xt.$$.fragment),ma=a(),F=u("div"),h(Ht.$$.fragment),El=a(),qs=u("p"),qs.textContent=lo,Bl=a(),Ss=u("p"),Ss.innerHTML=ro,Xl=a(),h(Je.$$.fragment),ba=a(),h(Ut.$$.fragment),_a=a(),ee=u("div"),h(Ct.$$.fragment),Gl=a(),Ws=u("p"),Ws.textContent=oo,Rl=a(),h(ke.$$.fragment),ya=a(),h(It.$$.fragment),$a=a(),te=u("div"),h(Zt.$$.fragment),Nl=a(),Ys=u("p"),Ys.textContent=io,Vl=a(),h(xe.$$.fragment),va=a(),h(Et.$$.fragment),Ma=a(),se=u("div"),h(Bt.$$.fragment),Fl=a(),zs=u("p"),zs.innerHTML=go,Ll=a(),h(He.$$.fragment),wa=a(),h(Xt.$$.fragment),Ta=a(),L=u("div"),h(Gt.$$.fragment),ql=a(),Ps=u("p"),Ps.textContent=uo,Sl=a(),Qs=u("p"),Qs.innerHTML=po,Wl=a(),h(Ue.$$.fragment),ja=a(),h(Rt.$$.fragment),Ja=a(),Nt=u("p"),Nt.innerHTML=co,ka=a(),Vt=u("p"),Vt.innerHTML=ho,xa=a(),N=u("div"),h(Ft.$$.fragment),Yl=a(),As=u("p"),As.textContent=fo,zl=a(),Ds=u("p"),Ds.innerHTML=mo,Pl=a(),Ks=u("p"),Ks.textContent=bo,Ql=a(),h(Ce.$$.fragment),Ha=a(),h(Lt.$$.fragment),Ua=a(),qt=u("p"),qt.innerHTML=_o,Ca=a(),h(St.$$.fragment),Ia=a(),Wt=u("p"),Wt.innerHTML=yo,Za=a(),Yt=u("p"),Yt.innerHTML=$o,Ea=a(),zt=u("p"),zt.textContent=vo,Ba=a(),h(Pt.$$.fragment),Xa=a(),h(Qt.$$.fragment),Ga=a(),I=u("div"),h(At.$$.fragment),Al=a(),Os=u("p"),Os.innerHTML=Mo,Dl=a(),en=u("p"),en.textContent=wo,Kl=a(),tn=u("p"),tn.textContent=To,Ol=a(),sn=u("ul"),sn.innerHTML=jo,er=a(),h(Ie.$$.fragment),Ra=a(),h(Dt.$$.fragment),Na=a(),ne=u("div"),h(Kt.$$.fragment),tr=a(),nn=u("p"),nn.innerHTML=Jo,sr=a(),an=u("p"),an.innerHTML=ko,Va=a(),h(Ot.$$.fragment),Fa=a(),es=u("p"),es.textContent=xo,La=a(),h(ts.$$.fragment),qa=a(),x=u("div"),h(ss.$$.fragment),nr=a(),ln=u("p"),ln.innerHTML=Ho,ar=a(),rn=u("p"),rn.innerHTML=Uo,lr=a(),on=u("p"),on.textContent=Co,rr=a(),gn=u("ul"),gn.innerHTML=Io,or=a(),un=u("p"),un.innerHTML=Zo,ir=a(),pn=u("p"),pn.innerHTML=Eo,gr=a(),h(Ze.$$.fragment),ur=a(),cn=u("p"),cn.innerHTML=Bo,pr=a(),hn=u("ul"),hn.innerHTML=Xo,Sa=a(),h(ns.$$.fragment),Wa=a(),as=u("p"),as.textContent=Go,Ya=a(),Z=u("div"),h(ls.$$.fragment),cr=a(),dn=u("p"),dn.innerHTML=Ro,hr=a(),fn=u("p"),fn.innerHTML=No,dr=a(),rs=u("ol"),rs.innerHTML=Vo,fr=a(),mn=u("p"),mn.textContent=Fo,mr=a(),bn=u("ul"),bn.innerHTML=Lo,za=a(),wn=u("p"),this.h()},l(e){const s=Po("svelte-u9bgzb",document.head);o=p(s,"META",{name:!0,content:!0}),s.forEach(n),M=l(e),y=p(e,"P",{}),j(y).forEach(n),g=l(e),d($.$$.fragment,e),t=l(e),d(v.$$.fragment,e),Tn=l(e),Xe=p(e,"P",{"data-svelte-h":!0}),c(Xe)!=="svelte-1f5ostn"&&(Xe.innerHTML=br),jn=l(e),d(Ge.$$.fragment,e),Jn=l(e),Re=p(e,"P",{"data-svelte-h":!0}),c(Re)!=="svelte-1bq70jp"&&(Re.textContent=_r),kn=l(e),d(Ne.$$.fragment,e),xn=l(e),Ve=p(e,"P",{"data-svelte-h":!0}),c(Ve)!=="svelte-c6nxob"&&(Ve.textContent=yr),Hn=l(e),Fe=p(e,"UL",{"data-svelte-h":!0}),c(Fe)!=="svelte-1592m28"&&(Fe.innerHTML=$r),Un=l(e),P=p(e,"DIV",{class:!0});var ce=j(P);d(Le.$$.fragment,ce),Aa=l(ce),ds=p(ce,"P",{"data-svelte-h":!0}),c(ds)!=="svelte-tfh5y3"&&(ds.textContent=vr),Da=l(ce),d(be.$$.fragment,ce),ce.forEach(n),Cn=l(e),le=p(e,"DIV",{class:!0});var os=j(le);d(qe.$$.fragment,os),Ka=l(os),fs=p(os,"P",{"data-svelte-h":!0}),c(fs)!=="svelte-fuws7x"&&(fs.textContent=Mr),os.forEach(n),In=l(e),re=p(e,"DIV",{class:!0});var is=j(re);d(Se.$$.fragment,is),Oa=l(is),ms=p(is,"P",{"data-svelte-h":!0}),c(ms)!=="svelte-4hjbj0"&&(ms.innerHTML=wr),is.forEach(n),Zn=l(e),oe=p(e,"DIV",{class:!0});var gs=j(oe);d(We.$$.fragment,gs),el=l(gs),bs=p(gs,"P",{"data-svelte-h":!0}),c(bs)!=="svelte-13bnwpz"&&(bs.innerHTML=Tr),gs.forEach(n),En=l(e),ie=p(e,"DIV",{class:!0});var us=j(ie);d(Ye.$$.fragment,us),tl=l(us),_s=p(us,"P",{"data-svelte-h":!0}),c(_s)!=="svelte-11c3s8"&&(_s.innerHTML=jr),us.forEach(n),Bn=l(e),ge=p(e,"DIV",{class:!0});var ps=j(ge);d(ze.$$.fragment,ps),sl=l(ps),ys=p(ps,"P",{"data-svelte-h":!0}),c(ys)!=="svelte-1sxvz7m"&&(ys.innerHTML=Jr),ps.forEach(n),Xn=l(e),ue=p(e,"DIV",{class:!0});var cs=j(ue);d(Pe.$$.fragment,cs),nl=l(cs),$s=p(cs,"P",{"data-svelte-h":!0}),c($s)!=="svelte-1n8oxia"&&($s.textContent=kr),cs.forEach(n),Gn=l(e),pe=p(e,"DIV",{class:!0});var hs=j(pe);d(Qe.$$.fragment,hs),al=l(hs),vs=p(hs,"P",{"data-svelte-h":!0}),c(vs)!=="svelte-18llblw"&&(vs.textContent=xr),hs.forEach(n),Rn=l(e),d(Ae.$$.fragment,e),Nn=l(e),De=p(e,"P",{"data-svelte-h":!0}),c(De)!=="svelte-1hfu347"&&(De.innerHTML=Hr),Vn=l(e),Q=p(e,"DIV",{class:!0});var he=j(Q);d(Ke.$$.fragment,he),ll=l(he),Ms=p(he,"P",{"data-svelte-h":!0}),c(Ms)!=="svelte-8tg1b"&&(Ms.textContent=Ur),rl=l(he),d(_e.$$.fragment,he),he.forEach(n),Fn=l(e),d(Oe.$$.fragment,e),Ln=l(e),et=p(e,"P",{"data-svelte-h":!0}),c(et)!=="svelte-1bp9gzk"&&(et.innerHTML=Cr),qn=l(e),tt=p(e,"P",{"data-svelte-h":!0}),c(tt)!=="svelte-1pcknr3"&&(tt.innerHTML=Ir),Sn=l(e),d(st.$$.fragment,e),Wn=l(e),d(nt.$$.fragment,e),Yn=l(e),A=p(e,"DIV",{class:!0});var de=j(A);d(at.$$.fragment,de),ol=l(de),ws=p(de,"P",{"data-svelte-h":!0}),c(ws)!=="svelte-krb0vw"&&(ws.textContent=Zr),il=l(de),Ts=p(de,"P",{"data-svelte-h":!0}),c(Ts)!=="svelte-1mbki7a"&&(Ts.innerHTML=Er),de.forEach(n),zn=l(e),d(lt.$$.fragment,e),Pn=l(e),D=p(e,"DIV",{class:!0});var fe=j(D);d(rt.$$.fragment,fe),gl=l(fe),js=p(fe,"P",{"data-svelte-h":!0}),c(js)!=="svelte-p5wdbm"&&(js.innerHTML=Br),ul=l(fe),Js=p(fe,"P",{"data-svelte-h":!0}),c(Js)!=="svelte-362pzw"&&(Js.innerHTML=Xr),fe.forEach(n),Qn=l(e),d(ot.$$.fragment,e),An=l(e),K=p(e,"DIV",{class:!0});var me=j(K);d(it.$$.fragment,me),pl=l(me),ks=p(me,"P",{"data-svelte-h":!0}),c(ks)!=="svelte-13z8txf"&&(ks.innerHTML=Gr),cl=l(me),xs=p(me,"P",{"data-svelte-h":!0}),c(xs)!=="svelte-185wi95"&&(xs.innerHTML=Rr),me.forEach(n),Dn=l(e),d(gt.$$.fragment,e),Kn=l(e),ut=p(e,"P",{"data-svelte-h":!0}),c(ut)!=="svelte-1n4gntx"&&(ut.innerHTML=Nr),On=l(e),pt=p(e,"P",{"data-svelte-h":!0}),c(pt)!=="svelte-3mwalv"&&(pt.innerHTML=Vr),ea=l(e),X=p(e,"DIV",{class:!0});var q=j(X);d(ct.$$.fragment,q),hl=l(q),Hs=p(q,"P",{"data-svelte-h":!0}),c(Hs)!=="svelte-jy7jz8"&&(Hs.innerHTML=Fr),dl=l(q),Us=p(q,"P",{"data-svelte-h":!0}),c(Us)!=="svelte-137c7wk"&&(Us.innerHTML=Lr),fl=l(q),Cs=p(q,"P",{"data-svelte-h":!0}),c(Cs)!=="svelte-86icrd"&&(Cs.innerHTML=qr),ml=l(q),d(ye.$$.fragment,q),q.forEach(n),ta=l(e),G=p(e,"DIV",{class:!0});var S=j(G);d(ht.$$.fragment,S),bl=l(S),Is=p(S,"P",{"data-svelte-h":!0}),c(Is)!=="svelte-1h59yv2"&&(Is.innerHTML=Sr),_l=l(S),Zs=p(S,"P",{"data-svelte-h":!0}),c(Zs)!=="svelte-137c7wk"&&(Zs.innerHTML=Wr),yl=l(S),Es=p(S,"P",{"data-svelte-h":!0}),c(Es)!=="svelte-86icrd"&&(Es.innerHTML=Yr),$l=l(S),d($e.$$.fragment,S),S.forEach(n),sa=l(e),d(dt.$$.fragment,e),na=l(e),ft=p(e,"P",{"data-svelte-h":!0}),c(ft)!=="svelte-1pwej93"&&(ft.innerHTML=zr),aa=l(e),d(mt.$$.fragment,e),la=l(e),bt=p(e,"P",{"data-svelte-h":!0}),c(bt)!=="svelte-1kseeyc"&&(bt.innerHTML=Pr),ra=l(e),d(_t.$$.fragment,e),oa=l(e),R=p(e,"DIV",{class:!0});var W=j(R);d(yt.$$.fragment,W),vl=l(W),Bs=p(W,"P",{"data-svelte-h":!0}),c(Bs)!=="svelte-3py7p6"&&(Bs.innerHTML=Qr),Ml=l(W),Xs=p(W,"P",{"data-svelte-h":!0}),c(Xs)!=="svelte-1t2j21h"&&(Xs.textContent=Ar),wl=l(W),d(ve.$$.fragment,W),Tl=l(W),d(Me.$$.fragment,W),W.forEach(n),ia=l(e),d($t.$$.fragment,e),ga=l(e),vt=p(e,"P",{"data-svelte-h":!0}),c(vt)!=="svelte-1uk88ij"&&(vt.innerHTML=Dr),ua=l(e),d(Mt.$$.fragment,e),pa=l(e),wt=p(e,"P",{"data-svelte-h":!0}),c(wt)!=="svelte-vytdbq"&&(wt.innerHTML=Kr),ca=l(e),U=p(e,"DIV",{class:!0});var E=j(U);d(Tt.$$.fragment,E),jl=l(E),Gs=p(E,"P",{"data-svelte-h":!0}),c(Gs)!=="svelte-18strew"&&(Gs.textContent=Or),Jl=l(E),Rs=p(E,"P",{"data-svelte-h":!0}),c(Rs)!=="svelte-avbd3z"&&(Rs.innerHTML=eo),kl=l(E),Ns=p(E,"P",{"data-svelte-h":!0}),c(Ns)!=="svelte-crgpwu"&&(Ns.textContent=to),xl=l(E),Vs=p(E,"UL",{"data-svelte-h":!0}),c(Vs)!=="svelte-1n3lleg"&&(Vs.innerHTML=so),Hl=l(E),d(we.$$.fragment,E),Ul=l(E),Te=p(E,"DIV",{class:!0});var Qa=j(Te);d(jt.$$.fragment,Qa),Cl=l(Qa),Fs=p(Qa,"P",{"data-svelte-h":!0}),c(Fs)!=="svelte-7adl8o"&&(Fs.innerHTML=no),Qa.forEach(n),E.forEach(n),ha=l(e),d(Jt.$$.fragment,e),da=l(e),O=p(e,"DIV",{class:!0});var _n=j(O);d(kt.$$.fragment,_n),Il=l(_n),Ls=p(_n,"P",{"data-svelte-h":!0}),c(Ls)!=="svelte-sh3izq"&&(Ls.textContent=ao),Zl=l(_n),d(je.$$.fragment,_n),_n.forEach(n),fa=l(e),d(xt.$$.fragment,e),ma=l(e),F=p(e,"DIV",{class:!0});var Ee=j(F);d(Ht.$$.fragment,Ee),El=l(Ee),qs=p(Ee,"P",{"data-svelte-h":!0}),c(qs)!=="svelte-124smaa"&&(qs.textContent=lo),Bl=l(Ee),Ss=p(Ee,"P",{"data-svelte-h":!0}),c(Ss)!=="svelte-op3w3s"&&(Ss.innerHTML=ro),Xl=l(Ee),d(Je.$$.fragment,Ee),Ee.forEach(n),ba=l(e),d(Ut.$$.fragment,e),_a=l(e),ee=p(e,"DIV",{class:!0});var yn=j(ee);d(Ct.$$.fragment,yn),Gl=l(yn),Ws=p(yn,"P",{"data-svelte-h":!0}),c(Ws)!=="svelte-1y14njt"&&(Ws.textContent=oo),Rl=l(yn),d(ke.$$.fragment,yn),yn.forEach(n),ya=l(e),d(It.$$.fragment,e),$a=l(e),te=p(e,"DIV",{class:!0});var $n=j(te);d(Zt.$$.fragment,$n),Nl=l($n),Ys=p($n,"P",{"data-svelte-h":!0}),c(Ys)!=="svelte-3wgqhz"&&(Ys.textContent=io),Vl=l($n),d(xe.$$.fragment,$n),$n.forEach(n),va=l(e),d(Et.$$.fragment,e),Ma=l(e),se=p(e,"DIV",{class:!0});var vn=j(se);d(Bt.$$.fragment,vn),Fl=l(vn),zs=p(vn,"P",{"data-svelte-h":!0}),c(zs)!=="svelte-1yqsf92"&&(zs.innerHTML=go),Ll=l(vn),d(He.$$.fragment,vn),vn.forEach(n),wa=l(e),d(Xt.$$.fragment,e),Ta=l(e),L=p(e,"DIV",{class:!0});var Be=j(L);d(Gt.$$.fragment,Be),ql=l(Be),Ps=p(Be,"P",{"data-svelte-h":!0}),c(Ps)!=="svelte-1r567zf"&&(Ps.textContent=uo),Sl=l(Be),Qs=p(Be,"P",{"data-svelte-h":!0}),c(Qs)!=="svelte-10eu23r"&&(Qs.innerHTML=po),Wl=l(Be),d(Ue.$$.fragment,Be),Be.forEach(n),ja=l(e),d(Rt.$$.fragment,e),Ja=l(e),Nt=p(e,"P",{"data-svelte-h":!0}),c(Nt)!=="svelte-1h719bl"&&(Nt.innerHTML=co),ka=l(e),Vt=p(e,"P",{"data-svelte-h":!0}),c(Vt)!=="svelte-k49iiw"&&(Vt.innerHTML=ho),xa=l(e),N=p(e,"DIV",{class:!0});var ae=j(N);d(Ft.$$.fragment,ae),Yl=l(ae),As=p(ae,"P",{"data-svelte-h":!0}),c(As)!=="svelte-wzuwoa"&&(As.textContent=fo),zl=l(ae),Ds=p(ae,"P",{"data-svelte-h":!0}),c(Ds)!=="svelte-1w41bga"&&(Ds.innerHTML=mo),Pl=l(ae),Ks=p(ae,"P",{"data-svelte-h":!0}),c(Ks)!=="svelte-yxaifj"&&(Ks.textContent=bo),Ql=l(ae),d(Ce.$$.fragment,ae),ae.forEach(n),Ha=l(e),d(Lt.$$.fragment,e),Ua=l(e),qt=p(e,"P",{"data-svelte-h":!0}),c(qt)!=="svelte-1sy4xpm"&&(qt.innerHTML=_o),Ca=l(e),d(St.$$.fragment,e),Ia=l(e),Wt=p(e,"P",{"data-svelte-h":!0}),c(Wt)!=="svelte-1aodhwv"&&(Wt.innerHTML=yo),Za=l(e),Yt=p(e,"P",{"data-svelte-h":!0}),c(Yt)!=="svelte-1hbegp3"&&(Yt.innerHTML=$o),Ea=l(e),zt=p(e,"P",{"data-svelte-h":!0}),c(zt)!=="svelte-5wyjqd"&&(zt.textContent=vo),Ba=l(e),d(Pt.$$.fragment,e),Xa=l(e),d(Qt.$$.fragment,e),Ga=l(e),I=p(e,"DIV",{class:!0});var Y=j(I);d(At.$$.fragment,Y),Al=l(Y),Os=p(Y,"P",{"data-svelte-h":!0}),c(Os)!=="svelte-1ie7wvp"&&(Os.innerHTML=Mo),Dl=l(Y),en=p(Y,"P",{"data-svelte-h":!0}),c(en)!=="svelte-s9eemq"&&(en.textContent=wo),Kl=l(Y),tn=p(Y,"P",{"data-svelte-h":!0}),c(tn)!=="svelte-gm0f4r"&&(tn.textContent=To),Ol=l(Y),sn=p(Y,"UL",{"data-svelte-h":!0}),c(sn)!=="svelte-r0c9pu"&&(sn.innerHTML=jo),er=l(Y),d(Ie.$$.fragment,Y),Y.forEach(n),Ra=l(e),d(Dt.$$.fragment,e),Na=l(e),ne=p(e,"DIV",{class:!0});var Mn=j(ne);d(Kt.$$.fragment,Mn),tr=l(Mn),nn=p(Mn,"P",{"data-svelte-h":!0}),c(nn)!=="svelte-18mocqd"&&(nn.innerHTML=Jo),sr=l(Mn),an=p(Mn,"P",{"data-svelte-h":!0}),c(an)!=="svelte-1x4lpy7"&&(an.innerHTML=ko),Mn.forEach(n),Va=l(e),d(Ot.$$.fragment,e),Fa=l(e),es=p(e,"P",{"data-svelte-h":!0}),c(es)!=="svelte-lrn6fl"&&(es.textContent=xo),La=l(e),d(ts.$$.fragment,e),qa=l(e),x=p(e,"DIV",{class:!0});var H=j(x);d(ss.$$.fragment,H),nr=l(H),ln=p(H,"P",{"data-svelte-h":!0}),c(ln)!=="svelte-a7trx5"&&(ln.innerHTML=Ho),ar=l(H),rn=p(H,"P",{"data-svelte-h":!0}),c(rn)!=="svelte-j8tpz5"&&(rn.innerHTML=Uo),lr=l(H),on=p(H,"P",{"data-svelte-h":!0}),c(on)!=="svelte-1k3ttfh"&&(on.textContent=Co),rr=l(H),gn=p(H,"UL",{"data-svelte-h":!0}),c(gn)!=="svelte-btlkju"&&(gn.innerHTML=Io),or=l(H),un=p(H,"P",{"data-svelte-h":!0}),c(un)!=="svelte-1gfzn2"&&(un.innerHTML=Zo),ir=l(H),pn=p(H,"P",{"data-svelte-h":!0}),c(pn)!=="svelte-dpfzvw"&&(pn.innerHTML=Eo),gr=l(H),d(Ze.$$.fragment,H),ur=l(H),cn=p(H,"P",{"data-svelte-h":!0}),c(cn)!=="svelte-u984v5"&&(cn.innerHTML=Bo),pr=l(H),hn=p(H,"UL",{"data-svelte-h":!0}),c(hn)!=="svelte-p5ztoo"&&(hn.innerHTML=Xo),H.forEach(n),Sa=l(e),d(ns.$$.fragment,e),Wa=l(e),as=p(e,"P",{"data-svelte-h":!0}),c(as)!=="svelte-1nxvghg"&&(as.textContent=Go),Ya=l(e),Z=p(e,"DIV",{class:!0});var z=j(Z);d(ls.$$.fragment,z),cr=l(z),dn=p(z,"P",{"data-svelte-h":!0}),c(dn)!=="svelte-1q2lppc"&&(dn.innerHTML=Ro),hr=l(z),fn=p(z,"P",{"data-svelte-h":!0}),c(fn)!=="svelte-1tecmui"&&(fn.innerHTML=No),dr=l(z),rs=p(z,"OL",{start:!0,"data-svelte-h":!0}),c(rs)!=="svelte-13quknz"&&(rs.innerHTML=Vo),fr=l(z),mn=p(z,"P",{"data-svelte-h":!0}),c(mn)!=="svelte-q6cvg2"&&(mn.textContent=Fo),mr=l(z),bn=p(z,"UL",{"data-svelte-h":!0}),c(bn)!=="svelte-1sjdcka"&&(bn.innerHTML=Lo),z.forEach(n),za=l(e),wn=p(e,"P",{}),j(wn).forEach(n),this.h()},h(){T(o,"name","hf:doc:metadata"),T(o,"content",hi),T(P,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),T(le,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),T(re,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),T(oe,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),T(ie,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),T(ge,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),T(ue,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),T(pe,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),T(Q,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),T(A,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),T(D,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),T(K,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),T(X,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),T(G,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),T(R,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),T(Te,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),T(U,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),T(O,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),T(F,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),T(ee,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),T(te,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),T(se,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),T(L,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),T(N,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),T(I,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),T(ne,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),T(x,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),T(rs,"start","0"),T(Z,"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,s){i(document.head,o),r(e,M,s),r(e,y,s),r(e,g,s),f($,e,s),r(e,t,s),f(v,e,s),r(e,Tn,s),r(e,Xe,s),r(e,jn,s),f(Ge,e,s),r(e,Jn,s),r(e,Re,s),r(e,kn,s),f(Ne,e,s),r(e,xn,s),r(e,Ve,s),r(e,Hn,s),r(e,Fe,s),r(e,Un,s),r(e,P,s),f(Le,P,null),i(P,Aa),i(P,ds),i(P,Da),f(be,P,null),r(e,Cn,s),r(e,le,s),f(qe,le,null),i(le,Ka),i(le,fs),r(e,In,s),r(e,re,s),f(Se,re,null),i(re,Oa),i(re,ms),r(e,Zn,s),r(e,oe,s),f(We,oe,null),i(oe,el),i(oe,bs),r(e,En,s),r(e,ie,s),f(Ye,ie,null),i(ie,tl),i(ie,_s),r(e,Bn,s),r(e,ge,s),f(ze,ge,null),i(ge,sl),i(ge,ys),r(e,Xn,s),r(e,ue,s),f(Pe,ue,null),i(ue,nl),i(ue,$s),r(e,Gn,s),r(e,pe,s),f(Qe,pe,null),i(pe,al),i(pe,vs),r(e,Rn,s),f(Ae,e,s),r(e,Nn,s),r(e,De,s),r(e,Vn,s),r(e,Q,s),f(Ke,Q,null),i(Q,ll),i(Q,Ms),i(Q,rl),f(_e,Q,null),r(e,Fn,s),f(Oe,e,s),r(e,Ln,s),r(e,et,s),r(e,qn,s),r(e,tt,s),r(e,Sn,s),f(st,e,s),r(e,Wn,s),f(nt,e,s),r(e,Yn,s),r(e,A,s),f(at,A,null),i(A,ol),i(A,ws),i(A,il),i(A,Ts),r(e,zn,s),f(lt,e,s),r(e,Pn,s),r(e,D,s),f(rt,D,null),i(D,gl),i(D,js),i(D,ul),i(D,Js),r(e,Qn,s),f(ot,e,s),r(e,An,s),r(e,K,s),f(it,K,null),i(K,pl),i(K,ks),i(K,cl),i(K,xs),r(e,Dn,s),f(gt,e,s),r(e,Kn,s),r(e,ut,s),r(e,On,s),r(e,pt,s),r(e,ea,s),r(e,X,s),f(ct,X,null),i(X,hl),i(X,Hs),i(X,dl),i(X,Us),i(X,fl),i(X,Cs),i(X,ml),f(ye,X,null),r(e,ta,s),r(e,G,s),f(ht,G,null),i(G,bl),i(G,Is),i(G,_l),i(G,Zs),i(G,yl),i(G,Es),i(G,$l),f($e,G,null),r(e,sa,s),f(dt,e,s),r(e,na,s),r(e,ft,s),r(e,aa,s),f(mt,e,s),r(e,la,s),r(e,bt,s),r(e,ra,s),f(_t,e,s),r(e,oa,s),r(e,R,s),f(yt,R,null),i(R,vl),i(R,Bs),i(R,Ml),i(R,Xs),i(R,wl),f(ve,R,null),i(R,Tl),f(Me,R,null),r(e,ia,s),f($t,e,s),r(e,ga,s),r(e,vt,s),r(e,ua,s),f(Mt,e,s),r(e,pa,s),r(e,wt,s),r(e,ca,s),r(e,U,s),f(Tt,U,null),i(U,jl),i(U,Gs),i(U,Jl),i(U,Rs),i(U,kl),i(U,Ns),i(U,xl),i(U,Vs),i(U,Hl),f(we,U,null),i(U,Ul),i(U,Te),f(jt,Te,null),i(Te,Cl),i(Te,Fs),r(e,ha,s),f(Jt,e,s),r(e,da,s),r(e,O,s),f(kt,O,null),i(O,Il),i(O,Ls),i(O,Zl),f(je,O,null),r(e,fa,s),f(xt,e,s),r(e,ma,s),r(e,F,s),f(Ht,F,null),i(F,El),i(F,qs),i(F,Bl),i(F,Ss),i(F,Xl),f(Je,F,null),r(e,ba,s),f(Ut,e,s),r(e,_a,s),r(e,ee,s),f(Ct,ee,null),i(ee,Gl),i(ee,Ws),i(ee,Rl),f(ke,ee,null),r(e,ya,s),f(It,e,s),r(e,$a,s),r(e,te,s),f(Zt,te,null),i(te,Nl),i(te,Ys),i(te,Vl),f(xe,te,null),r(e,va,s),f(Et,e,s),r(e,Ma,s),r(e,se,s),f(Bt,se,null),i(se,Fl),i(se,zs),i(se,Ll),f(He,se,null),r(e,wa,s),f(Xt,e,s),r(e,Ta,s),r(e,L,s),f(Gt,L,null),i(L,ql),i(L,Ps),i(L,Sl),i(L,Qs),i(L,Wl),f(Ue,L,null),r(e,ja,s),f(Rt,e,s),r(e,Ja,s),r(e,Nt,s),r(e,ka,s),r(e,Vt,s),r(e,xa,s),r(e,N,s),f(Ft,N,null),i(N,Yl),i(N,As),i(N,zl),i(N,Ds),i(N,Pl),i(N,Ks),i(N,Ql),f(Ce,N,null),r(e,Ha,s),f(Lt,e,s),r(e,Ua,s),r(e,qt,s),r(e,Ca,s),f(St,e,s),r(e,Ia,s),r(e,Wt,s),r(e,Za,s),r(e,Yt,s),r(e,Ea,s),r(e,zt,s),r(e,Ba,s),f(Pt,e,s),r(e,Xa,s),f(Qt,e,s),r(e,Ga,s),r(e,I,s),f(At,I,null),i(I,Al),i(I,Os),i(I,Dl),i(I,en),i(I,Kl),i(I,tn),i(I,Ol),i(I,sn),i(I,er),f(Ie,I,null),r(e,Ra,s),f(Dt,e,s),r(e,Na,s),r(e,ne,s),f(Kt,ne,null),i(ne,tr),i(ne,nn),i(ne,sr),i(ne,an),r(e,Va,s),f(Ot,e,s),r(e,Fa,s),r(e,es,s),r(e,La,s),f(ts,e,s),r(e,qa,s),r(e,x,s),f(ss,x,null),i(x,nr),i(x,ln),i(x,ar),i(x,rn),i(x,lr),i(x,on),i(x,rr),i(x,gn),i(x,or),i(x,un),i(x,ir),i(x,pn),i(x,gr),f(Ze,x,null),i(x,ur),i(x,cn),i(x,pr),i(x,hn),r(e,Sa,s),f(ns,e,s),r(e,Wa,s),r(e,as,s),r(e,Ya,s),r(e,Z,s),f(ls,Z,null),i(Z,cr),i(Z,dn),i(Z,hr),i(Z,fn),i(Z,dr),i(Z,rs),i(Z,fr),i(Z,mn),i(Z,mr),i(Z,bn),r(e,za,s),r(e,wn,s),Pa=!0},p(e,[s]){const ce={};s&2&&(ce.$$scope={dirty:s,ctx:e}),be.$set(ce);const os={};s&2&&(os.$$scope={dirty:s,ctx:e}),_e.$set(os);const is={};s&2&&(is.$$scope={dirty:s,ctx:e}),ye.$set(is);const gs={};s&2&&(gs.$$scope={dirty:s,ctx:e}),$e.$set(gs);const us={};s&2&&(us.$$scope={dirty:s,ctx:e}),ve.$set(us);const ps={};s&2&&(ps.$$scope={dirty:s,ctx:e}),Me.$set(ps);const cs={};s&2&&(cs.$$scope={dirty:s,ctx:e}),we.$set(cs);const hs={};s&2&&(hs.$$scope={dirty:s,ctx:e}),je.$set(hs);const he={};s&2&&(he.$$scope={dirty:s,ctx:e}),Je.$set(he);const de={};s&2&&(de.$$scope={dirty:s,ctx:e}),ke.$set(de);const fe={};s&2&&(fe.$$scope={dirty:s,ctx:e}),xe.$set(fe);const me={};s&2&&(me.$$scope={dirty:s,ctx:e}),He.$set(me);const q={};s&2&&(q.$$scope={dirty:s,ctx:e}),Ue.$set(q);const S={};s&2&&(S.$$scope={dirty:s,ctx:e}),Ce.$set(S);const W={};s&2&&(W.$$scope={dirty:s,ctx:e}),Ie.$set(W);const E={};s&2&&(E.$$scope={dirty:s,ctx:e}),Ze.$set(E)},i(e){Pa||(m($.$$.fragment,e),m(v.$$.fragment,e),m(Ge.$$.fragment,e),m(Ne.$$.fragment,e),m(Le.$$.fragment,e),m(be.$$.fragment,e),m(qe.$$.fragment,e),m(Se.$$.fragment,e),m(We.$$.fragment,e),m(Ye.$$.fragment,e),m(ze.$$.fragment,e),m(Pe.$$.fragment,e),m(Qe.$$.fragment,e),m(Ae.$$.fragment,e),m(Ke.$$.fragment,e),m(_e.$$.fragment,e),m(Oe.$$.fragment,e),m(st.$$.fragment,e),m(nt.$$.fragment,e),m(at.$$.fragment,e),m(lt.$$.fragment,e),m(rt.$$.fragment,e),m(ot.$$.fragment,e),m(it.$$.fragment,e),m(gt.$$.fragment,e),m(ct.$$.fragment,e),m(ye.$$.fragment,e),m(ht.$$.fragment,e),m($e.$$.fragment,e),m(dt.$$.fragment,e),m(mt.$$.fragment,e),m(_t.$$.fragment,e),m(yt.$$.fragment,e),m(ve.$$.fragment,e),m(Me.$$.fragment,e),m($t.$$.fragment,e),m(Mt.$$.fragment,e),m(Tt.$$.fragment,e),m(we.$$.fragment,e),m(jt.$$.fragment,e),m(Jt.$$.fragment,e),m(kt.$$.fragment,e),m(je.$$.fragment,e),m(xt.$$.fragment,e),m(Ht.$$.fragment,e),m(Je.$$.fragment,e),m(Ut.$$.fragment,e),m(Ct.$$.fragment,e),m(ke.$$.fragment,e),m(It.$$.fragment,e),m(Zt.$$.fragment,e),m(xe.$$.fragment,e),m(Et.$$.fragment,e),m(Bt.$$.fragment,e),m(He.$$.fragment,e),m(Xt.$$.fragment,e),m(Gt.$$.fragment,e),m(Ue.$$.fragment,e),m(Rt.$$.fragment,e),m(Ft.$$.fragment,e),m(Ce.$$.fragment,e),m(Lt.$$.fragment,e),m(St.$$.fragment,e),m(Pt.$$.fragment,e),m(Qt.$$.fragment,e),m(At.$$.fragment,e),m(Ie.$$.fragment,e),m(Dt.$$.fragment,e),m(Kt.$$.fragment,e),m(Ot.$$.fragment,e),m(ts.$$.fragment,e),m(ss.$$.fragment,e),m(Ze.$$.fragment,e),m(ns.$$.fragment,e),m(ls.$$.fragment,e),Pa=!0)},o(e){b($.$$.fragment,e),b(v.$$.fragment,e),b(Ge.$$.fragment,e),b(Ne.$$.fragment,e),b(Le.$$.fragment,e),b(be.$$.fragment,e),b(qe.$$.fragment,e),b(Se.$$.fragment,e),b(We.$$.fragment,e),b(Ye.$$.fragment,e),b(ze.$$.fragment,e),b(Pe.$$.fragment,e),b(Qe.$$.fragment,e),b(Ae.$$.fragment,e),b(Ke.$$.fragment,e),b(_e.$$.fragment,e),b(Oe.$$.fragment,e),b(st.$$.fragment,e),b(nt.$$.fragment,e),b(at.$$.fragment,e),b(lt.$$.fragment,e),b(rt.$$.fragment,e),b(ot.$$.fragment,e),b(it.$$.fragment,e),b(gt.$$.fragment,e),b(ct.$$.fragment,e),b(ye.$$.fragment,e),b(ht.$$.fragment,e),b($e.$$.fragment,e),b(dt.$$.fragment,e),b(mt.$$.fragment,e),b(_t.$$.fragment,e),b(yt.$$.fragment,e),b(ve.$$.fragment,e),b(Me.$$.fragment,e),b($t.$$.fragment,e),b(Mt.$$.fragment,e),b(Tt.$$.fragment,e),b(we.$$.fragment,e),b(jt.$$.fragment,e),b(Jt.$$.fragment,e),b(kt.$$.fragment,e),b(je.$$.fragment,e),b(xt.$$.fragment,e),b(Ht.$$.fragment,e),b(Je.$$.fragment,e),b(Ut.$$.fragment,e),b(Ct.$$.fragment,e),b(ke.$$.fragment,e),b(It.$$.fragment,e),b(Zt.$$.fragment,e),b(xe.$$.fragment,e),b(Et.$$.fragment,e),b(Bt.$$.fragment,e),b(He.$$.fragment,e),b(Xt.$$.fragment,e),b(Gt.$$.fragment,e),b(Ue.$$.fragment,e),b(Rt.$$.fragment,e),b(Ft.$$.fragment,e),b(Ce.$$.fragment,e),b(Lt.$$.fragment,e),b(St.$$.fragment,e),b(Pt.$$.fragment,e),b(Qt.$$.fragment,e),b(At.$$.fragment,e),b(Ie.$$.fragment,e),b(Dt.$$.fragment,e),b(Kt.$$.fragment,e),b(Ot.$$.fragment,e),b(ts.$$.fragment,e),b(ss.$$.fragment,e),b(Ze.$$.fragment,e),b(ns.$$.fragment,e),b(ls.$$.fragment,e),Pa=!1},d(e){e&&(n(M),n(y),n(g),n(t),n(Tn),n(Xe),n(jn),n(Jn),n(Re),n(kn),n(xn),n(Ve),n(Hn),n(Fe),n(Un),n(P),n(Cn),n(le),n(In),n(re),n(Zn),n(oe),n(En),n(ie),n(Bn),n(ge),n(Xn),n(ue),n(Gn),n(pe),n(Rn),n(Nn),n(De),n(Vn),n(Q),n(Fn),n(Ln),n(et),n(qn),n(tt),n(Sn),n(Wn),n(Yn),n(A),n(zn),n(Pn),n(D),n(Qn),n(An),n(K),n(Dn),n(Kn),n(ut),n(On),n(pt),n(ea),n(X),n(ta),n(G),n(sa),n(na),n(ft),n(aa),n(la),n(bt),n(ra),n(oa),n(R),n(ia),n(ga),n(vt),n(ua),n(pa),n(wt),n(ca),n(U),n(ha),n(da),n(O),n(fa),n(ma),n(F),n(ba),n(_a),n(ee),n(ya),n($a),n(te),n(va),n(Ma),n(se),n(wa),n(Ta),n(L),n(ja),n(Ja),n(Nt),n(ka),n(Vt),n(xa),n(N),n(Ha),n(Ua),n(qt),n(Ca),n(Ia),n(Wt),n(Za),n(Yt),n(Ea),n(zt),n(Ba),n(Xa),n(Ga),n(I),n(Ra),n(Na),n(ne),n(Va),n(Fa),n(es),n(La),n(qa),n(x),n(Sa),n(Wa),n(as),n(Ya),n(Z),n(za),n(wn)),n(o),_($,e),_(v,e),_(Ge,e),_(Ne,e),_(Le),_(be),_(qe),_(Se),_(We),_(Ye),_(ze),_(Pe),_(Qe),_(Ae,e),_(Ke),_(_e),_(Oe,e),_(st,e),_(nt,e),_(at),_(lt,e),_(rt),_(ot,e),_(it),_(gt,e),_(ct),_(ye),_(ht),_($e),_(dt,e),_(mt,e),_(_t,e),_(yt),_(ve),_(Me),_($t,e),_(Mt,e),_(Tt),_(we),_(jt),_(Jt,e),_(kt),_(je),_(xt,e),_(Ht),_(Je),_(Ut,e),_(Ct),_(ke),_(It,e),_(Zt),_(xe),_(Et,e),_(Bt),_(He),_(Xt,e),_(Gt),_(Ue),_(Rt,e),_(Ft),_(Ce),_(Lt,e),_(St,e),_(Pt,e),_(Qt,e),_(At),_(Ie),_(Dt,e),_(Kt),_(Ot,e),_(ts,e),_(ss),_(Ze),_(ns,e),_(ls)}}}const hi='{"title":"Utilities","local":"utilities","sections":[{"title":"Configure logging","local":"huggingface_hub.utils.logging.get_verbosity","sections":[{"title":"Repo-specific helper methods","local":"huggingface_hub.utils.logging.get_logger","sections":[],"depth":3}],"depth":2},{"title":"Configure progress bars","local":"configure-progress-bars","sections":[{"title":"are_progress_bars_disabled","local":"huggingface_hub.utils.are_progress_bars_disabled","sections":[],"depth":3},{"title":"disable_progress_bars","local":"huggingface_hub.utils.disable_progress_bars","sections":[],"depth":3},{"title":"enable_progress_bars","local":"huggingface_hub.utils.enable_progress_bars","sections":[],"depth":3}],"depth":2},{"title":"Configure HTTP backend","local":"huggingface_hub.configure_http_backend","sections":[],"depth":2},{"title":"Handle HTTP errors","local":"handle-http-errors","sections":[{"title":"Raise for status","local":"huggingface_hub.utils.hf_raise_for_status","sections":[],"depth":3},{"title":"HTTP errors","local":"http-errors","sections":[{"title":"HfHubHTTPError","local":"huggingface_hub.utils.HfHubHTTPError","sections":[],"depth":4},{"title":"RepositoryNotFoundError","local":"huggingface_hub.utils.RepositoryNotFoundError","sections":[],"depth":4},{"title":"GatedRepoError","local":"huggingface_hub.utils.GatedRepoError","sections":[],"depth":4},{"title":"RevisionNotFoundError","local":"huggingface_hub.utils.RevisionNotFoundError","sections":[],"depth":4},{"title":"EntryNotFoundError","local":"huggingface_hub.utils.EntryNotFoundError","sections":[],"depth":4},{"title":"BadRequestError","local":"huggingface_hub.utils.BadRequestError","sections":[],"depth":4},{"title":"LocalEntryNotFoundError","local":"huggingface_hub.utils.LocalEntryNotFoundError","sections":[],"depth":4}],"depth":3}],"depth":2},{"title":"Telemetry","local":"huggingface_hub.utils.send_telemetry","sections":[],"depth":2},{"title":"Validators","local":"validators","sections":[{"title":"Generic decorator","local":"generic-decorator","sections":[{"title":"validate_hf_hub_args","local":"huggingface_hub.utils.validate_hf_hub_args","sections":[],"depth":4},{"title":"HFValidationError","local":"huggingface_hub.utils.HFValidationError","sections":[],"depth":4}],"depth":3},{"title":"Argument validators","local":"argument-validators","sections":[{"title":"repo_id","local":"huggingface_hub.utils.validate_repo_id","sections":[],"depth":4},{"title":"smoothly_deprecate_use_auth_token","local":"huggingface_hub.utils.smoothly_deprecate_use_auth_token","sections":[],"depth":4}],"depth":3}],"depth":2}],"depth":1}';function di(w){return Wo(()=>{new URLSearchParams(window.location.search).get("fw"),window.hfDocGoto=Qo}),[]}class Mi extends Yo{constructor(o){super(),zo(this,o,di,ci,So,{})}}export{Mi as component};
