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 a,r as h,A as ni,h as p,f as n,c as l,j,u as d,x as c,k as T,y as i,a as r,v as f,d as m,t as b,w as _}from"../chunks/index.4bca734e.js";import{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 ai(w){let o,M="HuggingFace Hub has following logging levels:",y,g,$="<li><code>huggingface_hub.logging.CRITICAL</code>, <code>huggingface_hub.logging.FATAL</code></li> <li><code>huggingface_hub.logging.ERROR</code></li> <li><code>huggingface_hub.logging.WARNING</code>, <code>huggingface_hub.logging.WARN</code></li> <li><code>huggingface_hub.logging.INFO</code></li> <li><code>huggingface_hub.logging.DEBUG</code></li>";return{c(){o=u("p"),o.textContent=M,y=a(),g=u("ul"),g.innerHTML=$},l(t){o=p(t,"P",{"data-svelte-h":!0}),c(o)!=="svelte-8pck4"&&(o.textContent=M),y=l(t),g=p(t,"UL",{"data-svelte-h":!0}),c(g)!=="svelte-cayy8n"&&(g.innerHTML=$)},m(t,v){r(t,o,v),r(t,y,v),r(t,g,v)},p:B,d(t){t&&(n(o),n(y),n(g))}}}function 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=a(),h(g.$$.fragment)},l(t){o=p(t,"P",{"data-svelte-h":!0}),c(o)!=="svelte-11lpom8"&&(o.textContent=M),y=l(t),d(g.$$.fragment,t)},m(t,v){r(t,o,v),r(t,y,v),f(g,t,v),$=!0},p:B,i(t){$||(m(g.$$.fragment,t),$=!0)},o(t){b(g.$$.fragment,t),$=!1},d(t){t&&(n(o),n(y)),_(g,t)}}}function ri(w){let o,M="Example:",y,g,$;return g=new C({props:{code:"aW1wb3J0JTIwcmVxdWVzdHMlMEFmcm9tJTIwaHVnZ2luZ2ZhY2VfaHViJTIwaW1wb3J0JTIwY29uZmlndXJlX2h0dHBfYmFja2VuZCUyQyUyMGdldF9zZXNzaW9uJTBBJTBBJTIzJTIwQ3JlYXRlJTIwYSUyMGZhY3RvcnklMjBmdW5jdGlvbiUyMHRoYXQlMjByZXR1cm5zJTIwYSUyMFNlc3Npb24lMjB3aXRoJTIwY29uZmlndXJlZCUyMHByb3hpZXMlMEFkZWYlMjBiYWNrZW5kX2ZhY3RvcnkoKSUyMC0lM0UlMjByZXF1ZXN0cy5TZXNzaW9uJTNBJTBBJTIwJTIwJTIwJTIwc2Vzc2lvbiUyMCUzRCUyMHJlcXVlc3RzLlNlc3Npb24oKSUwQSUyMCUyMCUyMCUyMHNlc3Npb24ucHJveGllcyUyMCUzRCUyMCU3QiUyMmh0dHAlMjIlM0ElMjAlMjJodHRwJTNBJTJGJTJGMTAuMTAuMS4xMCUzQTMxMjglMjIlMkMlMjAlMjJodHRwcyUyMiUzQSUyMCUyMmh0dHBzJTNBJTJGJTJGMTAuMTAuMS4xMSUzQTEwODAlMjIlN0QlMEElMjAlMjAlMjAlMjByZXR1cm4lMjBzZXNzaW9uJTBBJTBBJTIzJTIwU2V0JTIwaXQlMjBhcyUyMHRoZSUyMGRlZmF1bHQlMjBzZXNzaW9uJTIwZmFjdG9yeSUwQWNvbmZpZ3VyZV9odHRwX2JhY2tlbmQoYmFja2VuZF9mYWN0b3J5JTNEYmFja2VuZF9mYWN0b3J5KSUwQSUwQSUyMyUyMEluJTIwcHJhY3RpY2UlMkMlMjB0aGlzJTIwaXMlMjBtb3N0bHklMjBkb25lJTIwaW50ZXJuYWxseSUyMGluJTIwJTYwaHVnZ2luZ2ZhY2VfaHViJTYwJTBBc2Vzc2lvbiUyMCUzRCUyMGdldF9zZXNzaW9uKCk=",highlighted:`<span class="hljs-keyword">import</span> requests
<span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> configure_http_backend, get_session

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

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

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

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

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

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

Cannot access gated repo <span class="hljs-keyword">for</span> url https://huggingface.co/api/models/ardent-figment/gated-model.
Access to model ardent-figment/gated-model <span class="hljs-keyword">is</span> restricted <span class="hljs-keyword">and</span> you are <span class="hljs-keyword">not</span> <span class="hljs-keyword">in</span> the authorized <span class="hljs-built_in">list</span>.
Visit https://huggingface.co/ardent-figment/gated-model to ask <span class="hljs-keyword">for</span> access.`,wrap:!1}}),{c(){o=u("p"),o.textContent=M,y=a(),h(g.$$.fragment)},l(t){o=p(t,"P",{"data-svelte-h":!0}),c(o)!=="svelte-11lpom8"&&(o.textContent=M),y=l(t),d(g.$$.fragment,t)},m(t,v){r(t,o,v),r(t,y,v),f(g,t,v),$=!0},p:B,i(t){$||(m(g.$$.fragment,t),$=!0)},o(t){b(g.$$.fragment,t),$=!1},d(t){t&&(n(o),n(y)),_(g,t)}}}function 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=a(),h(g.$$.fragment)},l(t){o=p(t,"P",{"data-svelte-h":!0}),c(o)!=="svelte-11lpom8"&&(o.textContent=M),y=l(t),d(g.$$.fragment,t)},m(t,v){r(t,o,v),r(t,y,v),f(g,t,v),$=!0},p:B,i(t){$||(m(g.$$.fragment,t),$=!0)},o(t){b(g.$$.fragment,t),$=!1},d(t){t&&(n(o),n(y)),_(g,t)}}}function 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=a(),h(g.$$.fragment)},l(t){o=p(t,"P",{"data-svelte-h":!0}),c(o)!=="svelte-11lpom8"&&(o.textContent=M),y=l(t),d(g.$$.fragment,t)},m(t,v){r(t,o,v),r(t,y,v),f(g,t,v),$=!0},p:B,i(t){$||(m(g.$$.fragment,t),$=!0)},o(t){b(g.$$.fragment,t),$=!1},d(t){t&&(n(o),n(y)),_(g,t)}}}function 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=a(),h(g.$$.fragment)},l(t){o=p(t,"P",{"data-svelte-h":!0}),c(o)!=="svelte-11lpom8"&&(o.textContent=M),y=l(t),d(g.$$.fragment,t)},m(t,v){r(t,o,v),r(t,y,v),f(g,t,v),$=!0},p:B,i(t){$||(m(g.$$.fragment,t),$=!0)},o(t){b(g.$$.fragment,t),$=!1},d(t){t&&(n(o),n(y)),_(g,t)}}}function 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=a(),h(g.$$.fragment)},l(t){o=p(t,"P",{"data-svelte-h":!0}),c(o)!=="svelte-11lpom8"&&(o.textContent=M),y=l(t),d(g.$$.fragment,t)},m(t,v){r(t,o,v),r(t,y,v),f(g,t,v),$=!0},p:B,i(t){$||(m(g.$$.fragment,t),$=!0)},o(t){b(g.$$.fragment,t),$=!1},d(t){t&&(n(o),n(y)),_(g,t)}}}function 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=a(),h(g.$$.fragment)},l(t){o=p(t,"P",{"data-svelte-h":!0}),c(o)!=="svelte-11lpom8"&&(o.textContent=M),y=l(t),d(g.$$.fragment,t)},m(t,v){r(t,o,v),r(t,y,v),f(g,t,v),$=!0},p:B,i(t){$||(m(g.$$.fragment,t),$=!0)},o(t){b(g.$$.fragment,t),$=!1},d(t){t&&(n(o),n(y)),_(g,t)}}}function _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=a(),h(g.$$.fragment)},l(t){o=p(t,"P",{"data-svelte-h":!0}),c(o)!=="svelte-11lpom8"&&(o.textContent=M),y=l(t),d(g.$$.fragment,t)},m(t,v){r(t,o,v),r(t,y,v),f(g,t,v),$=!0},p:B,i(t){$||(m(g.$$.fragment,t),$=!0)},o(t){b(g.$$.fragment,t),$=!1},d(t){t&&(n(o),n(y)),_(g,t)}}}function 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=a(),h(g.$$.fragment)},l(t){o=p(t,"P",{"data-svelte-h":!0}),c(o)!=="svelte-11lpom8"&&(o.textContent=M),y=l(t),d(g.$$.fragment,t)},m(t,v){r(t,o,v),r(t,y,v),f(g,t,v),$=!0},p:B,i(t){$||(m(g.$$.fragment,t),$=!0)},o(t){b(g.$$.fragment,t),$=!1},d(t){t&&(n(o),n(y)),_(g,t)}}}function $i(w){let o,M,y,g,$,t,v,kn,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:`,Hn,Re,Un,Ne,Jr="Then, you may define the verbosity in order to update the amount of logs you’ll see:",Cn,Ve,In,Fe,xr="The levels should be understood as follows:",En,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>`,Zn,P,qe,nl,bs,Hr="Return the current level for the HuggingFace Hub’s root logger.",al,_e,Bn,le,Se,ll,_s,Ur="Sets the level for the HuggingFace Hub’s root logger.",Xn,re,We,rl,ys,Cr="Sets the verbosity to <code>logging.INFO</code>.",Gn,oe,Ye,ol,$s,Ir="Sets the verbosity to <code>logging.DEBUG</code>.",Rn,ie,ze,il,vs,Er="Sets the verbosity to <code>logging.WARNING</code>.",Nn,ge,Pe,gl,Ms,Zr="Sets the verbosity to <code>logging.ERROR</code>.",Vn,ue,Qe,ul,ws,Br=`Disable propagation of the library log outputs. Note that log propagation is
disabled by default.`,Fn,pe,Ae,pl,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.`,Ln,De,qn,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.`,Sn,Q,Oe,cl,js,Rr=`Returns a logger with the specified name. This function is not supposed
to be directly accessed by library users.`,hl,ye,Wn,et,Yn,tt,Nr=`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.`,zn,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.`,Pn,nt,Qn,at,An,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.`,Dn,rt,Kn,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,Sr='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.',On,it,ea,K,gt,_l,Us,Wr=`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.',ta,ut,sa,pt,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.`,na,ct,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>).`,aa,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,la,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,ra,ft,oa,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.`,ia,bt,ga,_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>.`,ua,yt,pa,R,$t,kl,Rs,no=`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,Ns,ao=`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,ca,vt,ha,Mt,lo="Here is a list of HTTP errors thrown in <code>huggingface_hub</code>.",da,wt,fa,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.`,ma,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,Rl,Ss,po="Append additional information to the <code>HfHubHTTPError</code> initial message.",ba,xt,_a,O,kt,Nl,Ws,co=`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,ya,Ht,$a,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,va,Ct,Ma,ee,It,Sl,Ps,mo=`Raised when trying to access a hf.co URL with a valid repository but an invalid
revision.`,Wl,ke,wa,Et,Ta,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,ja,Bt,Ja,se,Xt,Pl,As,_o="Raised by <code>hf_raise_for_status</code> when the server returns a HTTP 400 error.",Ql,Ue,xa,Gt,ka,L,Rt,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,Ha,Nt,Ua,ce,Vt,Ol,Os,vo="Raised when a request is made but <code>HF_HUB_OFFLINE=1</code> is set as environment variable.",Ca,Ft,Ia,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).`,Ea,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.`,Za,N,St,er,en,To="Sends telemetry that helps tracking usage of different HF libraries.",tr,tn,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,sn,Jo="Telemetry collection is run in a separate thread to minimize impact for the user.",nr,Ie,Ba,Wt,Xa,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.`,Ga,zt,Ra,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.`,Na,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.`,Va,At,Uo="Usage:",Fa,Dt,La,Kt,qa,I,Ot,ar,nn,Co="Validate values received as argument for any public method of <code>huggingface_hub</code>.",lr,an,Io=`The goal of this decorator is to harmonize validation of arguments reused
everywhere. By default, all defined validators are tested.`,rr,ln,Eo="Validators:",or,rn,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,Sa,es,Wa,ne,ts,gr,on,Bo="Generic exception thrown by <code>huggingface_hub</code> validators.",ur,gn,Xo='Inherits from <a href="https://docs.python.org/3/library/exceptions.html#ValueError" rel="nofollow"><code>ValueError</code></a>.',Ya,ss,za,ns,Go=`Validators can also be used individually. Here is a list of all arguments that can be
validated.`,Pa,as,Qa,k,ls,pr,un,Ro="Validate <code>repo_id</code> is valid.",cr,pn,No=`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,cn,Vo="Rules:",dr,hn,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,dn,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,fn,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,mn,So=`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,bn,Wo='<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>',Aa,rs,Da,os,Yo="Not exactly a validator, but ran as well.",Ka,E,is,$r,_n,zo="Smoothly deprecate <code>use_auth_token</code> in the <code>huggingface_hub</code> codebase.",vr,yn,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,$n,Ao="This has been discussed in:",Tr,vn,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>',Oa,xn,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"}}),Re=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:[ai]},$$scope:{ctx:w}}}),Se=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"}}),We=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:": typing.Optional[str] = None"}],parametersDescription:[{anchor:"huggingface_hub.utils.logging.get_logger.name",description:`<strong>name</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The name of the logger to get, usually the filename`,name:"name"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/utils/logging.py#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"}}),nt=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}}),at=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:": typing.Callable[[], requests.sessions.Session] = <function _default_backend_factory at 0x7f0cbf2f5160>"}],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:": typing.Optional[str] = None"}],parametersDescription:[{anchor:"huggingface_hub.utils.hf_raise_for_status.response",description:`<strong>response</strong> (<code>Response</code>) &#x2014;
Response from the server.`,name:"response"},{anchor:"huggingface_hub.utils.hf_raise_for_status.endpoint_name",description:`<strong>endpoint_name</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Name of the endpoint that has been called. If provided, the error message
will be more complete.`,name:"endpoint_name"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/utils/_errors.py#L230"}}),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:": typing.Optional[requests.models.Response] = 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:": typing.Optional[requests.models.Response] = 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:[pi]},$$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:": typing.Optional[requests.models.Response] = 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:[ci]},$$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:": typing.Optional[requests.models.Response] = None"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/utils/_errors.py#L157"}}),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:": typing.Optional[requests.models.Response] = None"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/utils/_errors.py#L175"}}),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:": typing.Optional[requests.models.Response] = None"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/utils/_errors.py#L216"}}),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"}}),Rt=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#L193"}}),Ce=new V({props:{anchor:"huggingface_hub.utils.LocalEntryNotFoundError.example",$$slots:{default:[mi]},$$scope:{ctx:w}}}),Nt=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"}}),St=new J({props:{name:"huggingface_hub.utils.send_telemetry",anchor:"huggingface_hub.utils.send_telemetry",parameters:[{name:"topic",val:": str"},{name:"library_name",val:": typing.Optional[str] = None"},{name:"library_version",val:": typing.Optional[str] = None"},{name:"user_agent",val:": typing.Union[typing.Dict, str, NoneType] = None"}],parametersDescription:[{anchor:"huggingface_hub.utils.send_telemetry.topic",description:`<strong>topic</strong> (<code>str</code>) &#x2014;
Name of the topic that is monitored. The topic is directly used to build the URL. If you want to monitor
subtopics, just use &#x201D;/&#x201D; separation. Examples: &#x201C;gradio&#x201D;, &#x201C;transformers/examples&#x201D;,&#x2026;`,name:"topic"},{anchor:"huggingface_hub.utils.send_telemetry.library_name",description:`<strong>library_name</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The name of the library that is making the HTTP request. Will be added to the user-agent header.`,name:"library_name"},{anchor:"huggingface_hub.utils.send_telemetry.library_version",description:`<strong>library_version</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The version of the library that is making the HTTP request. Will be added to the user-agent header.`,name:"library_version"},{anchor:"huggingface_hub.utils.send_telemetry.user_agent",description:`<strong>user_agent</strong> (<code>str</code>, <code>dict</code>, <em>optional</em>) &#x2014;
The user agent info in the form of a dictionary or a single string. It will be completed with information about the installed packages.`,name:"user_agent"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/utils/_telemetry.py#L20"}}),Ie=new V({props:{anchor:"huggingface_hub.utils.send_telemetry.example",$$slots:{default:[bi]},$$scope:{ctx:w}}}),Wt=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"}}),as=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:": typing.Dict[str, typing.Any]"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/utils/_validators.py#L177"}}),{c(){o=u("meta"),M=a(),y=u("p"),g=a(),h($.$$.fragment),t=a(),h(v.$$.fragment),kn=a(),Ge=u("p"),Ge.innerHTML=jr,Hn=a(),h(Re.$$.fragment),Un=a(),Ne=u("p"),Ne.textContent=Jr,Cn=a(),h(Ve.$$.fragment),In=a(),Fe=u("p"),Fe.textContent=xr,En=a(),Le=u("ul"),Le.innerHTML=kr,Zn=a(),P=u("div"),h(qe.$$.fragment),nl=a(),bs=u("p"),bs.textContent=Hr,al=a(),h(_e.$$.fragment),Bn=a(),le=u("div"),h(Se.$$.fragment),ll=a(),_s=u("p"),_s.textContent=Ur,Xn=a(),re=u("div"),h(We.$$.fragment),rl=a(),ys=u("p"),ys.innerHTML=Cr,Gn=a(),oe=u("div"),h(Ye.$$.fragment),ol=a(),$s=u("p"),$s.innerHTML=Ir,Rn=a(),ie=u("div"),h(ze.$$.fragment),il=a(),vs=u("p"),vs.innerHTML=Er,Nn=a(),ge=u("div"),h(Pe.$$.fragment),gl=a(),Ms=u("p"),Ms.innerHTML=Zr,Vn=a(),ue=u("div"),h(Qe.$$.fragment),ul=a(),ws=u("p"),ws.textContent=Br,Fn=a(),pe=u("div"),h(Ae.$$.fragment),pl=a(),Ts=u("p"),Ts.textContent=Xr,Ln=a(),h(De.$$.fragment),qn=a(),Ke=u("p"),Ke.innerHTML=Gr,Sn=a(),Q=u("div"),h(Oe.$$.fragment),cl=a(),js=u("p"),js.textContent=Rr,hl=a(),h(ye.$$.fragment),Wn=a(),h(et.$$.fragment),Yn=a(),tt=u("p"),tt.innerHTML=Nr,zn=a(),st=u("p"),st.innerHTML=Vr,Pn=a(),h(nt.$$.fragment),Qn=a(),h(at.$$.fragment),An=a(),A=u("div"),h(lt.$$.fragment),dl=a(),Js=u("p"),Js.textContent=Fr,fl=a(),xs=u("p"),xs.innerHTML=Lr,Dn=a(),h(rt.$$.fragment),Kn=a(),D=u("div"),h(ot.$$.fragment),ml=a(),ks=u("p"),ks.innerHTML=qr,bl=a(),Hs=u("p"),Hs.innerHTML=Sr,On=a(),h(it.$$.fragment),ea=a(),K=u("div"),h(gt.$$.fragment),_l=a(),Us=u("p"),Us.innerHTML=Wr,yl=a(),Cs=u("p"),Cs.innerHTML=Yr,ta=a(),h(ut.$$.fragment),sa=a(),pt=u("p"),pt.innerHTML=zr,na=a(),ct=u("p"),ct.innerHTML=Pr,aa=a(),X=u("div"),h(ht.$$.fragment),$l=a(),Is=u("p"),Is.innerHTML=Qr,vl=a(),Es=u("p"),Es.innerHTML=Ar,Ml=a(),Zs=u("p"),Zs.innerHTML=Dr,wl=a(),h($e.$$.fragment),la=a(),G=u("div"),h(dt.$$.fragment),Tl=a(),Bs=u("p"),Bs.innerHTML=Kr,jl=a(),Xs=u("p"),Xs.innerHTML=Or,Jl=a(),Gs=u("p"),Gs.innerHTML=eo,xl=a(),h(ve.$$.fragment),ra=a(),h(ft.$$.fragment),oa=a(),mt=u("p"),mt.innerHTML=to,ia=a(),h(bt.$$.fragment),ga=a(),_t=u("p"),_t.innerHTML=so,ua=a(),h(yt.$$.fragment),pa=a(),R=u("div"),h($t.$$.fragment),kl=a(),Rs=u("p"),Rs.innerHTML=no,Hl=a(),Ns=u("p"),Ns.textContent=ao,Ul=a(),h(Me.$$.fragment),Cl=a(),h(we.$$.fragment),ca=a(),h(vt.$$.fragment),ha=a(),Mt=u("p"),Mt.innerHTML=lo,da=a(),h(wt.$$.fragment),fa=a(),Tt=u("p"),Tt.innerHTML=ro,ma=a(),U=u("div"),h(jt.$$.fragment),Il=a(),Vs=u("p"),Vs.textContent=oo,El=a(),Fs=u("p"),Fs.innerHTML=io,Zl=a(),Ls=u("p"),Ls.textContent=go,Bl=a(),qs=u("ul"),qs.innerHTML=uo,Xl=a(),h(Te.$$.fragment),Gl=a(),je=u("div"),h(Jt.$$.fragment),Rl=a(),Ss=u("p"),Ss.innerHTML=po,ba=a(),h(xt.$$.fragment),_a=a(),O=u("div"),h(kt.$$.fragment),Nl=a(),Ws=u("p"),Ws.textContent=co,Vl=a(),h(Je.$$.fragment),ya=a(),h(Ht.$$.fragment),$a=a(),F=u("div"),h(Ut.$$.fragment),Fl=a(),Ys=u("p"),Ys.textContent=ho,Ll=a(),zs=u("p"),zs.innerHTML=fo,ql=a(),h(xe.$$.fragment),va=a(),h(Ct.$$.fragment),Ma=a(),ee=u("div"),h(It.$$.fragment),Sl=a(),Ps=u("p"),Ps.textContent=mo,Wl=a(),h(ke.$$.fragment),wa=a(),h(Et.$$.fragment),Ta=a(),te=u("div"),h(Zt.$$.fragment),Yl=a(),Qs=u("p"),Qs.textContent=bo,zl=a(),h(He.$$.fragment),ja=a(),h(Bt.$$.fragment),Ja=a(),se=u("div"),h(Xt.$$.fragment),Pl=a(),As=u("p"),As.innerHTML=_o,Ql=a(),h(Ue.$$.fragment),xa=a(),h(Gt.$$.fragment),ka=a(),L=u("div"),h(Rt.$$.fragment),Al=a(),Ds=u("p"),Ds.textContent=yo,Dl=a(),Ks=u("p"),Ks.innerHTML=$o,Kl=a(),h(Ce.$$.fragment),Ha=a(),h(Nt.$$.fragment),Ua=a(),ce=u("div"),h(Vt.$$.fragment),Ol=a(),Os=u("p"),Os.innerHTML=vo,Ca=a(),h(Ft.$$.fragment),Ia=a(),Lt=u("p"),Lt.innerHTML=Mo,Ea=a(),qt=u("p"),qt.innerHTML=wo,Za=a(),N=u("div"),h(St.$$.fragment),er=a(),en=u("p"),en.textContent=To,tr=a(),tn=u("p"),tn.innerHTML=jo,sr=a(),sn=u("p"),sn.textContent=Jo,nr=a(),h(Ie.$$.fragment),Ba=a(),h(Wt.$$.fragment),Xa=a(),Yt=u("p"),Yt.innerHTML=xo,Ga=a(),h(zt.$$.fragment),Ra=a(),Pt=u("p"),Pt.innerHTML=ko,Na=a(),Qt=u("p"),Qt.innerHTML=Ho,Va=a(),At=u("p"),At.textContent=Uo,Fa=a(),h(Dt.$$.fragment),La=a(),h(Kt.$$.fragment),qa=a(),I=u("div"),h(Ot.$$.fragment),ar=a(),nn=u("p"),nn.innerHTML=Co,lr=a(),an=u("p"),an.textContent=Io,rr=a(),ln=u("p"),ln.textContent=Eo,or=a(),rn=u("ul"),rn.innerHTML=Zo,ir=a(),h(Ee.$$.fragment),Sa=a(),h(es.$$.fragment),Wa=a(),ne=u("div"),h(ts.$$.fragment),gr=a(),on=u("p"),on.innerHTML=Bo,ur=a(),gn=u("p"),gn.innerHTML=Xo,Ya=a(),h(ss.$$.fragment),za=a(),ns=u("p"),ns.textContent=Go,Pa=a(),h(as.$$.fragment),Qa=a(),k=u("div"),h(ls.$$.fragment),pr=a(),un=u("p"),un.innerHTML=Ro,cr=a(),pn=u("p"),pn.innerHTML=No,hr=a(),cn=u("p"),cn.textContent=Vo,dr=a(),hn=u("ul"),hn.innerHTML=Fo,fr=a(),dn=u("p"),dn.innerHTML=Lo,mr=a(),fn=u("p"),fn.innerHTML=qo,br=a(),h(Ze.$$.fragment),_r=a(),mn=u("p"),mn.innerHTML=So,yr=a(),bn=u("ul"),bn.innerHTML=Wo,Aa=a(),h(rs.$$.fragment),Da=a(),os=u("p"),os.textContent=Yo,Ka=a(),E=u("div"),h(is.$$.fragment),$r=a(),_n=u("p"),_n.innerHTML=zo,vr=a(),yn=u("p"),yn.innerHTML=Po,Mr=a(),gs=u("ol"),gs.innerHTML=Qo,wr=a(),$n=u("p"),$n.textContent=Ao,Tr=a(),vn=u("ul"),vn.innerHTML=Do,Oa=a(),xn=u("p"),this.h()},l(e){const s=ni("svelte-u9bgzb",document.head);o=p(s,"META",{name:!0,content:!0}),s.forEach(n),M=l(e),y=p(e,"P",{}),j(y).forEach(n),g=l(e),d($.$$.fragment,e),t=l(e),d(v.$$.fragment,e),kn=l(e),Ge=p(e,"P",{"data-svelte-h":!0}),c(Ge)!=="svelte-1f5ostn"&&(Ge.innerHTML=jr),Hn=l(e),d(Re.$$.fragment,e),Un=l(e),Ne=p(e,"P",{"data-svelte-h":!0}),c(Ne)!=="svelte-1bq70jp"&&(Ne.textContent=Jr),Cn=l(e),d(Ve.$$.fragment,e),In=l(e),Fe=p(e,"P",{"data-svelte-h":!0}),c(Fe)!=="svelte-c6nxob"&&(Fe.textContent=xr),En=l(e),Le=p(e,"UL",{"data-svelte-h":!0}),c(Le)!=="svelte-1592m28"&&(Le.innerHTML=kr),Zn=l(e),P=p(e,"DIV",{class:!0});var he=j(P);d(qe.$$.fragment,he),nl=l(he),bs=p(he,"P",{"data-svelte-h":!0}),c(bs)!=="svelte-tfh5y3"&&(bs.textContent=Hr),al=l(he),d(_e.$$.fragment,he),he.forEach(n),Bn=l(e),le=p(e,"DIV",{class:!0});var us=j(le);d(Se.$$.fragment,us),ll=l(us),_s=p(us,"P",{"data-svelte-h":!0}),c(_s)!=="svelte-fuws7x"&&(_s.textContent=Ur),us.forEach(n),Xn=l(e),re=p(e,"DIV",{class:!0});var ps=j(re);d(We.$$.fragment,ps),rl=l(ps),ys=p(ps,"P",{"data-svelte-h":!0}),c(ys)!=="svelte-4hjbj0"&&(ys.innerHTML=Cr),ps.forEach(n),Gn=l(e),oe=p(e,"DIV",{class:!0});var cs=j(oe);d(Ye.$$.fragment,cs),ol=l(cs),$s=p(cs,"P",{"data-svelte-h":!0}),c($s)!=="svelte-13bnwpz"&&($s.innerHTML=Ir),cs.forEach(n),Rn=l(e),ie=p(e,"DIV",{class:!0});var hs=j(ie);d(ze.$$.fragment,hs),il=l(hs),vs=p(hs,"P",{"data-svelte-h":!0}),c(vs)!=="svelte-11c3s8"&&(vs.innerHTML=Er),hs.forEach(n),Nn=l(e),ge=p(e,"DIV",{class:!0});var ds=j(ge);d(Pe.$$.fragment,ds),gl=l(ds),Ms=p(ds,"P",{"data-svelte-h":!0}),c(Ms)!=="svelte-1sxvz7m"&&(Ms.innerHTML=Zr),ds.forEach(n),Vn=l(e),ue=p(e,"DIV",{class:!0});var fs=j(ue);d(Qe.$$.fragment,fs),ul=l(fs),ws=p(fs,"P",{"data-svelte-h":!0}),c(ws)!=="svelte-1n8oxia"&&(ws.textContent=Br),fs.forEach(n),Fn=l(e),pe=p(e,"DIV",{class:!0});var ms=j(pe);d(Ae.$$.fragment,ms),pl=l(ms),Ts=p(ms,"P",{"data-svelte-h":!0}),c(Ts)!=="svelte-18llblw"&&(Ts.textContent=Xr),ms.forEach(n),Ln=l(e),d(De.$$.fragment,e),qn=l(e),Ke=p(e,"P",{"data-svelte-h":!0}),c(Ke)!=="svelte-1hfu347"&&(Ke.innerHTML=Gr),Sn=l(e),Q=p(e,"DIV",{class:!0});var de=j(Q);d(Oe.$$.fragment,de),cl=l(de),js=p(de,"P",{"data-svelte-h":!0}),c(js)!=="svelte-8tg1b"&&(js.textContent=Rr),hl=l(de),d(ye.$$.fragment,de),de.forEach(n),Wn=l(e),d(et.$$.fragment,e),Yn=l(e),tt=p(e,"P",{"data-svelte-h":!0}),c(tt)!=="svelte-1bp9gzk"&&(tt.innerHTML=Nr),zn=l(e),st=p(e,"P",{"data-svelte-h":!0}),c(st)!=="svelte-w2wyc7"&&(st.innerHTML=Vr),Pn=l(e),d(nt.$$.fragment,e),Qn=l(e),d(at.$$.fragment,e),An=l(e),A=p(e,"DIV",{class:!0});var fe=j(A);d(lt.$$.fragment,fe),dl=l(fe),Js=p(fe,"P",{"data-svelte-h":!0}),c(Js)!=="svelte-krb0vw"&&(Js.textContent=Fr),fl=l(fe),xs=p(fe,"P",{"data-svelte-h":!0}),c(xs)!=="svelte-a592n2"&&(xs.innerHTML=Lr),fe.forEach(n),Dn=l(e),d(rt.$$.fragment,e),Kn=l(e),D=p(e,"DIV",{class:!0});var me=j(D);d(ot.$$.fragment,me),ml=l(me),ks=p(me,"P",{"data-svelte-h":!0}),c(ks)!=="svelte-p5wdbm"&&(ks.innerHTML=qr),bl=l(me),Hs=p(me,"P",{"data-svelte-h":!0}),c(Hs)!=="svelte-16ho5u4"&&(Hs.innerHTML=Sr),me.forEach(n),On=l(e),d(it.$$.fragment,e),ea=l(e),K=p(e,"DIV",{class:!0});var be=j(K);d(gt.$$.fragment,be),_l=l(be),Us=p(be,"P",{"data-svelte-h":!0}),c(Us)!=="svelte-13z8txf"&&(Us.innerHTML=Wr),yl=l(be),Cs=p(be,"P",{"data-svelte-h":!0}),c(Cs)!=="svelte-2tg507"&&(Cs.innerHTML=Yr),be.forEach(n),ta=l(e),d(ut.$$.fragment,e),sa=l(e),pt=p(e,"P",{"data-svelte-h":!0}),c(pt)!=="svelte-t97ln3"&&(pt.innerHTML=zr),na=l(e),ct=p(e,"P",{"data-svelte-h":!0}),c(ct)!=="svelte-1u7dgip"&&(ct.innerHTML=Pr),aa=l(e),X=p(e,"DIV",{class:!0});var q=j(X);d(ht.$$.fragment,q),$l=l(q),Is=p(q,"P",{"data-svelte-h":!0}),c(Is)!=="svelte-jy7jz8"&&(Is.innerHTML=Qr),vl=l(q),Es=p(q,"P",{"data-svelte-h":!0}),c(Es)!=="svelte-ezqyyc"&&(Es.innerHTML=Ar),Ml=l(q),Zs=p(q,"P",{"data-svelte-h":!0}),c(Zs)!=="svelte-86icrd"&&(Zs.innerHTML=Dr),wl=l(q),d($e.$$.fragment,q),q.forEach(n),la=l(e),G=p(e,"DIV",{class:!0});var S=j(G);d(dt.$$.fragment,S),Tl=l(S),Bs=p(S,"P",{"data-svelte-h":!0}),c(Bs)!=="svelte-1h59yv2"&&(Bs.innerHTML=Kr),jl=l(S),Xs=p(S,"P",{"data-svelte-h":!0}),c(Xs)!=="svelte-ezqyyc"&&(Xs.innerHTML=Or),Jl=l(S),Gs=p(S,"P",{"data-svelte-h":!0}),c(Gs)!=="svelte-86icrd"&&(Gs.innerHTML=eo),xl=l(S),d(ve.$$.fragment,S),S.forEach(n),ra=l(e),d(ft.$$.fragment,e),oa=l(e),mt=p(e,"P",{"data-svelte-h":!0}),c(mt)!=="svelte-1pwej93"&&(mt.innerHTML=to),ia=l(e),d(bt.$$.fragment,e),ga=l(e),_t=p(e,"P",{"data-svelte-h":!0}),c(_t)!=="svelte-bnsvt2"&&(_t.innerHTML=so),ua=l(e),d(yt.$$.fragment,e),pa=l(e),R=p(e,"DIV",{class:!0});var W=j(R);d($t.$$.fragment,W),kl=l(W),Rs=p(W,"P",{"data-svelte-h":!0}),c(Rs)!=="svelte-3py7p6"&&(Rs.innerHTML=no),Hl=l(W),Ns=p(W,"P",{"data-svelte-h":!0}),c(Ns)!=="svelte-1t2j21h"&&(Ns.textContent=ao),Ul=l(W),d(Me.$$.fragment,W),Cl=l(W),d(we.$$.fragment,W),W.forEach(n),ca=l(e),d(vt.$$.fragment,e),ha=l(e),Mt=p(e,"P",{"data-svelte-h":!0}),c(Mt)!=="svelte-1uk88ij"&&(Mt.innerHTML=lo),da=l(e),d(wt.$$.fragment,e),fa=l(e),Tt=p(e,"P",{"data-svelte-h":!0}),c(Tt)!=="svelte-vytdbq"&&(Tt.innerHTML=ro),ma=l(e),U=p(e,"DIV",{class:!0});var Z=j(U);d(jt.$$.fragment,Z),Il=l(Z),Vs=p(Z,"P",{"data-svelte-h":!0}),c(Vs)!=="svelte-18strew"&&(Vs.textContent=oo),El=l(Z),Fs=p(Z,"P",{"data-svelte-h":!0}),c(Fs)!=="svelte-avbd3z"&&(Fs.innerHTML=io),Zl=l(Z),Ls=p(Z,"P",{"data-svelte-h":!0}),c(Ls)!=="svelte-crgpwu"&&(Ls.textContent=go),Bl=l(Z),qs=p(Z,"UL",{"data-svelte-h":!0}),c(qs)!=="svelte-1n3lleg"&&(qs.innerHTML=uo),Xl=l(Z),d(Te.$$.fragment,Z),Gl=l(Z),je=p(Z,"DIV",{class:!0});var tl=j(je);d(Jt.$$.fragment,tl),Rl=l(tl),Ss=p(tl,"P",{"data-svelte-h":!0}),c(Ss)!=="svelte-7adl8o"&&(Ss.innerHTML=po),tl.forEach(n),Z.forEach(n),ba=l(e),d(xt.$$.fragment,e),_a=l(e),O=p(e,"DIV",{class:!0});var Mn=j(O);d(kt.$$.fragment,Mn),Nl=l(Mn),Ws=p(Mn,"P",{"data-svelte-h":!0}),c(Ws)!=="svelte-sh3izq"&&(Ws.textContent=co),Vl=l(Mn),d(Je.$$.fragment,Mn),Mn.forEach(n),ya=l(e),d(Ht.$$.fragment,e),$a=l(e),F=p(e,"DIV",{class:!0});var Be=j(F);d(Ut.$$.fragment,Be),Fl=l(Be),Ys=p(Be,"P",{"data-svelte-h":!0}),c(Ys)!=="svelte-124smaa"&&(Ys.textContent=ho),Ll=l(Be),zs=p(Be,"P",{"data-svelte-h":!0}),c(zs)!=="svelte-op3w3s"&&(zs.innerHTML=fo),ql=l(Be),d(xe.$$.fragment,Be),Be.forEach(n),va=l(e),d(Ct.$$.fragment,e),Ma=l(e),ee=p(e,"DIV",{class:!0});var wn=j(ee);d(It.$$.fragment,wn),Sl=l(wn),Ps=p(wn,"P",{"data-svelte-h":!0}),c(Ps)!=="svelte-1y14njt"&&(Ps.textContent=mo),Wl=l(wn),d(ke.$$.fragment,wn),wn.forEach(n),wa=l(e),d(Et.$$.fragment,e),Ta=l(e),te=p(e,"DIV",{class:!0});var Tn=j(te);d(Zt.$$.fragment,Tn),Yl=l(Tn),Qs=p(Tn,"P",{"data-svelte-h":!0}),c(Qs)!=="svelte-3wgqhz"&&(Qs.textContent=bo),zl=l(Tn),d(He.$$.fragment,Tn),Tn.forEach(n),ja=l(e),d(Bt.$$.fragment,e),Ja=l(e),se=p(e,"DIV",{class:!0});var jn=j(se);d(Xt.$$.fragment,jn),Pl=l(jn),As=p(jn,"P",{"data-svelte-h":!0}),c(As)!=="svelte-1yqsf92"&&(As.innerHTML=_o),Ql=l(jn),d(Ue.$$.fragment,jn),jn.forEach(n),xa=l(e),d(Gt.$$.fragment,e),ka=l(e),L=p(e,"DIV",{class:!0});var Xe=j(L);d(Rt.$$.fragment,Xe),Al=l(Xe),Ds=p(Xe,"P",{"data-svelte-h":!0}),c(Ds)!=="svelte-xav5c8"&&(Ds.textContent=yo),Dl=l(Xe),Ks=p(Xe,"P",{"data-svelte-h":!0}),c(Ks)!=="svelte-10eu23r"&&(Ks.innerHTML=$o),Kl=l(Xe),d(Ce.$$.fragment,Xe),Xe.forEach(n),Ha=l(e),d(Nt.$$.fragment,e),Ua=l(e),ce=p(e,"DIV",{class:!0});var sl=j(ce);d(Vt.$$.fragment,sl),Ol=l(sl),Os=p(sl,"P",{"data-svelte-h":!0}),c(Os)!=="svelte-17km46a"&&(Os.innerHTML=vo),sl.forEach(n),Ca=l(e),d(Ft.$$.fragment,e),Ia=l(e),Lt=p(e,"P",{"data-svelte-h":!0}),c(Lt)!=="svelte-1h719bl"&&(Lt.innerHTML=Mo),Ea=l(e),qt=p(e,"P",{"data-svelte-h":!0}),c(qt)!=="svelte-k49iiw"&&(qt.innerHTML=wo),Za=l(e),N=p(e,"DIV",{class:!0});var ae=j(N);d(St.$$.fragment,ae),er=l(ae),en=p(ae,"P",{"data-svelte-h":!0}),c(en)!=="svelte-wzuwoa"&&(en.textContent=To),tr=l(ae),tn=p(ae,"P",{"data-svelte-h":!0}),c(tn)!=="svelte-1w41bga"&&(tn.innerHTML=jo),sr=l(ae),sn=p(ae,"P",{"data-svelte-h":!0}),c(sn)!=="svelte-yxaifj"&&(sn.textContent=Jo),nr=l(ae),d(Ie.$$.fragment,ae),ae.forEach(n),Ba=l(e),d(Wt.$$.fragment,e),Xa=l(e),Yt=p(e,"P",{"data-svelte-h":!0}),c(Yt)!=="svelte-1sy4xpm"&&(Yt.innerHTML=xo),Ga=l(e),d(zt.$$.fragment,e),Ra=l(e),Pt=p(e,"P",{"data-svelte-h":!0}),c(Pt)!=="svelte-7v8vkv"&&(Pt.innerHTML=ko),Na=l(e),Qt=p(e,"P",{"data-svelte-h":!0}),c(Qt)!=="svelte-x2rrpz"&&(Qt.innerHTML=Ho),Va=l(e),At=p(e,"P",{"data-svelte-h":!0}),c(At)!=="svelte-5wyjqd"&&(At.textContent=Uo),Fa=l(e),d(Dt.$$.fragment,e),La=l(e),d(Kt.$$.fragment,e),qa=l(e),I=p(e,"DIV",{class:!0});var Y=j(I);d(Ot.$$.fragment,Y),ar=l(Y),nn=p(Y,"P",{"data-svelte-h":!0}),c(nn)!=="svelte-1ie7wvp"&&(nn.innerHTML=Co),lr=l(Y),an=p(Y,"P",{"data-svelte-h":!0}),c(an)!=="svelte-s9eemq"&&(an.textContent=Io),rr=l(Y),ln=p(Y,"P",{"data-svelte-h":!0}),c(ln)!=="svelte-gm0f4r"&&(ln.textContent=Eo),or=l(Y),rn=p(Y,"UL",{"data-svelte-h":!0}),c(rn)!=="svelte-1vfyxas"&&(rn.innerHTML=Zo),ir=l(Y),d(Ee.$$.fragment,Y),Y.forEach(n),Sa=l(e),d(es.$$.fragment,e),Wa=l(e),ne=p(e,"DIV",{class:!0});var Jn=j(ne);d(ts.$$.fragment,Jn),gr=l(Jn),on=p(Jn,"P",{"data-svelte-h":!0}),c(on)!=="svelte-18mocqd"&&(on.innerHTML=Bo),ur=l(Jn),gn=p(Jn,"P",{"data-svelte-h":!0}),c(gn)!=="svelte-1x4lpy7"&&(gn.innerHTML=Xo),Jn.forEach(n),Ya=l(e),d(ss.$$.fragment,e),za=l(e),ns=p(e,"P",{"data-svelte-h":!0}),c(ns)!=="svelte-lrn6fl"&&(ns.textContent=Go),Pa=l(e),d(as.$$.fragment,e),Qa=l(e),k=p(e,"DIV",{class:!0});var H=j(k);d(ls.$$.fragment,H),pr=l(H),un=p(H,"P",{"data-svelte-h":!0}),c(un)!=="svelte-a7trx5"&&(un.innerHTML=Ro),cr=l(H),pn=p(H,"P",{"data-svelte-h":!0}),c(pn)!=="svelte-j8tpz5"&&(pn.innerHTML=No),hr=l(H),cn=p(H,"P",{"data-svelte-h":!0}),c(cn)!=="svelte-1k3ttfh"&&(cn.textContent=Vo),dr=l(H),hn=p(H,"UL",{"data-svelte-h":!0}),c(hn)!=="svelte-btlkju"&&(hn.innerHTML=Fo),fr=l(H),dn=p(H,"P",{"data-svelte-h":!0}),c(dn)!=="svelte-1gfzn2"&&(dn.innerHTML=Lo),mr=l(H),fn=p(H,"P",{"data-svelte-h":!0}),c(fn)!=="svelte-dpfzvw"&&(fn.innerHTML=qo),br=l(H),d(Ze.$$.fragment,H),_r=l(H),mn=p(H,"P",{"data-svelte-h":!0}),c(mn)!=="svelte-u984v5"&&(mn.innerHTML=So),yr=l(H),bn=p(H,"UL",{"data-svelte-h":!0}),c(bn)!=="svelte-p5ztoo"&&(bn.innerHTML=Wo),H.forEach(n),Aa=l(e),d(rs.$$.fragment,e),Da=l(e),os=p(e,"P",{"data-svelte-h":!0}),c(os)!=="svelte-1nxvghg"&&(os.textContent=Yo),Ka=l(e),E=p(e,"DIV",{class:!0});var z=j(E);d(is.$$.fragment,z),$r=l(z),_n=p(z,"P",{"data-svelte-h":!0}),c(_n)!=="svelte-1q2lppc"&&(_n.innerHTML=zo),vr=l(z),yn=p(z,"P",{"data-svelte-h":!0}),c(yn)!=="svelte-1tecmui"&&(yn.innerHTML=Po),Mr=l(z),gs=p(z,"OL",{start:!0,"data-svelte-h":!0}),c(gs)!=="svelte-13quknz"&&(gs.innerHTML=Qo),wr=l(z),$n=p(z,"P",{"data-svelte-h":!0}),c($n)!=="svelte-q6cvg2"&&($n.textContent=Ao),Tr=l(z),vn=p(z,"UL",{"data-svelte-h":!0}),c(vn)!=="svelte-1sjdcka"&&(vn.innerHTML=Do),z.forEach(n),Oa=l(e),xn=p(e,"P",{}),j(xn).forEach(n),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(pe,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),T(Q,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),T(A,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),T(D,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),T(K,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),T(X,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),T(G,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),T(R,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),T(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(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(N,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),T(I,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),T(ne,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),T(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,kn,s),r(e,Ge,s),r(e,Hn,s),f(Re,e,s),r(e,Un,s),r(e,Ne,s),r(e,Cn,s),f(Ve,e,s),r(e,In,s),r(e,Fe,s),r(e,En,s),r(e,Le,s),r(e,Zn,s),r(e,P,s),f(qe,P,null),i(P,nl),i(P,bs),i(P,al),f(_e,P,null),r(e,Bn,s),r(e,le,s),f(Se,le,null),i(le,ll),i(le,_s),r(e,Xn,s),r(e,re,s),f(We,re,null),i(re,rl),i(re,ys),r(e,Gn,s),r(e,oe,s),f(Ye,oe,null),i(oe,ol),i(oe,$s),r(e,Rn,s),r(e,ie,s),f(ze,ie,null),i(ie,il),i(ie,vs),r(e,Nn,s),r(e,ge,s),f(Pe,ge,null),i(ge,gl),i(ge,Ms),r(e,Vn,s),r(e,ue,s),f(Qe,ue,null),i(ue,ul),i(ue,ws),r(e,Fn,s),r(e,pe,s),f(Ae,pe,null),i(pe,pl),i(pe,Ts),r(e,Ln,s),f(De,e,s),r(e,qn,s),r(e,Ke,s),r(e,Sn,s),r(e,Q,s),f(Oe,Q,null),i(Q,cl),i(Q,js),i(Q,hl),f(ye,Q,null),r(e,Wn,s),f(et,e,s),r(e,Yn,s),r(e,tt,s),r(e,zn,s),r(e,st,s),r(e,Pn,s),f(nt,e,s),r(e,Qn,s),f(at,e,s),r(e,An,s),r(e,A,s),f(lt,A,null),i(A,dl),i(A,Js),i(A,fl),i(A,xs),r(e,Dn,s),f(rt,e,s),r(e,Kn,s),r(e,D,s),f(ot,D,null),i(D,ml),i(D,ks),i(D,bl),i(D,Hs),r(e,On,s),f(it,e,s),r(e,ea,s),r(e,K,s),f(gt,K,null),i(K,_l),i(K,Us),i(K,yl),i(K,Cs),r(e,ta,s),f(ut,e,s),r(e,sa,s),r(e,pt,s),r(e,na,s),r(e,ct,s),r(e,aa,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,la,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,ra,s),f(ft,e,s),r(e,oa,s),r(e,mt,s),r(e,ia,s),f(bt,e,s),r(e,ga,s),r(e,_t,s),r(e,ua,s),f(yt,e,s),r(e,pa,s),r(e,R,s),f($t,R,null),i(R,kl),i(R,Rs),i(R,Hl),i(R,Ns),i(R,Ul),f(Me,R,null),i(R,Cl),f(we,R,null),r(e,ca,s),f(vt,e,s),r(e,ha,s),r(e,Mt,s),r(e,da,s),f(wt,e,s),r(e,fa,s),r(e,Tt,s),r(e,ma,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,Rl),i(je,Ss),r(e,ba,s),f(xt,e,s),r(e,_a,s),r(e,O,s),f(kt,O,null),i(O,Nl),i(O,Ws),i(O,Vl),f(Je,O,null),r(e,ya,s),f(Ht,e,s),r(e,$a,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,va,s),f(Ct,e,s),r(e,Ma,s),r(e,ee,s),f(It,ee,null),i(ee,Sl),i(ee,Ps),i(ee,Wl),f(ke,ee,null),r(e,wa,s),f(Et,e,s),r(e,Ta,s),r(e,te,s),f(Zt,te,null),i(te,Yl),i(te,Qs),i(te,zl),f(He,te,null),r(e,ja,s),f(Bt,e,s),r(e,Ja,s),r(e,se,s),f(Xt,se,null),i(se,Pl),i(se,As),i(se,Ql),f(Ue,se,null),r(e,xa,s),f(Gt,e,s),r(e,ka,s),r(e,L,s),f(Rt,L,null),i(L,Al),i(L,Ds),i(L,Dl),i(L,Ks),i(L,Kl),f(Ce,L,null),r(e,Ha,s),f(Nt,e,s),r(e,Ua,s),r(e,ce,s),f(Vt,ce,null),i(ce,Ol),i(ce,Os),r(e,Ca,s),f(Ft,e,s),r(e,Ia,s),r(e,Lt,s),r(e,Ea,s),r(e,qt,s),r(e,Za,s),r(e,N,s),f(St,N,null),i(N,er),i(N,en),i(N,tr),i(N,tn),i(N,sr),i(N,sn),i(N,nr),f(Ie,N,null),r(e,Ba,s),f(Wt,e,s),r(e,Xa,s),r(e,Yt,s),r(e,Ga,s),f(zt,e,s),r(e,Ra,s),r(e,Pt,s),r(e,Na,s),r(e,Qt,s),r(e,Va,s),r(e,At,s),r(e,Fa,s),f(Dt,e,s),r(e,La,s),f(Kt,e,s),r(e,qa,s),r(e,I,s),f(Ot,I,null),i(I,ar),i(I,nn),i(I,lr),i(I,an),i(I,rr),i(I,ln),i(I,or),i(I,rn),i(I,ir),f(Ee,I,null),r(e,Sa,s),f(es,e,s),r(e,Wa,s),r(e,ne,s),f(ts,ne,null),i(ne,gr),i(ne,on),i(ne,ur),i(ne,gn),r(e,Ya,s),f(ss,e,s),r(e,za,s),r(e,ns,s),r(e,Pa,s),f(as,e,s),r(e,Qa,s),r(e,k,s),f(ls,k,null),i(k,pr),i(k,un),i(k,cr),i(k,pn),i(k,hr),i(k,cn),i(k,dr),i(k,hn),i(k,fr),i(k,dn),i(k,mr),i(k,fn),i(k,br),f(Ze,k,null),i(k,_r),i(k,mn),i(k,yr),i(k,bn),r(e,Aa,s),f(rs,e,s),r(e,Da,s),r(e,os,s),r(e,Ka,s),r(e,E,s),f(is,E,null),i(E,$r),i(E,_n),i(E,vr),i(E,yn),i(E,Mr),i(E,gs),i(E,wr),i(E,$n),i(E,Tr),i(E,vn),r(e,Oa,s),r(e,xn,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 ps={};s&2&&(ps.$$scope={dirty:s,ctx:e}),$e.$set(ps);const cs={};s&2&&(cs.$$scope={dirty:s,ctx:e}),ve.$set(cs);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 S={};s&2&&(S.$$scope={dirty:s,ctx:e}),Ie.$set(S);const W={};s&2&&(W.$$scope={dirty:s,ctx:e}),Ee.$set(W);const Z={};s&2&&(Z.$$scope={dirty:s,ctx:e}),Ze.$set(Z)},i(e){el||(m($.$$.fragment,e),m(v.$$.fragment,e),m(Re.$$.fragment,e),m(Ve.$$.fragment,e),m(qe.$$.fragment,e),m(_e.$$.fragment,e),m(Se.$$.fragment,e),m(We.$$.fragment,e),m(Ye.$$.fragment,e),m(ze.$$.fragment,e),m(Pe.$$.fragment,e),m(Qe.$$.fragment,e),m(Ae.$$.fragment,e),m(De.$$.fragment,e),m(Oe.$$.fragment,e),m(ye.$$.fragment,e),m(et.$$.fragment,e),m(nt.$$.fragment,e),m(at.$$.fragment,e),m(lt.$$.fragment,e),m(rt.$$.fragment,e),m(ot.$$.fragment,e),m(it.$$.fragment,e),m(gt.$$.fragment,e),m(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(Rt.$$.fragment,e),m(Ce.$$.fragment,e),m(Nt.$$.fragment,e),m(Vt.$$.fragment,e),m(Ft.$$.fragment,e),m(St.$$.fragment,e),m(Ie.$$.fragment,e),m(Wt.$$.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(as.$$.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(Re.$$.fragment,e),b(Ve.$$.fragment,e),b(qe.$$.fragment,e),b(_e.$$.fragment,e),b(Se.$$.fragment,e),b(We.$$.fragment,e),b(Ye.$$.fragment,e),b(ze.$$.fragment,e),b(Pe.$$.fragment,e),b(Qe.$$.fragment,e),b(Ae.$$.fragment,e),b(De.$$.fragment,e),b(Oe.$$.fragment,e),b(ye.$$.fragment,e),b(et.$$.fragment,e),b(nt.$$.fragment,e),b(at.$$.fragment,e),b(lt.$$.fragment,e),b(rt.$$.fragment,e),b(ot.$$.fragment,e),b(it.$$.fragment,e),b(gt.$$.fragment,e),b(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(Rt.$$.fragment,e),b(Ce.$$.fragment,e),b(Nt.$$.fragment,e),b(Vt.$$.fragment,e),b(Ft.$$.fragment,e),b(St.$$.fragment,e),b(Ie.$$.fragment,e),b(Wt.$$.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(as.$$.fragment,e),b(ls.$$.fragment,e),b(Ze.$$.fragment,e),b(rs.$$.fragment,e),b(is.$$.fragment,e),el=!1},d(e){e&&(n(M),n(y),n(g),n(t),n(kn),n(Ge),n(Hn),n(Un),n(Ne),n(Cn),n(In),n(Fe),n(En),n(Le),n(Zn),n(P),n(Bn),n(le),n(Xn),n(re),n(Gn),n(oe),n(Rn),n(ie),n(Nn),n(ge),n(Vn),n(ue),n(Fn),n(pe),n(Ln),n(qn),n(Ke),n(Sn),n(Q),n(Wn),n(Yn),n(tt),n(zn),n(st),n(Pn),n(Qn),n(An),n(A),n(Dn),n(Kn),n(D),n(On),n(ea),n(K),n(ta),n(sa),n(pt),n(na),n(ct),n(aa),n(X),n(la),n(G),n(ra),n(oa),n(mt),n(ia),n(ga),n(_t),n(ua),n(pa),n(R),n(ca),n(ha),n(Mt),n(da),n(fa),n(Tt),n(ma),n(U),n(ba),n(_a),n(O),n(ya),n($a),n(F),n(va),n(Ma),n(ee),n(wa),n(Ta),n(te),n(ja),n(Ja),n(se),n(xa),n(ka),n(L),n(Ha),n(Ua),n(ce),n(Ca),n(Ia),n(Lt),n(Ea),n(qt),n(Za),n(N),n(Ba),n(Xa),n(Yt),n(Ga),n(Ra),n(Pt),n(Na),n(Qt),n(Va),n(At),n(Fa),n(La),n(qa),n(I),n(Sa),n(Wa),n(ne),n(Ya),n(za),n(ns),n(Pa),n(Qa),n(k),n(Aa),n(Da),n(os),n(Ka),n(E),n(Oa),n(xn)),n(o),_($,e),_(v,e),_(Re,e),_(Ve,e),_(qe),_(_e),_(Se),_(We),_(Ye),_(ze),_(Pe),_(Qe),_(Ae),_(De,e),_(Oe),_(ye),_(et,e),_(nt,e),_(at,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),_(Rt),_(Ce),_(Nt,e),_(Vt),_(Ft,e),_(St),_(Ie),_(Wt,e),_(zt,e),_(Dt,e),_(Kt,e),_(Ot),_(Ee),_(es,e),_(ts),_(ss,e),_(as,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};
