import{s as ii,o as gi,n as B}from"../chunks/scheduler.6062bdaf.js";import{S as pi,i as ui,g as p,s as n,r as h,A as ci,h as u,f as a,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{T as oi}from"../chunks/Tip.b9ac1f03.js";import{D as J}from"../chunks/Docstring.ff53aa02.js";import{C}from"../chunks/CodeBlock.cbbddafc.js";import{E as R}from"../chunks/ExampleCodeBlock.d2834193.js";import{H as x,E as hi}from"../chunks/index.60dd99e8.js";function di(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=p("p"),o.textContent=M,y=n(),g=p("ul"),g.innerHTML=$},l(t){o=u(t,"P",{"data-svelte-h":!0}),c(o)!=="svelte-8pck4"&&(o.textContent=M),y=l(t),g=u(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&&(a(o),a(y),a(g))}}}function fi(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=p("p"),o.textContent=M,y=n(),h(g.$$.fragment)},l(t){o=u(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&&(a(o),a(y)),_(g,t)}}}function mi(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=p("p"),o.textContent=M,y=n(),h(g.$$.fragment)},l(t){o=u(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&&(a(o),a(y)),_(g,t)}}}function bi(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=p("p"),o.textContent=M,y=n(),h(g.$$.fragment)},l(t){o=u(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&&(a(o),a(y)),_(g,t)}}}function _i(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=p("p"),o.textContent=M,y=n(),h(g.$$.fragment)},l(t){o=u(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&&(a(o),a(y)),_(g,t)}}}function yi(w){let o,M="Raises when the request has failed:",y,g,$=`<li><a href="/docs/huggingface_hub/main/en/package_reference/utilities#huggingface_hub.errors.RepositoryNotFoundError">RepositoryNotFoundError</a>
If the repository to download from cannot be found. This may be because it
doesn’t exist, 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/main/en/package_reference/utilities#huggingface_hub.errors.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/main/en/package_reference/utilities#huggingface_hub.errors.RevisionNotFoundError">RevisionNotFoundError</a>
If the repository exists but the revision couldn’t be find.</li> <li><a href="/docs/huggingface_hub/main/en/package_reference/utilities#huggingface_hub.errors.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/main/en/package_reference/utilities#huggingface_hub.errors.BadRequestError">BadRequestError</a>
If request failed with a HTTP 400 BadRequest error.</li> <li><a href="/docs/huggingface_hub/main/en/package_reference/utilities#huggingface_hub.errors.HfHubHTTPError">HfHubHTTPError</a>
If request failed for a reason not listed above.</li>`;return{c(){o=p("p"),o.textContent=M,y=n(),g=p("ul"),g.innerHTML=$},l(t){o=u(t,"P",{"data-svelte-h":!0}),c(o)!=="svelte-2ocftk"&&(o.textContent=M),y=l(t),g=u(t,"UL",{"data-svelte-h":!0}),c(g)!=="svelte-1xcw231"&&(g.innerHTML=$)},m(t,v){r(t,o,v),r(t,y,v),r(t,g,v)},p:B,d(t){t&&(a(o),a(y),a(g))}}}function $i(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=p("p"),o.textContent=M,y=n(),h(g.$$.fragment)},l(t){o=u(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&&(a(o),a(y)),_(g,t)}}}function vi(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=p("p"),o.textContent=M,y=n(),h(g.$$.fragment)},l(t){o=u(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&&(a(o),a(y)),_(g,t)}}}function Mi(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=p("p"),o.textContent=M,y=n(),h(g.$$.fragment)},l(t){o=u(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&&(a(o),a(y)),_(g,t)}}}function wi(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=p("p"),o.textContent=M,y=n(),h(g.$$.fragment)},l(t){o=u(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&&(a(o),a(y)),_(g,t)}}}function Ti(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=p("p"),o.textContent=M,y=n(),h(g.$$.fragment)},l(t){o=u(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&&(a(o),a(y)),_(g,t)}}}function ji(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=p("p"),o.textContent=M,y=n(),h(g.$$.fragment)},l(t){o=u(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&&(a(o),a(y)),_(g,t)}}}function Ji(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=p("p"),o.textContent=M,y=n(),h(g.$$.fragment)},l(t){o=u(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&&(a(o),a(y)),_(g,t)}}}function xi(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=p("p"),o.textContent=M,y=n(),h(g.$$.fragment)},l(t){o=u(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&&(a(o),a(y)),_(g,t)}}}function ki(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=p("p"),o.textContent=M,y=n(),h(g.$$.fragment)},l(t){o=u(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&&(a(o),a(y)),_(g,t)}}}function Ui(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=p("p"),o.textContent=M,y=n(),h(g.$$.fragment)},l(t){o=u(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&&(a(o),a(y)),_(g,t)}}}function Ci(w){let o,M,y,g,$,t,v,Ha,Ne,Zr=`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:`,Ia,Ge,Za,Ve,Er="Then, you may define the verbosity in order to update the amount of logs you’ll see:",Ea,Re,Ba,Fe,Br="The levels should be understood as follows:",Xa,qe,Xr=`<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>`,Na,Q,Le,ul,vs,Nr="Return the current level for the HuggingFace Hub’s root logger.",cl,_e,Ga,le,We,hl,Ms,Gr="Sets the level for the HuggingFace Hub’s root logger.",Va,re,Ye,dl,ws,Vr="Sets the verbosity to <code>logging.INFO</code>.",Ra,oe,Se,fl,Ts,Rr="Sets the verbosity to <code>logging.DEBUG</code>.",Fa,ie,ze,ml,js,Fr="Sets the verbosity to <code>logging.WARNING</code>.",qa,ge,Qe,bl,Js,qr="Sets the verbosity to <code>logging.ERROR</code>.",La,pe,Pe,_l,xs,Lr=`Disable propagation of the library log outputs. Note that log propagation is
disabled by default.`,Wa,ue,Ae,yl,ks,Wr=`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.`,Ya,De,Sa,Ke,Yr=`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.`,za,P,Oe,$l,Us,Sr=`Returns a logger with the specified name. This function is not supposed
to be directly accessed by library users.`,vl,ye,Qa,et,Pa,tt,zr=`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.`,Aa,st,Qr=`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/main/en/package_reference/utilities#huggingface_hub.utils.enable_progress_bars">enable_progress_bars()</a> and
<a href="/docs/huggingface_hub/main/en/package_reference/utilities#huggingface_hub.utils.disable_progress_bars">disable_progress_bars()</a>. If set, the environment variable has priority on the helpers.`,Da,at,Ka,nt,Oa,lt,Pr="You can also enable or disable progress bars for specific groups. This allows you to manage progress bar visibility more granularly within different parts of your application or library. When a progress bar is disabled for a group, all subgroups under it are also affected unless explicitly overridden.",en,rt,tn,ot,sn,A,it,Ml,Cs,Ar="Check if progress bars are disabled globally or for a specific group.",wl,Hs,Dr=`This function returns whether progress bars are disabled for a given group or globally.
It checks the <code>HF_HUB_DISABLE_PROGRESS_BARS</code> environment variable first, then the programmatic
settings.`,an,gt,nn,D,pt,Tl,Is,Kr="Disable progress bars either globally or for a specified group.",jl,Zs,Or=`This function updates the state of progress bars based on a group name.
If no group name is provided, all progress bars are disabled. The operation
respects the <code>HF_HUB_DISABLE_PROGRESS_BARS</code> environment variable’s setting.`,ln,ut,rn,K,ct,Jl,Es,eo="Enable progress bars either globally or for a specified group.",xl,Bs,to=`This function sets the progress bars to enabled for the specified group or globally
if no group is specified. The operation is subject to the <code>HF_HUB_DISABLE_PROGRESS_BARS</code>
environment setting.`,on,ht,gn,dt,so=`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/main/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.`,pn,ft,ao=`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/main/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>).`,un,X,mt,kl,Xs,no=`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).`,Ul,Ns,lo=`Use <a href="/docs/huggingface_hub/main/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/main/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.`,Cl,Gs,ro='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>.',Hl,$e,cn,N,bt,Il,Vs,oo="Get a <code>requests.Session</code> object, using the session factory from the user.",Zl,Rs,io=`Use <a href="/docs/huggingface_hub/main/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/main/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.`,El,Fs,go='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>.',Bl,ve,hn,_t,dn,yt,po=`<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.`,fn,$t,mn,vt,uo=`<a href="/docs/huggingface_hub/main/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>.`,bn,Mt,_n,G,wt,Xl,qs,co=`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>.`,Nl,Ls,ho=`This helper is meant to be the unique method to raise_for_status when making a call
to the Hugging Face Hub.`,Gl,Me,Vl,we,yn,Tt,$n,jt,fo="Here is a list of HTTP errors thrown in <code>huggingface_hub</code>.",vn,Jt,Mn,xt,mo=`<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.`,wn,H,kt,Rl,Ws,bo="HTTPError to inherit from for any custom HTTP Error raised in HF Hub.",Fl,Ys,_o=`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.`,ql,Ss,yo="Added details:",Ll,zs,$o="<li>Request id from “X-Request-Id” header if exists. If not, fallback to “X-Amzn-Trace-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>",Wl,Te,Yl,je,Ut,Sl,Qs,vo="Append additional information to the <code>HfHubHTTPError</code> initial message.",Tn,Ct,jn,O,Ht,zl,Ps,Mo=`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.`,Ql,Je,Jn,It,xn,F,Zt,Pl,As,wo=`Raised when trying to access a gated repository for which the user is not on the
authorized list.`,Al,Ds,To="Note: derives from <code>RepositoryNotFoundError</code> to ensure backward compatibility.",Dl,xe,kn,Et,Un,ee,Bt,Kl,Ks,jo=`Raised when trying to access a hf.co URL with a valid repository but an invalid
revision.`,Ol,ke,Cn,Xt,Hn,te,Nt,er,Os,Jo=`Raised when trying to access a hf.co URL with a valid repository and revision
but an invalid filename.`,tr,Ue,In,Gt,Zn,se,Vt,sr,ea,xo="Raised by <code>hf_raise_for_status</code> when the server returns a HTTP 400 error.",ar,Ce,En,Rt,Bn,q,Ft,nr,ta,ko=`Raised when trying to access a file or snapshot that is not on the disk when network is
disabled or unavailable (connection issue). The entry may exist on the Hub.`,lr,sa,Uo=`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.`,rr,He,Xn,qt,Nn,ce,Lt,or,aa,Co="Raised when a request is made but <code>HF_HUB_OFFLINE=1</code> is set as environment variable.",Gn,Wt,Vn,Yt,Ho=`<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).`,Rn,St,Io=`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.`,Fn,V,zt,ir,na,Zo="Sends telemetry that helps tracking usage of different HF libraries.",gr,la,Eo=`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>).`,pr,ra,Bo="Telemetry collection is run in a separate thread to minimize impact for the user.",ur,Ie,qn,Qt,Ln,Pt,Xo=`<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.`,Wn,At,Yn,Dt,No=`<a href="/docs/huggingface_hub/main/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.`,Sn,Kt,Go=`If an input is not valid, a <a href="/docs/huggingface_hub/main/en/package_reference/utilities#huggingface_hub.errors.HFValidationError">HFValidationError</a> is thrown. Only
the first non-valid value throws an error and stops the validation process.`,zn,Ot,Vo="Usage:",Qn,es,Pn,ts,An,I,ss,cr,oa,Ro="Validate values received as argument for any public method of <code>huggingface_hub</code>.",hr,ia,Fo=`The goal of this decorator is to harmonize validation of arguments reused
everywhere. By default, all defined validators are tested.`,dr,ga,qo="Validators:",fr,pa,Lo=`<li><a href="/docs/huggingface_hub/main/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/main/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>`,mr,Ze,Dn,as,Kn,ae,ns,br,ua,Wo="Generic exception thrown by <code>huggingface_hub</code> validators.",_r,ca,Yo='Inherits from <a href="https://docs.python.org/3/library/exceptions.html#ValueError" rel="nofollow"><code>ValueError</code></a>.',On,ls,el,rs,So=`Validators can also be used individually. Here is a list of all arguments that can be
validated.`,tl,os,sl,k,is,yr,ha,zo="Validate <code>repo_id</code> is valid.",$r,da,Qo=`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).`,vr,fa,Po="Rules:",Mr,ma,Ao="<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>",wr,ba,Do="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>",Tr,_a,Ko="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>",jr,Ee,Jr,ya,Oo=`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):`,xr,$a,ei='<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>',al,gs,nl,ps,ti="Not exactly a validator, but ran as well.",ll,Z,us,kr,va,si="Smoothly deprecate <code>use_auth_token</code> in the <code>huggingface_hub</code> codebase.",Ur,Ma,ai=`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:`,Cr,cs,ni=`<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>`,Hr,wa,li="This has been discussed in:",Ir,Ta,ri='<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>',rl,hs,ol,Ca,il;return $=new x({props:{title:"Utilities",local:"utilities",headingTag:"h1"}}),v=new x({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}}),Re=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/main/src/huggingface_hub/utils/logging.py#L105",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>
`}}),_e=new oi({props:{$$slots:{default:[di]},$$scope:{ctx:w}}}),We=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/main/src/huggingface_hub/utils/logging.py#L127"}}),Ye=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/main/src/huggingface_hub/utils/logging.py#L139"}}),Se=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/main/src/huggingface_hub/utils/logging.py#L153"}}),ze=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/main/src/huggingface_hub/utils/logging.py#L146"}}),Qe=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/main/src/huggingface_hub/utils/logging.py#L160"}}),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/main/src/huggingface_hub/utils/logging.py#L167"}}),Ae=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/main/src/huggingface_hub/utils/logging.py#L175"}}),De=new x({props:{title:"Repo-specific helper methods",local:"huggingface_hub.utils.logging.get_logger",headingTag:"h3"}}),Oe=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/main/src/huggingface_hub/utils/logging.py#L80"}}),ye=new R({props:{anchor:"huggingface_hub.utils.logging.get_logger.example",$$slots:{default:[fi]},$$scope:{ctx:w}}}),et=new x({props:{title:"Configure progress bars",local:"configure-progress-bars",headingTag:"h2"}}),at=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 x({props:{title:"Group-specific control of progress bars",local:"group-specific-control-of-progress-bars",headingTag:"h3"}}),rt=new C({props:{code:"ZGlzYWJsZV9wcm9ncmVzc19iYXJzKCUyMnBlZnQuZm9vJTIyKSUwQWFzc2VydCUyMG5vdCUyMGFyZV9wcm9ncmVzc19iYXJzX2Rpc2FibGVkKCUyMnBlZnQlMjIpJTBBYXNzZXJ0JTIwbm90JTIwYXJlX3Byb2dyZXNzX2JhcnNfZGlzYWJsZWQoJTIycGVmdC5zb21ldGhpbmclMjIpJTBBYXNzZXJ0JTIwYXJlX3Byb2dyZXNzX2JhcnNfZGlzYWJsZWQoJTIycGVmdC5mb28lMjIpJTBBYXNzZXJ0JTIwYXJlX3Byb2dyZXNzX2JhcnNfZGlzYWJsZWQoJTIycGVmdC5mb28uYmFyJTIyKSUwQSUwQWVuYWJsZV9wcm9ncmVzc19iYXJzKCUyMnBlZnQuZm9vLmJhciUyMiklMEFhc3NlcnQlMjBhcmVfcHJvZ3Jlc3NfYmFyc19kaXNhYmxlZCglMjJwZWZ0LmZvbyUyMiklMEFhc3NlcnQlMjBub3QlMjBhcmVfcHJvZ3Jlc3NfYmFyc19kaXNhYmxlZCglMjJwZWZ0LmZvby5iYXIlMjIpJTBBJTBBZm9yJTIwXyUyMGluJTIwdHFkbShyYW5nZSg1KSUyQyUyMG5hbWUlM0QlMjJwZWZ0LmZvbyUyMiklM0ElMEElMjAlMjAlMjAlMjBwYXNzJTBBJTBBZm9yJTIwXyUyMGluJTIwdHFkbShyYW5nZSg1KSUyQyUyMG5hbWUlM0QlMjJwZWZ0LmZvby5iYXIlMjIpJTNBJTBBJTIwJTIwJTIwJTIwcGFzcw==",highlighted:`<span class="hljs-comment"># Disable progress bars for a specific group</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>disable_progress_bars(<span class="hljs-string">&quot;peft.foo&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">assert</span> <span class="hljs-keyword">not</span> are_progress_bars_disabled(<span class="hljs-string">&quot;peft&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">assert</span> <span class="hljs-keyword">not</span> are_progress_bars_disabled(<span class="hljs-string">&quot;peft.something&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">assert</span> are_progress_bars_disabled(<span class="hljs-string">&quot;peft.foo&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">assert</span> are_progress_bars_disabled(<span class="hljs-string">&quot;peft.foo.bar&quot;</span>)

