import{s as Oo,o as ei,n as B}from"../chunks/scheduler.6062bdaf.js";import{S as ti,i as si,g as u,s as n,r as h,A as ai,h as c,f as a,c as l,j,u as d,x as p,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 Ko}from"../chunks/Tip.b9ac1f03.js";import{D as J}from"../chunks/Docstring.ed07512f.js";import{C}from"../chunks/CodeBlock.fa01571c.js";import{E as V}from"../chunks/ExampleCodeBlock.823fb173.js";import{H as x}from"../chunks/Heading.723dceba.js";function ni(w){let o,M="HuggingFace Hub has following logging levels:",y,g,$="<li><code>huggingface_hub.logging.CRITICAL</code>, <code>huggingface_hub.logging.FATAL</code></li> <li><code>huggingface_hub.logging.ERROR</code></li> <li><code>huggingface_hub.logging.WARNING</code>, <code>huggingface_hub.logging.WARN</code></li> <li><code>huggingface_hub.logging.INFO</code></li> <li><code>huggingface_hub.logging.DEBUG</code></li>";return{c(){o=u("p"),o.textContent=M,y=n(),g=u("ul"),g.innerHTML=$},l(t){o=c(t,"P",{"data-svelte-h":!0}),p(o)!=="svelte-8pck4"&&(o.textContent=M),y=l(t),g=c(t,"UL",{"data-svelte-h":!0}),p(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 li(w){let o,M="Example:",y,g,$;return g=new C({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMGdldF9sb2dnZXIlMEElMEFsb2dnZXIlMjAlM0QlMjBnZXRfbG9nZ2VyKF9fZmlsZV9fKSUwQWxvZ2dlci5zZXRfdmVyYm9zaXR5X2luZm8oKQ==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> get_logger

<span class="hljs-meta">&gt;&gt;&gt; </span>logger = get_logger(__file__)
<span class="hljs-meta">&gt;&gt;&gt; </span>logger.set_verbosity_info()`,wrap:!1}}),{c(){o=u("p"),o.textContent=M,y=n(),h(g.$$.fragment)},l(t){o=c(t,"P",{"data-svelte-h":!0}),p(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 ri(w){let o,M="Example:",y,g,$;return g=new C({props:{code:"aW1wb3J0JTIwcmVxdWVzdHMlMEFmcm9tJTIwaHVnZ2luZ2ZhY2VfaHViJTIwaW1wb3J0JTIwY29uZmlndXJlX2h0dHBfYmFja2VuZCUyQyUyMGdldF9zZXNzaW9uJTBBJTBBJTIzJTIwQ3JlYXRlJTIwYSUyMGZhY3RvcnklMjBmdW5jdGlvbiUyMHRoYXQlMjByZXR1cm5zJTIwYSUyMFNlc3Npb24lMjB3aXRoJTIwY29uZmlndXJlZCUyMHByb3hpZXMlMEFkZWYlMjBiYWNrZW5kX2ZhY3RvcnkoKSUyMC0lM0UlMjByZXF1ZXN0cy5TZXNzaW9uJTNBJTBBJTIwJTIwJTIwJTIwc2Vzc2lvbiUyMCUzRCUyMHJlcXVlc3RzLlNlc3Npb24oKSUwQSUyMCUyMCUyMCUyMHNlc3Npb24ucHJveGllcyUyMCUzRCUyMCU3QiUyMmh0dHAlMjIlM0ElMjAlMjJodHRwJTNBJTJGJTJGMTAuMTAuMS4xMCUzQTMxMjglMjIlMkMlMjAlMjJodHRwcyUyMiUzQSUyMCUyMmh0dHBzJTNBJTJGJTJGMTAuMTAuMS4xMSUzQTEwODAlMjIlN0QlMEElMjAlMjAlMjAlMjByZXR1cm4lMjBzZXNzaW9uJTBBJTBBJTIzJTIwU2V0JTIwaXQlMjBhcyUyMHRoZSUyMGRlZmF1bHQlMjBzZXNzaW9uJTIwZmFjdG9yeSUwQWNvbmZpZ3VyZV9odHRwX2JhY2tlbmQoYmFja2VuZF9mYWN0b3J5JTNEYmFja2VuZF9mYWN0b3J5KSUwQSUwQSUyMyUyMEluJTIwcHJhY3RpY2UlMkMlMjB0aGlzJTIwaXMlMjBtb3N0bHklMjBkb25lJTIwaW50ZXJuYWxseSUyMGluJTIwJTYwaHVnZ2luZ2ZhY2VfaHViJTYwJTBBc2Vzc2lvbiUyMCUzRCUyMGdldF9zZXNzaW9uKCk=",highlighted:`<span class="hljs-keyword">import</span> requests
<span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> configure_http_backend, get_session

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

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

<span class="hljs-comment"># In practice, this is mostly done internally in \`huggingface_hub\`</span>
session = get_session()`,wrap:!1}}),{c(){o=u("p"),o.textContent=M,y=n(),h(g.$$.fragment)},l(t){o=c(t,"P",{"data-svelte-h":!0}),p(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 oi(w){let o,M="Example:",y,g,$;return g=new C({props:{code:"aW1wb3J0JTIwcmVxdWVzdHMlMEFmcm9tJTIwaHVnZ2luZ2ZhY2VfaHViJTIwaW1wb3J0JTIwY29uZmlndXJlX2h0dHBfYmFja2VuZCUyQyUyMGdldF9zZXNzaW9uJTBBJTBBJTIzJTIwQ3JlYXRlJTIwYSUyMGZhY3RvcnklMjBmdW5jdGlvbiUyMHRoYXQlMjByZXR1cm5zJTIwYSUyMFNlc3Npb24lMjB3aXRoJTIwY29uZmlndXJlZCUyMHByb3hpZXMlMEFkZWYlMjBiYWNrZW5kX2ZhY3RvcnkoKSUyMC0lM0UlMjByZXF1ZXN0cy5TZXNzaW9uJTNBJTBBJTIwJTIwJTIwJTIwc2Vzc2lvbiUyMCUzRCUyMHJlcXVlc3RzLlNlc3Npb24oKSUwQSUyMCUyMCUyMCUyMHNlc3Npb24ucHJveGllcyUyMCUzRCUyMCU3QiUyMmh0dHAlMjIlM0ElMjAlMjJodHRwJTNBJTJGJTJGMTAuMTAuMS4xMCUzQTMxMjglMjIlMkMlMjAlMjJodHRwcyUyMiUzQSUyMCUyMmh0dHBzJTNBJTJGJTJGMTAuMTAuMS4xMSUzQTEwODAlMjIlN0QlMEElMjAlMjAlMjAlMjByZXR1cm4lMjBzZXNzaW9uJTBBJTBBJTIzJTIwU2V0JTIwaXQlMjBhcyUyMHRoZSUyMGRlZmF1bHQlMjBzZXNzaW9uJTIwZmFjdG9yeSUwQWNvbmZpZ3VyZV9odHRwX2JhY2tlbmQoYmFja2VuZF9mYWN0b3J5JTNEYmFja2VuZF9mYWN0b3J5KSUwQSUwQSUyMyUyMEluJTIwcHJhY3RpY2UlMkMlMjB0aGlzJTIwaXMlMjBtb3N0bHklMjBkb25lJTIwaW50ZXJuYWxseSUyMGluJTIwJTYwaHVnZ2luZ2ZhY2VfaHViJTYwJTBBc2Vzc2lvbiUyMCUzRCUyMGdldF9zZXNzaW9uKCk=",highlighted:`<span class="hljs-keyword">import</span> requests
<span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> configure_http_backend, get_session

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

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

<span class="hljs-comment"># In practice, this is mostly done internally in \`huggingface_hub\`</span>
session = get_session()`,wrap:!1}}),{c(){o=u("p"),o.textContent=M,y=n(),h(g.$$.fragment)},l(t){o=c(t,"P",{"data-svelte-h":!0}),p(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 ii(w){let o,M="Example:",y,g,$;return g=new C({props:{code:"JTIwJTIwJTIwJTIwaW1wb3J0JTIwcmVxdWVzdHMlMEElMjAlMjAlMjAlMjBmcm9tJTIwaHVnZ2luZ2ZhY2VfaHViLnV0aWxzJTIwaW1wb3J0JTIwZ2V0X3Nlc3Npb24lMkMlMjBoZl9yYWlzZV9mb3Jfc3RhdHVzJTJDJTIwSGZIdWJIVFRQRXJyb3IlMEElMEElMjAlMjAlMjAlMjByZXNwb25zZSUyMCUzRCUyMGdldF9zZXNzaW9uKCkucG9zdCguLi4pJTBBJTIwJTIwJTIwJTIwdHJ5JTNBJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwaGZfcmFpc2VfZm9yX3N0YXR1cyhyZXNwb25zZSklMEElMjAlMjAlMjAlMjBleGNlcHQlMjBIZkh1YkhUVFBFcnJvciUyMGFzJTIwZSUzQSUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMHByaW50KHN0cihlKSklMjAlMjMlMjBmb3JtYXR0ZWQlMjBtZXNzYWdlJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwZS5yZXF1ZXN0X2lkJTJDJTIwZS5zZXJ2ZXJfbWVzc2FnZSUyMCUyMyUyMGRldGFpbHMlMjByZXR1cm5lZCUyMGJ5JTIwc2VydmVyJTBBJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIzJTIwQ29tcGxldGUlMjB0aGUlMjBlcnJvciUyMG1lc3NhZ2UlMjB3aXRoJTIwYWRkaXRpb25hbCUyMGluZm9ybWF0aW9uJTIwb25jZSUyMGl0J3MlMjByYWlzZWQlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjBlLmFwcGVuZF90b19tZXNzYWdlKCUyMiUwQWF0ZV9jb21taXQlNjAlMjBleHBlY3RzJTIwdGhlJTIwcmVwb3NpdG9yeSUyMHRvJTIwZXhpc3QuJTIyKSUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMHJhaXNl",highlighted:`    <span class="hljs-keyword">import</span> requests
    <span class="hljs-keyword">from</span> huggingface_hub.utils <span class="hljs-keyword">import</span> get_session, hf_raise_for_status, HfHubHTTPError

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

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

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

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

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

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

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

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

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

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

<span class="hljs-comment"># Send telemetry with additional data</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>send_telemetry(
<span class="hljs-meta">... </span>    topic=<span class="hljs-string">&quot;examples&quot;</span>,
<span class="hljs-meta">... </span>    library_name=<span class="hljs-string">&quot;transformers&quot;</span>,
<span class="hljs-meta">... </span>    library_version=<span class="hljs-string">&quot;4.26.0&quot;</span>,
<span class="hljs-meta">... </span>    user_agent={<span class="hljs-string">&quot;pipeline&quot;</span>: <span class="hljs-string">&quot;text_classification&quot;</span>, <span class="hljs-string">&quot;framework&quot;</span>: <span class="hljs-string">&quot;flax&quot;</span>},
<span class="hljs-meta">... </span>)`,wrap:!1}}),{c(){o=u("p"),o.textContent=M,y=n(),h(g.$$.fragment)},l(t){o=c(t,"P",{"data-svelte-h":!0}),p(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:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1Yi51dGlscyUyMGltcG9ydCUyMHZhbGlkYXRlX2hmX2h1Yl9hcmdzJTBBJTBBJTQwdmFsaWRhdGVfaGZfaHViX2FyZ3MlMEFkZWYlMjBteV9jb29sX21ldGhvZChyZXBvX2lkJTNBJTIwc3RyKSUzQSUwQSUyMCUyMCUyMCUyMHByaW50KHJlcG9faWQpJTBBJTBBbXlfY29vbF9tZXRob2QocmVwb19pZCUzRCUyMnZhbGlkX3JlcG9faWQlMjIpJTBBJTBBbXlfY29vbF9tZXRob2QoJTIyb3RoZXIuLnJlcG8uLmlkJTIyKSUwQSUwQW15X2Nvb2xfbWV0aG9kKHJlcG9faWQlM0QlMjJvdGhlci4ucmVwby4uaWQlMjIpJTBBJTBBJTQwdmFsaWRhdGVfaGZfaHViX2FyZ3MlMEFkZWYlMjBteV9jb29sX2F1dGhfbWV0aG9kKHRva2VuJTNBJTIwc3RyKSUzQSUwQSUyMCUyMCUyMCUyMHByaW50KHRva2VuKSUwQSUwQW15X2Nvb2xfYXV0aF9tZXRob2QodG9rZW4lM0QlMjJhJTIwdG9rZW4lMjIpJTBBJTBBbXlfY29vbF9hdXRoX21ldGhvZCh1c2VfYXV0aF90b2tlbiUzRCUyMmElMjB1c2VfYXV0aF90b2tlbiUyMiklMEElMEFteV9jb29sX2F1dGhfbWV0aG9kKHRva2VuJTNEJTIyYSUyMHRva2VuJTIyJTJDJTIwdXNlX2F1dGhfdG9rZW4lM0QlMjJhJTIwdXNlX2F1dGhfdG9rZW4lMjIp",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> huggingface_hub.utils <span class="hljs-keyword">import</span> validate_hf_hub_args

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

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

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

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

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

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

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

<span class="hljs-meta">&gt;&gt;&gt; </span>my_cool_auth_method(token=<span class="hljs-string">&quot;a token&quot;</span>, use_auth_token=<span class="hljs-string">&quot;a use_auth_token&quot;</span>)
UserWarning: Both \`token\` <span class="hljs-keyword">and</span> \`use_auth_token\` are passed (...)
<span class="hljs-string">&quot;a token&quot;</span>`,wrap:!1}}),{c(){o=u("p"),o.textContent=M,y=n(),h(g.$$.fragment)},l(t){o=c(t,"P",{"data-svelte-h":!0}),p(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="Example:",y,g,$;return g=new C({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1Yi51dGlscyUyMGltcG9ydCUyMHZhbGlkYXRlX3JlcG9faWQlMEF2YWxpZGF0ZV9yZXBvX2lkKHJlcG9faWQlM0QlMjJ2YWxpZF9yZXBvX2lkJTIyKSUwQXZhbGlkYXRlX3JlcG9faWQocmVwb19pZCUzRCUyMm90aGVyLi5yZXBvLi5pZCUyMik=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> huggingface_hub.utils <span class="hljs-keyword">import</span> validate_repo_id
<span class="hljs-meta">&gt;&gt;&gt; </span>validate_repo_id(repo_id=<span class="hljs-string">&quot;valid_repo_id&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>validate_repo_id(repo_id=<span class="hljs-string">&quot;other..repo..id&quot;</span>)
huggingface_hub.utils._validators.HFValidationError: Cannot have -- <span class="hljs-keyword">or</span> .. <span class="hljs-keyword">in</span> repo_id: <span class="hljs-string">&#x27;other..repo..id&#x27;</span>.`,wrap:!1}}),{c(){o=u("p"),o.textContent=M,y=n(),h(g.$$.fragment)},l(t){o=c(t,"P",{"data-svelte-h":!0}),p(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,y,g,$,t,v,xa,Ge,jr=`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:`,ka,Ne,Ha,Re,Jr="Then, you may define the verbosity in order to update the amount of logs you’ll see:",Ua,Ve,Ca,Fe,xr="The levels should be understood as follows:",Ia,Le,kr=`<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>`,Ea,P,qe,al,bs,Hr="Return the current level for the HuggingFace Hub’s root logger.",nl,_e,Za,le,We,ll,_s,Ur="Sets the level for the HuggingFace Hub’s root logger.",Ba,re,Se,rl,ys,Cr="Sets the verbosity to <code>logging.INFO</code>.",Xa,oe,Ye,ol,$s,Ir="Sets the verbosity to <code>logging.DEBUG</code>.",Ga,ie,ze,il,vs,Er="Sets the verbosity to <code>logging.WARNING</code>.",Na,ge,Pe,gl,Ms,Zr="Sets the verbosity to <code>logging.ERROR</code>.",Ra,ue,Qe,ul,ws,Br=`Disable propagation of the library log outputs. Note that log propagation is
disabled by default.`,Va,ce,Ae,cl,Ts,Xr=`Enable propagation of the library log outputs. Please disable the
HuggingFace Hub’s default handler to prevent double logging if the root
logger has been configured.`,Fa,De,La,Ke,Gr=`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.`,qa,Q,Oe,pl,js,Nr=`Returns a logger with the specified name. This function is not supposed
to be directly accessed by library users.`,hl,ye,Wa,et,Sa,tt,Rr=`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.`,Ya,st,Vr=`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.`,za,at,Pa,nt,Qa,A,lt,dl,Js,Fr="Return whether progress bars are globally disabled or not.",fl,xs,Lr=`Progress bars used in <code>huggingface_hub</code> can be enable or disabled globally 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> or by setting <code>HF_HUB_DISABLE_PROGRESS_BARS</code> as environment variable.`,Aa,rt,Da,D,ot,ml,ks,qr=`Disable globally progress bars used in <code>huggingface_hub</code> except if <code>HF_HUB_DISABLE_PROGRESS_BARS</code> environment
variable has been set.`,bl,Hs,Wr='Use <a href="/docs/huggingface_hub/main/en/package_reference/utilities#huggingface_hub.utils.enable_progress_bars">enable_progress_bars()</a> to re-enable them.',Ka,it,Oa,K,gt,_l,Us,Sr=`Enable globally progress bars used in <code>huggingface_hub</code> except if <code>HF_HUB_DISABLE_PROGRESS_BARS</code> environment
variable has been set.`,yl,Cs,Yr='Use <a href="/docs/huggingface_hub/main/en/package_reference/utilities#huggingface_hub.utils.disable_progress_bars">disable_progress_bars()</a> to disable them.',en,ut,tn,ct,zr=`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.`,sn,pt,Pr=`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>).`,an,X,ht,$l,Is,Qr=`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).`,vl,Es,Ar=`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.`,Ml,Zs,Dr='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>.',wl,$e,nn,G,dt,Tl,Bs,Kr="Get a <code>requests.Session</code> object, using the session factory from the user.",jl,Xs,Or=`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.`,Jl,Gs,eo='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>.',xl,ve,ln,ft,rn,mt,to=`<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.`,on,bt,gn,_t,so=`<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>.`,un,yt,cn,N,$t,kl,Ns,ao=`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>.`,Hl,Rs,no=`This helper is meant to be the unique method to raise_for_status when making a call
to the Hugging Face Hub.`,Ul,Me,Cl,we,pn,vt,hn,Mt,lo="Here is a list of HTTP errors thrown in <code>huggingface_hub</code>.",dn,wt,fn,Tt,ro=`<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.`,mn,U,jt,Il,Vs,oo="HTTPError to inherit from for any custom HTTP Error raised in HF Hub.",El,Fs,io=`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.`,Zl,Ls,go="Added details:",Bl,qs,uo="<li>Request id from “X-Request-Id” header if exists.</li> <li>Server error message from the header “X-Error-Message”.</li> <li>Server error message if we can found one in the response body.</li>",Xl,Te,Gl,je,Jt,Nl,Ws,co="Append additional information to the <code>HfHubHTTPError</code> initial message.",bn,xt,_n,O,kt,Rl,Ss,po=`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.`,Vl,Je,yn,Ht,$n,F,Ut,Fl,Ys,ho=`Raised when trying to access a gated repository for which the user is not on the
authorized list.`,Ll,zs,fo="Note: derives from <code>RepositoryNotFoundError</code> to ensure backward compatibility.",ql,xe,vn,Ct,Mn,ee,It,Wl,Ps,mo=`Raised when trying to access a hf.co URL with a valid repository but an invalid
revision.`,Sl,ke,wn,Et,Tn,te,Zt,Yl,Qs,bo=`Raised when trying to access a hf.co URL with a valid repository and revision
but an invalid filename.`,zl,He,jn,Bt,Jn,se,Xt,Pl,As,_o="Raised by <code>hf_raise_for_status</code> when the server returns a HTTP 400 error.",Ql,Ue,xn,Gt,kn,L,Nt,Al,Ds,yo=`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.`,Dl,Ks,$o=`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.`,Kl,Ce,Hn,Rt,Un,pe,Vt,Ol,Os,vo="Raised when a request is made but <code>HF_HUB_OFFLINE=1</code> is set as environment variable.",Cn,Ft,In,Lt,Mo=`<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).`,En,qt,wo=`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.`,Zn,R,Wt,er,ea,To="Sends telemetry that helps tracking usage of different HF libraries.",tr,ta,jo=`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>).`,sr,sa,Jo="Telemetry collection is run in a separate thread to minimize impact for the user.",ar,Ie,Bn,St,Xn,Yt,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.`,Gn,zt,Nn,Pt,ko=`<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.`,Rn,Qt,Ho=`If an input is not valid, a <a href="/docs/huggingface_hub/main/en/package_reference/utilities#huggingface_hub.utils.HFValidationError">HFValidationError</a> is thrown. Only
the first non-valid value throws an error and stops the validation process.`,Vn,At,Uo="Usage:",Fn,Dt,Ln,Kt,qn,I,Ot,nr,aa,Co="Validate values received as argument for any public method of <code>huggingface_hub</code>.",lr,na,Io=`The goal of this decorator is to harmonize validation of arguments reused
everywhere. By default, all defined validators are tested.`,rr,la,Eo="Validators:",or,ra,Zo=`<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>`,ir,Ee,Wn,es,Sn,ae,ts,gr,oa,Bo="Generic exception thrown by <code>huggingface_hub</code> validators.",ur,ia,Xo='Inherits from <a href="https://docs.python.org/3/library/exceptions.html#ValueError" rel="nofollow"><code>ValueError</code></a>.',Yn,ss,zn,as,Go=`Validators can also be used individually. Here is a list of all arguments that can be
validated.`,Pn,ns,Qn,k,ls,cr,ga,No="Validate <code>repo_id</code> is valid.",pr,ua,Ro=`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).`,hr,ca,Vo="Rules:",dr,pa,Fo="<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>",fr,ha,Lo="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>",mr,da,qo="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>",br,Ze,_r,fa,Wo=`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):`,yr,ma,So='<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>',An,rs,Dn,os,Yo="Not exactly a validator, but ran as well.",Kn,E,is,$r,ba,zo="Smoothly deprecate <code>use_auth_token</code> in the <code>huggingface_hub</code> codebase.",vr,_a,Po=`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:`,Mr,gs,Qo=`<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>`,wr,ya,Ao="This has been discussed in:",Tr,$a,Do='<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>',On,Ja,el;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"}}),Ne=new C({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMGxvZ2dpbmc=",highlighted:'<span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> logging',wrap:!1}}),Ve=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}}),qe=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#L103",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>Logging level, e.g., <code>huggingface_hub.logging.DEBUG</code> and
<code>huggingface_hub.logging.INFO</code>.</p>
`}}),_e=new Ko({props:{$$slots:{default:[ni]},$$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#L125"}}),Se=new J({props:{name:"huggingface_hub.utils.logging.set_verbosity_info",anchor:"huggingface_hub.utils.logging.set_verbosity_info",parameters:[],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/utils/logging.py#L137"}}),Ye=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#L151"}}),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#L144"}}),Pe=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#L158"}}),Qe=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#L165"}}),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#L173"}}),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:": Optional = 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#L78"}}),ye=new V({props:{anchor:"huggingface_hub.utils.logging.get_logger.example",$$slots:{default:[li]},$$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:"are_progress_bars_disabled",local:"huggingface_hub.utils.are_progress_bars_disabled",headingTag:"h3"}}),lt=new J({props:{name:"huggingface_hub.utils.are_progress_bars_disabled",anchor:"huggingface_hub.utils.are_progress_bars_disabled",parameters:[],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/utils/tqdm.py#L112"}}),rt=new x({props:{title:"disable_progress_bars",local:"huggingface_hub.utils.disable_progress_bars",headingTag:"h3"}}),ot=new J({props:{name:"huggingface_hub.utils.disable_progress_bars",anchor:"huggingface_hub.utils.disable_progress_bars",parameters:[],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/utils/tqdm.py#L78"}}),it=new x({props:{title:"enable_progress_bars",local:"huggingface_hub.utils.enable_progress_bars",headingTag:"h3"}}),gt=new J({props:{name:"huggingface_hub.utils.enable_progress_bars",anchor:"huggingface_hub.utils.enable_progress_bars",parameters:[],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/utils/tqdm.py#L95"}}),ut=new x({props:{title:"Configure HTTP backend",local:"huggingface_hub.configure_http_backend",headingTag:"h2"}}),ht=new J({props:{name:"huggingface_hub.configure_http_backend",anchor:"huggingface_hub.configure_http_backend",parameters:[{name:"backend_factory",val:": Callable = <function _default_backend_factory at 0x7ff007b49ab0>"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/utils/_http.py#L98"}}),$e=new V({props:{anchor:"huggingface_hub.configure_http_backend.example",$$slots:{default:[ri]},$$scope:{ctx:w}}}),dt=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#L134"}}),ve=new V({props:{anchor:"huggingface_hub.get_session.example",$$slots:{default:[oi]},$$scope:{ctx:w}}}),ft=new x({props:{title:"Handle HTTP errors",local:"handle-http-errors",headingTag:"h2"}}),bt=new x({props:{title:"Raise for status",local:"huggingface_hub.utils.hf_raise_for_status",headingTag:"h3"}}),yt=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}}),$t=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:": Optional = 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/_errors.py#L248"}}),Me=new V({props:{anchor:"huggingface_hub.utils.hf_raise_for_status.example",$$slots:{default:[ii]},$$scope:{ctx:w}}}),we=new Ko({props:{warning:!0,$$slots:{default:[gi]},$$scope:{ctx:w}}}),vt=new x({props:{title:"HTTP errors",local:"http-errors",headingTag:"h3"}}),wt=new x({props:{title:"HfHubHTTPError",local:"huggingface_hub.utils.HfHubHTTPError",headingTag:"h4"}}),jt=new J({props:{name:"class huggingface_hub.utils.HfHubHTTPError",anchor:"huggingface_hub.utils.HfHubHTTPError",parameters:[{name:"message",val:": str"},{name:"response",val:": Optional = None"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/utils/_errors.py#L32"}}),Te=new V({props:{anchor:"huggingface_hub.utils.HfHubHTTPError.example",$$slots:{default:[ui]},$$scope:{ctx:w}}}),Jt=new J({props:{name:"append_to_message",anchor:"huggingface_hub.utils.HfHubHTTPError.append_to_message",parameters:[{name:"additional_message",val:": str"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/utils/_errors.py#L109"}}),xt=new x({props:{title:"RepositoryNotFoundError",local:"huggingface_hub.utils.RepositoryNotFoundError",headingTag:"h4"}}),kt=new J({props:{name:"class huggingface_hub.utils.RepositoryNotFoundError",anchor:"huggingface_hub.utils.RepositoryNotFoundError",parameters:[{name:"message",val:": str"},{name:"response",val:": Optional = None"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/utils/_errors.py#L114"}}),Je=new V({props:{anchor:"huggingface_hub.utils.RepositoryNotFoundError.example",$$slots:{default:[ci]},$$scope:{ctx:w}}}),Ht=new x({props:{title:"GatedRepoError",local:"huggingface_hub.utils.GatedRepoError",headingTag:"h4"}}),Ut=new J({props:{name:"class huggingface_hub.utils.GatedRepoError",anchor:"huggingface_hub.utils.GatedRepoError",parameters:[{name:"message",val:": str"},{name:"response",val:": Optional = None"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/utils/_errors.py#L135"}}),xe=new V({props:{anchor:"huggingface_hub.utils.GatedRepoError.example",$$slots:{default:[pi]},$$scope:{ctx:w}}}),Ct=new x({props:{title:"RevisionNotFoundError",local:"huggingface_hub.utils.RevisionNotFoundError",headingTag:"h4"}}),It=new J({props:{name:"class huggingface_hub.utils.RevisionNotFoundError",anchor:"huggingface_hub.utils.RevisionNotFoundError",parameters:[{name:"message",val:": str"},{name:"response",val:": Optional = None"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/utils/_errors.py#L175"}}),ke=new V({props:{anchor:"huggingface_hub.utils.RevisionNotFoundError.example",$$slots:{default:[hi]},$$scope:{ctx:w}}}),Et=new x({props:{title:"EntryNotFoundError",local:"huggingface_hub.utils.EntryNotFoundError",headingTag:"h4"}}),Zt=new J({props:{name:"class huggingface_hub.utils.EntryNotFoundError",anchor:"huggingface_hub.utils.EntryNotFoundError",parameters:[{name:"message",val:": str"},{name:"response",val:": Optional = None"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/utils/_errors.py#L193"}}),He=new V({props:{anchor:"huggingface_hub.utils.EntryNotFoundError.example",$$slots:{default:[di]},$$scope:{ctx:w}}}),Bt=new x({props:{title:"BadRequestError",local:"huggingface_hub.utils.BadRequestError",headingTag:"h4"}}),Xt=new J({props:{name:"class huggingface_hub.utils.BadRequestError",anchor:"huggingface_hub.utils.BadRequestError",parameters:[{name:"message",val:": str"},{name:"response",val:": Optional = None"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/utils/_errors.py#L234"}}),Ue=new V({props:{anchor:"huggingface_hub.utils.BadRequestError.example",$$slots:{default:[fi]},$$scope:{ctx:w}}}),Gt=new x({props:{title:"LocalEntryNotFoundError",local:"huggingface_hub.utils.LocalEntryNotFoundError",headingTag:"h4"}}),Nt=new J({props:{name:"class huggingface_hub.utils.LocalEntryNotFoundError",anchor:"huggingface_hub.utils.LocalEntryNotFoundError",parameters:[{name:"message",val:": str"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/utils/_errors.py#L211"}}),Ce=new V({props:{anchor:"huggingface_hub.utils.LocalEntryNotFoundError.example",$$slots:{default:[mi]},$$scope:{ctx:w}}}),Rt=new x({props:{title:"OfflineModeIsEnabled",local:"huggingface_hub.utils.OfflineModeIsEnabled",headingTag:"h4"}}),Vt=new J({props:{name:"class huggingface_hub.utils.OfflineModeIsEnabled",anchor:"huggingface_hub.utils.OfflineModeIsEnabled",parameters:"",source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/utils/_http.py#L44"}}),Ft=new x({props:{title:"Telemetry",local:"huggingface_hub.utils.send_telemetry",headingTag:"h2"}}),Wt=new J({props:{name:"huggingface_hub.utils.send_telemetry",anchor:"huggingface_hub.utils.send_telemetry",parameters:[{name:"topic",val:": str"},{name:"library_name",val:": Optional = None"},{name:"library_version",val:": Optional = None"},{name:"user_agent",val:": Union = 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 V({props:{anchor:"huggingface_hub.utils.send_telemetry.example",$$slots:{default:[bi]},$$scope:{ctx:w}}}),St=new x({props:{title:"Validators",local:"validators",headingTag:"h2"}}),zt=new x({props:{title:"Generic decorator",local:"generic-decorator",headingTag:"h3"}}),Dt=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}}),Kt=new x({props:{title:"validate_hf_hub_args",local:"huggingface_hub.utils.validate_hf_hub_args",headingTag:"h4"}}),Ot=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#L46",raiseDescription:`<script context="module">export const metadata = 'undefined';<\/script>


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


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