<span class="hljs-comment"># Re-enable progress bars for a subgroup</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>enable_progress_bars(<span class="hljs-string">&quot;peft.foo.bar&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">assert</span> are_progress_bars_disabled(<span class="hljs-string">&quot;peft.foo&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">assert</span> <span class="hljs-keyword">not</span> are_progress_bars_disabled(<span class="hljs-string">&quot;peft.foo.bar&quot;</span>)

<span class="hljs-comment"># Use groups with tqdm</span>
<span class="hljs-comment"># No progress bar for \`name=&quot;peft.foo&quot;\`</span>
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">for</span> _ <span class="hljs-keyword">in</span> tqdm(<span class="hljs-built_in">range</span>(<span class="hljs-number">5</span>), name=<span class="hljs-string">&quot;peft.foo&quot;</span>):
<span class="hljs-meta">... </span>    <span class="hljs-keyword">pass</span>

<span class="hljs-comment"># Progress bar will be shown for \`name=&quot;peft.foo.bar&quot;\`</span>
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">for</span> _ <span class="hljs-keyword">in</span> tqdm(<span class="hljs-built_in">range</span>(<span class="hljs-number">5</span>), name=<span class="hljs-string">&quot;peft.foo.bar&quot;</span>):
<span class="hljs-meta">... </span>    <span class="hljs-keyword">pass</span>
<span class="hljs-number">100</span>%|███████████████████████████████████████| <span class="hljs-number">5</span>/<span class="hljs-number">5</span> [<span class="hljs-number">00</span>:<span class="hljs-number">00</span>&lt;<span class="hljs-number">00</span>:<span class="hljs-number">00</span>, <span class="hljs-number">117817.53</span>it/s]`,wrap:!1}}),ot=new x({props:{title:"are_progress_bars_disabled",local:"huggingface_hub.utils.are_progress_bars_disabled",headingTag:"h3"}}),it=new J({props:{name:"huggingface_hub.utils.are_progress_bars_disabled",anchor:"huggingface_hub.utils.are_progress_bars_disabled",parameters:[{name:"name",val:": typing.Optional[str] = None"}],parametersDescription:[{anchor:"huggingface_hub.utils.are_progress_bars_disabled.name",description:`<strong>name</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The group name to check; if None, checks the global setting.`,name:"name"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/utils/tqdm.py#L172",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>True if progress bars are disabled, False otherwise.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>bool</code></p>
`}}),gt=new x({props:{title:"disable_progress_bars",local:"huggingface_hub.utils.disable_progress_bars",headingTag:"h3"}}),pt=new J({props:{name:"huggingface_hub.utils.disable_progress_bars",anchor:"huggingface_hub.utils.disable_progress_bars",parameters:[{name:"name",val:": typing.Optional[str] = None"}],parametersDescription:[{anchor:"huggingface_hub.utils.disable_progress_bars.name",description:`<strong>name</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The name of the group for which to disable the progress bars. If None,
progress bars are disabled globally.`,name:"name"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/utils/tqdm.py#L108",raiseDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<ul>
<li><code>Warning</code> — If the environment variable precludes changes.</li>
</ul>
`,raiseType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>Warning</code></p>
`}}),ut=new x({props:{title:"enable_progress_bars",local:"huggingface_hub.utils.enable_progress_bars",headingTag:"h3"}}),ct=new J({props:{name:"huggingface_hub.utils.enable_progress_bars",anchor:"huggingface_hub.utils.enable_progress_bars",parameters:[{name:"name",val:": typing.Optional[str] = None"}],parametersDescription:[{anchor:"huggingface_hub.utils.enable_progress_bars.name",description:`<strong>name</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The name of the group for which to enable the progress bars. If None,
progress bars are enabled globally.`,name:"name"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/utils/tqdm.py#L140",raiseDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<ul>
<li><code>Warning</code> — If the environment variable precludes changes.</li>
</ul>
`,raiseType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>Warning</code></p>
`}}),ht=new x({props:{title:"Configure HTTP backend",local:"huggingface_hub.configure_http_backend",headingTag:"h2"}}),mt=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 0x7f8578310f70>"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/utils/_http.py#L127"}}),$e=new R({props:{anchor:"huggingface_hub.configure_http_backend.example",$$slots:{default:[mi]},$$scope:{ctx:w}}}),bt=new J({props:{name:"huggingface_hub.get_session",anchor:"huggingface_hub.get_session",parameters:[],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/utils/_http.py#L163"}}),ve=new R({props:{anchor:"huggingface_hub.get_session.example",$$slots:{default:[bi]},$$scope:{ctx:w}}}),_t=new x({props:{title:"Handle HTTP errors",local:"handle-http-errors",headingTag:"h2"}}),$t=new x({props:{title:"Raise for status",local:"huggingface_hub.utils.hf_raise_for_status",headingTag:"h3"}}),Mt=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}}),wt=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/main/src/huggingface_hub/utils/_http.py#L352"}}),Me=new R({props:{anchor:"huggingface_hub.utils.hf_raise_for_status.example",$$slots:{default:[_i]},$$scope:{ctx:w}}}),we=new oi({props:{warning:!0,$$slots:{default:[yi]},$$scope:{ctx:w}}}),Tt=new x({props:{title:"HTTP errors",local:"http-errors",headingTag:"h3"}}),Jt=new x({props:{title:"HfHubHTTPError",local:"huggingface_hub.errors.HfHubHTTPError",headingTag:"h4"}}),kt=new J({props:{name:"class huggingface_hub.errors.HfHubHTTPError",anchor:"huggingface_hub.errors.HfHubHTTPError",parameters:[{name:"message",val:": str"},{name:"response",val:": typing.Optional[requests.models.Response] = None"},{name:"server_message",val:": typing.Optional[str] = None"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/errors.py#L40"}}),Te=new R({props:{anchor:"huggingface_hub.errors.HfHubHTTPError.example",$$slots:{default:[$i]},$$scope:{ctx:w}}}),Ut=new J({props:{name:"append_to_message",anchor:"huggingface_hub.errors.HfHubHTTPError.append_to_message",parameters:[{name:"additional_message",val:": str"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/errors.py#L84"}}),Ct=new x({props:{title:"RepositoryNotFoundError",local:"huggingface_hub.errors.RepositoryNotFoundError",headingTag:"h4"}}),Ht=new J({props:{name:"class huggingface_hub.errors.RepositoryNotFoundError",anchor:"huggingface_hub.errors.RepositoryNotFoundError",parameters:[{name:"message",val:": str"},{name:"response",val:": typing.Optional[requests.models.Response] = None"},{name:"server_message",val:": typing.Optional[str] = None"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/errors.py#L174"}}),Je=new R({props:{anchor:"huggingface_hub.errors.RepositoryNotFoundError.example",$$slots:{default:[vi]},$$scope:{ctx:w}}}),It=new x({props:{title:"GatedRepoError",local:"huggingface_hub.errors.GatedRepoError",headingTag:"h4"}}),Zt=new J({props:{name:"class huggingface_hub.errors.GatedRepoError",anchor:"huggingface_hub.errors.GatedRepoError",parameters:[{name:"message",val:": str"},{name:"response",val:": typing.Optional[requests.models.Response] = None"},{name:"server_message",val:": typing.Optional[str] = None"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/errors.py#L195"}}),xe=new R({props:{anchor:"huggingface_hub.errors.GatedRepoError.example",$$slots:{default:[Mi]},$$scope:{ctx:w}}}),Et=new x({props:{title:"RevisionNotFoundError",local:"huggingface_hub.errors.RevisionNotFoundError",headingTag:"h4"}}),Bt=new J({props:{name:"class huggingface_hub.errors.RevisionNotFoundError",anchor:"huggingface_hub.errors.RevisionNotFoundError",parameters:[{name:"message",val:": str"},{name:"response",val:": typing.Optional[requests.models.Response] = None"},{name:"server_message",val:": typing.Optional[str] = None"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/errors.py#L238"}}),ke=new R({props:{anchor:"huggingface_hub.errors.RevisionNotFoundError.example",$$slots:{default:[wi]},$$scope:{ctx:w}}}),Xt=new x({props:{title:"EntryNotFoundError",local:"huggingface_hub.errors.EntryNotFoundError",headingTag:"h4"}}),Nt=new J({props:{name:"class huggingface_hub.errors.EntryNotFoundError",anchor:"huggingface_hub.errors.EntryNotFoundError",parameters:[{name:"message",val:": str"},{name:"response",val:": typing.Optional[requests.models.Response] = None"},{name:"server_message",val:": typing.Optional[str] = None"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/errors.py#L257"}}),Ue=new R({props:{anchor:"huggingface_hub.errors.EntryNotFoundError.example",$$slots:{default:[Ti]},$$scope:{ctx:w}}}),Gt=new x({props:{title:"BadRequestError",local:"huggingface_hub.errors.BadRequestError",headingTag:"h4"}}),Vt=new J({props:{name:"class huggingface_hub.errors.BadRequestError",anchor:"huggingface_hub.errors.BadRequestError",parameters:[{name:"message",val:": str"},{name:"response",val:": typing.Optional[requests.models.Response] = None"},{name:"server_message",val:": typing.Optional[str] = None"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/errors.py#L299"}}),Ce=new R({props:{anchor:"huggingface_hub.errors.BadRequestError.example",$$slots:{default:[ji]},$$scope:{ctx:w}}}),Rt=new x({props:{title:"LocalEntryNotFoundError",local:"huggingface_hub.errors.LocalEntryNotFoundError",headingTag:"h4"}}),Ft=new J({props:{name:"class huggingface_hub.errors.LocalEntryNotFoundError",anchor:"huggingface_hub.errors.LocalEntryNotFoundError",parameters:[{name:"message",val:": str"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/errors.py#L275"}}),He=new R({props:{anchor:"huggingface_hub.errors.LocalEntryNotFoundError.example",$$slots:{default:[Ji]},$$scope:{ctx:w}}}),qt=new x({props:{title:"OfflineModeIsEnabled",local:"huggingface_hub.errors.OfflineModeIsEnabled",headingTag:"h4"}}),Lt=new J({props:{name:"class huggingface_hub.errors.OfflineModeIsEnabled",anchor:"huggingface_hub.errors.OfflineModeIsEnabled",parameters:"",source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/errors.py#L36"}}),Wt=new x({props:{title:"Telemetry",local:"huggingface_hub.utils.send_telemetry",headingTag:"h2"}}),zt=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/main/src/huggingface_hub/utils/_telemetry.py#L20"}}),Ie=new R({props:{anchor:"huggingface_hub.utils.send_telemetry.example",$$slots:{default:[xi]},$$scope:{ctx:w}}}),Qt=new x({props:{title:"Validators",local:"validators",headingTag:"h2"}}),At=new x({props:{title:"Generic decorator",local:"generic-decorator",headingTag:"h3"}}),es=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}}),ts=new x({props:{title:"validate_hf_hub_args",local:"huggingface_hub.utils.validate_hf_hub_args",headingTag:"h4"}}),ss=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/main/src/huggingface_hub/utils/_validators.py#L42",raiseDescription:`<script context="module">export const metadata = 'undefined';<\/script>


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