import{s as x2,o as w2,n as I}from"../chunks/scheduler.6062bdaf.js";import{S as M2,i as k2,g as l,s as i,r as h,m as $2,A as T2,h as c,f as p,c as r,j as T,u as m,x as d,n as y2,k as j,y as o,a as x,v as f,d as _,t as b,w as v}from"../chunks/index.4bca734e.js";import{T as J}from"../chunks/Tip.b9ac1f03.js";import{D as C}from"../chunks/Docstring.ed07512f.js";import{C as H}from"../chunks/CodeBlock.fa01571c.js";import{E as U}from"../chunks/ExampleCodeBlock.823fb173.js";import{H as E}from"../chunks/Heading.723dceba.js";function j2(w){let n,g="Example:",s,a,$;return a=new H({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMGFkZF9jb2xsZWN0aW9uX2l0ZW0lMEFjb2xsZWN0aW9uJTIwJTNEJTIwYWRkX2NvbGxlY3Rpb25faXRlbSglMEElMjAlMjAlMjAlMjBjb2xsZWN0aW9uX3NsdWclM0QlMjJkYXZhbnN0cmllbiUyRmNsaW1hdGUtNjRmOTlkYzJhNTA2N2Y2YjY1NTMxYmFiJTIyJTJDJTBBJTIwJTIwJTIwJTIwaXRlbV9pZCUzRCUyMnBpZXJyZS1sb2ljJTJGY2xpbWF0ZS1uZXdzLWFydGljbGVzJTIyJTJDJTBBJTIwJTIwJTIwJTIwaXRlbV90eXBlJTNEJTIyZGF0YXNldCUyMiUwQSklMEFjb2xsZWN0aW9uLml0ZW1zJTVCLTElNUQuaXRlbV9pZCUwQSUwQWFkZF9jb2xsZWN0aW9uX2l0ZW0oJTBBJTIwJTIwJTIwJTIwY29sbGVjdGlvbl9zbHVnJTNEJTIyZGF2YW5zdHJpZW4lMkZjbGltYXRlLTY0Zjk5ZGMyYTUwNjdmNmI2NTUzMWJhYiUyMiUyQyUwQSUyMCUyMCUyMCUyMGl0ZW1faWQlM0QlMjJkYXRhc2V0cyUyRmNsaW1hdGVfZmV2ZXIlMjIlMkMlMEElMjAlMjAlMjAlMjBpdGVtX3R5cGUlM0QlMjJkYXRhc2V0JTIyJTBBJTIwJTIwJTIwJTIwbm90ZSUzRCUyMlRoaXMlMjBkYXRhc2V0JTIwYWRvcHRzJTIwdGhlJTIwRkVWRVIlMjBtZXRob2RvbG9neSUyMHRoYXQlMjBjb25zaXN0cyUyMG9mJTIwMSUyQzUzNSUyMHJlYWwtd29ybGQlMjBjbGFpbXMlMjByZWdhcmRpbmclMjBjbGltYXRlLWNoYW5nZSUyMGNvbGxlY3RlZCUyMG9uJTIwdGhlJTIwaW50ZXJuZXQuJTIyJTBBKQ==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> add_collection_item
<span class="hljs-meta">&gt;&gt;&gt; </span>collection = add_collection_item(
<span class="hljs-meta">... </span>    collection_slug=<span class="hljs-string">&quot;davanstrien/climate-64f99dc2a5067f6b65531bab&quot;</span>,
<span class="hljs-meta">... </span>    item_id=<span class="hljs-string">&quot;pierre-loic/climate-news-articles&quot;</span>,
<span class="hljs-meta">... </span>    item_type=<span class="hljs-string">&quot;dataset&quot;</span>
<span class="hljs-meta">... </span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>collection.items[-<span class="hljs-number">1</span>].item_id
<span class="hljs-string">&quot;pierre-loic/climate-news-articles&quot;</span>
<span class="hljs-comment"># ^item got added to the collection on last position</span>

<span class="hljs-comment"># Add item with a note</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>add_collection_item(
<span class="hljs-meta">... </span>    collection_slug=<span class="hljs-string">&quot;davanstrien/climate-64f99dc2a5067f6b65531bab&quot;</span>,
<span class="hljs-meta">... </span>    item_id=<span class="hljs-string">&quot;datasets/climate_fever&quot;</span>,
<span class="hljs-meta">... </span>    item_type=<span class="hljs-string">&quot;dataset&quot;</span>
<span class="hljs-meta">... </span>    note=<span class="hljs-string">&quot;This dataset adopts the FEVER methodology that consists of 1,535 real-world claims regarding climate-change collected on the internet.&quot;</span>
<span class="hljs-meta">... </span>)
(...)`,wrap:!1}}),{c(){n=l("p"),n.textContent=g,s=i(),h(a.$$.fragment)},l(t){n=c(t,"P",{"data-svelte-h":!0}),d(n)!=="svelte-11lpom8"&&(n.textContent=g),s=r(t),m(a.$$.fragment,t)},m(t,y){x(t,n,y),x(t,s,y),f(a,t,y),$=!0},p:I,i(t){$||(_(a.$$.fragment,t),$=!0)},o(t){b(a.$$.fragment,t),$=!1},d(t){t&&(p(n),p(s)),v(a,t)}}}function C2(w){let n,g="Examples:",s,a,$;return a=new H({props:{code:"bmV3X3RpdGxlJTIwJTNEJTIwJTIyTmV3JTIwdGl0bGUlMkMlMjBmaXhpbmclMjBhJTIwdHlwbyUyMiUwQUhmQXBpKCkucmVuYW1lX2Rpc2N1c3Npb24oJTBBJTIwJTIwJTIwJTIwcmVwb19pZCUzRCUyMnVzZXJuYW1lJTJGcmVwb19uYW1lJTIyJTJDJTBBJTIwJTIwJTIwJTIwZGlzY3Vzc2lvbl9udW0lM0QzNCUwQSUyMCUyMCUyMCUyMG5ld190aXRsZSUzRG5ld190aXRsZSUwQSklMEE=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span>new_title = <span class="hljs-string">&quot;New title, fixing a typo&quot;</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>HfApi().rename_discussion(
<span class="hljs-meta">... </span>    repo_id=<span class="hljs-string">&quot;username/repo_name&quot;</span>,
<span class="hljs-meta">... </span>    discussion_num=<span class="hljs-number">34</span>
<span class="hljs-meta">... </span>    new_title=new_title
<span class="hljs-meta">... </span>)
<span class="hljs-comment"># DiscussionStatusChange(id=&#x27;deadbeef0000000&#x27;, type=&#x27;status-change&#x27;, ...)</span>
`,wrap:!1}}),{c(){n=l("p"),n.textContent=g,s=i(),h(a.$$.fragment)},l(t){n=c(t,"P",{"data-svelte-h":!0}),d(n)!=="svelte-kvfsh7"&&(n.textContent=g),s=r(t),m(a.$$.fragment,t)},m(t,y){x(t,n,y),x(t,s,y),f(a,t,y),$=!0},p:I,i(t){$||(_(a.$$.fragment,t),$=!0)},o(t){b(a.$$.fragment,t),$=!1},d(t){t&&(p(n),p(s)),v(a,t)}}}function I2(w){let n,g="Raises the following errors:",s,a,$=`<li><a href="https://requests.readthedocs.io/en/latest/api/#requests.HTTPError" rel="nofollow"><code>HTTPError</code></a>
if the HuggingFace API returned an error</li> <li><a href="https://docs.python.org/3/library/exceptions.html#ValueError" rel="nofollow"><code>ValueError</code></a>
if some parameter value is invalid</li> <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,
or because it is set to <code>private</code> and you do not have access.</li>`;return{c(){n=l("p"),n.textContent=g,s=i(),a=l("ul"),a.innerHTML=$},l(t){n=c(t,"P",{"data-svelte-h":!0}),d(n)!=="svelte-182te9i"&&(n.textContent=g),s=r(t),a=c(t,"UL",{"data-svelte-h":!0}),d(a)!=="svelte-12f410c"&&(a.innerHTML=$)},m(t,y){x(t,n,y),x(t,s,y),x(t,a,y)},p:I,d(t){t&&(p(n),p(s),p(a))}}}function H2(w){let n,g="Examples:",s,a,$;return a=new H({props:{code:"JTBBY29tbWVudCUyMCUzRCUyMCUyMiUyMiUyMiUwQUhlbGxvJTIwJTQwb3RoZXJ1c2VyISUwQSUyMyUyMFRoaXMlMjBpcyUyMGElMjB0aXRsZSUwQSoqVGhpcyUyMGlzJTIwYm9sZCoqJTJDJTIwKnRoaXMlMjBpcyUyMGl0YWxpYyolMjBhbmQlMjB+dGhpcyUyMGlzJTIwc3RyaWtldGhyb3VnaH4lMEFBbmQlMjAlNUJ0aGlzJTVEKGh0dHAlM0ElMkYlMkZ1cmwpJTIwaXMlMjBhJTIwbGluayUwQSUyMiUyMiUyMiUwQSUwQUhmQXBpKCkuY29tbWVudF9kaXNjdXNzaW9uKCUwQSUyMCUyMCUyMCUyMHJlcG9faWQlM0QlMjJ1c2VybmFtZSUyRnJlcG9fbmFtZSUyMiUyQyUwQSUyMCUyMCUyMCUyMGRpc2N1c3Npb25fbnVtJTNEMzQlMEElMjAlMjAlMjAlMjBjb21tZW50JTNEY29tbWVudCUwQSklMEE=",highlighted:`
<span class="hljs-meta">&gt;&gt;&gt; </span>comment = <span class="hljs-string">&quot;&quot;&quot;
<span class="hljs-meta">... </span>Hello @otheruser!
...
<span class="hljs-meta">... </span># This is a title
...
<span class="hljs-meta">... </span>**This is bold**, *this is italic* and ~this is strikethrough~
<span class="hljs-meta">... </span>And [this](http://url) is a link
<span class="hljs-meta">... </span>&quot;&quot;&quot;</span>

<span class="hljs-meta">&gt;&gt;&gt; </span>HfApi().comment_discussion(
<span class="hljs-meta">... </span>    repo_id=<span class="hljs-string">&quot;username/repo_name&quot;</span>,
<span class="hljs-meta">... </span>    discussion_num=<span class="hljs-number">34</span>
<span class="hljs-meta">... </span>    comment=comment
<span class="hljs-meta">... </span>)
<span class="hljs-comment"># DiscussionComment(id=&#x27;deadbeef0000000&#x27;, type=&#x27;comment&#x27;, ...)</span>
`,wrap:!1}}),{c(){n=l("p"),n.textContent=g,s=i(),h(a.$$.fragment)},l(t){n=c(t,"P",{"data-svelte-h":!0}),d(n)!=="svelte-kvfsh7"&&(n.textContent=g),s=r(t),m(a.$$.fragment,t)},m(t,y){x(t,n,y),x(t,s,y),f(a,t,y),$=!0},p:I,i(t){$||(_(a.$$.fragment,t),$=!0)},o(t){b(a.$$.fragment,t),$=!1},d(t){t&&(p(n),p(s)),v(a,t)}}}function U2(w){let n,g="Raises the following errors:",s,a,$=`<li><a href="https://requests.readthedocs.io/en/latest/api/#requests.HTTPError" rel="nofollow"><code>HTTPError</code></a>
if the HuggingFace API returned an error</li> <li><a href="https://docs.python.org/3/library/exceptions.html#ValueError" rel="nofollow"><code>ValueError</code></a>
if some parameter value is invalid</li> <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,
or because it is set to <code>private</code> and you do not have access.</li>`;return{c(){n=l("p"),n.textContent=g,s=i(),a=l("ul"),a.innerHTML=$},l(t){n=c(t,"P",{"data-svelte-h":!0}),d(n)!=="svelte-182te9i"&&(n.textContent=g),s=r(t),a=c(t,"UL",{"data-svelte-h":!0}),d(a)!=="svelte-12f410c"&&(a.innerHTML=$)},m(t,y){x(t,n,y),x(t,s,y),x(t,a,y)},p:I,d(t){t&&(p(n),p(s),p(a))}}}function J2(w){let n,g="Example:",s,a,$;return a=new H({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMGNyZWF0ZV9jb2xsZWN0aW9uJTBBY29sbGVjdGlvbiUyMCUzRCUyMGNyZWF0ZV9jb2xsZWN0aW9uKCUwQSUyMCUyMCUyMCUyMHRpdGxlJTNEJTIySUNDViUyMDIwMjMlMjIlMkMlMEElMjAlMjAlMjAlMjBkZXNjcmlwdGlvbiUzRCUyMlBvcnRmb2xpbyUyMG9mJTIwbW9kZWxzJTJDJTIwcGFwZXJzJTIwYW5kJTIwZGVtb3MlMjBJJTIwcHJlc2VudGVkJTIwYXQlMjBJQ0NWJTIwMjAyMyUyMiUyQyUwQSklMEFjb2xsZWN0aW9uLnNsdWc=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> create_collection
<span class="hljs-meta">&gt;&gt;&gt; </span>collection = create_collection(
<span class="hljs-meta">... </span>    title=<span class="hljs-string">&quot;ICCV 2023&quot;</span>,
<span class="hljs-meta">... </span>    description=<span class="hljs-string">&quot;Portfolio of models, papers and demos I presented at ICCV 2023&quot;</span>,
<span class="hljs-meta">... </span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>collection.slug
<span class="hljs-string">&quot;username/iccv-2023-64f9a55bb3115b4f513ec026&quot;</span>`,wrap:!1}}),{c(){n=l("p"),n.textContent=g,s=i(),h(a.$$.fragment)},l(t){n=c(t,"P",{"data-svelte-h":!0}),d(n)!=="svelte-11lpom8"&&(n.textContent=g),s=r(t),m(a.$$.fragment,t)},m(t,y){x(t,n,y),x(t,s,y),f(a,t,y),$=!0},p:I,i(t){$||(_(a.$$.fragment,t),$=!0)},o(t){b(a.$$.fragment,t),$=!1},d(t){t&&(p(n),p(s)),v(a,t)}}}function A2(w){let n,g=`The input list of <code>CommitOperation</code> will be mutated during the commit process. Do not reuse the same objects
for multiple commits.`;return{c(){n=l("p"),n.innerHTML=g},l(s){n=c(s,"P",{"data-svelte-h":!0}),d(n)!=="svelte-1i3qk8u"&&(n.innerHTML=g)},m(s,a){x(s,n,a)},p:I,d(s){s&&p(n)}}}function q2(w){let n,g=`<code>create_commit</code> assumes that the repo already exists on the Hub. If you get a
Client error 404, please make sure you are authenticated and that <code>repo_id</code> and
<code>repo_type</code> are set correctly. If repo does not exist, create it first using
<a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.HfApi.create_repo">create_repo()</a>.`;return{c(){n=l("p"),n.innerHTML=g},l(s){n=c(s,"P",{"data-svelte-h":!0}),d(n)!=="svelte-hn9ry1"&&(n.innerHTML=g)},m(s,a){x(s,n,a)},p:I,d(s){s&&p(n)}}}function N2(w){let n,g="<code>create_commit</code> is limited to 25k LFS files and a 1GB payload for regular files.";return{c(){n=l("p"),n.innerHTML=g},l(s){n=c(s,"P",{"data-svelte-h":!0}),d(n)!=="svelte-yun5lq"&&(n.innerHTML=g)},m(s,a){x(s,n,a)},p:I,d(s){s&&p(n)}}}function E2(w){let n,g="<code>create_commits_on_pr</code> is experimental.  Its API and behavior is subject to change in the future without prior notice.";return{c(){n=l("p"),n.innerHTML=g},l(s){n=c(s,"P",{"data-svelte-h":!0}),d(n)!=="svelte-1ryas9o"&&(n.innerHTML=g)},m(s,a){x(s,n,a)},p:I,d(s){s&&p(n)}}}function R2(w){let n,g=`<code>create_commits_on_pr</code> assumes that the repo already exists on the Hub. If you get a Client error 404, please
make sure you are authenticated and that <code>repo_id</code> and <code>repo_type</code> are set correctly. If repo does not exist,
create it first using <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.HfApi.create_repo">create_repo()</a>.`;return{c(){n=l("p"),n.innerHTML=g},l(s){n=c(s,"P",{"data-svelte-h":!0}),d(n)!=="svelte-1aayk81"&&(n.innerHTML=g)},m(s,a){x(s,n,a)},p:I,d(s){s&&p(n)}}}function G2(w){let n,g="Example:",s,a,$;return a=new H({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMEhmQXBpJTJDJTIwcGxhbl9tdWx0aV9jb21taXRzJTBBYWRkaXRpb25fY29tbWl0cyUyQyUyMGRlbGV0aW9uX2NvbW1pdHMlMjAlM0QlMjBwbGFuX211bHRpX2NvbW1pdHMoJTBBJTIwJTIwJTIwJTIwb3BlcmF0aW9ucyUzRCU1QiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMENvbW1pdE9wZXJhdGlvbkFkZCguLi4pJTJDJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwQ29tbWl0T3BlcmF0aW9uQWRkKC4uLiklMkMlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjBDb21taXRPcGVyYXRpb25EZWxldGUoLi4uKSUyQyUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMENvbW1pdE9wZXJhdGlvbkRlbGV0ZSguLi4pJTJDJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwQ29tbWl0T3BlcmF0aW9uQWRkKC4uLiklMkMlMEElMjAlMjAlMjAlMjAlNUQlMkMlMEEpJTBBSGZBcGkoKS5jcmVhdGVfY29tbWl0c19vbl9wciglMEElMjAlMjAlMjAlMjByZXBvX2lkJTNEJTIybXktY29vbC1tb2RlbCUyMiUyQyUwQSUyMCUyMCUyMCUyMGFkZGl0aW9uX2NvbW1pdHMlM0RhZGRpdGlvbl9jb21taXRzJTJDJTBBJTIwJTIwJTIwJTIwZGVsZXRpb25fY29tbWl0cyUzRGRlbGV0aW9uX2NvbW1pdHMlMkMlMEElMjAlMjAlMjAlMjAoLi4uKSUwQSUyMCUyMCUyMCUyMHZlcmJvc2UlM0RUcnVlJTJDJTBBKQ==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> HfApi, plan_multi_commits
<span class="hljs-meta">&gt;&gt;&gt; </span>addition_commits, deletion_commits = plan_multi_commits(
<span class="hljs-meta">... </span>    operations=[
<span class="hljs-meta">... </span>         CommitOperationAdd(...),
<span class="hljs-meta">... </span>         CommitOperationAdd(...),
<span class="hljs-meta">... </span>         CommitOperationDelete(...),
<span class="hljs-meta">... </span>         CommitOperationDelete(...),
<span class="hljs-meta">... </span>         CommitOperationAdd(...),
<span class="hljs-meta">... </span>    ],
<span class="hljs-meta">... </span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>HfApi().create_commits_on_pr(
<span class="hljs-meta">... </span>    repo_id=<span class="hljs-string">&quot;my-cool-model&quot;</span>,
<span class="hljs-meta">... </span>    addition_commits=addition_commits,
<span class="hljs-meta">... </span>    deletion_commits=deletion_commits,
<span class="hljs-meta">... </span>    (...)
<span class="hljs-meta">... </span>    verbose=<span class="hljs-literal">True</span>,
<span class="hljs-meta">... </span>)`,wrap:!1}}),{c(){n=l("p"),n.textContent=g,s=i(),h(a.$$.fragment)},l(t){n=c(t,"P",{"data-svelte-h":!0}),d(n)!=="svelte-11lpom8"&&(n.textContent=g),s=r(t),m(a.$$.fragment,t)},m(t,y){x(t,n,y),x(t,s,y),f(a,t,y),$=!0},p:I,i(t){$||(_(a.$$.fragment,t),$=!0)},o(t){b(a.$$.fragment,t),$=!1},d(t){t&&(p(n),p(s)),v(a,t)}}}function D2(w){let n,g="Raises the following errors:",s,a,$=`<li><a href="https://requests.readthedocs.io/en/latest/api/#requests.HTTPError" rel="nofollow"><code>HTTPError</code></a>
if the HuggingFace API returned an error</li> <li><a href="https://docs.python.org/3/library/exceptions.html#ValueError" rel="nofollow"><code>ValueError</code></a>
if some parameter value is invalid</li> <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,
or because it is set to <code>private</code> and you do not have access.</li>`;return{c(){n=l("p"),n.textContent=g,s=i(),a=l("ul"),a.innerHTML=$},l(t){n=c(t,"P",{"data-svelte-h":!0}),d(n)!=="svelte-182te9i"&&(n.textContent=g),s=r(t),a=c(t,"UL",{"data-svelte-h":!0}),d(a)!=="svelte-12f410c"&&(a.innerHTML=$)},m(t,y){x(t,n,y),x(t,s,y),x(t,a,y)},p:I,d(t){t&&(p(n),p(s),p(a))}}}function S2(w){let n,g="Example:",s,a,$;return a=new H({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMEhmQXBpJTBBYXBpJTIwJTNEJTIwSGZBcGkoKSUwQWNyZWF0ZV9pbmZlcmVuY2VfZW5kcG9pbnQoJTBBJTIwJTIwJTIwJTIwJTIybXktZW5kcG9pbnQtbmFtZSUyMiUyQyUwQSUyMCUyMCUyMCUyMHJlcG9zaXRvcnklM0QlMjJncHQyJTIyJTJDJTBBJTIwJTIwJTIwJTIwZnJhbWV3b3JrJTNEJTIycHl0b3JjaCUyMiUyQyUwQSUyMCUyMCUyMCUyMHRhc2slM0QlMjJ0ZXh0LWdlbmVyYXRpb24lMjIlMkMlMEElMjAlMjAlMjAlMjBhY2NlbGVyYXRvciUzRCUyMmNwdSUyMiUyQyUwQSUyMCUyMCUyMCUyMHZlbmRvciUzRCUyMmF3cyUyMiUyQyUwQSUyMCUyMCUyMCUyMHJlZ2lvbiUzRCUyMnVzLWVhc3QtMSUyMiUyQyUwQSUyMCUyMCUyMCUyMHR5cGUlM0QlMjJwcm90ZWN0ZWQlMjIlMkMlMEElMjAlMjAlMjAlMjBpbnN0YW5jZV9zaXplJTNEJTIybWVkaXVtJTIyJTJDJTBBJTIwJTIwJTIwJTIwaW5zdGFuY2VfdHlwZSUzRCUyMmM2aSUyMiUwQSklMEFlbmRwb2ludCUwQSUwQWVuZHBvaW50LmNsaWVudC50ZXh0X2dlbmVyYXRpb24oLi4uKQ==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> HfApi
<span class="hljs-meta">&gt;&gt;&gt; </span>api = HfApi()
<span class="hljs-meta">&gt;&gt;&gt; </span>create_inference_endpoint(
<span class="hljs-meta">... </span>    <span class="hljs-string">&quot;my-endpoint-name&quot;</span>,
<span class="hljs-meta">... </span>    repository=<span class="hljs-string">&quot;gpt2&quot;</span>,
<span class="hljs-meta">... </span>    framework=<span class="hljs-string">&quot;pytorch&quot;</span>,
<span class="hljs-meta">... </span>    task=<span class="hljs-string">&quot;text-generation&quot;</span>,
<span class="hljs-meta">... </span>    accelerator=<span class="hljs-string">&quot;cpu&quot;</span>,
<span class="hljs-meta">... </span>    vendor=<span class="hljs-string">&quot;aws&quot;</span>,
<span class="hljs-meta">... </span>    region=<span class="hljs-string">&quot;us-east-1&quot;</span>,
<span class="hljs-meta">... </span>    <span class="hljs-built_in">type</span>=<span class="hljs-string">&quot;protected&quot;</span>,
<span class="hljs-meta">... </span>    instance_size=<span class="hljs-string">&quot;medium&quot;</span>,
<span class="hljs-meta">... </span>    instance_type=<span class="hljs-string">&quot;c6i&quot;</span>
<span class="hljs-meta">... </span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>endpoint
InferenceEndpoint(name=<span class="hljs-string">&#x27;my-endpoint-name&#x27;</span>, status=<span class="hljs-string">&quot;pending&quot;</span>,...)

<span class="hljs-comment"># Run inference on the endpoint</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>endpoint.client.text_generation(...)
<span class="hljs-string">&quot;...&quot;</span>`,wrap:!1}}),{c(){n=l("p"),n.textContent=g,s=i(),h(a.$$.fragment)},l(t){n=c(t,"P",{"data-svelte-h":!0}),d(n)!=="svelte-11lpom8"&&(n.textContent=g),s=r(t),m(a.$$.fragment,t)},m(t,y){x(t,n,y),x(t,s,y),f(a,t,y),$=!0},p:I,i(t){$||(_(a.$$.fragment,t),$=!0)},o(t){b(a.$$.fragment,t),$=!1},d(t){t&&(p(n),p(s)),v(a,t)}}}function F2(w){let n,g="Raises the following errors:",s,a,$=`<li><a href="https://requests.readthedocs.io/en/latest/api/#requests.HTTPError" rel="nofollow"><code>HTTPError</code></a>
if the HuggingFace API returned an error</li> <li><a href="https://docs.python.org/3/library/exceptions.html#ValueError" rel="nofollow"><code>ValueError</code></a>
if some parameter value is invalid</li> <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,
or because it is set to <code>private</code> and you do not have access.</li>`;return{c(){n=l("p"),n.textContent=g,s=i(),a=l("ul"),a.innerHTML=$},l(t){n=c(t,"P",{"data-svelte-h":!0}),d(n)!=="svelte-182te9i"&&(n.textContent=g),s=r(t),a=c(t,"UL",{"data-svelte-h":!0}),d(a)!=="svelte-12f410c"&&(a.innerHTML=$)},m(t,y){x(t,n,y),x(t,s,y),x(t,a,y)},p:I,d(t){t&&(p(n),p(s),p(a))}}}function Z2(w){let n,g="Raises the following errors:",s,a,$=`<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,
or because it is set to <code>private</code> and you do not have access.</li> <li><a href="/docs/huggingface_hub/main/en/package_reference/utilities#huggingface_hub.utils.RevisionNotFoundError">RevisionNotFoundError</a>
If the revision to download from cannot be found.</li>`;return{c(){n=l("p"),n.textContent=g,s=i(),a=l("ul"),a.innerHTML=$},l(t){n=c(t,"P",{"data-svelte-h":!0}),d(n)!=="svelte-182te9i"&&(n.textContent=g),s=r(t),a=c(t,"UL",{"data-svelte-h":!0}),d(a)!=="svelte-1mt8eeu"&&(a.innerHTML=$)},m(t,y){x(t,n,y),x(t,s,y),x(t,a,y)},p:I,d(t){t&&(p(n),p(s),p(a))}}}function L2(w){let n,g="Example:",s,a,$;return a=new H({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMGRlbGV0ZV9jb2xsZWN0aW9uJTBBY29sbGVjdGlvbiUyMCUzRCUyMGRlbGV0ZV9jb2xsZWN0aW9uKCUyMnVzZXJuYW1lJTJGdXNlbGVzcy1jb2xsZWN0aW9uLTY0ZjlhNTViYjMxMTViNGY1MTNlYzAyNiUyMiUyQyUyMG1pc3Npbmdfb2slM0RUcnVlKQ==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> delete_collection
<span class="hljs-meta">&gt;&gt;&gt; </span>collection = delete_collection(<span class="hljs-string">&quot;username/useless-collection-64f9a55bb3115b4f513ec026&quot;</span>, missing_ok=<span class="hljs-literal">True</span>)`,wrap:!1}}),{c(){n=l("p"),n.textContent=g,s=i(),h(a.$$.fragment)},l(t){n=c(t,"P",{"data-svelte-h":!0}),d(n)!=="svelte-11lpom8"&&(n.textContent=g),s=r(t),m(a.$$.fragment,t)},m(t,y){x(t,n,y),x(t,s,y),f(a,t,y),$=!0},p:I,i(t){$||(_(a.$$.fragment,t),$=!0)},o(t){b(a.$$.fragment,t),$=!1},d(t){t&&(p(n),p(s)),v(a,t)}}}function B2(w){let n,g="This is a non-revertible action. A deleted collection cannot be restored.";return{c(){n=l("p"),n.textContent=g},l(s){n=c(s,"P",{"data-svelte-h":!0}),d(n)!=="svelte-1k7dttx"&&(n.textContent=g)},m(s,a){x(s,n,a)},p:I,d(s){s&&p(n)}}}function W2(w){let n,g="Example:",s,a,$;return a=new H({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMGdldF9jb2xsZWN0aW9uJTJDJTIwZGVsZXRlX2NvbGxlY3Rpb25faXRlbSUwQSUwQWNvbGxlY3Rpb24lMjAlM0QlMjBnZXRfY29sbGVjdGlvbiglMjJUaGVCbG9rZSUyRnJlY2VudC1tb2RlbHMtNjRmOWE1NWJiMzExNWI0ZjUxM2VjMDI2JTIyKSUwQSUwQWRlbGV0ZV9jb2xsZWN0aW9uX2l0ZW0oJTBBJTIwJTIwJTIwJTIwY29sbGVjdGlvbl9zbHVnJTNEJTIyVGhlQmxva2UlMkZyZWNlbnQtbW9kZWxzLTY0ZjlhNTViYjMxMTViNGY1MTNlYzAyNiUyMiUyQyUwQSUyMCUyMCUyMCUyMGl0ZW1fb2JqZWN0X2lkJTNEY29sbGVjdGlvbi5pdGVtcyU1Qi0xJTVELml0ZW1fb2JqZWN0X2lkJTJDJTBBKQ==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> get_collection, delete_collection_item

<span class="hljs-comment"># Get collection first</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>collection = get_collection(<span class="hljs-string">&quot;TheBloke/recent-models-64f9a55bb3115b4f513ec026&quot;</span>)

<span class="hljs-comment"># Delete item based on its ID</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>delete_collection_item(
<span class="hljs-meta">... </span>    collection_slug=<span class="hljs-string">&quot;TheBloke/recent-models-64f9a55bb3115b4f513ec026&quot;</span>,
<span class="hljs-meta">... </span>    item_object_id=collection.items[-<span class="hljs-number">1</span>].item_object_id,
<span class="hljs-meta">... </span>)`,wrap:!1}}),{c(){n=l("p"),n.textContent=g,s=i(),h(a.$$.fragment)},l(t){n=c(t,"P",{"data-svelte-h":!0}),d(n)!=="svelte-11lpom8"&&(n.textContent=g),s=r(t),m(a.$$.fragment,t)},m(t,y){x(t,n,y),x(t,s,y),f(a,t,y),$=!0},p:I,i(t){$||(_(a.$$.fragment,t),$=!0)},o(t){b(a.$$.fragment,t),$=!1},d(t){t&&(p(n),p(s)),v(a,t)}}}function V2(w){let n,g="Raises the following errors:",s,a,$=`<li><a href="https://requests.readthedocs.io/en/latest/api/#requests.HTTPError" rel="nofollow"><code>HTTPError</code></a>
if the HuggingFace API returned an error</li> <li><a href="https://docs.python.org/3/library/exceptions.html#ValueError" rel="nofollow"><code>ValueError</code></a>
if some parameter value is invalid</li> <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,
or because it is set to <code>private</code> and you do not have access.</li> <li><a href="/docs/huggingface_hub/main/en/package_reference/utilities#huggingface_hub.utils.RevisionNotFoundError">RevisionNotFoundError</a>
If the revision to download from cannot be found.</li> <li><a href="/docs/huggingface_hub/main/en/package_reference/utilities#huggingface_hub.utils.EntryNotFoundError">EntryNotFoundError</a>
If the file to download cannot be found.</li>`;return{c(){n=l("p"),n.textContent=g,s=i(),a=l("ul"),a.innerHTML=$},l(t){n=c(t,"P",{"data-svelte-h":!0}),d(n)!=="svelte-182te9i"&&(n.textContent=g),s=r(t),a=c(t,"UL",{"data-svelte-h":!0}),d(a)!=="svelte-i4chuz"&&(a.innerHTML=$)},m(t,y){x(t,n,y),x(t,s,y),x(t,a,y)},p:I,d(t){t&&(p(n),p(s),p(a))}}}function X2(w){let n,g="Example:",s,a,$;return a=new H({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMGR1cGxpY2F0ZV9zcGFjZSUwQSUwQWR1cGxpY2F0ZV9zcGFjZSglMjJtdWx0aW1vZGFsYXJ0JTJGZHJlYW1ib290aC10cmFpbmluZyUyMiklMEElMEFkdXBsaWNhdGVfc3BhY2UoJTIybXVsdGltb2RhbGFydCUyRmRyZWFtYm9vdGgtdHJhaW5pbmclMjIlMkMlMjB0b19pZCUzRCUyMm15LWRyZWFtYm9vdGglMjIlMkMlMjBwcml2YXRlJTNEVHJ1ZSk=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> duplicate_space

<span class="hljs-comment"># Duplicate a Space to your account</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>duplicate_space(<span class="hljs-string">&quot;multimodalart/dreambooth-training&quot;</span>)
RepoUrl(<span class="hljs-string">&#x27;https://huggingface.co/spaces/nateraw/dreambooth-training&#x27;</span>,...)

<span class="hljs-comment"># Can set custom destination id and visibility flag.</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>duplicate_space(<span class="hljs-string">&quot;multimodalart/dreambooth-training&quot;</span>, to_id=<span class="hljs-string">&quot;my-dreambooth&quot;</span>, private=<span class="hljs-literal">True</span>)
RepoUrl(<span class="hljs-string">&#x27;https://huggingface.co/spaces/nateraw/my-dreambooth&#x27;</span>,...)`,wrap:!1}}),{c(){n=l("p"),n.textContent=g,s=i(),h(a.$$.fragment)},l(t){n=c(t,"P",{"data-svelte-h":!0}),d(n)!=="svelte-11lpom8"&&(n.textContent=g),s=r(t),m(a.$$.fragment,t)},m(t,y){x(t,n,y),x(t,s,y),f(a,t,y),$=!0},p:I,i(t){$||(_(a.$$.fragment,t),$=!0)},o(t){b(a.$$.fragment,t),$=!1},d(t){t&&(p(n),p(s)),v(a,t)}}}function Y2(w){let n,g="Raises the following errors:",s,a,$=`<li><a href="https://requests.readthedocs.io/en/latest/api/#requests.HTTPError" rel="nofollow"><code>HTTPError</code></a>
if the HuggingFace API returned an error</li> <li><a href="https://docs.python.org/3/library/exceptions.html#ValueError" rel="nofollow"><code>ValueError</code></a>
if some parameter value is invalid</li> <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,
or because it is set to <code>private</code> and you do not have access.</li>`;return{c(){n=l("p"),n.textContent=g,s=i(),a=l("ul"),a.innerHTML=$},l(t){n=c(t,"P",{"data-svelte-h":!0}),d(n)!=="svelte-182te9i"&&(n.textContent=g),s=r(t),a=c(t,"UL",{"data-svelte-h":!0}),d(a)!=="svelte-12f410c"&&(a.innerHTML=$)},m(t,y){x(t,n,y),x(t,s,y),x(t,a,y)},p:I,d(t){t&&(p(n),p(s),p(a))}}}function P2(w){let n,g="Examples:",s,a,$;return a=new H({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMGZpbGVfZXhpc3RzJTBBZmlsZV9leGlzdHMoJTIyYmlnY29kZSUyRnN0YXJjb2RlciUyMiUyQyUyMCUyMmNvbmZpZy5qc29uJTIyKSUwQWZpbGVfZXhpc3RzKCUyMmJpZ2NvZGUlMkZzdGFyY29kZXIlMjIlMkMlMjAlMjJub3QtYS1maWxlJTIyKSUwQWZpbGVfZXhpc3RzKCUyMmJpZ2NvZGUlMkZub3QtYS1yZXBvJTIyJTJDJTIwJTIyY29uZmlnLmpzb24lMjIp",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> file_exists
<span class="hljs-meta">&gt;&gt;&gt; </span>file_exists(<span class="hljs-string">&quot;bigcode/starcoder&quot;</span>, <span class="hljs-string">&quot;config.json&quot;</span>)
<span class="hljs-literal">True</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>file_exists(<span class="hljs-string">&quot;bigcode/starcoder&quot;</span>, <span class="hljs-string">&quot;not-a-file&quot;</span>)
<span class="hljs-literal">False</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>file_exists(<span class="hljs-string">&quot;bigcode/not-a-repo&quot;</span>, <span class="hljs-string">&quot;config.json&quot;</span>)
<span class="hljs-literal">False</span>`,wrap:!1}}),{c(){n=l("p"),n.textContent=g,s=i(),h(a.$$.fragment)},l(t){n=c(t,"P",{"data-svelte-h":!0}),d(n)!=="svelte-kvfsh7"&&(n.textContent=g),s=r(t),m(a.$$.fragment,t)},m(t,y){x(t,n,y),x(t,s,y),f(a,t,y),$=!0},p:I,i(t){$||(_(a.$$.fragment,t),$=!0)},o(t){b(a.$$.fragment,t),$=!1},d(t){t&&(p(n),p(s)),v(a,t)}}}function O2(w){let n,g;return n=new U({props:{anchor:"huggingface_hub.HfApi.file_exists.example",$$slots:{default:[P2]},$$scope:{ctx:w}}}),{c(){h(n.$$.fragment)},l(s){m(n.$$.fragment,s)},m(s,a){f(n,s,a),g=!0},p(s,a){const $={};a&2&&($.$$scope={dirty:a,ctx:s}),n.$set($)},i(s){g||(_(n.$$.fragment,s),g=!0)},o(s){b(n.$$.fragment,s),g=!1},d(s){v(n,s)}}}function z2(w){let n,g="Example:",s,a,$;return a=new H({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMGdldF9jb2xsZWN0aW9uJTBBY29sbGVjdGlvbiUyMCUzRCUyMGdldF9jb2xsZWN0aW9uKCUyMlRoZUJsb2tlJTJGcmVjZW50LW1vZGVscy02NGY5YTU1YmIzMTE1YjRmNTEzZWMwMjYlMjIpJTBBY29sbGVjdGlvbi50aXRsZSUwQWxlbihjb2xsZWN0aW9uLml0ZW1zKSUwQWNvbGxlY3Rpb24uaXRlbXMlNUIwJTVE",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> get_collection
<span class="hljs-meta">&gt;&gt;&gt; </span>collection = get_collection(<span class="hljs-string">&quot;TheBloke/recent-models-64f9a55bb3115b4f513ec026&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>collection.title
<span class="hljs-string">&#x27;Recent models&#x27;</span>
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-built_in">len</span>(collection.items)
<span class="hljs-number">37</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>collection.items[<span class="hljs-number">0</span>]
CollectionItem(
    item_object_id=<span class="hljs-string">&#x27;651446103cd773a050bf64c2&#x27;</span>,
    item_id=<span class="hljs-string">&#x27;TheBloke/U-Amethyst-20B-AWQ&#x27;</span>,
    item_type=<span class="hljs-string">&#x27;model&#x27;</span>,
    position=<span class="hljs-number">88</span>,
    note=<span class="hljs-literal">None</span>
)`,wrap:!1}}),{c(){n=l("p"),n.textContent=g,s=i(),h(a.$$.fragment)},l(t){n=c(t,"P",{"data-svelte-h":!0}),d(n)!=="svelte-11lpom8"&&(n.textContent=g),s=r(t),m(a.$$.fragment,t)},m(t,y){x(t,n,y),x(t,s,y),f(a,t,y),$=!0},p:I,i(t){$||(_(a.$$.fragment,t),$=!0)},o(t){b(a.$$.fragment,t),$=!1},d(t){t&&(p(n),p(s)),v(a,t)}}}function Q2(w){let n,g="Raises the following errors:",s,a,$=`<li><a href="https://requests.readthedocs.io/en/latest/api/#requests.HTTPError" rel="nofollow"><code>HTTPError</code></a>
if the HuggingFace API returned an error</li> <li><a href="https://docs.python.org/3/library/exceptions.html#ValueError" rel="nofollow"><code>ValueError</code></a>
if some parameter value is invalid</li> <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,
or because it is set to <code>private</code> and you do not have access.</li>`;return{c(){n=l("p"),n.textContent=g,s=i(),a=l("ul"),a.innerHTML=$},l(t){n=c(t,"P",{"data-svelte-h":!0}),d(n)!=="svelte-182te9i"&&(n.textContent=g),s=r(t),a=c(t,"UL",{"data-svelte-h":!0}),d(a)!=="svelte-12f410c"&&(a.innerHTML=$)},m(t,y){x(t,n,y),x(t,s,y),x(t,a,y)},p:I,d(t){t&&(p(n),p(s),p(a))}}}function K2(w){let n,g="Example:",s,a,$;return a=new H({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMEhmQXBpJTBBYXBpJTIwJTNEJTIwSGZBcGkoKSUwQWVuZHBvaW50JTIwJTNEJTIwYXBpLmdldF9pbmZlcmVuY2VfZW5kcG9pbnQoJTIybXktdGV4dC10by1pbWFnZSUyMiklMEFlbmRwb2ludCUwQSUwQWVuZHBvaW50LnN0YXR1cyUwQWVuZHBvaW50LnVybCUwQSUwQWVuZHBvaW50LmNsaWVudC50ZXh0X3RvX2ltYWdlKC4uLik=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> HfApi
<span class="hljs-meta">&gt;&gt;&gt; </span>api = HfApi()
<span class="hljs-meta">&gt;&gt;&gt; </span>endpoint = api.get_inference_endpoint(<span class="hljs-string">&quot;my-text-to-image&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>endpoint
InferenceEndpoint(name=<span class="hljs-string">&#x27;my-text-to-image&#x27;</span>, ...)

<span class="hljs-comment"># Get status</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>endpoint.status
<span class="hljs-string">&#x27;running&#x27;</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>endpoint.url
<span class="hljs-string">&#x27;https://my-text-to-image.region.vendor.endpoints.huggingface.cloud&#x27;</span>

<span class="hljs-comment"># Run inference</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>endpoint.client.text_to_image(...)`,wrap:!1}}),{c(){n=l("p"),n.textContent=g,s=i(),h(a.$$.fragment)},l(t){n=c(t,"P",{"data-svelte-h":!0}),d(n)!=="svelte-11lpom8"&&(n.textContent=g),s=r(t),m(a.$$.fragment,t)},m(t,y){x(t,n,y),x(t,s,y),f(a,t,y),$=!0},p:I,i(t){$||(_(a.$$.fragment,t),$=!0)},o(t){b(a.$$.fragment,t),$=!1},d(t){t&&(p(n),p(s)),v(a,t)}}}function e1(w){let n,g="Collecting all discussions of a repo in a list:",s,a,$;return a=new H({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMGdldF9yZXBvX2Rpc2N1c3Npb25zJTBBZGlzY3Vzc2lvbnNfbGlzdCUyMCUzRCUyMGxpc3QoZ2V0X3JlcG9fZGlzY3Vzc2lvbnMocmVwb19pZCUzRCUyMmJlcnQtYmFzZS11bmNhc2VkJTIyKSk=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> get_repo_discussions
<span class="hljs-meta">&gt;&gt;&gt; </span>discussions_list = <span class="hljs-built_in">list</span>(get_repo_discussions(repo_id=<span class="hljs-string">&quot;bert-base-uncased&quot;</span>))`,wrap:!1}}),{c(){n=l("p"),n.textContent=g,s=i(),h(a.$$.fragment)},l(t){n=c(t,"P",{"data-svelte-h":!0}),d(n)!=="svelte-1p6axsk"&&(n.textContent=g),s=r(t),m(a.$$.fragment,t)},m(t,y){x(t,n,y),x(t,s,y),f(a,t,y),$=!0},p:I,i(t){$||(_(a.$$.fragment,t),$=!0)},o(t){b(a.$$.fragment,t),$=!1},d(t){t&&(p(n),p(s)),v(a,t)}}}function t1(w){let n,g="Iterating over discussions of a repo:",s,a,$;return a=new H({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMGdldF9yZXBvX2Rpc2N1c3Npb25zJTBBZm9yJTIwZGlzY3Vzc2lvbiUyMGluJTIwZ2V0X3JlcG9fZGlzY3Vzc2lvbnMocmVwb19pZCUzRCUyMmJlcnQtYmFzZS11bmNhc2VkJTIyKSUzQSUwQSUyMCUyMCUyMCUyMHByaW50KGRpc2N1c3Npb24ubnVtJTJDJTIwZGlzY3Vzc2lvbi50aXRsZSk=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> get_repo_discussions
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">for</span> discussion <span class="hljs-keyword">in</span> get_repo_discussions(repo_id=<span class="hljs-string">&quot;bert-base-uncased&quot;</span>):
<span class="hljs-meta">... </span>    <span class="hljs-built_in">print</span>(discussion.num, discussion.title)`,wrap:!1}}),{c(){n=l("p"),n.textContent=g,s=i(),h(a.$$.fragment)},l(t){n=c(t,"P",{"data-svelte-h":!0}),d(n)!=="svelte-121l6g4"&&(n.textContent=g),s=r(t),m(a.$$.fragment,t)},m(t,y){x(t,n,y),x(t,s,y),f(a,t,y),$=!0},p:I,i(t){$||(_(a.$$.fragment,t),$=!0)},o(t){b(a.$$.fragment,t),$=!1},d(t){t&&(p(n),p(s)),v(a,t)}}}function n1(w){let n,g;return n=new H({props:{code:"JTVCJTIwJTIwOTYlNUQlMjAlMjAuJTBBJUUyJTk0JTk0JUUyJTk0JTgwJUUyJTk0JTgwJTIwJTVCJTIwMTYwJTVEJTIwJTIwbW9kZWxzLS1qdWxpZW4tYy0tRXNwZXJCRVJUby1zbWFsbCUwQSUyMCUyMCUyMCUyMCVFMiU5NCU5QyVFMiU5NCU4MCVFMiU5NCU4MCUyMCU1QiUyMDE2MCU1RCUyMCUyMGJsb2JzJTBBJTIwJTIwJTIwJTIwJUUyJTk0JTgyJTIwJTIwJTIwJUUyJTk0JTlDJUUyJTk0JTgwJUUyJTk0JTgwJTIwJTVCMzIxTSU1RCUyMCUyMDQwMzQ1MGUyMzRkNjU5NDNhN2RjZjdlMDVhNzcxY2UzYzkyZmFhODRkZDA3ZGI0YWMyMGY1OTIwMzdhMWU0YmQlMEElMjAlMjAlMjAlMjAlRTIlOTQlODIlMjAlMjAlMjAlRTIlOTQlOUMlRTIlOTQlODAlRTIlOTQlODAlMjAlNUIlMjAzOTglNUQlMjAlMjA3Y2IxOGRjOWJhZmJmY2Y3NDYyOWE0Yjc2MGFmMWIxNjA5NTdhODNlJTBBJTIwJTIwJTIwJTIwJUUyJTk0JTgyJTIwJTIwJTIwJUUyJTk0JTk0JUUyJTk0JTgwJUUyJTk0JTgwJTIwJTVCMS40SyU1RCUyMCUyMGQ3ZWRmNmJkMmE2ODFmYjAxNzVmNzczNTI5OTgzMWVlMWIyMmI4MTIlMEElMjAlMjAlMjAlMjAlRTIlOTQlOUMlRTIlOTQlODAlRTIlOTQlODAlMjAlNUIlMjAlMjA5NiU1RCUyMCUyMHJlZnMlMEElMjAlMjAlMjAlMjAlRTIlOTQlODIlMjAlMjAlMjAlRTIlOTQlOTQlRTIlOTQlODAlRTIlOTQlODAlMjAlNUIlMjAlMjA0MCU1RCUyMCUyMG1haW4lMEElMjAlMjAlMjAlMjAlRTIlOTQlOTQlRTIlOTQlODAlRTIlOTQlODAlMjAlNUIlMjAxMjglNUQlMjAlMjBzbmFwc2hvdHMlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlRTIlOTQlOUMlRTIlOTQlODAlRTIlOTQlODAlMjAlNUIlMjAxMjglNUQlMjAlMjAyNDM5ZjYwZWYzM2EwZDQ2ZDg1ZGE1MDAxZDUyYWVkYTViMDBjZTlmJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJUUyJTk0JTgyJTIwJTIwJTIwJUUyJTk0JTlDJUUyJTk0JTgwJUUyJTk0JTgwJTIwJTVCJTIwJTIwNTIlNUQlMjAlMjBSRUFETUUubWQlMjAtJTNFJTIwLi4lMkYuLiUyRmJsb2JzJTJGZDdlZGY2YmQyYTY4MWZiMDE3NWY3NzM1Mjk5ODMxZWUxYjIyYjgxMiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCVFMiU5NCU4MiUyMCUyMCUyMCVFMiU5NCU5NCVFMiU5NCU4MCVFMiU5NCU4MCUyMCU1QiUyMCUyMDc2JTVEJTIwJTIwcHl0b3JjaF9tb2RlbC5iaW4lMjAtJTNFJTIwLi4lMkYuLiUyRmJsb2JzJTJGNDAzNDUwZTIzNGQ2NTk0M2E3ZGNmN2UwNWE3NzFjZTNjOTJmYWE4NGRkMDdkYjRhYzIwZjU5MjAzN2ExZTRiZCUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCVFMiU5NCU5NCVFMiU5NCU4MCVFMiU5NCU4MCUyMCU1QiUyMDEyOCU1RCUyMCUyMGJiYzc3YzgxMzJhZjFjYzVjZjY3OGRhM2YxZGRmMmRlNDM2MDZkNDglMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlRTIlOTQlOUMlRTIlOTQlODAlRTIlOTQlODAlMjAlNUIlMjAlMjA1MiU1RCUyMCUyMFJFQURNRS5tZCUyMC0lM0UlMjAuLiUyRi4uJTJGYmxvYnMlMkY3Y2IxOGRjOWJhZmJmY2Y3NDYyOWE0Yjc2MGFmMWIxNjA5NTdhODNlJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJUUyJTk0JTk0JUUyJTk0JTgwJUUyJTk0JTgwJTIwJTVCJTIwJTIwNzYlNUQlMjAlMjBweXRvcmNoX21vZGVsLmJpbiUyMC0lM0UlMjAuLiUyRi4uJTJGYmxvYnMlMkY0MDM0NTBlMjM0ZDY1OTQzYTdkY2Y3ZTA1YTc3MWNlM2M5MmZhYTg0ZGQwN2RiNGFjMjBmNTkyMDM3YTFlNGJk",highlighted:`<span class="hljs-selector-attr">[  96]</span>  .
└── <span class="hljs-selector-attr">[ 160]</span>  models<span class="hljs-attr">--julien-c--EsperBERTo-small</span>
    ├── <span class="hljs-selector-attr">[ 160]</span>  blobs
    │   ├── <span class="hljs-selector-attr">[321M]</span>  <span class="hljs-number">403450</span>e234d65943a7dcf7e05a771ce3c92faa84dd07db4ac20f592037a1e4bd
    │   ├── <span class="hljs-selector-attr">[ 398]</span>  <span class="hljs-number">7</span>cb18dc9bafbfcf74629a4b760af1b160957a83e
    │   └── <span class="hljs-selector-attr">[1.4K]</span>  d7edf6bd2a681fb0175f7735299831ee1b22b812
    ├── <span class="hljs-selector-attr">[  96]</span>  refs
    │   └── <span class="hljs-selector-attr">[  40]</span>  <span class="hljs-selector-tag">main</span>
    └── <span class="hljs-selector-attr">[ 128]</span>  snapshots
        ├── <span class="hljs-selector-attr">[ 128]</span>  <span class="hljs-number">2439</span>f60ef33a0d46d85da5001d52aeda5b00ce9f
        │   ├── <span class="hljs-selector-attr">[  52]</span>  README<span class="hljs-selector-class">.md</span> -&gt; ../../blobs/d7edf6bd2a681fb0175f7735299831ee1b22b812
        │   └── <span class="hljs-selector-attr">[  76]</span>  pytorch_model<span class="hljs-selector-class">.bin</span> -&gt; ../../blobs/<span class="hljs-number">403450</span>e234d65943a7dcf7e05a771ce3c92faa84dd07db4ac20f592037a1e4bd
        └── <span class="hljs-selector-attr">[ 128]</span>  bbc77c8132af1cc5cf678da3f1ddf2de43606d48
            ├── <span class="hljs-selector-attr">[  52]</span>  README<span class="hljs-selector-class">.md</span> -&gt; ../../blobs/<span class="hljs-number">7</span>cb18dc9bafbfcf74629a4b760af1b160957a83e
            └── <span class="hljs-selector-attr">[  76]</span>  pytorch_model<span class="hljs-selector-class">.bin</span> -&gt; ../../blobs/<span class="hljs-number">403450</span>e234d65943a7dcf7e05a771ce3c92faa84dd07db4ac20f592037a1e4bd`,wrap:!1}}),{c(){h(n.$$.fragment)},l(s){m(n.$$.fragment,s)},m(s,a){f(n,s,a),g=!0},p:I,i(s){g||(_(n.$$.fragment,s),g=!0)},o(s){b(n.$$.fragment,s),g=!1},d(s){v(n,s)}}}function o1(w){let n,g="Raises the following errors:",s,a,$=`<li><a href="https://docs.python.org/3/library/exceptions.html#EnvironmentError" rel="nofollow"><code>EnvironmentError</code></a>
if <code>token=True</code> and the token cannot be found.</li> <li><a href="https://docs.python.org/3/library/exceptions.html#OSError" rel="nofollow"><code>OSError</code></a>
if ETag cannot be determined.</li> <li><a href="https://docs.python.org/3/library/exceptions.html#ValueError" rel="nofollow"><code>ValueError</code></a>
if some parameter value is invalid</li> <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,
or because it is set to <code>private</code> and you do not have access.</li> <li><a href="/docs/huggingface_hub/main/en/package_reference/utilities#huggingface_hub.utils.RevisionNotFoundError">RevisionNotFoundError</a>
If the revision to download from cannot be found.</li> <li><a href="/docs/huggingface_hub/main/en/package_reference/utilities#huggingface_hub.utils.EntryNotFoundError">EntryNotFoundError</a>
If the file to download cannot be found.</li> <li><a href="/docs/huggingface_hub/main/en/package_reference/utilities#huggingface_hub.utils.LocalEntryNotFoundError">LocalEntryNotFoundError</a>
If network is disabled or unavailable and file is not found in cache.</li>`;return{c(){n=l("p"),n.textContent=g,s=i(),a=l("ul"),a.innerHTML=$},l(t){n=c(t,"P",{"data-svelte-h":!0}),d(n)!=="svelte-182te9i"&&(n.textContent=g),s=r(t),a=c(t,"UL",{"data-svelte-h":!0}),d(a)!=="svelte-1d66y2i"&&(a.innerHTML=$)},m(t,y){x(t,n,y),x(t,s,y),x(t,a,y)},p:I,d(t){t&&(p(n),p(s),p(a))}}}function a1(w){let n;return{c(){n=$2("Hidden comments' content cannot be retrieved anymore. Hiding a comment is irreversible.")},l(g){n=y2(g,"Hidden comments' content cannot be retrieved anymore. Hiding a comment is irreversible.")},m(g,s){x(g,n,s)},d(g){g&&p(n)}}}function s1(w){let n,g="Raises the following errors:",s,a,$=`<li><a href="https://requests.readthedocs.io/en/latest/api/#requests.HTTPError" rel="nofollow"><code>HTTPError</code></a>
if the HuggingFace API returned an error</li> <li><a href="https://docs.python.org/3/library/exceptions.html#ValueError" rel="nofollow"><code>ValueError</code></a>
if some parameter value is invalid</li> <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,
or because it is set to <code>private</code> and you do not have access.</li>`;return{c(){n=l("p"),n.textContent=g,s=i(),a=l("ul"),a.innerHTML=$},l(t){n=c(t,"P",{"data-svelte-h":!0}),d(n)!=="svelte-182te9i"&&(n.textContent=g),s=r(t),a=c(t,"UL",{"data-svelte-h":!0}),d(a)!=="svelte-12f410c"&&(a.innerHTML=$)},m(t,y){x(t,n,y),x(t,s,y),x(t,a,y)},p:I,d(t){t&&(p(n),p(s),p(a))}}}function i1(w){let n,g="Example:",s,a,$;return a=new H({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMGxpa2UlMkMlMjBsaXN0X2xpa2VkX3JlcG9zJTJDJTIwdW5saWtlJTBBbGlrZSglMjJncHQyJTIyKSUwQSUyMmdwdDIlMjIlMjBpbiUyMGxpc3RfbGlrZWRfcmVwb3MoKS5tb2RlbHMlMEF1bmxpa2UoJTIyZ3B0MiUyMiklMEElMjJncHQyJTIyJTIwaW4lMjBsaXN0X2xpa2VkX3JlcG9zKCkubW9kZWxz",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> like, list_liked_repos, unlike
<span class="hljs-meta">&gt;&gt;&gt; </span>like(<span class="hljs-string">&quot;gpt2&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-string">&quot;gpt2&quot;</span> <span class="hljs-keyword">in</span> list_liked_repos().models
<span class="hljs-literal">True</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>unlike(<span class="hljs-string">&quot;gpt2&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-string">&quot;gpt2&quot;</span> <span class="hljs-keyword">in</span> list_liked_repos().models
<span class="hljs-literal">False</span>`,wrap:!1}}),{c(){n=l("p"),n.textContent=g,s=i(),h(a.$$.fragment)},l(t){n=c(t,"P",{"data-svelte-h":!0}),d(n)!=="svelte-11lpom8"&&(n.textContent=g),s=r(t),m(a.$$.fragment,t)},m(t,y){x(t,n,y),x(t,s,y),f(a,t,y),$=!0},p:I,i(t){$||(_(a.$$.fragment,t),$=!0)},o(t){b(a.$$.fragment,t),$=!1},d(t){t&&(p(n),p(s)),v(a,t)}}}function r1(w){let n,g="Example usage with the <code>filter</code> argument:",s,a,$;return a=new H({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMEhmQXBpJTBBJTBBYXBpJTIwJTNEJTIwSGZBcGkoKSUwQSUwQSUyMyUyMExpc3QlMjBhbGwlMjBkYXRhc2V0cyUwQWFwaS5saXN0X2RhdGFzZXRzKCklMEElMEElMEElMjMlMjBMaXN0JTIwb25seSUyMHRoZSUyMHRleHQlMjBjbGFzc2lmaWNhdGlvbiUyMGRhdGFzZXRzJTBBYXBpLmxpc3RfZGF0YXNldHMoZmlsdGVyJTNEJTIydGFza19jYXRlZ29yaWVzJTNBdGV4dC1jbGFzc2lmaWNhdGlvbiUyMiklMEElMjMlMjBVc2luZyUyMHRoZSUyMCU2MERhdGFzZXRGaWx0ZXIlNjAlMEFmaWx0JTIwJTNEJTIwRGF0YXNldEZpbHRlcih0YXNrX2NhdGVnb3JpZXMlM0QlMjJ0ZXh0LWNsYXNzaWZpY2F0aW9uJTIyKSUwQSUwQSUwQSUyMyUyMExpc3QlMjBvbmx5JTIwdGhlJTIwZGF0YXNldHMlMjBpbiUyMHJ1c3NpYW4lMjBmb3IlMjBsYW5ndWFnZSUyMG1vZGVsaW5nJTBBYXBpLmxpc3RfZGF0YXNldHMoJTBBJTIwJTIwJTIwJTIwZmlsdGVyJTNEKCUyMmxhbmd1YWdlJTNBcnUlMjIlMkMlMjAlMjJ0YXNrX2lkcyUzQWxhbmd1YWdlLW1vZGVsaW5nJTIyKSUwQSklMEElMjMlMjBVc2luZyUyMHRoZSUyMCU2MERhdGFzZXRGaWx0ZXIlNjAlMEFmaWx0JTIwJTNEJTIwRGF0YXNldEZpbHRlcihsYW5ndWFnZSUzRCUyMnJ1JTIyJTJDJTIwdGFza19pZHMlM0QlMjJsYW5ndWFnZS1tb2RlbGluZyUyMiklMEElMEFhcGkubGlzdF9kYXRhc2V0cyhmaWx0ZXIlM0RmaWx0KQ==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> HfApi

<span class="hljs-meta">&gt;&gt;&gt; </span>api = HfApi()

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># List all datasets</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>api.list_datasets()


<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># List only the text classification datasets</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>api.list_datasets(<span class="hljs-built_in">filter</span>=<span class="hljs-string">&quot;task_categories:text-classification&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># Using the \`DatasetFilter\`</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>filt = DatasetFilter(task_categories=<span class="hljs-string">&quot;text-classification&quot;</span>)


<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># List only the datasets in russian for language modeling</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>api.list_datasets(
<span class="hljs-meta">... </span>    <span class="hljs-built_in">filter</span>=(<span class="hljs-string">&quot;language:ru&quot;</span>, <span class="hljs-string">&quot;task_ids:language-modeling&quot;</span>)
<span class="hljs-meta">... </span>)
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># Using the \`DatasetFilter\`</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>filt = DatasetFilter(language=<span class="hljs-string">&quot;ru&quot;</span>, task_ids=<span class="hljs-string">&quot;language-modeling&quot;</span>)

<span class="hljs-meta">&gt;&gt;&gt; </span>api.list_datasets(<span class="hljs-built_in">filter</span>=filt)`,wrap:!1}}),{c(){n=l("p"),n.innerHTML=g,s=i(),h(a.$$.fragment)},l(t){n=c(t,"P",{"data-svelte-h":!0}),d(n)!=="svelte-1lrmw6w"&&(n.innerHTML=g),s=r(t),m(a.$$.fragment,t)},m(t,y){x(t,n,y),x(t,s,y),f(a,t,y),$=!0},p:I,i(t){$||(_(a.$$.fragment,t),$=!0)},o(t){b(a.$$.fragment,t),$=!1},d(t){t&&(p(n),p(s)),v(a,t)}}}function l1(w){let n,g="Example usage with the <code>search</code> argument:",s,a,$;return a=new H({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMEhmQXBpJTBBJTBBYXBpJTIwJTNEJTIwSGZBcGkoKSUwQSUwQSUyMyUyMExpc3QlMjBhbGwlMjBkYXRhc2V0cyUyMHdpdGglMjAlMjJ0ZXh0JTIyJTIwaW4lMjB0aGVpciUyMG5hbWUlMEFhcGkubGlzdF9kYXRhc2V0cyhzZWFyY2glM0QlMjJ0ZXh0JTIyKSUwQSUwQSUyMyUyMExpc3QlMjBhbGwlMjBkYXRhc2V0cyUyMHdpdGglMjAlMjJ0ZXh0JTIyJTIwaW4lMjB0aGVpciUyMG5hbWUlMjBtYWRlJTIwYnklMjBnb29nbGUlMEFhcGkubGlzdF9kYXRhc2V0cyhzZWFyY2glM0QlMjJ0ZXh0JTIyJTJDJTIwYXV0aG9yJTNEJTIyZ29vZ2xlJTIyKQ==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> HfApi

<span class="hljs-meta">&gt;&gt;&gt; </span>api = HfApi()

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># List all datasets with &quot;text&quot; in their name</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>api.list_datasets(search=<span class="hljs-string">&quot;text&quot;</span>)

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># List all datasets with &quot;text&quot; in their name made by google</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>api.list_datasets(search=<span class="hljs-string">&quot;text&quot;</span>, author=<span class="hljs-string">&quot;google&quot;</span>)`,wrap:!1}}),{c(){n=l("p"),n.innerHTML=g,s=i(),h(a.$$.fragment)},l(t){n=c(t,"P",{"data-svelte-h":!0}),d(n)!=="svelte-1oyacuq"&&(n.innerHTML=g),s=r(t),m(a.$$.fragment,t)},m(t,y){x(t,n,y),x(t,s,y),f(a,t,y),$=!0},p:I,i(t){$||(_(a.$$.fragment,t),$=!0)},o(t){b(a.$$.fragment,t),$=!1},d(t){t&&(p(n),p(s)),v(a,t)}}}function c1(w){let n,g;return n=new H({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMGxpc3RfZmlsZXNfaW5mbyUwQWZpbGVzX2luZm8lMjAlM0QlMjBsaXN0X2ZpbGVzX2luZm8oJTIybHlzYW5kcmUlMkZhcnhpdi1ubHAlMjIlMkMlMjAlNUIlMjJSRUFETUUubWQlMjIlMkMlMjAlMjJjb25maWcuanNvbiUyMiU1RCklMEFmaWxlc19pbmZvJTBBbGlzdChmaWxlc19pbmZvKQ==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> list_files_info
<span class="hljs-meta">&gt;&gt;&gt; </span>files_info = list_files_info(<span class="hljs-string">&quot;lysandre/arxiv-nlp&quot;</span>, [<span class="hljs-string">&quot;README.md&quot;</span>, <span class="hljs-string">&quot;config.json&quot;</span>])
<span class="hljs-meta">&gt;&gt;&gt; </span>files_info
&lt;generator <span class="hljs-built_in">object</span> HfApi.list_files_info at <span class="hljs-number">0x7f93b848e730</span>&gt;
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-built_in">list</span>(files_info)
[
    RepoFile(path=<span class="hljs-string">&#x27;README.md&#x27;</span>, size=<span class="hljs-number">391</span>, blob_id=<span class="hljs-string">&#x27;43bd404b159de6fba7c2f4d3264347668d43af25&#x27;</span>, lfs=<span class="hljs-literal">None</span>, last_commit=<span class="hljs-literal">None</span>, security=<span class="hljs-literal">None</span>),
    RepoFile(path=<span class="hljs-string">&#x27;config.json&#x27;</span>, size=<span class="hljs-number">554</span>, blob_id=<span class="hljs-string">&#x27;2f9618c3a19b9a61add74f70bfb121335aeef666&#x27;</span>, lfs=<span class="hljs-literal">None</span>, last_commit=<span class="hljs-literal">None</span>, security=<span class="hljs-literal">None</span>)
]`,wrap:!1}}),{c(){h(n.$$.fragment)},l(s){m(n.$$.fragment,s)},m(s,a){f(n,s,a),g=!0},p:I,i(s){g||(_(n.$$.fragment,s),g=!0)},o(s){b(n.$$.fragment,s),g=!1},d(s){v(n,s)}}}function p1(w){let n,g;return n=new H({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMGxpc3RfZmlsZXNfaW5mbyUwQWZpbGVzX2luZm8lMjAlM0QlMjBsaXN0X2ZpbGVzX2luZm8oJTIycHJvbXB0aGVybyUyRm9wZW5qb3VybmV5LXY0JTIyJTJDJTIwZXhwYW5kJTNEVHJ1ZSklMEFsaXN0KGZpbGVzX2luZm8p",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> list_files_info
<span class="hljs-meta">&gt;&gt;&gt; </span>files_info = list_files_info(<span class="hljs-string">&quot;prompthero/openjourney-v4&quot;</span>, expand=<span class="hljs-literal">True</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-built_in">list</span>(files_info)
[
    RepoFile(
        path=<span class="hljs-string">&#x27;safety_checker/pytorch_model.bin&#x27;</span>,
        size=<span class="hljs-number">1216064769</span>,
        blob_id=<span class="hljs-string">&#x27;c8835557a0d3af583cb06c7c154b7e54a069c41d&#x27;</span>,
        lfs={
            <span class="hljs-string">&#x27;size&#x27;</span>: <span class="hljs-number">1216064769</span>,
            <span class="hljs-string">&#x27;sha256&#x27;</span>: <span class="hljs-string">&#x27;16d28f2b37109f222cdc33620fdd262102ac32112be0352a7f77e9614b35a394&#x27;</span>,
            <span class="hljs-string">&#x27;pointer_size&#x27;</span>: <span class="hljs-number">135</span>
        },
        last_commit={
            <span class="hljs-string">&#x27;oid&#x27;</span>: <span class="hljs-string">&#x27;47b62b20b20e06b9de610e840282b7e6c3d51190&#x27;</span>,
            <span class="hljs-string">&#x27;title&#x27;</span>: <span class="hljs-string">&#x27;Upload diffusers weights (#48)&#x27;</span>,
            <span class="hljs-string">&#x27;date&#x27;</span>: datetime.datetime(<span class="hljs-number">2023</span>, <span class="hljs-number">3</span>, <span class="hljs-number">21</span>, <span class="hljs-number">10</span>, <span class="hljs-number">5</span>, <span class="hljs-number">27</span>, tzinfo=datetime.timezone.utc)
        },
        security={
            <span class="hljs-string">&#x27;safe&#x27;</span>: <span class="hljs-literal">True</span>,
            <span class="hljs-string">&#x27;av_scan&#x27;</span>: {
                <span class="hljs-string">&#x27;virusFound&#x27;</span>: <span class="hljs-literal">False</span>,
                <span class="hljs-string">&#x27;virusNames&#x27;</span>: <span class="hljs-literal">None</span>
            },
            <span class="hljs-string">&#x27;pickle_import_scan&#x27;</span>: {
                <span class="hljs-string">&#x27;highestSafetyLevel&#x27;</span>: <span class="hljs-string">&#x27;innocuous&#x27;</span>,
                <span class="hljs-string">&#x27;imports&#x27;</span>: [
                    {<span class="hljs-string">&#x27;module&#x27;</span>: <span class="hljs-string">&#x27;torch&#x27;</span>, <span class="hljs-string">&#x27;name&#x27;</span>: <span class="hljs-string">&#x27;FloatStorage&#x27;</span>, <span class="hljs-string">&#x27;safety&#x27;</span>: <span class="hljs-string">&#x27;innocuous&#x27;</span>},
                    {<span class="hljs-string">&#x27;module&#x27;</span>: <span class="hljs-string">&#x27;collections&#x27;</span>, <span class="hljs-string">&#x27;name&#x27;</span>: <span class="hljs-string">&#x27;OrderedDict&#x27;</span>, <span class="hljs-string">&#x27;safety&#x27;</span>: <span class="hljs-string">&#x27;innocuous&#x27;</span>},
                    {<span class="hljs-string">&#x27;module&#x27;</span>: <span class="hljs-string">&#x27;torch&#x27;</span>, <span class="hljs-string">&#x27;name&#x27;</span>: <span class="hljs-string">&#x27;LongStorage&#x27;</span>, <span class="hljs-string">&#x27;safety&#x27;</span>: <span class="hljs-string">&#x27;innocuous&#x27;</span>},
                    {<span class="hljs-string">&#x27;module&#x27;</span>: <span class="hljs-string">&#x27;torch._utils&#x27;</span>, <span class="hljs-string">&#x27;name&#x27;</span>: <span class="hljs-string">&#x27;_rebuild_tensor_v2&#x27;</span>, <span class="hljs-string">&#x27;safety&#x27;</span>: <span class="hljs-string">&#x27;innocuous&#x27;</span>}
                ]
            }
        }
    ),
    RepoFile(
        path=<span class="hljs-string">&#x27;scheduler/scheduler_config.json&#x27;</span>,
        size=<span class="hljs-number">465</span>,
        blob_id=<span class="hljs-string">&#x27;70d55e3e9679f41cbc66222831b38d5abce683dd&#x27;</span>,
        lfs=<span class="hljs-literal">None</span>,
        last_commit={
            <span class="hljs-string">&#x27;oid&#x27;</span>: <span class="hljs-string">&#x27;47b62b20b20e06b9de610e840282b7e6c3d51190&#x27;</span>,
            <span class="hljs-string">&#x27;title&#x27;</span>: <span class="hljs-string">&#x27;Upload diffusers weights (#48)&#x27;</span>,
            <span class="hljs-string">&#x27;date&#x27;</span>: datetime.datetime(<span class="hljs-number">2023</span>, <span class="hljs-number">3</span>, <span class="hljs-number">21</span>, <span class="hljs-number">10</span>, <span class="hljs-number">5</span>, <span class="hljs-number">27</span>, tzinfo=datetime.timezone.utc)},
            security={
                <span class="hljs-string">&#x27;safe&#x27;</span>: <span class="hljs-literal">True</span>,
                <span class="hljs-string">&#x27;av_scan&#x27;</span>: {
                    <span class="hljs-string">&#x27;virusFound&#x27;</span>: <span class="hljs-literal">False</span>,
                    <span class="hljs-string">&#x27;virusNames&#x27;</span>: <span class="hljs-literal">None</span>
                },
                <span class="hljs-string">&#x27;pickle_import_scan&#x27;</span>: <span class="hljs-literal">None</span>
            }
    ),
    ...
]`,wrap:!1}}),{c(){h(n.$$.fragment)},l(s){m(n.$$.fragment,s)},m(s,a){f(n,s,a),g=!0},p:I,i(s){g||(_(n.$$.fragment,s),g=!0)},o(s){b(n.$$.fragment,s),g=!1},d(s){v(n,s)}}}function d1(w){let n,g;return n=new H({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMGxpc3RfZmlsZXNfaW5mbyUwQSU1QmluZm8ucGF0aCUyMGZvciUyMGluZm8lMjBpbiUyMGxpc3RfZmlsZXNfaW5mbyglMjJzdGFiaWxpdHlhaSUyRnN0YWJsZS1kaWZmdXNpb24tMiUyMiUyQyUyMCUyMnZhZSUyMiklMjBpZiUyMGluZm8ubGZzJTIwaXMlMjBub3QlMjBOb25lJTVE",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> list_files_info
<span class="hljs-meta">&gt;&gt;&gt; </span>[info.path <span class="hljs-keyword">for</span> info <span class="hljs-keyword">in</span> list_files_info(<span class="hljs-string">&quot;stabilityai/stable-diffusion-2&quot;</span>, <span class="hljs-string">&quot;vae&quot;</span>) <span class="hljs-keyword">if</span> info.lfs <span class="hljs-keyword">is</span> <span class="hljs-keyword">not</span> <span class="hljs-literal">None</span>]
[<span class="hljs-string">&#x27;vae/diffusion_pytorch_model.bin&#x27;</span>, <span class="hljs-string">&#x27;vae/diffusion_pytorch_model.safetensors&#x27;</span>]`,wrap:!1}}),{c(){h(n.$$.fragment)},l(s){m(n.$$.fragment,s)},m(s,a){f(n,s,a),g=!0},p:I,i(s){g||(_(n.$$.fragment,s),g=!0)},o(s){b(n.$$.fragment,s),g=!1},d(s){v(n,s)}}}function g1(w){let n,g;return n=new H({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMGxpc3RfZmlsZXNfaW5mbyUwQSU1QmluZm8ucGF0aCUyMGZvciUyMGluZm8lMjBpbiUyMGxpc3RfZmlsZXNfaW5mbyglMjJnbHVlJTIyJTJDJTIwcmVwb190eXBlJTNEJTIyZGF0YXNldCUyMiklNUQ=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> list_files_info
<span class="hljs-meta">&gt;&gt;&gt; </span>[info.path <span class="hljs-keyword">for</span> info <span class="hljs-keyword">in</span> list_files_info(<span class="hljs-string">&quot;glue&quot;</span>, repo_type=<span class="hljs-string">&quot;dataset&quot;</span>)]
[<span class="hljs-string">&#x27;.gitattributes&#x27;</span>, <span class="hljs-string">&#x27;README.md&#x27;</span>, <span class="hljs-string">&#x27;dataset_infos.json&#x27;</span>, <span class="hljs-string">&#x27;glue.py&#x27;</span>]`,wrap:!1}}),{c(){h(n.$$.fragment)},l(s){m(n.$$.fragment,s)},m(s,a){f(n,s,a),g=!0},p:I,i(s){g||(_(n.$$.fragment,s),g=!0)},o(s){b(n.$$.fragment,s),g=!1},d(s){v(n,s)}}}function u1(w){let n,g="Example:",s,a,$;return a=new H({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMEhmQXBpJTBBYXBpJTIwJTNEJTIwSGZBcGkoKSUwQWFwaS5saXN0X2luZmVyZW5jZV9lbmRwb2ludHMoKQ==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> HfApi
<span class="hljs-meta">&gt;&gt;&gt; </span>api = HfApi()
<span class="hljs-meta">&gt;&gt;&gt; </span>api.list_inference_endpoints()
[InferenceEndpoint(name=<span class="hljs-string">&#x27;my-endpoint&#x27;</span>, ...), ...]`,wrap:!1}}),{c(){n=l("p"),n.textContent=g,s=i(),h(a.$$.fragment)},l(t){n=c(t,"P",{"data-svelte-h":!0}),d(n)!=="svelte-11lpom8"&&(n.textContent=g),s=r(t),m(a.$$.fragment,t)},m(t,y){x(t,n,y),x(t,s,y),f(a,t,y),$=!0},p:I,i(t){$||(_(a.$$.fragment,t),$=!0)},o(t){b(a.$$.fragment,t),$=!1},d(t){t&&(p(n),p(s)),v(a,t)}}}function h1(w){let n,g="Example:",s,a,$;return a=new H({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMGxpc3RfbGlrZWRfcmVwb3MlMEElMEFsaWtlcyUyMCUzRCUyMGxpc3RfbGlrZWRfcmVwb3MoJTIyanVsaWVuLWMlMjIpJTBBJTBBbGlrZXMudXNlciUwQSUwQWxpa2VzLm1vZGVscw==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> list_liked_repos

<span class="hljs-meta">&gt;&gt;&gt; </span>likes = list_liked_repos(<span class="hljs-string">&quot;julien-c&quot;</span>)

<span class="hljs-meta">&gt;&gt;&gt; </span>likes.user
<span class="hljs-string">&quot;julien-c&quot;</span>

<span class="hljs-meta">&gt;&gt;&gt; </span>likes.models
[<span class="hljs-string">&quot;osanseviero/streamlit_1.15&quot;</span>, <span class="hljs-string">&quot;Xhaheen/ChatGPT_HF&quot;</span>, ...]`,wrap:!1}}),{c(){n=l("p"),n.textContent=g,s=i(),h(a.$$.fragment)},l(t){n=c(t,"P",{"data-svelte-h":!0}),d(n)!=="svelte-11lpom8"&&(n.textContent=g),s=r(t),m(a.$$.fragment,t)},m(t,y){x(t,n,y),x(t,s,y),f(a,t,y),$=!0},p:I,i(t){$||(_(a.$$.fragment,t),$=!0)},o(t){b(a.$$.fragment,t),$=!1},d(t){t&&(p(n),p(s)),v(a,t)}}}function m1(w){let n,g="Example usage with the <code>filter</code> argument:",s,a,$,t;return a=new H({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMEhmQXBpJTBBJTBBYXBpJTIwJTNEJTIwSGZBcGkoKSUwQSUwQSUyMyUyMExpc3QlMjBhbGwlMjBtb2RlbHMlMEFhcGkubGlzdF9tb2RlbHMoKSUwQSUwQSUyMyUyMExpc3QlMjBvbmx5JTIwdGhlJTIwdGV4dCUyMGNsYXNzaWZpY2F0aW9uJTIwbW9kZWxzJTBBYXBpLmxpc3RfbW9kZWxzKGZpbHRlciUzRCUyMnRleHQtY2xhc3NpZmljYXRpb24lMjIpJTBBJTIzJTIwVXNpbmclMjB0aGUlMjAlNjBNb2RlbEZpbHRlciU2MCUwQWZpbHQlMjAlM0QlMjBNb2RlbEZpbHRlcih0YXNrJTNEJTIydGV4dC1jbGFzc2lmaWNhdGlvbiUyMiklMEElMEElMEElMjMlMjBMaXN0JTIwb25seSUyMG1vZGVscyUyMGZyb20lMjB0aGUlMjBBbGxlbk5MUCUyMGxpYnJhcnklMEFhcGkubGlzdF9tb2RlbHMoZmlsdGVyJTNEJTIyYWxsZW5ubHAlMjIpJTBBJTBBJTBB",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> HfApi

<span class="hljs-meta">&gt;&gt;&gt; </span>api = HfApi()

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># List all models</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>api.list_models()

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># List only the text classification models</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>api.list_models(<span class="hljs-built_in">filter</span>=<span class="hljs-string">&quot;text-classification&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># Using the \`ModelFilter\`</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>filt = ModelFilter(task=<span class="hljs-string">&quot;text-classification&quot;</span>)


<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># List only models from the AllenNLP library</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>api.list_models(<span class="hljs-built_in">filter</span>=<span class="hljs-string">&quot;allennlp&quot;</span>)


Example usage <span class="hljs-keyword">with</span> the \`search\` argument:
`,wrap:!1}}),{c(){n=l("p"),n.innerHTML=g,s=i(),h(a.$$.fragment),$=i()},l(y){n=c(y,"P",{"data-svelte-h":!0}),d(n)!=="svelte-1lrmw6w"&&(n.innerHTML=g),s=r(y),m(a.$$.fragment,y),$=r(y)},m(y,Ua){x(y,n,Ua),x(y,s,Ua),f(a,y,Ua),x(y,$,Ua),t=!0},p:I,i(y){t||(_(a.$$.fragment,y),t=!0)},o(y){b(a.$$.fragment,y),t=!1},d(y){y&&(p(n),p(s),p($)),v(a,y)}}}function f1(w){let n,g="Example:",s,a,$;return a=new H({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMEhmQXBpJTBBYXBpJTIwJTNEJTIwSGZBcGkoKSUwQSUwQWluaXRpYWxfY29tbWl0JTIwJTNEJTIwYXBpLmxpc3RfcmVwb19jb21taXRzKCUyMmdwdDIlMjIpJTVCLTElNUQlMEElMEFpbml0aWFsX2NvbW1pdCUwQSUwQWFwaS5jcmVhdGVfYnJhbmNoKCUyMmdwdDIlMjIlMkMlMjAlMjJuZXdfZW1wdHlfYnJhbmNoJTIyJTJDJTIwcmV2aXNpb24lM0Rpbml0aWFsX2NvbW1pdC5jb21taXRfaWQp",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> HfApi
<span class="hljs-meta">&gt;&gt;&gt; </span>api = HfApi()

<span class="hljs-comment"># Commits are sorted by date (last commit first)</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>initial_commit = api.list_repo_commits(<span class="hljs-string">&quot;gpt2&quot;</span>)[-<span class="hljs-number">1</span>]

<span class="hljs-comment"># Initial commit is always a system commit containing the \`.gitattributes\` file.</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>initial_commit
GitCommitInfo(
    commit_id=<span class="hljs-string">&#x27;9b865efde13a30c13e0a33e536cf3e4a5a9d71d8&#x27;</span>,
    authors=[<span class="hljs-string">&#x27;system&#x27;</span>],
    created_at=datetime.datetime(<span class="hljs-number">2019</span>, <span class="hljs-number">2</span>, <span class="hljs-number">18</span>, <span class="hljs-number">10</span>, <span class="hljs-number">36</span>, <span class="hljs-number">15</span>, tzinfo=datetime.timezone.utc),
    title=<span class="hljs-string">&#x27;initial commit&#x27;</span>,
    message=<span class="hljs-string">&#x27;&#x27;</span>,
    formatted_title=<span class="hljs-literal">None</span>,
    formatted_message=<span class="hljs-literal">None</span>
)

<span class="hljs-comment"># Create an empty branch by deriving from initial commit</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>api.create_branch(<span class="hljs-string">&quot;gpt2&quot;</span>, <span class="hljs-string">&quot;new_empty_branch&quot;</span>, revision=initial_commit.commit_id)`,wrap:!1}}),{c(){n=l("p"),n.textContent=g,s=i(),h(a.$$.fragment)},l(t){n=c(t,"P",{"data-svelte-h":!0}),d(n)!=="svelte-11lpom8"&&(n.textContent=g),s=r(t),m(a.$$.fragment,t)},m(t,y){x(t,n,y),x(t,s,y),f(a,t,y),$=!0},p:I,i(t){$||(_(a.$$.fragment,t),$=!0)},o(t){b(a.$$.fragment,t),$=!1},d(t){t&&(p(n),p(s)),v(a,t)}}}function _1(w){let n,g="Example:",s,a,$;return a=new H({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMEhmQXBpJTBBYXBpJTIwJTNEJTIwSGZBcGkoKSUwQWFwaS5saXN0X3JlcG9fcmVmcyglMjJncHQyJTIyKSUwQSUwQWFwaS5saXN0X3JlcG9fcmVmcyglMjJiaWdjb2RlJTJGdGhlLXN0YWNrJTIyJTJDJTIwcmVwb190eXBlJTNEJ2RhdGFzZXQnKQ==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> HfApi
<span class="hljs-meta">&gt;&gt;&gt; </span>api = HfApi()
<span class="hljs-meta">&gt;&gt;&gt; </span>api.list_repo_refs(<span class="hljs-string">&quot;gpt2&quot;</span>)
GitRefs(branches=[GitRefInfo(name=<span class="hljs-string">&#x27;main&#x27;</span>, ref=<span class="hljs-string">&#x27;refs/heads/main&#x27;</span>, target_commit=<span class="hljs-string">&#x27;e7da7f221d5bf496a48136c0cd264e630fe9fcc8&#x27;</span>)], converts=[], tags=[])

<span class="hljs-meta">&gt;&gt;&gt; </span>api.list_repo_refs(<span class="hljs-string">&quot;bigcode/the-stack&quot;</span>, repo_type=<span class="hljs-string">&#x27;dataset&#x27;</span>)
GitRefs(
    branches=[
        GitRefInfo(name=<span class="hljs-string">&#x27;main&#x27;</span>, ref=<span class="hljs-string">&#x27;refs/heads/main&#x27;</span>, target_commit=<span class="hljs-string">&#x27;18edc1591d9ce72aa82f56c4431b3c969b210ae3&#x27;</span>),
        GitRefInfo(name=<span class="hljs-string">&#x27;v1.1.a1&#x27;</span>, ref=<span class="hljs-string">&#x27;refs/heads/v1.1.a1&#x27;</span>, target_commit=<span class="hljs-string">&#x27;f9826b862d1567f3822d3d25649b0d6d22ace714&#x27;</span>)
    ],
    converts=[],
    tags=[
        GitRefInfo(name=<span class="hljs-string">&#x27;v1.0&#x27;</span>, ref=<span class="hljs-string">&#x27;refs/tags/v1.0&#x27;</span>, target_commit=<span class="hljs-string">&#x27;c37a8cd1e382064d8aced5e05543c5f7753834da&#x27;</span>)
    ]
)`,wrap:!1}}),{c(){n=l("p"),n.textContent=g,s=i(),h(a.$$.fragment)},l(t){n=c(t,"P",{"data-svelte-h":!0}),d(n)!=="svelte-11lpom8"&&(n.textContent=g),s=r(t),m(a.$$.fragment,t)},m(t,y){x(t,n,y),x(t,s,y),f(a,t,y),$=!0},p:I,i(t){$||(_(a.$$.fragment,t),$=!0)},o(t){b(a.$$.fragment,t),$=!1},d(t){t&&(p(n),p(s)),v(a,t)}}}function b1(w){let n,g="Raises the following errors:",s,a,$=`<li><a href="https://requests.readthedocs.io/en/latest/api/#requests.HTTPError" rel="nofollow"><code>HTTPError</code></a>
if the HuggingFace API returned an error</li> <li><a href="https://docs.python.org/3/library/exceptions.html#ValueError" rel="nofollow"><code>ValueError</code></a>
if some parameter value is invalid</li> <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,
or because it is set to <code>private</code> and you do not have access.</li>`;return{c(){n=l("p"),n.textContent=g,s=i(),a=l("ul"),a.innerHTML=$},l(t){n=c(t,"P",{"data-svelte-h":!0}),d(n)!=="svelte-182te9i"&&(n.textContent=g),s=r(t),a=c(t,"UL",{"data-svelte-h":!0}),d(a)!=="svelte-12f410c"&&(a.innerHTML=$)},m(t,y){x(t,n,y),x(t,s,y),x(t,a,y)},p:I,d(t){t&&(p(n),p(s),p(a))}}}function v1(w){let n,g="Raises the following errors:",s,a,$=`<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,
or because it is set to <code>private</code> and you do not have access.</li> <li><a href="/docs/huggingface_hub/main/en/package_reference/utilities#huggingface_hub.utils.RevisionNotFoundError">RevisionNotFoundError</a>
If the revision to download from cannot be found.</li>`;return{c(){n=l("p"),n.textContent=g,s=i(),a=l("ul"),a.innerHTML=$},l(t){n=c(t,"P",{"data-svelte-h":!0}),d(n)!=="svelte-182te9i"&&(n.textContent=g),s=r(t),a=c(t,"UL",{"data-svelte-h":!0}),d(a)!=="svelte-1mt8eeu"&&(a.innerHTML=$)},m(t,y){x(t,n,y),x(t,s,y),x(t,a,y)},p:I,d(t){t&&(p(n),p(s),p(a))}}}function $1(w){let n,g="Raises the following errors:",s,a,$=`<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,
or because it is set to <code>private</code> and you do not have access.</li>`;return{c(){n=l("p"),n.textContent=g,s=i(),a=l("ul"),a.innerHTML=$},l(t){n=c(t,"P",{"data-svelte-h":!0}),d(n)!=="svelte-182te9i"&&(n.textContent=g),s=r(t),a=c(t,"UL",{"data-svelte-h":!0}),d(a)!=="svelte-ey6ivx"&&(a.innerHTML=$)},m(t,y){x(t,n,y),x(t,s,y),x(t,a,y)},p:I,d(t){t&&(p(n),p(s),p(a))}}}function y1(w){let n,g=`This is a power-user method. You shouldn’t need to call it directly to make a normal commit.
Use <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.HfApi.create_commit">create_commit()</a> directly instead.`;return{c(){n=l("p"),n.innerHTML=g},l(s){n=c(s,"P",{"data-svelte-h":!0}),d(n)!=="svelte-1p5fkuq"&&(n.innerHTML=g)},m(s,a){x(s,n,a)},p:I,d(s){s&&p(n)}}}function x1(w){let n,g=`Commit operations will be mutated during the process. In particular, the attached <code>path_or_fileobj</code> will be
removed after the upload to save memory (and replaced by an empty <code>bytes</code> object). Do not reuse the same
objects except to pass them to <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.HfApi.create_commit">create_commit()</a>. If you don’t want to remove the attached content from the
commit operation object, pass <code>free_memory=False</code>.`;return{c(){n=l("p"),n.innerHTML=g},l(s){n=c(s,"P",{"data-svelte-h":!0}),d(n)!=="svelte-3d3emz"&&(n.innerHTML=g)},m(s,a){x(s,n,a)},p:I,d(s){s&&p(n)}}}function w1(w){let n,g="Example:",s,a,$;return a=new H({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMENvbW1pdE9wZXJhdGlvbkFkZCUyQyUyMHByZXVwbG9hZF9sZnNfZmlsZXMlMkMlMjBjcmVhdGVfY29tbWl0JTJDJTIwY3JlYXRlX3JlcG8lMEElMEFyZXBvX2lkJTIwJTNEJTIwY3JlYXRlX3JlcG8oJTIydGVzdF9wcmV1cGxvYWQlMjIpLnJlcG9faWQlMEElMEFvcGVyYXRpb25zJTIwJTNEJTIwJTVCJTVEJTIwJTIzJTIwTGlzdCUyMG9mJTIwYWxsJTIwJTYwQ29tbWl0T3BlcmF0aW9uQWRkJTYwJTIwb2JqZWN0cyUyMHRoYXQlMjB3aWxsJTIwYmUlMjBnZW5lcmF0ZWQlMEFmb3IlMjBpJTIwaW4lMjByYW5nZSg1KSUzQSUwQSUyMCUyMCUyMCUyMGNvbnRlbnQlMjAlM0QlMjAuLi4lMjAlMjMlMjBnZW5lcmF0ZSUyMGJpbmFyeSUyMGNvbnRlbnQlMEElMjAlMjAlMjAlMjBhZGRpdGlvbiUyMCUzRCUyMENvbW1pdE9wZXJhdGlvbkFkZChwYXRoX2luX3JlcG8lM0RmJTIyc2hhcmRfJTdCaSU3RF9vZl81LmJpbiUyMiUyQyUyMHBhdGhfb3JfZmlsZW9iaiUzRGNvbnRlbnQpJTBBJTIwJTIwJTIwJTIwcHJldXBsb2FkX2xmc19maWxlcyhyZXBvX2lkJTJDJTIwYWRkaXRpb25zJTNEJTVCYWRkaXRpb24lNUQpJTIwJTIzJTIwdXBsb2FkJTIwJTJCJTIwZnJlZSUyMG1lbW9yeSUwQSUyMCUyMCUyMCUyMG9wZXJhdGlvbnMuYXBwZW5kKGFkZGl0aW9uKSUwQSUwQWNyZWF0ZV9jb21taXQocmVwb19pZCUyQyUyMG9wZXJhdGlvbnMlM0RvcGVyYXRpb25zJTJDJTIwY29tbWl0X21lc3NhZ2UlM0QlMjJDb21taXQlMjBhbGwlMjBzaGFyZHMlMjIp",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> CommitOperationAdd, preupload_lfs_files, create_commit, create_repo

<span class="hljs-meta">&gt;&gt;&gt; </span>repo_id = create_repo(<span class="hljs-string">&quot;test_preupload&quot;</span>).repo_id

<span class="hljs-comment"># Generate and preupload LFS files one by one</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>operations = [] <span class="hljs-comment"># List of all \`CommitOperationAdd\` objects that will be generated</span>
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">for</span> i <span class="hljs-keyword">in</span> <span class="hljs-built_in">range</span>(<span class="hljs-number">5</span>):
<span class="hljs-meta">... </span>    content = ... <span class="hljs-comment"># generate binary content</span>
<span class="hljs-meta">... </span>    addition = CommitOperationAdd(path_in_repo=<span class="hljs-string">f&quot;shard_<span class="hljs-subst">{i}</span>_of_5.bin&quot;</span>, path_or_fileobj=content)
<span class="hljs-meta">... </span>    preupload_lfs_files(repo_id, additions=[addition]) <span class="hljs-comment"># upload + free memory</span>
<span class="hljs-meta">... </span>    operations.append(addition)

<span class="hljs-comment"># Create commit</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>create_commit(repo_id, operations=operations, commit_message=<span class="hljs-string">&quot;Commit all shards&quot;</span>)`,wrap:!1}}),{c(){n=l("p"),n.textContent=g,s=i(),h(a.$$.fragment)},l(t){n=c(t,"P",{"data-svelte-h":!0}),d(n)!=="svelte-11lpom8"&&(n.textContent=g),s=r(t),m(a.$$.fragment,t)},m(t,y){x(t,n,y),x(t,s,y),f(a,t,y),$=!0},p:I,i(t){$||(_(a.$$.fragment,t),$=!0)},o(t){b(a.$$.fragment,t),$=!1},d(t){t&&(p(n),p(s)),v(a,t)}}}function M1(w){let n,g="Examples:",s,a,$;return a=new H({props:{code:"bmV3X3RpdGxlJTIwJTNEJTIwJTIyTmV3JTIwdGl0bGUlMkMlMjBmaXhpbmclMjBhJTIwdHlwbyUyMiUwQUhmQXBpKCkucmVuYW1lX2Rpc2N1c3Npb24oJTBBJTIwJTIwJTIwJTIwcmVwb19pZCUzRCUyMnVzZXJuYW1lJTJGcmVwb19uYW1lJTIyJTJDJTBBJTIwJTIwJTIwJTIwZGlzY3Vzc2lvbl9udW0lM0QzNCUwQSUyMCUyMCUyMCUyMG5ld190aXRsZSUzRG5ld190aXRsZSUwQSklMEE=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span>new_title = <span class="hljs-string">&quot;New title, fixing a typo&quot;</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>HfApi().rename_discussion(
<span class="hljs-meta">... </span>    repo_id=<span class="hljs-string">&quot;username/repo_name&quot;</span>,
<span class="hljs-meta">... </span>    discussion_num=<span class="hljs-number">34</span>
<span class="hljs-meta">... </span>    new_title=new_title
<span class="hljs-meta">... </span>)
<span class="hljs-comment"># DiscussionTitleChange(id=&#x27;deadbeef0000000&#x27;, type=&#x27;title-change&#x27;, ...)</span>
`,wrap:!1}}),{c(){n=l("p"),n.textContent=g,s=i(),h(a.$$.fragment)},l(t){n=c(t,"P",{"data-svelte-h":!0}),d(n)!=="svelte-kvfsh7"&&(n.textContent=g),s=r(t),m(a.$$.fragment,t)},m(t,y){x(t,n,y),x(t,s,y),f(a,t,y),$=!0},p:I,i(t){$||(_(a.$$.fragment,t),$=!0)},o(t){b(a.$$.fragment,t),$=!1},d(t){t&&(p(n),p(s)),v(a,t)}}}function k1(w){let n,g="Raises the following errors:",s,a,$=`<li><a href="https://requests.readthedocs.io/en/latest/api/#requests.HTTPError" rel="nofollow"><code>HTTPError</code></a>
if the HuggingFace API returned an error</li> <li><a href="https://docs.python.org/3/library/exceptions.html#ValueError" rel="nofollow"><code>ValueError</code></a>
if some parameter value is invalid</li> <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,
or because it is set to <code>private</code> and you do not have access.</li>`;return{c(){n=l("p"),n.textContent=g,s=i(),a=l("ul"),a.innerHTML=$},l(t){n=c(t,"P",{"data-svelte-h":!0}),d(n)!=="svelte-182te9i"&&(n.textContent=g),s=r(t),a=c(t,"UL",{"data-svelte-h":!0}),d(a)!=="svelte-12f410c"&&(a.innerHTML=$)},m(t,y){x(t,n,y),x(t,s,y),x(t,a,y)},p:I,d(t){t&&(p(n),p(s),p(a))}}}function T1(w){let n,g="Examples:",s,a,$;return a=new H({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMHJlcG9fZXhpc3RzJTBBcmVwb19leGlzdHMoJTIyaHVnZ2luZ2ZhY2UlMkZ0cmFuc2Zvcm1lcnMlMjIpJTBBcmVwb19leGlzdHMoJTIyaHVnZ2luZ2ZhY2UlMkZub3QtYS1yZXBvJTIyKQ==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> repo_exists
<span class="hljs-meta">&gt;&gt;&gt; </span>repo_exists(<span class="hljs-string">&quot;huggingface/transformers&quot;</span>)
<span class="hljs-literal">True</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>repo_exists(<span class="hljs-string">&quot;huggingface/not-a-repo&quot;</span>)
<span class="hljs-literal">False</span>`,wrap:!1}}),{c(){n=l("p"),n.textContent=g,s=i(),h(a.$$.fragment)},l(t){n=c(t,"P",{"data-svelte-h":!0}),d(n)!=="svelte-kvfsh7"&&(n.textContent=g),s=r(t),m(a.$$.fragment,t)},m(t,y){x(t,n,y),x(t,s,y),f(a,t,y),$=!0},p:I,i(t){$||(_(a.$$.fragment,t),$=!0)},o(t){b(a.$$.fragment,t),$=!1},d(t){t&&(p(n),p(s)),v(a,t)}}}function j1(w){let n,g;return n=new U({props:{anchor:"huggingface_hub.HfApi.repo_exists.example",$$slots:{default:[T1]},$$scope:{ctx:w}}}),{c(){h(n.$$.fragment)},l(s){m(n.$$.fragment,s)},m(s,a){f(n,s,a),g=!0},p(s,a){const $={};a&2&&($.$$scope={dirty:a,ctx:s}),n.$set($)},i(s){g||(_(n.$$.fragment,s),g=!0)},o(s){b(n.$$.fragment,s),g=!1},d(s){v(n,s)}}}function C1(w){let n,g="Raises the following errors:",s,a,$=`<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,
or because it is set to <code>private</code> and you do not have access.</li> <li><a href="/docs/huggingface_hub/main/en/package_reference/utilities#huggingface_hub.utils.RevisionNotFoundError">RevisionNotFoundError</a>
If the revision to download from cannot be found.</li>`;return{c(){n=l("p"),n.textContent=g,s=i(),a=l("ul"),a.innerHTML=$},l(t){n=c(t,"P",{"data-svelte-h":!0}),d(n)!=="svelte-182te9i"&&(n.textContent=g),s=r(t),a=c(t,"UL",{"data-svelte-h":!0}),d(a)!=="svelte-1mt8eeu"&&(a.innerHTML=$)},m(t,y){x(t,n,y),x(t,s,y),x(t,a,y)},p:I,d(t){t&&(p(n),p(s),p(a))}}}function I1(w){let n,g='It is also possible to request hardware directly when creating the Space repo! See <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.HfApi.create_repo">create_repo()</a> for details.';return{c(){n=l("p"),n.innerHTML=g},l(s){n=c(s,"P",{"data-svelte-h":!0}),d(n)!=="svelte-s3mdaf"&&(n.innerHTML=g)},m(s,a){x(s,n,a)},p:I,d(s){s&&p(n)}}}function H1(w){let n,g=`It is not possible to decrease persistent storage after its granted. To do so, you must delete it
via <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.HfApi.delete_space_storage">delete_space_storage()</a>.`;return{c(){n=l("p"),n.innerHTML=g},l(s){n=c(s,"P",{"data-svelte-h":!0}),d(n)!=="svelte-n1vlsa"&&(n.innerHTML=g)},m(s,a){x(s,n,a)},p:I,d(s){s&&p(n)}}}function U1(w){let n,g="Example:",s,a,$;return a=new H({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMEhmQXBpJTBBYXBpJTIwJTNEJTIwSGZBcGkoKSUwQWZ1dHVyZSUyMCUzRCUyMGFwaS5ydW5fYXNfZnV0dXJlKGFwaS53aG9hbWkpJTIwJTIzJTIwaW5zdGFudCUwQWZ1dHVyZS5kb25lKCklMEFmdXR1cmUucmVzdWx0KCklMjAlMjMlMjB3YWl0JTIwdW50aWwlMjBjb21wbGV0ZSUyMGFuZCUyMHJldHVybiUyMHJlc3VsdCUwQWZ1dHVyZS5kb25lKCk=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> HfApi
<span class="hljs-meta">&gt;&gt;&gt; </span>api = HfApi()
<span class="hljs-meta">&gt;&gt;&gt; </span>future = api.run_as_future(api.whoami) <span class="hljs-comment"># instant</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>future.done()
<span class="hljs-literal">False</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>future.result() <span class="hljs-comment"># wait until complete and return result</span>
(...)
<span class="hljs-meta">&gt;&gt;&gt; </span>future.done()
<span class="hljs-literal">True</span>`,wrap:!1}}),{c(){n=l("p"),n.textContent=g,s=i(),h(a.$$.fragment)},l(t){n=c(t,"P",{"data-svelte-h":!0}),d(n)!=="svelte-11lpom8"&&(n.textContent=g),s=r(t),m(a.$$.fragment,t)},m(t,y){x(t,n,y),x(t,s,y),f(a,t,y),$=!0},p:I,i(t){$||(_(a.$$.fragment,t),$=!0)},o(t){b(a.$$.fragment,t),$=!1},d(t){t&&(p(n),p(s)),v(a,t)}}}function J1(w){let n,g='It is also possible to set a custom sleep time when requesting hardware with <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.HfApi.request_space_hardware">request_space_hardware()</a>.';return{c(){n=l("p"),n.innerHTML=g},l(s){n=c(s,"P",{"data-svelte-h":!0}),d(n)!=="svelte-1kki46i"&&(n.innerHTML=g)},m(s,a){x(s,n,a)},p:I,d(s){s&&p(n)}}}function A1(w){let n,g="Raises the following errors:",s,a,$=`<li><a href="https://docs.python.org/3/library/exceptions.html#EnvironmentError" rel="nofollow"><code>EnvironmentError</code></a>
if <code>token=True</code> and the token cannot be found.</li> <li><a href="https://docs.python.org/3/library/exceptions.html#OSError" rel="nofollow"><code>OSError</code></a> if
ETag cannot be determined.</li> <li><a href="https://docs.python.org/3/library/exceptions.html#ValueError" rel="nofollow"><code>ValueError</code></a>
if some parameter value is invalid</li>`;return{c(){n=l("p"),n.textContent=g,s=i(),a=l("ul"),a.innerHTML=$},l(t){n=c(t,"P",{"data-svelte-h":!0}),d(n)!=="svelte-182te9i"&&(n.textContent=g),s=r(t),a=c(t,"UL",{"data-svelte-h":!0}),d(a)!=="svelte-1sqbgr0"&&(a.innerHTML=$)},m(t,y){x(t,n,y),x(t,s,y),x(t,a,y)},p:I,d(t){t&&(p(n),p(s),p(a))}}}function q1(w){let n,g="Raises the following errors:",s,a,$=`<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,
or because it is set to <code>private</code> and you do not have access.</li> <li><a href="/docs/huggingface_hub/main/en/package_reference/utilities#huggingface_hub.utils.RevisionNotFoundError">RevisionNotFoundError</a>
If the revision to download from cannot be found.</li>`;return{c(){n=l("p"),n.textContent=g,s=i(),a=l("ul"),a.innerHTML=$},l(t){n=c(t,"P",{"data-svelte-h":!0}),d(n)!=="svelte-182te9i"&&(n.textContent=g),s=r(t),a=c(t,"UL",{"data-svelte-h":!0}),d(a)!=="svelte-1mt8eeu"&&(a.innerHTML=$)},m(t,y){x(t,n,y),x(t,s,y),x(t,a,y)},p:I,d(t){t&&(p(n),p(s),p(a))}}}function N1(w){let n,g="Once squashed, the commit history cannot be retrieved. This is a non-revertible operation.";return{c(){n=l("p"),n.textContent=g},l(s){n=c(s,"P",{"data-svelte-h":!0}),d(n)!=="svelte-16nd2e3"&&(n.textContent=g)},m(s,a){x(s,n,a)},p:I,d(s){s&&p(n)}}}function E1(w){let n,g=`Once the history of a branch has been squashed, it is not possible to merge it back into another branch since
their history will have diverged.`;return{c(){n=l("p"),n.textContent=g},l(s){n=c(s,"P",{"data-svelte-h":!0}),d(n)!=="svelte-qbmppr"&&(n.textContent=g)},m(s,a){x(s,n,a)},p:I,d(s){s&&p(n)}}}function R1(w){let n,g="Example:",s,a,$;return a=new H({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMEhmQXBpJTBBYXBpJTIwJTNEJTIwSGZBcGkoKSUwQSUwQXJlcG9faWQlMjAlM0QlMjBhcGkuY3JlYXRlX3JlcG8oJTIydGVzdC1zcXVhc2glMjIpLnJlcG9faWQlMEElMEFhcGkudXBsb2FkX2ZpbGUocmVwb19pZCUzRHJlcG9faWQlMkMlMjBwYXRoX2luX3JlcG8lM0QlMjJmaWxlLnR4dCUyMiUyQyUyMHBhdGhfb3JfZmlsZW9iaiUzRGIlMjJjb250ZW50JTIyKSUwQWFwaS51cGxvYWRfZmlsZShyZXBvX2lkJTNEcmVwb19pZCUyQyUyMHBhdGhfaW5fcmVwbyUzRCUyMmxmcy5iaW4lMjIlMkMlMjBwYXRoX29yX2ZpbGVvYmolM0RiJTIyY29udGVudCUyMiklMEFhcGkudXBsb2FkX2ZpbGUocmVwb19pZCUzRHJlcG9faWQlMkMlMjBwYXRoX2luX3JlcG8lM0QlMjJmaWxlLnR4dCUyMiUyQyUyMHBhdGhfb3JfZmlsZW9iaiUzRGIlMjJhbm90aGVyX2NvbnRlbnQlMjIpJTBBJTBBYXBpLnN1cGVyX3NxdWFzaF9oaXN0b3J5KHJlcG9faWQlM0RyZXBvX2lkKQ==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> HfApi
<span class="hljs-meta">&gt;&gt;&gt; </span>api = HfApi()

<span class="hljs-comment"># Create repo</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>repo_id = api.create_repo(<span class="hljs-string">&quot;test-squash&quot;</span>).repo_id

<span class="hljs-comment"># Make a lot of commits.</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>api.upload_file(repo_id=repo_id, path_in_repo=<span class="hljs-string">&quot;file.txt&quot;</span>, path_or_fileobj=<span class="hljs-string">b&quot;content&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>api.upload_file(repo_id=repo_id, path_in_repo=<span class="hljs-string">&quot;lfs.bin&quot;</span>, path_or_fileobj=<span class="hljs-string">b&quot;content&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>api.upload_file(repo_id=repo_id, path_in_repo=<span class="hljs-string">&quot;file.txt&quot;</span>, path_or_fileobj=<span class="hljs-string">b&quot;another_content&quot;</span>)

<span class="hljs-comment"># Squash history</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>api.super_squash_history(repo_id=repo_id)`,wrap:!1}}),{c(){n=l("p"),n.textContent=g,s=i(),h(a.$$.fragment)},l(t){n=c(t,"P",{"data-svelte-h":!0}),d(n)!=="svelte-11lpom8"&&(n.textContent=g),s=r(t),m(a.$$.fragment,t)},m(t,y){x(t,n,y),x(t,s,y),f(a,t,y),$=!0},p:I,i(t){$||(_(a.$$.fragment,t),$=!0)},o(t){b(a.$$.fragment,t),$=!1},d(t){t&&(p(n),p(s)),v(a,t)}}}function G1(w){let n,g="Example:",s,a,$;return a=new H({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMGxpa2UlMkMlMjBsaXN0X2xpa2VkX3JlcG9zJTJDJTIwdW5saWtlJTBBbGlrZSglMjJncHQyJTIyKSUwQSUyMmdwdDIlMjIlMjBpbiUyMGxpc3RfbGlrZWRfcmVwb3MoKS5tb2RlbHMlMEF1bmxpa2UoJTIyZ3B0MiUyMiklMEElMjJncHQyJTIyJTIwaW4lMjBsaXN0X2xpa2VkX3JlcG9zKCkubW9kZWxz",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> like, list_liked_repos, unlike
<span class="hljs-meta">&gt;&gt;&gt; </span>like(<span class="hljs-string">&quot;gpt2&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-string">&quot;gpt2&quot;</span> <span class="hljs-keyword">in</span> list_liked_repos().models
<span class="hljs-literal">True</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>unlike(<span class="hljs-string">&quot;gpt2&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-string">&quot;gpt2&quot;</span> <span class="hljs-keyword">in</span> list_liked_repos().models
<span class="hljs-literal">False</span>`,wrap:!1}}),{c(){n=l("p"),n.textContent=g,s=i(),h(a.$$.fragment)},l(t){n=c(t,"P",{"data-svelte-h":!0}),d(n)!=="svelte-11lpom8"&&(n.textContent=g),s=r(t),m(a.$$.fragment,t)},m(t,y){x(t,n,y),x(t,s,y),f(a,t,y),$=!0},p:I,i(t){$||(_(a.$$.fragment,t),$=!0)},o(t){b(a.$$.fragment,t),$=!1},d(t){t&&(p(n),p(s)),v(a,t)}}}function D1(w){let n,g="Example:",s,a,$;return a=new H({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMGdldF9jb2xsZWN0aW9uJTJDJTIwdXBkYXRlX2NvbGxlY3Rpb25faXRlbSUwQSUwQWNvbGxlY3Rpb24lMjAlM0QlMjBnZXRfY29sbGVjdGlvbiglMjJUaGVCbG9rZSUyRnJlY2VudC1tb2RlbHMtNjRmOWE1NWJiMzExNWI0ZjUxM2VjMDI2JTIyKSUwQSUwQXVwZGF0ZV9jb2xsZWN0aW9uX2l0ZW0oJTBBJTIwJTIwJTIwJTIwY29sbGVjdGlvbl9zbHVnJTNEJTIyVGhlQmxva2UlMkZyZWNlbnQtbW9kZWxzLTY0ZjlhNTViYjMxMTViNGY1MTNlYzAyNiUyMiUyQyUwQSUyMCUyMCUyMCUyMGl0ZW1fb2JqZWN0X2lkJTNEY29sbGVjdGlvbi5pdGVtcyU1Qi0xJTVELml0ZW1fb2JqZWN0X2lkJTJDJTBBJTIwJTIwJTIwJTIwbm90ZSUzRCUyMk5ld2x5JTIwdXBkYXRlZCUyMG1vZGVsISUyMiUwQSUyMCUyMCUyMCUyMHBvc2l0aW9uJTNEMCUyQyUwQSk=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> get_collection, update_collection_item

<span class="hljs-comment"># Get collection first</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>collection = get_collection(<span class="hljs-string">&quot;TheBloke/recent-models-64f9a55bb3115b4f513ec026&quot;</span>)

<span class="hljs-comment"># Update item based on its ID (add note + update position)</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>update_collection_item(
<span class="hljs-meta">... </span>    collection_slug=<span class="hljs-string">&quot;TheBloke/recent-models-64f9a55bb3115b4f513ec026&quot;</span>,
<span class="hljs-meta">... </span>    item_object_id=collection.items[-<span class="hljs-number">1</span>].item_object_id,
<span class="hljs-meta">... </span>    note=<span class="hljs-string">&quot;Newly updated model!&quot;</span>
<span class="hljs-meta">... </span>    position=<span class="hljs-number">0</span>,
<span class="hljs-meta">... </span>)`,wrap:!1}}),{c(){n=l("p"),n.textContent=g,s=i(),h(a.$$.fragment)},l(t){n=c(t,"P",{"data-svelte-h":!0}),d(n)!=="svelte-11lpom8"&&(n.textContent=g),s=r(t),m(a.$$.fragment,t)},m(t,y){x(t,n,y),x(t,s,y),f(a,t,y),$=!0},p:I,i(t){$||(_(a.$$.fragment,t),$=!0)},o(t){b(a.$$.fragment,t),$=!1},d(t){t&&(p(n),p(s)),v(a,t)}}}function S1(w){let n,g="Example:",s,a,$;return a=new H({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMHVwZGF0ZV9jb2xsZWN0aW9uX21ldGFkYXRhJTBBY29sbGVjdGlvbiUyMCUzRCUyMHVwZGF0ZV9jb2xsZWN0aW9uX21ldGFkYXRhKCUwQSUyMCUyMCUyMCUyMGNvbGxlY3Rpb25fc2x1ZyUzRCUyMnVzZXJuYW1lJTJGaWNjdi0yMDIzLTY0ZjlhNTViYjMxMTViNGY1MTNlYzAyNiUyMiUyQyUwQSUyMCUyMCUyMCUyMHRpdGxlJTNEJTIySUNDViUyME9jdC4lMjAyMDIzJTIyJTBBJTIwJTIwJTIwJTIwZGVzY3JpcHRpb24lM0QlMjJQb3J0Zm9saW8lMjBvZiUyMG1vZGVscyUyQyUyMGRhdGFzZXRzJTJDJTIwcGFwZXJzJTIwYW5kJTIwZGVtb3MlMjBJJTIwcHJlc2VudGVkJTIwYXQlMjBJQ0NWJTIwT2N0LiUyMDIwMjMlMjIlMkMlMEElMjAlMjAlMjAlMjBwcml2YXRlJTNERmFsc2UlMkMlMEElMjAlMjAlMjAlMjB0aGVtZSUzRCUyMnBpbmslMjIlMkMlMEEpJTBBY29sbGVjdGlvbi5zbHVn",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> update_collection_metadata
<span class="hljs-meta">&gt;&gt;&gt; </span>collection = update_collection_metadata(
<span class="hljs-meta">... </span>    collection_slug=<span class="hljs-string">&quot;username/iccv-2023-64f9a55bb3115b4f513ec026&quot;</span>,
<span class="hljs-meta">... </span>    title=<span class="hljs-string">&quot;ICCV Oct. 2023&quot;</span>
<span class="hljs-meta">... </span>    description=<span class="hljs-string">&quot;Portfolio of models, datasets, papers and demos I presented at ICCV Oct. 2023&quot;</span>,
<span class="hljs-meta">... </span>    private=<span class="hljs-literal">False</span>,
<span class="hljs-meta">... </span>    theme=<span class="hljs-string">&quot;pink&quot;</span>,
<span class="hljs-meta">... </span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>collection.slug
<span class="hljs-string">&quot;username/iccv-oct-2023-64f9a55bb3115b4f513ec026&quot;</span>
<span class="hljs-comment"># ^collection slug got updated but not the trailing ID</span>`,wrap:!1}}),{c(){n=l("p"),n.textContent=g,s=i(),h(a.$$.fragment)},l(t){n=c(t,"P",{"data-svelte-h":!0}),d(n)!=="svelte-11lpom8"&&(n.textContent=g),s=r(t),m(a.$$.fragment,t)},m(t,y){x(t,n,y),x(t,s,y),f(a,t,y),$=!0},p:I,i(t){$||(_(a.$$.fragment,t),$=!0)},o(t){b(a.$$.fragment,t),$=!1},d(t){t&&(p(n),p(s)),v(a,t)}}}function F1(w){let n,g="Raises the following errors:",s,a,$=`<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,
or because it is set to <code>private</code> and you do not have access.</li>`;return{c(){n=l("p"),n.textContent=g,s=i(),a=l("ul"),a.innerHTML=$},l(t){n=c(t,"P",{"data-svelte-h":!0}),d(n)!=="svelte-182te9i"&&(n.textContent=g),s=r(t),a=c(t,"UL",{"data-svelte-h":!0}),d(a)!=="svelte-ey6ivx"&&(a.innerHTML=$)},m(t,y){x(t,n,y),x(t,s,y),x(t,a,y)},p:I,d(t){t&&(p(n),p(s),p(a))}}}function Z1(w){let n,g="Raises the following errors:",s,a,$=`<li><a href="https://requests.readthedocs.io/en/latest/api/#requests.HTTPError" rel="nofollow"><code>HTTPError</code></a>
if the HuggingFace API returned an error</li> <li><a href="https://docs.python.org/3/library/exceptions.html#ValueError" rel="nofollow"><code>ValueError</code></a>
if some parameter value is invalid</li> <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,
or because it is set to <code>private</code> and you do not have access.</li> <li><a href="/docs/huggingface_hub/main/en/package_reference/utilities#huggingface_hub.utils.RevisionNotFoundError">RevisionNotFoundError</a>
If the revision to download from cannot be found.</li>`;return{c(){n=l("p"),n.textContent=g,s=i(),a=l("ul"),a.innerHTML=$},l(t){n=c(t,"P",{"data-svelte-h":!0}),d(n)!=="svelte-182te9i"&&(n.textContent=g),s=r(t),a=c(t,"UL",{"data-svelte-h":!0}),d(a)!=="svelte-18y3l3r"&&(a.innerHTML=$)},m(t,y){x(t,n,y),x(t,s,y),x(t,a,y)},p:I,d(t){t&&(p(n),p(s),p(a))}}}function L1(w){let n,g=`<code>upload_file</code> assumes that the repo already exists on the Hub. If you get a
Client error 404, please make sure you are authenticated and that <code>repo_id</code> and
<code>repo_type</code> are set correctly. If repo does not exist, create it first using
<a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.HfApi.create_repo">create_repo()</a>.`;return{c(){n=l("p"),n.innerHTML=g},l(s){n=c(s,"P",{"data-svelte-h":!0}),d(n)!=="svelte-14jkuxx"&&(n.innerHTML=g)},m(s,a){x(s,n,a)},p:I,d(s){s&&p(n)}}}function B1(w){let n,g="Example:",s,a,$;return a=new H({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMHVwbG9hZF9maWxlJTBBJTBBd2l0aCUyMG9wZW4oJTIyLiUyRmxvY2FsJTJGZmlsZXBhdGglMjIlMkMlMjAlMjJyYiUyMiklMjBhcyUyMGZvYmolM0ElMEElMjAlMjAlMjAlMjB1cGxvYWRfZmlsZSglMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjBwYXRoX29yX2ZpbGVvYmolM0RmaWxlb2JqJTJDJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwcGF0aF9pbl9yZXBvJTNEJTIycmVtb3RlJTJGZmlsZSUyRnBhdGguaDUlMjIlMkMlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjByZXBvX2lkJTNEJTIydXNlcm5hbWUlMkZteS1kYXRhc2V0JTIyJTJDJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwcmVwb190eXBlJTNEJTIyZGF0YXNldCUyMiUyQyUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMHRva2VuJTNEJTIybXlfdG9rZW4lMjIlMkMlMEElMjAlMjAlMjAlMjApJTBBJTBBdXBsb2FkX2ZpbGUoJTBBJTIwJTIwJTIwJTIwcGF0aF9vcl9maWxlb2JqJTNEJTIyLiU1QyU1Q2xvY2FsJTVDJTVDZmlsZSU1QyU1Q3BhdGglMjIlMkMlMEElMjAlMjAlMjAlMjBwYXRoX2luX3JlcG8lM0QlMjJyZW1vdGUlMkZmaWxlJTJGcGF0aC5oNSUyMiUyQyUwQSUyMCUyMCUyMCUyMHJlcG9faWQlM0QlMjJ1c2VybmFtZSUyRm15LW1vZGVsJTIyJTJDJTBBJTIwJTIwJTIwJTIwdG9rZW4lM0QlMjJteV90b2tlbiUyMiUyQyUwQSklMEElMEF1cGxvYWRfZmlsZSglMEElMjAlMjAlMjAlMjBwYXRoX29yX2ZpbGVvYmolM0QlMjIuJTVDJTVDbG9jYWwlNUMlNUNmaWxlJTVDJTVDcGF0aCUyMiUyQyUwQSUyMCUyMCUyMCUyMHBhdGhfaW5fcmVwbyUzRCUyMnJlbW90ZSUyRmZpbGUlMkZwYXRoLmg1JTIyJTJDJTBBJTIwJTIwJTIwJTIwcmVwb19pZCUzRCUyMnVzZXJuYW1lJTJGbXktbW9kZWwlMjIlMkMlMEElMjAlMjAlMjAlMjB0b2tlbiUzRCUyMm15X3Rva2VuJTIyJTJDJTBBJTIwJTIwJTIwJTIwY3JlYXRlX3ByJTNEVHJ1ZSUyQyUwQSk=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> upload_file

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">with</span> <span class="hljs-built_in">open</span>(<span class="hljs-string">&quot;./local/filepath&quot;</span>, <span class="hljs-string">&quot;rb&quot;</span>) <span class="hljs-keyword">as</span> fobj:
<span class="hljs-meta">... </span>    upload_file(
<span class="hljs-meta">... </span>        path_or_fileobj=fileobj,
<span class="hljs-meta">... </span>        path_in_repo=<span class="hljs-string">&quot;remote/file/path.h5&quot;</span>,
<span class="hljs-meta">... </span>        repo_id=<span class="hljs-string">&quot;username/my-dataset&quot;</span>,
<span class="hljs-meta">... </span>        repo_type=<span class="hljs-string">&quot;dataset&quot;</span>,
<span class="hljs-meta">... </span>        token=<span class="hljs-string">&quot;my_token&quot;</span>,
<span class="hljs-meta">... </span>    )
<span class="hljs-string">&quot;https://huggingface.co/datasets/username/my-dataset/blob/main/remote/file/path.h5&quot;</span>

<span class="hljs-meta">&gt;&gt;&gt; </span>upload_file(
<span class="hljs-meta">... </span>    path_or_fileobj=<span class="hljs-string">&quot;.\\\\local\\\\file\\\\path&quot;</span>,
<span class="hljs-meta">... </span>    path_in_repo=<span class="hljs-string">&quot;remote/file/path.h5&quot;</span>,
<span class="hljs-meta">... </span>    repo_id=<span class="hljs-string">&quot;username/my-model&quot;</span>,
<span class="hljs-meta">... </span>    token=<span class="hljs-string">&quot;my_token&quot;</span>,
<span class="hljs-meta">... </span>)
<span class="hljs-string">&quot;https://huggingface.co/username/my-model/blob/main/remote/file/path.h5&quot;</span>

<span class="hljs-meta">&gt;&gt;&gt; </span>upload_file(
<span class="hljs-meta">... </span>    path_or_fileobj=<span class="hljs-string">&quot;.\\\\local\\\\file\\\\path&quot;</span>,
<span class="hljs-meta">... </span>    path_in_repo=<span class="hljs-string">&quot;remote/file/path.h5&quot;</span>,
<span class="hljs-meta">... </span>    repo_id=<span class="hljs-string">&quot;username/my-model&quot;</span>,
<span class="hljs-meta">... </span>    token=<span class="hljs-string">&quot;my_token&quot;</span>,
<span class="hljs-meta">... </span>    create_pr=<span class="hljs-literal">True</span>,
<span class="hljs-meta">... </span>)
<span class="hljs-string">&quot;https://huggingface.co/username/my-model/blob/refs%2Fpr%2F1/remote/file/path.h5&quot;</span>`,wrap:!1}}),{c(){n=l("p"),n.textContent=g,s=i(),h(a.$$.fragment)},l(t){n=c(t,"P",{"data-svelte-h":!0}),d(n)!=="svelte-11lpom8"&&(n.textContent=g),s=r(t),m(a.$$.fragment,t)},m(t,y){x(t,n,y),x(t,s,y),f(a,t,y),$=!0},p:I,i(t){$||(_(a.$$.fragment,t),$=!0)},o(t){b(a.$$.fragment,t),$=!1},d(t){t&&(p(n),p(s)),v(a,t)}}}function W1(w){let n,g="Raises the following errors:",s,a,$=`<li><a href="https://requests.readthedocs.io/en/latest/api/#requests.HTTPError" rel="nofollow"><code>HTTPError</code></a>
if the HuggingFace API returned an error</li> <li><a href="https://docs.python.org/3/library/exceptions.html#ValueError" rel="nofollow"><code>ValueError</code></a>
if some parameter value is invalid</li>`;return{c(){n=l("p"),n.textContent=g,s=i(),a=l("ul"),a.innerHTML=$},l(t){n=c(t,"P",{"data-svelte-h":!0}),d(n)!=="svelte-182te9i"&&(n.textContent=g),s=r(t),a=c(t,"UL",{"data-svelte-h":!0}),d(a)!=="svelte-1l6tbi1"&&(a.innerHTML=$)},m(t,y){x(t,n,y),x(t,s,y),x(t,a,y)},p:I,d(t){t&&(p(n),p(s),p(a))}}}function V1(w){let n,g=`<code>upload_folder</code> assumes that the repo already exists on the Hub. If you get a Client error 404, please make
sure you are authenticated and that <code>repo_id</code> and <code>repo_type</code> are set correctly. If repo does not exist, create
it first using <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.HfApi.create_repo">create_repo()</a>.`;return{c(){n=l("p"),n.innerHTML=g},l(s){n=c(s,"P",{"data-svelte-h":!0}),d(n)!=="svelte-1ji36op"&&(n.innerHTML=g)},m(s,a){x(s,n,a)},p:I,d(s){s&&p(n)}}}function X1(w){let n,g="<code>multi_commits</code> is experimental. Its API and behavior is subject to change in the future without prior notice.";return{c(){n=l("p"),n.innerHTML=g},l(s){n=c(s,"P",{"data-svelte-h":!0}),d(n)!=="svelte-1x7nnyi"&&(n.innerHTML=g)},m(s,a){x(s,n,a)},p:I,d(s){s&&p(n)}}}function Y1(w){let n,g="Example:",s,a,$;return a=new H({props:{code:"dXBsb2FkX2ZvbGRlciglMEElMjAlMjAlMjAlMjBmb2xkZXJfcGF0aCUzRCUyMmxvY2FsJTJGY2hlY2twb2ludHMlMjIlMkMlMEElMjAlMjAlMjAlMjBwYXRoX2luX3JlcG8lM0QlMjJyZW1vdGUlMkZleHBlcmltZW50JTJGY2hlY2twb2ludHMlMjIlMkMlMEElMjAlMjAlMjAlMjByZXBvX2lkJTNEJTIydXNlcm5hbWUlMkZteS1kYXRhc2V0JTIyJTJDJTBBJTIwJTIwJTIwJTIwcmVwb190eXBlJTNEJTIyZGF0YXNldHMlMjIlMkMlMEElMjAlMjAlMjAlMjB0b2tlbiUzRCUyMm15X3Rva2VuJTIyJTJDJTBBJTIwJTIwJTIwJTIwaWdub3JlX3BhdHRlcm5zJTNEJTIyKiolMkZsb2dzJTJGKi50eHQlMjIlMkMlMEEpJTBBJTBBdXBsb2FkX2ZvbGRlciglMEElMjAlMjAlMjAlMjBmb2xkZXJfcGF0aCUzRCUyMmxvY2FsJTJGY2hlY2twb2ludHMlMjIlMkMlMEElMjAlMjAlMjAlMjBwYXRoX2luX3JlcG8lM0QlMjJyZW1vdGUlMkZleHBlcmltZW50JTJGY2hlY2twb2ludHMlMjIlMkMlMEElMjAlMjAlMjAlMjByZXBvX2lkJTNEJTIydXNlcm5hbWUlMkZteS1kYXRhc2V0JTIyJTJDJTBBJTIwJTIwJTIwJTIwcmVwb190eXBlJTNEJTIyZGF0YXNldHMlMjIlMkMlMEElMjAlMjAlMjAlMjB0b2tlbiUzRCUyMm15X3Rva2VuJTIyJTJDJTBBJTIwJTIwJTIwJTIwZGVsZXRlX3BhdHRlcm5zJTNEJTIyKiolMkZsb2dzJTJGKi50eHQlMjIlMkMlMEEpJTBBJTBBdXBsb2FkX2ZvbGRlciglMEElMjAlMjAlMjAlMjBmb2xkZXJfcGF0aCUzRCUyMmxvY2FsJTJGY2hlY2twb2ludHMlMjIlMkMlMEElMjAlMjAlMjAlMjBwYXRoX2luX3JlcG8lM0QlMjJyZW1vdGUlMkZleHBlcmltZW50JTJGY2hlY2twb2ludHMlMjIlMkMlMEElMjAlMjAlMjAlMjByZXBvX2lkJTNEJTIydXNlcm5hbWUlMkZteS1kYXRhc2V0JTIyJTJDJTBBJTIwJTIwJTIwJTIwcmVwb190eXBlJTNEJTIyZGF0YXNldHMlMjIlMkMlMEElMjAlMjAlMjAlMjB0b2tlbiUzRCUyMm15X3Rva2VuJTIyJTJDJTBBJTIwJTIwJTIwJTIwY3JlYXRlX3ByJTNEVHJ1ZSUyQyUwQSklMEE=",highlighted:`<span class="hljs-comment"># Upload checkpoints folder except the log files</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>upload_folder(
<span class="hljs-meta">... </span>    folder_path=<span class="hljs-string">&quot;local/checkpoints&quot;</span>,
<span class="hljs-meta">... </span>    path_in_repo=<span class="hljs-string">&quot;remote/experiment/checkpoints&quot;</span>,
<span class="hljs-meta">... </span>    repo_id=<span class="hljs-string">&quot;username/my-dataset&quot;</span>,
<span class="hljs-meta">... </span>    repo_type=<span class="hljs-string">&quot;datasets&quot;</span>,
<span class="hljs-meta">... </span>    token=<span class="hljs-string">&quot;my_token&quot;</span>,
<span class="hljs-meta">... </span>    ignore_patterns=<span class="hljs-string">&quot;**/logs/*.txt&quot;</span>,
<span class="hljs-meta">... </span>)
<span class="hljs-comment"># &quot;https://huggingface.co/datasets/username/my-dataset/tree/main/remote/experiment/checkpoints&quot;</span>

<span class="hljs-comment"># Upload checkpoints folder including logs while deleting existing logs from the repo</span>
<span class="hljs-comment"># Useful if you don&#x27;t know exactly which log files have already being pushed</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>upload_folder(
<span class="hljs-meta">... </span>    folder_path=<span class="hljs-string">&quot;local/checkpoints&quot;</span>,
<span class="hljs-meta">... </span>    path_in_repo=<span class="hljs-string">&quot;remote/experiment/checkpoints&quot;</span>,
<span class="hljs-meta">... </span>    repo_id=<span class="hljs-string">&quot;username/my-dataset&quot;</span>,
<span class="hljs-meta">... </span>    repo_type=<span class="hljs-string">&quot;datasets&quot;</span>,
<span class="hljs-meta">... </span>    token=<span class="hljs-string">&quot;my_token&quot;</span>,
<span class="hljs-meta">... </span>    delete_patterns=<span class="hljs-string">&quot;**/logs/*.txt&quot;</span>,
<span class="hljs-meta">... </span>)
<span class="hljs-string">&quot;https://huggingface.co/datasets/username/my-dataset/tree/main/remote/experiment/checkpoints&quot;</span>

<span class="hljs-comment"># Upload checkpoints folder while creating a PR</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>upload_folder(
<span class="hljs-meta">... </span>    folder_path=<span class="hljs-string">&quot;local/checkpoints&quot;</span>,
<span class="hljs-meta">... </span>    path_in_repo=<span class="hljs-string">&quot;remote/experiment/checkpoints&quot;</span>,
<span class="hljs-meta">... </span>    repo_id=<span class="hljs-string">&quot;username/my-dataset&quot;</span>,
<span class="hljs-meta">... </span>    repo_type=<span class="hljs-string">&quot;datasets&quot;</span>,
<span class="hljs-meta">... </span>    token=<span class="hljs-string">&quot;my_token&quot;</span>,
<span class="hljs-meta">... </span>    create_pr=<span class="hljs-literal">True</span>,
<span class="hljs-meta">... </span>)
<span class="hljs-string">&quot;https://huggingface.co/datasets/username/my-dataset/tree/refs%2Fpr%2F1/remote/experiment/checkpoints&quot;</span>
`,wrap:!1}}),{c(){n=l("p"),n.textContent=g,s=i(),h(a.$$.fragment)},l(t){n=c(t,"P",{"data-svelte-h":!0}),d(n)!=="svelte-11lpom8"&&(n.textContent=g),s=r(t),m(a.$$.fragment,t)},m(t,y){x(t,n,y),x(t,s,y),f(a,t,y),$=!0},p:I,i(t){$||(_(a.$$.fragment,t),$=!0)},o(t){b(a.$$.fragment,t),$=!1},d(t){t&&(p(n),p(s)),v(a,t)}}}function P1(w){let n,g="<code>plan_multi_commits</code> is experimental. Its API and behavior is subject to change in the future without prior notice.";return{c(){n=l("p"),n.innerHTML=g},l(s){n=c(s,"P",{"data-svelte-h":!0}),d(n)!=="svelte-ptumhw"&&(n.innerHTML=g)},m(s,a){x(s,n,a)},p:I,d(s){s&&p(n)}}}function O1(w){let n,g="Example:",s,a,$;return a=new H({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMEhmQXBpJTJDJTIwcGxhbl9tdWx0aV9jb21taXRzJTBBYWRkaXRpb25fY29tbWl0cyUyQyUyMGRlbGV0aW9uX2NvbW1pdHMlMjAlM0QlMjBwbGFuX211bHRpX2NvbW1pdHMoJTBBJTIwJTIwJTIwJTIwb3BlcmF0aW9ucyUzRCU1QiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMENvbW1pdE9wZXJhdGlvbkFkZCguLi4pJTJDJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwQ29tbWl0T3BlcmF0aW9uQWRkKC4uLiklMkMlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjBDb21taXRPcGVyYXRpb25EZWxldGUoLi4uKSUyQyUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMENvbW1pdE9wZXJhdGlvbkRlbGV0ZSguLi4pJTJDJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwQ29tbWl0T3BlcmF0aW9uQWRkKC4uLiklMkMlMEElMjAlMjAlMjAlMjAlNUQlMkMlMEEpJTBBSGZBcGkoKS5jcmVhdGVfY29tbWl0c19vbl9wciglMEElMjAlMjAlMjAlMjByZXBvX2lkJTNEJTIybXktY29vbC1tb2RlbCUyMiUyQyUwQSUyMCUyMCUyMCUyMGFkZGl0aW9uX2NvbW1pdHMlM0RhZGRpdGlvbl9jb21taXRzJTJDJTBBJTIwJTIwJTIwJTIwZGVsZXRpb25fY29tbWl0cyUzRGRlbGV0aW9uX2NvbW1pdHMlMkMlMEElMjAlMjAlMjAlMjAoLi4uKSUwQSUyMCUyMCUyMCUyMHZlcmJvc2UlM0RUcnVlJTJDJTBBKQ==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> HfApi, plan_multi_commits
<span class="hljs-meta">&gt;&gt;&gt; </span>addition_commits, deletion_commits = plan_multi_commits(
<span class="hljs-meta">... </span>    operations=[
<span class="hljs-meta">... </span>         CommitOperationAdd(...),
<span class="hljs-meta">... </span>         CommitOperationAdd(...),
<span class="hljs-meta">... </span>         CommitOperationDelete(...),
<span class="hljs-meta">... </span>         CommitOperationDelete(...),
<span class="hljs-meta">... </span>         CommitOperationAdd(...),
<span class="hljs-meta">... </span>    ],
<span class="hljs-meta">... </span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>HfApi().create_commits_on_pr(
<span class="hljs-meta">... </span>    repo_id=<span class="hljs-string">&quot;my-cool-model&quot;</span>,
<span class="hljs-meta">... </span>    addition_commits=addition_commits,
<span class="hljs-meta">... </span>    deletion_commits=deletion_commits,
<span class="hljs-meta">... </span>    (...)
<span class="hljs-meta">... </span>    verbose=<span class="hljs-literal">True</span>,
<span class="hljs-meta">... </span>)`,wrap:!1}}),{c(){n=l("p"),n.textContent=g,s=i(),h(a.$$.fragment)},l(t){n=c(t,"P",{"data-svelte-h":!0}),d(n)!=="svelte-11lpom8"&&(n.textContent=g),s=r(t),m(a.$$.fragment,t)},m(t,y){x(t,n,y),x(t,s,y),f(a,t,y),$=!0},p:I,i(t){$||(_(a.$$.fragment,t),$=!0)},o(t){b(a.$$.fragment,t),$=!1},d(t){t&&(p(n),p(s)),v(a,t)}}}function z1(w){let n,g=`The initial order of the operations is not guaranteed! All deletions will be performed before additions. If you are
not updating multiple times the same file, you are fine.`;return{c(){n=l("p"),n.textContent=g},l(s){n=c(s,"P",{"data-svelte-h":!0}),d(n)!=="svelte-sg17jf"&&(n.textContent=g)},m(s,a){x(s,n,a)},p:I,d(s){s&&p(n)}}}function Q1(w){let n,g="Example:",s,a,$;return a=new H({props:{code:"UmVwb1VybCgnaHR0cHMlM0ElMkYlMkZodWdnaW5nZmFjZS5jbyUyRmdwdDInKSUwQSUwQVJlcG9VcmwoJ2h0dHBzJTNBJTJGJTJGaHViLWNpLmh1Z2dpbmdmYWNlLmNvJTJGZGF0YXNldHMlMkZkdW1teV91c2VyJTJGZHVtbXlfZGF0YXNldCclMkMlMjBlbmRwb2ludCUzRCdodHRwcyUzQSUyRiUyRmh1Yi1jaS5odWdnaW5nZmFjZS5jbycpJTBBJTBBUmVwb1VybCgnaGYlM0ElMkYlMkZkYXRhc2V0cyUyRm15LXVzZXIlMkZteS1kYXRhc2V0JyklMEElMEFIZkFwaS5jcmVhdGVfcmVwbyglMjJkdW1teV9tb2RlbCUyMik=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span>RepoUrl(<span class="hljs-string">&#x27;https://huggingface.co/gpt2&#x27;</span>)
RepoUrl(<span class="hljs-string">&#x27;https://huggingface.co/gpt2&#x27;</span>, endpoint=<span class="hljs-string">&#x27;https://huggingface.co&#x27;</span>, repo_type=<span class="hljs-string">&#x27;model&#x27;</span>, repo_id=<span class="hljs-string">&#x27;gpt2&#x27;</span>)

<span class="hljs-meta">&gt;&gt;&gt; </span>RepoUrl(<span class="hljs-string">&#x27;https://hub-ci.huggingface.co/datasets/dummy_user/dummy_dataset&#x27;</span>, endpoint=<span class="hljs-string">&#x27;https://hub-ci.huggingface.co&#x27;</span>)
RepoUrl(<span class="hljs-string">&#x27;https://hub-ci.huggingface.co/datasets/dummy_user/dummy_dataset&#x27;</span>, endpoint=<span class="hljs-string">&#x27;https://hub-ci.huggingface.co&#x27;</span>, repo_type=<span class="hljs-string">&#x27;dataset&#x27;</span>, repo_id=<span class="hljs-string">&#x27;dummy_user/dummy_dataset&#x27;</span>)

<span class="hljs-meta">&gt;&gt;&gt; </span>RepoUrl(<span class="hljs-string">&#x27;hf://datasets/my-user/my-dataset&#x27;</span>)
RepoUrl(<span class="hljs-string">&#x27;hf://datasets/my-user/my-dataset&#x27;</span>, endpoint=<span class="hljs-string">&#x27;https://huggingface.co&#x27;</span>, repo_type=<span class="hljs-string">&#x27;dataset&#x27;</span>, repo_id=<span class="hljs-string">&#x27;user/dataset&#x27;</span>)

<span class="hljs-meta">&gt;&gt;&gt; </span>HfApi.create_repo(<span class="hljs-string">&quot;dummy_model&quot;</span>)
RepoUrl(<span class="hljs-string">&#x27;https://huggingface.co/Wauplin/dummy_model&#x27;</span>, endpoint=<span class="hljs-string">&#x27;https://huggingface.co&#x27;</span>, repo_type=<span class="hljs-string">&#x27;model&#x27;</span>, repo_id=<span class="hljs-string">&#x27;Wauplin/dummy_model&#x27;</span>)`,wrap:!1}}),{c(){n=l("p"),n.textContent=g,s=i(),h(a.$$.fragment)},l(t){n=c(t,"P",{"data-svelte-h":!0}),d(n)!=="svelte-11lpom8"&&(n.textContent=g),s=r(t),m(a.$$.fragment,t)},m(t,y){x(t,n,y),x(t,s,y),f(a,t,y),$=!0},p:I,i(t){$||(_(a.$$.fragment,t),$=!0)},o(t){b(a.$$.fragment,t),$=!1},d(t){t&&(p(n),p(s)),v(a,t)}}}function K1(w){let n,g="Example:",s,a,$;return a=new H({props:{code:"b3BlcmF0aW9uJTIwJTNEJTIwQ29tbWl0T3BlcmF0aW9uQWRkKCUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMHBhdGhfaW5fcmVwbyUzRCUyMnJlbW90ZSUyRmRpciUyRndlaWdodHMuaDUlMjIlMkMlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjBwYXRoX29yX2ZpbGVvYmolM0QlMjIuJTJGbG9jYWwlMkZ3ZWlnaHRzLmg1JTIyJTJDJTBBKSUwQSUwQXdpdGglMjBvcGVyYXRpb24uYXNfZmlsZSgpJTIwYXMlMjBmaWxlJTNBJTBBJTIwJTIwJTIwJTIwY29udGVudCUyMCUzRCUyMGZpbGUucmVhZCgpJTBBJTBBd2l0aCUyMG9wZXJhdGlvbi5hc19maWxlKHdpdGhfdHFkbSUzRFRydWUpJTIwYXMlMjBmaWxlJTNBJTBBJTIwJTIwJTIwJTIwd2hpbGUlMjBUcnVlJTNBJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwZGF0YSUyMCUzRCUyMGZpbGUucmVhZCgxMDI0KSUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMGlmJTIwbm90JTIwZGF0YSUzQSUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMGJyZWFrJTBBJTBBd2l0aCUyMG9wZXJhdGlvbi5hc19maWxlKHdpdGhfdHFkbSUzRFRydWUpJTIwYXMlMjBmaWxlJTNBJTBBJTIwJTIwJTIwJTIwcmVxdWVzdHMucHV0KC4uLiUyQyUyMGRhdGElM0RmaWxlKQ==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span>operation = CommitOperationAdd(
<span class="hljs-meta">... </span>       path_in_repo=<span class="hljs-string">&quot;remote/dir/weights.h5&quot;</span>,
<span class="hljs-meta">... </span>       path_or_fileobj=<span class="hljs-string">&quot;./local/weights.h5&quot;</span>,
<span class="hljs-meta">... </span>)
CommitOperationAdd(path_in_repo=<span class="hljs-string">&#x27;remote/dir/weights.h5&#x27;</span>, path_or_fileobj=<span class="hljs-string">&#x27;./local/weights.h5&#x27;</span>)

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">with</span> operation.as_file() <span class="hljs-keyword">as</span> file:
<span class="hljs-meta">... </span>    content = file.read()

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">with</span> operation.as_file(with_tqdm=<span class="hljs-literal">True</span>) <span class="hljs-keyword">as</span> file:
<span class="hljs-meta">... </span>    <span class="hljs-keyword">while</span> <span class="hljs-literal">True</span>:
<span class="hljs-meta">... </span>        data = file.read(<span class="hljs-number">1024</span>)
<span class="hljs-meta">... </span>        <span class="hljs-keyword">if</span> <span class="hljs-keyword">not</span> data:
<span class="hljs-meta">... </span>             <span class="hljs-keyword">break</span>
config.json: <span class="hljs-number">100</span>%|█████████████████████████| <span class="hljs-number">8.19</span>k/<span class="hljs-number">8.19</span>k [<span class="hljs-number">00</span>:02&lt;<span class="hljs-number">00</span>:<span class="hljs-number">00</span>, <span class="hljs-number">3.72</span>kB/s]

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">with</span> operation.as_file(with_tqdm=<span class="hljs-literal">True</span>) <span class="hljs-keyword">as</span> file:
<span class="hljs-meta">... </span>    requests.put(..., data=file)
config.json: <span class="hljs-number">100</span>%|█████████████████████████| <span class="hljs-number">8.19</span>k/<span class="hljs-number">8.19</span>k [<span class="hljs-number">00</span>:02&lt;<span class="hljs-number">00</span>:<span class="hljs-number">00</span>, <span class="hljs-number">3.72</span>kB/s]`,wrap:!1}}),{c(){n=l("p"),n.textContent=g,s=i(),h(a.$$.fragment)},l(t){n=c(t,"P",{"data-svelte-h":!0}),d(n)!=="svelte-11lpom8"&&(n.textContent=g),s=r(t),m(a.$$.fragment,t)},m(t,y){x(t,n,y),x(t,s,y),f(a,t,y),$=!0},p:I,i(t){$||(_(a.$$.fragment,t),$=!0)},o(t){b(a.$$.fragment,t),$=!1},d(t){t&&(p(n),p(s)),v(a,t)}}}function ew(w){let n,g="Example:",s,a,$;return a=new H({props:{code:"ZnJvbSUyMHBhdGhsaWIlMjBpbXBvcnQlMjBQYXRoJTBBZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMENvbW1pdFNjaGVkdWxlciUwQSUwQWNzdl9wYXRoJTIwJTNEJTIwUGF0aCglMjJ3YXRjaGVkX2ZvbGRlciUyRmRhdGEuY3N2JTIyKSUwQUNvbW1pdFNjaGVkdWxlcihyZXBvX2lkJTNEJTIydGVzdF9zY2hlZHVsZXIlMjIlMkMlMjByZXBvX3R5cGUlM0QlMjJkYXRhc2V0JTIyJTJDJTIwZm9sZGVyX3BhdGglM0Rjc3ZfcGF0aC5wYXJlbnQlMkMlMjBldmVyeSUzRDEwKSUwQSUwQXdpdGglMjBjc3ZfcGF0aC5vcGVuKCUyMmElMjIpJTIwYXMlMjBmJTNBJTBBJTIwJTIwJTIwJTIwZi53cml0ZSglMjJmaXJzdCUyMGxpbmUlMjIpJTBBJTBBd2l0aCUyMGNzdl9wYXRoLm9wZW4oJTIyYSUyMiklMjBhcyUyMGYlM0ElMEElMjAlMjAlMjAlMjBmLndyaXRlKCUyMnNlY29uZCUyMGxpbmUlMjIp",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> pathlib <span class="hljs-keyword">import</span> Path
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> CommitScheduler

<span class="hljs-comment"># Scheduler uploads every 10 minutes</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>csv_path = Path(<span class="hljs-string">&quot;watched_folder/data.csv&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>CommitScheduler(repo_id=<span class="hljs-string">&quot;test_scheduler&quot;</span>, repo_type=<span class="hljs-string">&quot;dataset&quot;</span>, folder_path=csv_path.parent, every=<span class="hljs-number">10</span>)

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">with</span> csv_path.<span class="hljs-built_in">open</span>(<span class="hljs-string">&quot;a&quot;</span>) <span class="hljs-keyword">as</span> f:
<span class="hljs-meta">... </span>    f.write(<span class="hljs-string">&quot;first line&quot;</span>)

<span class="hljs-comment"># Some time later (...)</span>
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">with</span> csv_path.<span class="hljs-built_in">open</span>(<span class="hljs-string">&quot;a&quot;</span>) <span class="hljs-keyword">as</span> f:
<span class="hljs-meta">... </span>    f.write(<span class="hljs-string">&quot;second line&quot;</span>)`,wrap:!1}}),{c(){n=l("p"),n.textContent=g,s=i(),h(a.$$.fragment)},l(t){n=c(t,"P",{"data-svelte-h":!0}),d(n)!=="svelte-11lpom8"&&(n.textContent=g),s=r(t),m(a.$$.fragment,t)},m(t,y){x(t,n,y),x(t,s,y),f(a,t,y),$=!0},p:I,i(t){$||(_(a.$$.fragment,t),$=!0)},o(t){b(a.$$.fragment,t),$=!1},d(t){t&&(p(n),p(s)),v(a,t)}}}function tw(w){let n,g=`This method is not meant to be called directly. It is run in the background by the scheduler, respecting a
queue mechanism to avoid concurrent commits. Making a direct call to the method might lead to concurrency
issues.`;return{c(){n=l("p"),n.textContent=g},l(s){n=c(s,"P",{"data-svelte-h":!0}),d(n)!=="svelte-1oh5a50"&&(n.textContent=g)},m(s,a){x(s,n,a)},p:I,d(s){s&&p(n)}}}function nw(w){let n,g="Examples:",s,a,$;return a=new H({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMERhdGFzZXRGaWx0ZXIlMEElMEElMjMlMjBVc2luZyUyMGF1dGhvciUwQW5ld19maWx0ZXIlMjAlM0QlMjBEYXRhc2V0RmlsdGVyKGF1dGhvciUzRCUyMmZhY2Vib29rJTIyKSUwQSUwQSUyMyUyMFVzaW5nJTIwYmVuY2htYXJrJTBBbmV3X2ZpbHRlciUyMCUzRCUyMERhdGFzZXRGaWx0ZXIoYmVuY2htYXJrJTNEJTIycmFmdCUyMiklMEElMEElMjMlMjBVc2luZyUyMGRhdGFzZXRfbmFtZSUwQW5ld19maWx0ZXIlMjAlM0QlMjBEYXRhc2V0RmlsdGVyKGRhdGFzZXRfbmFtZSUzRCUyMndpa2luZXVyYWwlMjIpJTBBJTBBJTIzJTIwVXNpbmclMjBsYW5ndWFnZV9jcmVhdG9yJTBBbmV3X2ZpbHRlciUyMCUzRCUyMERhdGFzZXRGaWx0ZXIobGFuZ3VhZ2VfY3JlYXRvciUzRCUyMmNyb3dkc291cmNlZCUyMiklMEElMEElMjMlMjBVc2luZyUyMGxhbmd1YWdlJTBBbmV3X2ZpbHRlciUyMCUzRCUyMERhdGFzZXRGaWx0ZXIobGFuZ3VhZ2UlM0QlMjJlbiUyMiklMEElMEElMjMlMjBVc2luZyUyMG11bHRpbGluZ3VhbGl0eSUwQW5ld19maWx0ZXIlMjAlM0QlMjBEYXRhc2V0RmlsdGVyKG11bHRpbGluZ3VhbGl0eSUzRCUyMm11bHRpbGluZ3VhbCUyMiklMEElMEElMjMlMjBVc2luZyUyMHNpemVfY2F0ZWdvcmllcyUwQW5ld19maWx0ZXIlMjAlM0QlMjBEYXRhc2V0RmlsdGVyKHNpemVfY2F0ZWdvcmllcyUzRCUyMjEwMEslM0NuJTNDMU0lMjIpJTBBJTBBJTIzJTIwVXNpbmclMjB0YXNrX2NhdGVnb3JpZXMlMEFuZXdfZmlsdGVyJTIwJTNEJTIwRGF0YXNldEZpbHRlcih0YXNrX2NhdGVnb3JpZXMlM0QlMjJhdWRpb19jbGFzc2lmaWNhdGlvbiUyMiklMEElMEElMjMlMjBVc2luZyUyMHRhc2tfaWRzJTBBbmV3X2ZpbHRlciUyMCUzRCUyMERhdGFzZXRGaWx0ZXIodGFza19pZHMlM0QlMjJwYXJhcGhyYXNlJTIyKQ==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> DatasetFilter

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># Using author</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>new_filter = DatasetFilter(author=<span class="hljs-string">&quot;facebook&quot;</span>)

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># Using benchmark</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>new_filter = DatasetFilter(benchmark=<span class="hljs-string">&quot;raft&quot;</span>)

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># Using dataset_name</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>new_filter = DatasetFilter(dataset_name=<span class="hljs-string">&quot;wikineural&quot;</span>)

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># Using language_creator</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>new_filter = DatasetFilter(language_creator=<span class="hljs-string">&quot;crowdsourced&quot;</span>)

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># Using language</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>new_filter = DatasetFilter(language=<span class="hljs-string">&quot;en&quot;</span>)

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># Using multilinguality</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>new_filter = DatasetFilter(multilinguality=<span class="hljs-string">&quot;multilingual&quot;</span>)

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># Using size_categories</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>new_filter = DatasetFilter(size_categories=<span class="hljs-string">&quot;100K&lt;n&lt;1M&quot;</span>)

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># Using task_categories</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>new_filter = DatasetFilter(task_categories=<span class="hljs-string">&quot;audio_classification&quot;</span>)

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># Using task_ids</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>new_filter = DatasetFilter(task_ids=<span class="hljs-string">&quot;paraphrase&quot;</span>)`,wrap:!1}}),{c(){n=l("p"),n.textContent=g,s=i(),h(a.$$.fragment)},l(t){n=c(t,"P",{"data-svelte-h":!0}),d(n)!=="svelte-kvfsh7"&&(n.textContent=g),s=r(t),m(a.$$.fragment,t)},m(t,y){x(t,n,y),x(t,s,y),f(a,t,y),$=!0},p:I,i(t){$||(_(a.$$.fragment,t),$=!0)},o(t){b(a.$$.fragment,t),$=!1},d(t){t&&(p(n),p(s)),v(a,t)}}}function ow(w){let n,g;return n=new H({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyME1vZGVsRmlsdGVyJTBBJTBBJTIzJTIwRm9yJTIwdGhlJTIwYXV0aG9yX29yX29yZ2FuaXphdGlvbiUwQW5ld19maWx0ZXIlMjAlM0QlMjBNb2RlbEZpbHRlcihhdXRob3Jfb3Jfb3JnYW5pemF0aW9uJTNEJTIyZmFjZWJvb2slMjIpJTBBJTBBJTIzJTIwRm9yJTIwdGhlJTIwbGlicmFyeSUwQW5ld19maWx0ZXIlMjAlM0QlMjBNb2RlbEZpbHRlcihsaWJyYXJ5JTNEJTIycHl0b3JjaCUyMiklMEElMEElMjMlMjBGb3IlMjB0aGUlMjBsYW5ndWFnZSUwQW5ld19maWx0ZXIlMjAlM0QlMjBNb2RlbEZpbHRlcihsYW5ndWFnZSUzRCUyMmZyZW5jaCUyMiklMEElMEElMjMlMjBGb3IlMjB0aGUlMjBtb2RlbF9uYW1lJTBBbmV3X2ZpbHRlciUyMCUzRCUyME1vZGVsRmlsdGVyKG1vZGVsX25hbWUlM0QlMjJiZXJ0JTIyKSUwQSUwQSUyMyUyMEZvciUyMHRoZSUyMHRhc2slMEFuZXdfZmlsdGVyJTIwJTNEJTIwTW9kZWxGaWx0ZXIodGFzayUzRCUyMnRleHQtY2xhc3NpZmljYXRpb24lMjIpJTBBJTBBZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMEhmQXBpJTBBJTBBYXBpJTIwJTNEJTIwSGZBcGkoKSUwQSUwQW5ld19maWx0ZXIlMjAlM0QlMjBNb2RlbEZpbHRlcih0YWdzJTNEJTIyYmVuY2htYXJrJTNBcmFmdCUyMiklMEElMEElMjMlMjBSZWxhdGVkJTIwdG8lMjB0aGUlMjBkYXRhc2V0JTBBbmV3X2ZpbHRlciUyMCUzRCUyME1vZGVsRmlsdGVyKHRyYWluZWRfZGF0YXNldCUzRCUyMmNvbW1vbl92b2ljZSUyMik=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> ModelFilter

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># For the author_or_organization</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>new_filter = ModelFilter(author_or_organization=<span class="hljs-string">&quot;facebook&quot;</span>)

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># For the library</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>new_filter = ModelFilter(library=<span class="hljs-string">&quot;pytorch&quot;</span>)

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># For the language</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>new_filter = ModelFilter(language=<span class="hljs-string">&quot;french&quot;</span>)

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># For the model_name</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>new_filter = ModelFilter(model_name=<span class="hljs-string">&quot;bert&quot;</span>)

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># For the task</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>new_filter = ModelFilter(task=<span class="hljs-string">&quot;text-classification&quot;</span>)

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> HfApi

<span class="hljs-meta">&gt;&gt;&gt; </span>api = HfApi()
<span class="hljs-comment"># To list model tags</span>

<span class="hljs-meta">&gt;&gt;&gt; </span>new_filter = ModelFilter(tags=<span class="hljs-string">&quot;benchmark:raft&quot;</span>)

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># Related to the dataset</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>new_filter = ModelFilter(trained_dataset=<span class="hljs-string">&quot;common_voice&quot;</span>)`,wrap:!1}}),{c(){h(n.$$.fragment)},l(s){m(n.$$.fragment,s)},m(s,a){f(n,s,a),g=!0},p:I,i(s){g||(_(n.$$.fragment,s),g=!0)},o(s){b(n.$$.fragment,s),g=!1},d(s){v(n,s)}}}function aw(w){let n,g,s,a,$,t,y,Ua="Below is the documentation for the <code>HfApi</code> class, which serves as a Python wrapper for the Hugging Face Hub’s API.",jd,Ja,Uv="All methods from the <code>HfApi</code> are also accessible from the package’s root directly. Both approaches are detailed below.",Cd,Aa,Jv=`Using the root method is more straightforward but the <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.HfApi">HfApi</a> class gives you more flexibility.
In particular, you can pass a token that will be reused in all HTTP calls. This is different
than <code>huggingface-cli login</code> or <a href="/docs/huggingface_hub/main/en/package_reference/login#huggingface_hub.login">login()</a> as the token is not persisted on the machine.
It is also possible to provide a different endpoint or configure a custom user-agent.`,Id,qa,Hd,Na,Ud,M,Ea,Ng,ve,Ra,Eg,kr,Av="Add an item to a collection on the Hub.",Rg,Tr,qv='Returns: <a href="/docs/huggingface_hub/main/en/package_reference/collections#huggingface_hub.Collection">Collection</a>',Gg,Nn,Dg,yt,Ga,Sg,jr,Nv="Adds or updates a secret in a Space.",Fg,Cr,Ev=`Secrets allow to set secret keys or tokens to a Space without hardcoding them.
For more details, see <a href="https://huggingface.co/docs/hub/spaces-overview#managing-secrets" rel="nofollow">https://huggingface.co/docs/hub/spaces-overview#managing-secrets</a>.`,Zg,xt,Da,Lg,Ir,Rv="Adds or updates a variable in a Space.",Bg,Hr,Gv=`Variables allow to set environment variables to a Space without hardcoding them.
For more details, see <a href="https://huggingface.co/docs/hub/spaces-overview#managing-secrets-and-environment-variables" rel="nofollow">https://huggingface.co/docs/hub/spaces-overview#managing-secrets-and-environment-variables</a>`,Wg,$e,Sa,Vg,Ur,Dv="Closes or re-opens a Discussion or Pull Request.",Xg,En,Yg,Rn,Pg,ye,Fa,Og,Jr,Sv="Creates a new comment on the given Discussion.",zg,Gn,Qg,Dn,Kg,Sn,Za,eu,Ar,Fv=`Create a new branch for a repo on the Hub, starting from the specified revision (defaults to <code>main</code>).
To find a revision suiting your needs, you can use <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.HfApi.list_repo_refs">list_repo_refs()</a> or <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.HfApi.list_repo_commits">list_repo_commits()</a>.`,tu,xe,La,nu,qr,Zv="Create a new Collection on the Hub.",ou,Nr,Lv='Returns: <a href="/docs/huggingface_hub/main/en/package_reference/collections#huggingface_hub.Collection">Collection</a>',au,Fn,su,se,Ba,iu,Er,Bv="Creates a commit in the given repo, deleting & uploading files as needed.",ru,Zn,lu,Ln,cu,Bn,pu,Z,Wa,du,Rr,Wv="Push changes to the Hub in multiple commits.",gu,Gr,Vv=`Commits are pushed to a draft PR branch. If the upload fails or gets interrupted, it can be resumed. Progress
is tracked in the PR description. At the end of the process, the PR is set as open and the title is updated to
match the initial commit message. If <code>merge_pr=True</code> is passed, the PR is merged automatically.`,uu,Dr,Xv=`All deletion commits are pushed first, followed by the addition commits. The order of the commits is not
guaranteed as we might implement parallel commits in the future. Be sure that your are not updating several
times the same file.`,hu,Wn,mu,Vn,fu,Xn,_u,V,Va,bu,Sr,Yv="Creates a Discussion or Pull Request.",vu,Fr,Pv="Pull Requests created programmatically will be in <code>&quot;draft&quot;</code> status.",$u,Zr,Ov='Creating a Pull Request with changes can also be done at once with <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.HfApi.create_commit">HfApi.create_commit()</a>.',yu,Lr,zv='Returns: <a href="/docs/huggingface_hub/main/en/package_reference/community#huggingface_hub.DiscussionWithDetails">DiscussionWithDetails</a>',xu,Yn,wu,wt,Xa,Mu,Br,Qv="Create a new Inference Endpoint.",ku,Pn,Tu,X,Ya,ju,Wr,Kv="Creates a Pull Request . Pull Requests created programmatically will be in <code>&quot;draft&quot;</code> status.",Cu,Vr,e$='Creating a Pull Request with changes can also be done at once with <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.HfApi.create_commit">HfApi.create_commit()</a>;',Iu,Xr,t$='This is a wrapper around <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.HfApi.create_discussion">HfApi.create_discussion()</a>.',Hu,Yr,n$='Returns: <a href="/docs/huggingface_hub/main/en/package_reference/community#huggingface_hub.DiscussionWithDetails">DiscussionWithDetails</a>',Uu,On,Ju,zn,Pa,Au,Pr,o$="Create an empty repo on the HuggingFace Hub.",qu,Qn,Oa,Nu,Or,a$="Tag a given commit of a repo on the Hub.",Eu,we,za,Ru,zr,s$="Get info on one specific dataset on huggingface.co.",Gu,Qr,i$="Dataset can be private if you pass an acceptable token.",Du,Kn,Su,eo,Qa,Fu,Kr,r$="Delete a branch from a repo on the Hub.",Zu,Me,Ka,Lu,el,l$="Delete a collection on the Hub.",Bu,to,Wu,no,Vu,Mt,es,Xu,tl,c$="Delete an item from a collection.",Yu,oo,Pu,kt,ts,Ou,nl,p$="Deletes a file in the given repo.",zu,ao,Qu,Tt,ns,Ku,ol,d$="Deletes a folder in the given repo.",eh,al,g$='Simple wrapper around <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.HfApi.create_commit">create_commit()</a> method.',th,ke,os,nh,sl,u$="Delete an Inference Endpoint.",oh,il,h$=`This operation is not reversible. If you don’t want to be charged for an Inference Endpoint, it is preferable
to pause it with <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.HfApi.pause_inference_endpoint">pause_inference_endpoint()</a> or scale it to zero with <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.HfApi.scale_to_zero_inference_endpoint">scale_to_zero_inference_endpoint()</a>.`,ah,rl,m$='For convenience, you can also delete an Inference Endpoint using <a href="/docs/huggingface_hub/main/en/package_reference/inference_endpoints#huggingface_hub.InferenceEndpoint.delete">InferenceEndpoint.delete()</a>.',sh,so,as,ih,ll,f$="Delete a repo from the HuggingFace Hub. CAUTION: this is irreversible.",rh,jt,ss,lh,cl,_$="Deletes a secret from a Space.",ch,pl,b$=`Secrets allow to set secret keys or tokens to a Space without hardcoding them.
For more details, see <a href="https://huggingface.co/docs/hub/spaces-overview#managing-secrets" rel="nofollow">https://huggingface.co/docs/hub/spaces-overview#managing-secrets</a>.`,ph,io,is,dh,dl,v$="Delete persistent storage for a Space.",gh,Ct,rs,uh,gl,$$="Deletes a variable from a Space.",hh,ul,y$=`Variables allow to set environment variables to a Space without hardcoding them.
For more details, see <a href="https://huggingface.co/docs/hub/spaces-overview#managing-secrets-and-environment-variables" rel="nofollow">https://huggingface.co/docs/hub/spaces-overview#managing-secrets-and-environment-variables</a>`,mh,ro,ls,fh,hl,x$="Delete a tag from a repo on the Hub.",_h,Te,cs,bh,ml,w$="Duplicate a Space.",vh,fl,M$=`Programmatically duplicate a Space. The new Space will be created in your account and will be in the same state
as the original Space (running or paused). You can duplicate a Space no matter the current state of a Space.`,$h,lo,yh,It,ps,xh,_l,k$="Edits a comment on a Discussion / Pull Request.",wh,co,Mh,Ht,ds,kh,bl,T$="Checks if a file exists in a repository on the Hugging Face Hub.",Th,po,jh,je,gs,Ch,vl,j$="Gets information about a Collection on the Hub.",Ih,$l,C$='Returns: <a href="/docs/huggingface_hub/main/en/package_reference/collections#huggingface_hub.Collection">Collection</a>',Hh,go,Uh,uo,us,Jh,yl,I$="List all valid dataset tags as a nested namespace object.",Ah,Ce,hs,qh,xl,H$="Fetches a Discussion’s / Pull Request ‘s details from the Hub.",Nh,wl,U$='Returns: <a href="/docs/huggingface_hub/main/en/package_reference/community#huggingface_hub.DiscussionWithDetails">DiscussionWithDetails</a>',Eh,ho,Rh,mo,ms,Gh,Ml,J$=`Returns the repository name for a given model ID and optional
organization.`,Dh,Ut,fs,Sh,kl,A$="Get information about an Inference Endpoint.",Fh,fo,Zh,_o,_s,Lh,Tl,q$="List all valid model tags as a nested namespace object",Bh,ie,bs,Wh,jl,N$="Fetches Discussions and Pull Requests for the given repo.",Vh,Cl,E$="Example:",Xh,bo,Yh,vo,Ph,$o,vs,Oh,Il,R$="Gets runtime information about a Space.",zh,Jt,$s,Qh,Hl,G$="Gets all variables from a Space.",Kh,Ul,D$=`Variables allow to set environment variables to a Space without hardcoding them.
For more details, see <a href="https://huggingface.co/docs/hub/spaces-overview#managing-secrets-and-environment-variables" rel="nofollow">https://huggingface.co/docs/hub/spaces-overview#managing-secrets-and-environment-variables</a>`,em,At,ys,tm,Jl,S$="Check if a given <code>token</code> is valid and return its permissions.",nm,Al,F$='For more details about tokens, please refer to <a href="https://huggingface.co/docs/hub/security-tokens#what-are-user-access-tokens" rel="nofollow">https://huggingface.co/docs/hub/security-tokens#what-are-user-access-tokens</a>.',om,D,xs,am,ql,Z$="Download a given file if it’s not already present in the local cache.",sm,Nl,L$="The new cache file layout looks like this:",im,El,B$=`<li>The cache directory contains one subfolder per repo_id (namespaced by repo type)</li> <li>inside each repo folder:<ul><li>refs is a list of the latest known revision =&gt; commit_hash pairs</li> <li>blobs contains the actual file blobs (identified by their git-sha or sha256, depending on
whether they’re LFS files or not)</li> <li>snapshots contains one subfolder per commit, each “commit” contains the subset of the files
that have been resolved at that particular commit. Each filename is a symlink to the blob
at that particular commit.</li></ul></li>`,rm,Rl,W$=`If <code>local_dir</code> is provided, the file structure from the repo will be replicated in this location. You can configure
how you want to move those files:`,lm,Gl,V$=`<li>If <code>local_dir_use_symlinks=&quot;auto&quot;</code> (default), files are downloaded and stored in the cache directory as blob
files. Small files (&lt;5MB) are duplicated in <code>local_dir</code> while a symlink is created for bigger files. The goal
is to be able to manually edit and save small files without corrupting the cache while saving disk space for
binary files. The 5MB threshold can be configured with the <code>HF_HUB_LOCAL_DIR_AUTO_SYMLINK_THRESHOLD</code>
environment variable.</li> <li>If <code>local_dir_use_symlinks=True</code>, files are downloaded, stored in the cache directory and symlinked in <code>local_dir</code>.
This is optimal in term of disk usage but files must not be manually edited.</li> <li>If <code>local_dir_use_symlinks=False</code> and the blob files exist in the cache directory, they are duplicated in the
local dir. This means disk usage is not optimized.</li> <li>Finally, if <code>local_dir_use_symlinks=False</code> and the blob files do not exist in the cache directory, then the
files are downloaded and directly placed under <code>local_dir</code>. This means if you need to download them again later,
they will be re-downloaded entirely.</li>`,cm,yo,pm,xo,dm,Ie,ws,gm,Dl,X$="Hides a comment on a Discussion / Pull Request.",um,wo,hm,Mo,mm,He,Ms,fm,Sl,Y$="Like a given repo on the Hub (e.g. set as favorite).",_m,Fl,P$='See also <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.HfApi.unlike">unlike()</a> and <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.HfApi.list_liked_repos">list_liked_repos()</a>.',bm,ko,vm,Ue,ks,$m,Zl,O$="List datasets hosted on the Huggingface Hub, given some filters.",ym,To,xm,jo,wm,A,Ts,Mm,Ll,z$="List files on a repo and get information about them.",km,Bl,Q$="Takes as input a list of paths. Those paths can be either files or folders. Two server endpoints are called:",Tm,Wl,K$=`<li>POST “/paths-info” to get information about the provided paths. Called once.</li> <li>GET  “/tree?recursive=True” to paginate over the input folders. Called only if a folder path is provided as
input. Will be called multiple times to follow pagination.
If no path is provided as input, step 1. is ignored and all files from the repo are listed.</li>`,jm,Vl,ey="Examples:",Cm,Xl,ty="Get information about files on a repo.",Im,Co,Hm,Yl,ny="Get even more information about files on a repo (last commit and security scan results)",Um,Io,Jm,Pl,oy="List LFS files from the “vae/” folder in “stabilityai/stable-diffusion-2” repository.",Am,Ho,qm,Ol,ay="List all files on a repo.",Nm,Uo,Em,qt,js,Rm,zl,sy="Lists all inference endpoints for the given namespace.",Gm,Jo,Dm,re,Cs,Sm,Ql,iy="List all public repos liked by a user on huggingface.co.",Fm,Kl,ry=`This list is public so token is optional. If <code>user</code> is not passed, it defaults to
the logged in user.`,Zm,ec,ly='See also <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.HfApi.like">like()</a> and <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.HfApi.unlike">unlike()</a>.',Lm,Ao,Bm,qo,Is,Wm,tc,cy="Get the public list of all the metrics on huggingface.co",Vm,Y,Hs,Xm,nc,py="List models hosted on the Huggingface Hub, given some filters.",Ym,No,Pm,oc,dy="<blockquote><blockquote><p>api = HfApi()</p></blockquote></blockquote>",Om,bd,vd,Us,Js,zm,ac,gy="api.list_models(search=“bert”)",Qm,$d,yd,Kt,As,Km,sc,uy="api.list_models(search=“bert”, author=“google”)",ef,qs,tf,Je,Ns,nf,ic,hy="Get the list of commits of a given revision for a repo on the Hub.",of,rc,my="Commits are sorted by date (last commit first).",af,Eo,sf,Ro,Es,rf,lc,fy="Get the list of files in a given repo.",lf,Nt,Rs,cf,cc,_y="List all users who liked a given repo on the hugging Face Hub.",pf,pc,by='See also <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.HfApi.like">like()</a> and <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.HfApi.list_liked_repos">list_liked_repos()</a>.',df,Et,Gs,gf,dc,vy="Get the list of refs of a given repo (both tags and branches).",uf,Go,hf,Do,Ds,mf,gc,$y="List spaces hosted on the Huggingface Hub, given some filters.",ff,Rt,Ss,_f,uc,yy="Merges a Pull Request.",bf,So,vf,Ae,Fs,$f,hc,xy="Get info on one specific model on huggingface.co",yf,mc,wy="Model can be private if you pass an acceptable token or are logged in.",xf,Fo,wf,qe,Zs,Mf,fc,My="Moving a repository from namespace1/repo_name1 to namespace2/repo_name2",kf,_c,ky=`Note there are certain limitations. For more information about moving
repositories, please see
<a href="https://hf.co/docs/hub/repositories-settings#renaming-or-transferring-a-repo" rel="nofollow">https://hf.co/docs/hub/repositories-settings#renaming-or-transferring-a-repo</a>.`,Tf,Zo,jf,Ne,Ls,Cf,bc,Ty="Pause an Inference Endpoint.",If,vc,jy=`A paused Inference Endpoint will not be charged. It can be resumed at any time using <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.HfApi.resume_inference_endpoint">resume_inference_endpoint()</a>.
This is different than scaling the Inference Endpoint to zero with <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.HfApi.scale_to_zero_inference_endpoint">scale_to_zero_inference_endpoint()</a>, which
would be automatically restarted when a request is made to it.`,Hf,$c,Cy='For convenience, you can also pause an Inference Endpoint using <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.HfApi.pause_inference_endpoint">pause_inference_endpoint()</a>.',Uf,Ee,Bs,Jf,yc,Iy="Pause your Space.",Af,xc,Hy=`A paused Space stops executing until manually restarted by its owner. This is different from the sleeping
state in which free Spaces go after 48h of inactivity. Paused time is not billed to your account, no matter the
hardware you’ve selected. To restart your Space, use <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.HfApi.restart_space">restart_space()</a> and go to your Space settings page.`,qf,wc,Uy='For more details, please visit <a href="https://huggingface.co/docs/hub/spaces-gpus#pause" rel="nofollow">the docs</a>.',Nf,P,Ws,Ef,Mc,Jy="Pre-upload LFS files to S3 in preparation on a future commit.",Rf,kc,Ay=`This method is useful if you are generating the files to upload on-the-fly and you don’t want to store them
in memory before uploading them all at once.`,Gf,Lo,Df,Bo,Sf,Wo,Ff,Re,Vs,Zf,Tc,qy="Renames a Discussion.",Lf,Vo,Bf,Xo,Wf,Gt,Xs,Vf,jc,Ny="Checks if a repository exists on the Hugging Face Hub.",Xf,Yo,Yf,Dt,Ys,Pf,Cc,Ey="Get the info object for a given repo of a given type.",Of,Po,zf,St,Ps,Qf,Ic,Ry="Request new hardware for a Space.",Kf,Oo,e_,Ft,Os,t_,Hc,Gy="Request persistent storage for a Space.",n_,zo,o_,Ge,zs,a_,Uc,Dy="Restart your Space.",s_,Jc,Sy=`This is the only way to programmatically restart a Space if you’ve put it on Pause (see <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.HfApi.pause_space">pause_space()</a>). You
must be the owner of the Space to restart it. If you are using an upgraded hardware, your account will be
billed as soon as the Space is restarted. You can trigger a restart no matter the current state of a Space.`,i_,Ac,Fy='For more details, please visit <a href="https://huggingface.co/docs/hub/spaces-gpus#pause" rel="nofollow">the docs</a>.',r_,Zt,Qs,l_,qc,Zy="Resume an Inference Endpoint.",c_,Nc,Ly='For convenience, you can also resume an Inference Endpoint using <a href="/docs/huggingface_hub/main/en/package_reference/inference_endpoints#huggingface_hub.InferenceEndpoint.resume">InferenceEndpoint.resume()</a>.',p_,le,Ks,d_,Ec,By="Run a method in the background and return a Future instance.",g_,Rc,Wy=`The main goal is to run methods without blocking the main thread (e.g. to push data during a training).
Background jobs are queued to preserve order but are not ran in parallel. If you need to speed-up your scripts
by parallelizing lots of call to the API, you must setup and use your own <a href="https://docs.python.org/3/library/concurrent.futures.html#threadpoolexecutor" rel="nofollow">ThreadPoolExecutor</a>.`,u_,Gc,Vy=`Note: Most-used methods like <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.HfApi.upload_file">upload_file()</a>, <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.HfApi.upload_folder">upload_folder()</a> and <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.HfApi.create_commit">create_commit()</a> have a <code>run_as_future: bool</code>
argument to directly call them in the background. This is equivalent to calling <code>api.run_as_future(...)</code> on them
but less verbose.`,h_,Qo,m_,De,ei,f_,Dc,Xy="Scale Inference Endpoint to zero.",__,Sc,Yy=`An Inference Endpoint scaled to zero will not be charged. It will be resume on the next request to it, with a
cold start delay. This is different than pausing the Inference Endpoint with <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.HfApi.pause_inference_endpoint">pause_inference_endpoint()</a>, which
would require a manual resume with <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.HfApi.resume_inference_endpoint">resume_inference_endpoint()</a>.`,b_,Fc,Py='For convenience, you can also scale an Inference Endpoint to zero using <a href="/docs/huggingface_hub/main/en/package_reference/inference_endpoints#huggingface_hub.InferenceEndpoint.scale_to_zero">InferenceEndpoint.scale_to_zero()</a>.',v_,Se,ti,$_,Zc,Oy="Set a custom sleep time for a Space running on upgraded hardware..",y_,Lc,zy=`Your Space will go to sleep after X seconds of inactivity. You are not billed when your Space is in “sleep”
mode. If a new visitor lands on your Space, it will “wake it up”. Only upgraded hardware can have a
configurable sleep time. To know more about the sleep stage, please refer to
<a href="https://huggingface.co/docs/hub/spaces-gpus#sleep-time" rel="nofollow">https://huggingface.co/docs/hub/spaces-gpus#sleep-time</a>.`,x_,Ko,w_,L,ni,M_,Bc,Qy="Download repo files.",k_,Wc,Ky=`Download a whole snapshot of a repo’s files at the specified revision. This is useful when you want all files from
a repo, because you don’t know which ones you will need a priori. All files are nested inside a folder in order
to keep their actual filename relative to that folder. You can also filter which files to download using
<code>allow_patterns</code> and <code>ignore_patterns</code>.`,T_,Vc,ex=`If <code>local_dir</code> is provided, the file structure from the repo will be replicated in this location. You can configure
how you want to move those files:`,j_,Xc,tx=`<li>If <code>local_dir_use_symlinks=&quot;auto&quot;</code> (default), files are downloaded and stored in the cache directory as blob
files. Small files (&lt;5MB) are duplicated in <code>local_dir</code> while a symlink is created for bigger files. The goal
is to be able to manually edit and save small files without corrupting the cache while saving disk space for
binary files. The 5MB threshold can be configured with the <code>HF_HUB_LOCAL_DIR_AUTO_SYMLINK_THRESHOLD</code>
environment variable.</li> <li>If <code>local_dir_use_symlinks=True</code>, files are downloaded, stored in the cache directory and symlinked in <code>local_dir</code>.
This is optimal in term of disk usage but files must not be manually edited.</li> <li>If <code>local_dir_use_symlinks=False</code> and the blob files exist in the cache directory, they are duplicated in the
local dir. This means disk usage is not optimized.</li> <li>Finally, if <code>local_dir_use_symlinks=False</code> and the blob files do not exist in the cache directory, then the
files are downloaded and directly placed under <code>local_dir</code>. This means if you need to download them again later,
they will be re-downloaded entirely.</li>`,C_,Yc,nx=`An alternative would be to clone the repo but this requires git and git-lfs to be installed and properly
configured. It is also not possible to filter which files to download when cloning a repository using git.`,I_,ea,H_,Fe,oi,U_,Pc,ox="Get info on one specific Space on huggingface.co.",J_,Oc,ax="Space can be private if you pass an acceptable token.",A_,ta,q_,O,ai,N_,zc,sx="Squash commit history on a branch for a repo on the Hub.",E_,Qc,ix=`Squashing the repo history is useful when you know you’ll make hundreds of commits and you don’t want to
clutter the history. Squashing commits can only be performed from the head of a branch.`,R_,na,G_,oa,D_,aa,S_,Ze,si,F_,Kc,rx="Unlike a given repo on the Hub (e.g. remove from favorite list).",Z_,ep,lx='See also <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.HfApi.like">like()</a> and <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.HfApi.list_liked_repos">list_liked_repos()</a>.',L_,sa,B_,Lt,ii,W_,tp,cx="Update an item in a collection.",V_,ia,X_,ce,ri,Y_,np,px="Update metadata of a collection on the Hub.",P_,op,dx="All arguments are optional. Only provided metadata will be updated.",O_,ap,gx='Returns: <a href="/docs/huggingface_hub/main/en/package_reference/collections#huggingface_hub.Collection">Collection</a>',z_,ra,Q_,Le,li,K_,sp,ux="Update an Inference Endpoint.",eb,ip,hx=`This method allows the update of either the compute configuration, the deployed model, or both. All arguments are
optional but at least one must be provided.`,tb,rp,mx='For convenience, you can also update an Inference Endpoint using <a href="/docs/huggingface_hub/main/en/package_reference/inference_endpoints#huggingface_hub.InferenceEndpoint.update">InferenceEndpoint.update()</a>.',nb,Bt,ci,ob,lp,fx="Update the visibility setting of a repository.",ab,la,sb,pe,pi,ib,cp,_x=`Upload a local file (up to 50 GB) to the given repo. The upload is done
through a HTTP post request, and doesn’t require git or git-lfs to be
installed.`,rb,ca,lb,pa,cb,da,pb,N,di,db,pp,bx=`Upload a local folder to the given repo. The upload is done through a HTTP requests, and doesn’t require git or
git-lfs to be installed.`,gb,dp,vx=`The structure of the folder will be preserved. Files with the same name already present in the repository will
be overwritten. Others will be left untouched.`,ub,gp,$x=`Use the <code>allow_patterns</code> and <code>ignore_patterns</code> arguments to specify which files to upload. These parameters
accept either a single pattern or a list of patterns. Patterns are Standard Wildcards (globbing patterns) as
documented <a href="https://tldp.org/LDP/GNU-Linux-Tools-Summary/html/x11655.htm" rel="nofollow">here</a>. If both <code>allow_patterns</code> and
<code>ignore_patterns</code> are provided, both constraints apply. By default, all files from the folder are uploaded.`,hb,up,yx=`Use the <code>delete_patterns</code> argument to specify remote files you want to delete. Input type is the same as for
<code>allow_patterns</code> (see above). If <code>path_in_repo</code> is also provided, the patterns are matched against paths
relative to this folder. For example, <code>upload_folder(..., path_in_repo=&quot;experiment&quot;, delete_patterns=&quot;logs/*&quot;)</code>
will delete any remote file under <code>./experiment/logs/</code>. Note that the <code>.gitattributes</code> file will not be deleted
even if it matches the patterns.`,mb,hp,xx=`Any <code>.git/</code> folder present in any subdirectory will be ignored. However, please be aware that the <code>.gitignore</code>
file is not taken into account.`,fb,mp,wx="Uses <code>HfApi.create_commit</code> under the hood.",_b,ga,bb,ua,vb,ha,$b,ma,yb,fa,gi,xb,fp,Mx="Call HF API to know “whoami”.",Jd,G,ui,wb,_p,kx="Split a list of operations in a list of commits to perform.",Mb,bp,Tx="Implementation follows a sub-optimal (yet simple) algorithm:",kb,vp,jx=`<li>Delete operations are grouped together by commits of maximum <code>max_operations_per_commits</code> operations.</li> <li>All additions exceeding <code>max_upload_size_per_commit</code> are committed 1 by 1.</li> <li>All remaining additions are grouped together and split each time the <code>max_operations_per_commit</code> or the
<code>max_upload_size_per_commit</code> limit is reached.</li>`,Tb,$p,Cx=`We do not try to optimize the splitting to get the lowest number of commits as this is a NP-hard problem (see
<a href="https://en.wikipedia.org/wiki/Bin_packing_problem" rel="nofollow">bin packing problem</a>). For our use case, it is not problematic
to use a sub-optimal solution so we favored an easy-to-explain implementation.`,jb,_a,Cb,ba,Ib,va,Ad,hi,qd,mi,Nd,Ve,fi,Hb,yp,Ix="Data structure containing information about a newly created commit.",Ub,xp,Hx='Returned by <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.HfApi.create_commit">create_commit()</a>.',Ed,_i,Rd,en,bi,Jb,wp,Ux="Contains information about a dataset on the Hub.",Gd,vi,Dd,tn,$i,Ab,Mp,Jx="Contains information about a git reference for a repo on the Hub.",Sd,yi,Fd,nn,xi,qb,kp,Ax='Contains information about a git commit for a repo on the Hub. Check out <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.HfApi.list_repo_commits">list_repo_commits()</a> for more details.',Zd,wi,Ld,Xe,Mi,Nb,Tp,qx="Contains information about all git references for a repo on the Hub.",Eb,jp,Nx='Object is returned by <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.HfApi.list_repo_refs">list_repo_refs()</a>.',Bd,ki,Wd,on,Ti,Rb,Cp,Ex="Contains information about a model on the Hub.",Vd,ji,Xd,an,Ci,Gb,Ip,Rx="Contains basic information about a repo file inside a repo on the Hub.",Yd,Ii,Pd,sn,Hi,Db,Hp,Gx="Contains information about a model on the Hub.",Od,Ui,zd,Q,Ji,Sb,Up,Dx="Subclass of <code>str</code> describing a repo URL on the Hub.",Fb,Jp,Sx=`<code>RepoUrl</code> is returned by <code>HfApi.create_repo</code>. It inherits from <code>str</code> for backward
compatibility. At initialization, the URL is parsed to populate properties:`,Zb,Ap,Fx="<li>endpoint (<code>str</code>)</li> <li>namespace (<code>Optional[str]</code>)</li> <li>repo_name (<code>str</code>)</li> <li>repo_id (<code>str</code>)</li> <li>repo_type (<code>Literal[&quot;model&quot;, &quot;dataset&quot;, &quot;space&quot;]</code>)</li> <li>url (<code>str</code>)</li>",Lb,$a,Qd,Ai,Kd,rn,qi,Bb,qp,Zx="Contains information about a Space on the Hub.",eg,Ni,tg,ln,Ei,Wb,Np,Lx="Contains information about a user on the Hub.",ng,Ri,og,cn,Gi,Vb,Ep,Bx="Contains information about a user likes on the Hub.",ag,Di,sg,Si,Wx="Below are the supported values for <code>CommitOperation()</code>:",ig,ge,Fi,Xb,Rp,Vx="Data structure holding necessary info to upload a file to a repository on the Hub.",Yb,Wt,Zi,Pb,Gp,Xx=`A context manager that yields a file-like object allowing to read the underlying
data behind <code>path_or_fileobj</code>.`,Ob,ya,zb,Vt,Li,Qb,Dp,Yx="The base64-encoded content of <code>path_or_fileobj</code>",Kb,Sp,Px="Returns: <code>bytes</code>",rg,pn,Bi,ev,Fp,Ox=`Data structure holding necessary info to delete a file or a folder from a repository
on the Hub.`,lg,K,Wi,tv,Zp,zx="Data structure holding necessary info to copy a file in a repository on the Hub.",nv,Lp,Qx="Limitations:",ov,Bp,Kx="<li>Only LFS files can be copied. To copy a regular file, you need to download it locally and re-upload it</li> <li>Cross-repository copies are not supported.</li>",av,Wp,e2='Note: you can combine a <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.CommitOperationCopy">CommitOperationCopy</a> and a <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.CommitOperationDelete">CommitOperationDelete</a> to rename an LFS file on the Hub.',cg,Vi,pg,S,Xi,sv,Vp,t2="Scheduler to upload a local folder to the Hub at regular intervals (e.g. push to hub every 5 minutes).",iv,Xp,n2=`The scheduler is started when instantiated and run indefinitely. At the end of your script, a last commit is
triggered. Checkout the <a href="https://huggingface.co/docs/huggingface_hub/guides/upload#scheduled-uploads" rel="nofollow">upload guide</a>
to learn more about how to use it.`,rv,xa,lv,Be,Yi,cv,Yp,o2="Push folder to the Hub and return the commit info.",pv,wa,dv,Pp,a2=`The default behavior of <code>push_to_hub</code> is to assume an append-only folder. It lists all files in the folder and
uploads only changed files. If no changes are found, the method returns without committing anything. If you want
to change this behavior, you can inherit from <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.CommitScheduler">CommitScheduler</a> and override this method. This can be useful
for example to compress data together in a single file before committing. For more details and examples, check
out our <a href="https://huggingface.co/docs/huggingface_hub/main/en/guides/upload#scheduled-uploads" rel="nofollow">integration guide</a>.`,gv,Xt,Pi,uv,Op,s2="Stop the scheduler.",hv,zp,i2="A stopped scheduler cannot be restarted. Mostly for tests purposes.",mv,Yt,Oi,fv,Qp,r2="Trigger a <code>push_to_hub</code> and return a future.",_v,Kp,l2=`This method is automatically called every <code>every</code> minutes. You can also call it manually to trigger a commit
immediately, without waiting for the next scheduled commit.`,dg,zi,gg,Qi,c2=`<code>huggingface_hub</code> stores the authentication information locally so that it may be re-used in subsequent
methods.`,ug,Ki,p2='It does this using the <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.HfFolder">HfFolder</a> utility, which saves data at the root of the user.',hg,ue,er,bv,Ma,tr,vv,ed,d2="Deletes the token from storage. Does not fail if token does not exist.",$v,We,nr,yv,td,g2="Get token or None if not existent.",xv,nd,u2="Note that a token can be also provided using the <code>HF_TOKEN</code> environment variable.",wv,od,h2=`Token is saved in the huggingface home folder. You can configure it by setting
the <code>HF_HOME</code> environment variable. Previous location was <code>~/.huggingface/token</code>.
If token is found in old location but not in new location, it is copied there first.
For more details, see <a href="https://github.com/huggingface/huggingface_hub/issues/1232" rel="nofollow">https://github.com/huggingface/huggingface_hub/issues/1232</a>.`,Mv,Pt,or,kv,ad,m2="Save token, creating folder as needed.",Tv,sd,f2=`Token is saved in the huggingface home folder. You can configure it by setting
the <code>HF_HOME</code> environment variable.`,mg,ar,fg,sr,_2="Some helpers to filter repositories on the Hub are available in the <code>huggingface_hub</code> package.",_g,ir,bg,Ye,rr,jv,id,b2=`A class that converts human-readable dataset search parameters into ones
compatible with the REST API. For all parameters capitalization does not
matter.`,Cv,ka,vg,lr,$g,Pe,cr,Iv,rd,v2=`A class that converts human-readable model search parameters into ones
compatible with the REST API. For all parameters capitalization does not
matter.`,Hv,Ta,yg,xd,xg;return $=new E({props:{title:"HfApi Client",local:"hfapi-client",headingTag:"h1"}}),qa=new H({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMEhmQXBpJTJDJTIwbGlzdF9tb2RlbHMlMEElMEElMjMlMjBVc2UlMjByb290JTIwbWV0aG9kJTBBbW9kZWxzJTIwJTNEJTIwbGlzdF9tb2RlbHMoKSUwQSUwQSUyMyUyME9yJTIwY29uZmlndXJlJTIwYSUyMEhmQXBpJTIwY2xpZW50JTBBaGZfYXBpJTIwJTNEJTIwSGZBcGkoJTBBJTIwJTIwJTIwJTIwZW5kcG9pbnQlM0QlMjJodHRwcyUzQSUyRiUyRmh1Z2dpbmdmYWNlLmNvJTIyJTJDJTIwJTIzJTIwQ2FuJTIwYmUlMjBhJTIwUHJpdmF0ZSUyMEh1YiUyMGVuZHBvaW50LiUwQSUyMCUyMCUyMCUyMHRva2VuJTNEJTIyaGZfeHh4JTIyJTJDJTIwJTIzJTIwVG9rZW4lMjBpcyUyMG5vdCUyMHBlcnNpc3RlZCUyMG9uJTIwdGhlJTIwbWFjaGluZS4lMEEpJTBBbW9kZWxzJTIwJTNEJTIwaGZfYXBpLmxpc3RfbW9kZWxzKCk=",highlighted:`<span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> HfApi, list_models

<span class="hljs-comment"># Use root method</span>
models = list_models()

<span class="hljs-comment"># Or configure a HfApi client</span>
hf_api = HfApi(
    endpoint=<span class="hljs-string">&quot;https://huggingface.co&quot;</span>, <span class="hljs-comment"># Can be a Private Hub endpoint.</span>
    token=<span class="hljs-string">&quot;hf_xxx&quot;</span>, <span class="hljs-comment"># Token is not persisted on the machine.</span>
)
models = hf_api.list_models()`,wrap:!1}}),Na=new E({props:{title:"HfApi",local:"huggingface_hub.HfApi",headingTag:"h2"}}),Ea=new C({props:{name:"class huggingface_hub.HfApi",anchor:"huggingface_hub.HfApi",parameters:[{name:"endpoint",val:": Optional[str] = None"},{name:"token",val:": Optional[str] = None"},{name:"library_name",val:": Optional[str] = None"},{name:"library_version",val:": Optional[str] = None"},{name:"user_agent",val:": Union[Dict, str, None] = None"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/hf_api.py#L1051"}}),Ra=new C({props:{name:"add_collection_item",anchor:"huggingface_hub.HfApi.add_collection_item",parameters:[{name:"collection_slug",val:": str"},{name:"item_id",val:": str"},{name:"item_type",val:": CollectionItemType_T"},{name:"note",val:": Optional[str] = None"},{name:"exists_ok",val:": bool = False"},{name:"token",val:": Optional[str] = None"}],parametersDescription:[{anchor:"huggingface_hub.HfApi.add_collection_item.collection_slug",description:`<strong>collection_slug</strong> (<code>str</code>) &#x2014;
Slug of the collection to update. Example: <code>&quot;TheBloke/recent-models-64f9a55bb3115b4f513ec026&quot;</code>.`,name:"collection_slug"},{anchor:"huggingface_hub.HfApi.add_collection_item.item_id",description:`<strong>item_id</strong> (<code>str</code>) &#x2014;
ID of the item to add to the collection. It can be the ID of a repo on the Hub (e.g. <code>&quot;facebook/bart-large-mnli&quot;</code>)
or a paper id (e.g. <code>&quot;2307.09288&quot;</code>).`,name:"item_id"},{anchor:"huggingface_hub.HfApi.add_collection_item.item_type",description:`<strong>item_type</strong> (<code>str</code>) &#x2014;
Type of the item to add. Can be one of <code>&quot;model&quot;</code>, <code>&quot;dataset&quot;</code>, <code>&quot;space&quot;</code> or <code>&quot;paper&quot;</code>.`,name:"item_type"},{anchor:"huggingface_hub.HfApi.add_collection_item.note",description:`<strong>note</strong> (<code>str</code>, <em>optional</em>) &#x2014;
A note to attach to the item in the collection. The maximum size for a note is 500 characters.`,name:"note"},{anchor:"huggingface_hub.HfApi.add_collection_item.exists_ok",description:`<strong>exists_ok</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
If <code>True</code>, do not raise an error if item already exists.`,name:"exists_ok"},{anchor:"huggingface_hub.HfApi.add_collection_item.token",description:`<strong>token</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Hugging Face token. Will default to the locally saved token if not provided.`,name:"token"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/hf_api.py#L6765"}}),Nn=new U({props:{anchor:"huggingface_hub.HfApi.add_collection_item.example",$$slots:{default:[j2]},$$scope:{ctx:w}}}),Ga=new C({props:{name:"add_space_secret",anchor:"huggingface_hub.HfApi.add_space_secret",parameters:[{name:"repo_id",val:": str"},{name:"key",val:": str"},{name:"value",val:": str"},{name:"description",val:": Optional[str] = None"},{name:"token",val:": Optional[str] = None"}],parametersDescription:[{anchor:"huggingface_hub.HfApi.add_space_secret.repo_id",description:`<strong>repo_id</strong> (<code>str</code>) &#x2014;
ID of the repo to update. Example: <code>&quot;bigcode/in-the-stack&quot;</code>.`,name:"repo_id"},{anchor:"huggingface_hub.HfApi.add_space_secret.key",description:`<strong>key</strong> (<code>str</code>) &#x2014;
Secret key. Example: <code>&quot;GITHUB_API_KEY&quot;</code>`,name:"key"},{anchor:"huggingface_hub.HfApi.add_space_secret.value",description:`<strong>value</strong> (<code>str</code>) &#x2014;
Secret value. Example: <code>&quot;your_github_api_key&quot;</code>.`,name:"value"},{anchor:"huggingface_hub.HfApi.add_space_secret.description",description:`<strong>description</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Secret description. Example: <code>&quot;Github API key to access the Github API&quot;</code>.`,name:"description"},{anchor:"huggingface_hub.HfApi.add_space_secret.token",description:`<strong>token</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Hugging Face token. Will default to the locally saved token if not provided.`,name:"token"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/hf_api.py#L5614"}}),Da=new C({props:{name:"add_space_variable",anchor:"huggingface_hub.HfApi.add_space_variable",parameters:[{name:"repo_id",val:": str"},{name:"key",val:": str"},{name:"value",val:": str"},{name:"description",val:": Optional[str] = None"},{name:"token",val:": Optional[str] = None"}],parametersDescription:[{anchor:"huggingface_hub.HfApi.add_space_variable.repo_id",description:`<strong>repo_id</strong> (<code>str</code>) &#x2014;
ID of the repo to update. Example: <code>&quot;bigcode/in-the-stack&quot;</code>.`,name:"repo_id"},{anchor:"huggingface_hub.HfApi.add_space_variable.key",description:`<strong>key</strong> (<code>str</code>) &#x2014;
Variable key. Example: <code>&quot;MODEL_REPO_ID&quot;</code>`,name:"key"},{anchor:"huggingface_hub.HfApi.add_space_variable.value",description:`<strong>value</strong> (<code>str</code>) &#x2014;
Variable value. Example: <code>&quot;the_model_repo_id&quot;</code>.`,name:"value"},{anchor:"huggingface_hub.HfApi.add_space_variable.description",description:`<strong>description</strong> (<code>str</code>) &#x2014;
Description of the variable. Example: <code>&quot;Model Repo ID of the implemented model&quot;</code>.`,name:"description"},{anchor:"huggingface_hub.HfApi.add_space_variable.token",description:`<strong>token</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Hugging Face token. Will default to the locally saved token if not provided.`,name:"token"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/hf_api.py#L5687"}}),Sa=new C({props:{name:"change_discussion_status",anchor:"huggingface_hub.HfApi.change_discussion_status",parameters:[{name:"repo_id",val:": str"},{name:"discussion_num",val:": int"},{name:"new_status",val:": Literal[('open', 'closed')]"},{name:"token",val:": Optional[str] = None"},{name:"comment",val:": Optional[str] = None"},{name:"repo_type",val:": Optional[str] = None"}],parametersDescription:[{anchor:"huggingface_hub.HfApi.change_discussion_status.repo_id",description:`<strong>repo_id</strong> (<code>str</code>) &#x2014;
A namespace (user or an organization) and a repo name separated
by a <code>/</code>.`,name:"repo_id"},{anchor:"huggingface_hub.HfApi.change_discussion_status.discussion_num",description:`<strong>discussion_num</strong> (<code>int</code>) &#x2014;
The number of the Discussion or Pull Request . Must be a strictly positive integer.`,name:"discussion_num"},{anchor:"huggingface_hub.HfApi.change_discussion_status.new_status",description:`<strong>new_status</strong> (<code>str</code>) &#x2014;
The new status for the discussion, either <code>&quot;open&quot;</code> or <code>&quot;closed&quot;</code>.`,name:"new_status"},{anchor:"huggingface_hub.HfApi.change_discussion_status.comment",description:`<strong>comment</strong> (<code>str</code>, <em>optional</em>) &#x2014;
An optional comment to post with the status change.`,name:"comment"},{anchor:"huggingface_hub.HfApi.change_discussion_status.repo_type",description:`<strong>repo_type</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Set to <code>&quot;dataset&quot;</code> or <code>&quot;space&quot;</code> if uploading to a dataset or
space, <code>None</code> or <code>&quot;model&quot;</code> if uploading to a model. Default is
<code>None</code>.`,name:"repo_type"},{anchor:"huggingface_hub.HfApi.change_discussion_status.token",description:`<strong>token</strong> (<code>str</code>, <em>optional</em>) &#x2014;
An authentication token (See <a href="https://huggingface.co/settings/token" rel="nofollow">https://huggingface.co/settings/token</a>)`,name:"token"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/hf_api.py#L5368",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>the status change event</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/huggingface_hub/main/en/package_reference/community#huggingface_hub.DiscussionStatusChange"
>DiscussionStatusChange</a></p>
`}}),En=new U({props:{anchor:"huggingface_hub.HfApi.change_discussion_status.example",$$slots:{default:[C2]},$$scope:{ctx:w}}}),Rn=new J({props:{$$slots:{default:[I2]},$$scope:{ctx:w}}}),Fa=new C({props:{name:"comment_discussion",anchor:"huggingface_hub.HfApi.comment_discussion",parameters:[{name:"repo_id",val:": str"},{name:"discussion_num",val:": int"},{name:"comment",val:": str"},{name:"token",val:": Optional[str] = None"},{name:"repo_type",val:": Optional[str] = None"}],parametersDescription:[{anchor:"huggingface_hub.HfApi.comment_discussion.repo_id",description:`<strong>repo_id</strong> (<code>str</code>) &#x2014;
A namespace (user or an organization) and a repo name separated
by a <code>/</code>.`,name:"repo_id"},{anchor:"huggingface_hub.HfApi.comment_discussion.discussion_num",description:`<strong>discussion_num</strong> (<code>int</code>) &#x2014;
The number of the Discussion or Pull Request . Must be a strictly positive integer.`,name:"discussion_num"},{anchor:"huggingface_hub.HfApi.comment_discussion.comment",description:`<strong>comment</strong> (<code>str</code>) &#x2014;
The content of the comment to create. Comments support markdown formatting.`,name:"comment"},{anchor:"huggingface_hub.HfApi.comment_discussion.repo_type",description:`<strong>repo_type</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Set to <code>&quot;dataset&quot;</code> or <code>&quot;space&quot;</code> if uploading to a dataset or
space, <code>None</code> or <code>&quot;model&quot;</code> if uploading to a model. Default is
<code>None</code>.`,name:"repo_type"},{anchor:"huggingface_hub.HfApi.comment_discussion.token",description:`<strong>token</strong> (<code>str</code>, <em>optional</em>) &#x2014;
An authentication token (See <a href="https://huggingface.co/settings/token" rel="nofollow">https://huggingface.co/settings/token</a>)`,name:"token"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/hf_api.py#L5225",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>the newly created comment</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/huggingface_hub/main/en/package_reference/community#huggingface_hub.DiscussionComment"
>DiscussionComment</a></p>
`}}),Gn=new U({props:{anchor:"huggingface_hub.HfApi.comment_discussion.example",$$slots:{default:[H2]},$$scope:{ctx:w}}}),Dn=new J({props:{$$slots:{default:[U2]},$$scope:{ctx:w}}}),Za=new C({props:{name:"create_branch",anchor:"huggingface_hub.HfApi.create_branch",parameters:[{name:"repo_id",val:": str"},{name:"branch",val:": str"},{name:"revision",val:": Optional[str] = None"},{name:"token",val:": Optional[str] = None"},{name:"repo_type",val:": Optional[str] = None"},{name:"exist_ok",val:": bool = False"}],parametersDescription:[{anchor:"huggingface_hub.HfApi.create_branch.repo_id",description:`<strong>repo_id</strong> (<code>str</code>) &#x2014;
The repository in which the branch will be created.
Example: <code>&quot;user/my-cool-model&quot;</code>.`,name:"repo_id"},{anchor:"huggingface_hub.HfApi.create_branch.branch",description:`<strong>branch</strong> (<code>str</code>) &#x2014;
The name of the branch to create.`,name:"branch"},{anchor:"huggingface_hub.HfApi.create_branch.revision",description:`<strong>revision</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The git revision to create the branch from. It can be a branch name or
the OID/SHA of a commit, as a hexadecimal string. Defaults to the head
of the <code>&quot;main&quot;</code> branch.`,name:"revision"},{anchor:"huggingface_hub.HfApi.create_branch.token",description:`<strong>token</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Authentication token. Will default to the stored token.`,name:"token"},{anchor:"huggingface_hub.HfApi.create_branch.repo_type",description:`<strong>repo_type</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Set to <code>&quot;dataset&quot;</code> or <code>&quot;space&quot;</code> if creating a branch on a dataset or
space, <code>None</code> or <code>&quot;model&quot;</code> if tagging a model. Default is <code>None</code>.`,name:"repo_type"},{anchor:"huggingface_hub.HfApi.create_branch.exist_ok",description:`<strong>exist_ok</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
If <code>True</code>, do not raise an error if branch already exists.`,name:"exist_ok"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/hf_api.py#L4628",raiseDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<ul>
<li><a
  href="/docs/huggingface_hub/main/en/package_reference/utilities#huggingface_hub.utils.RepositoryNotFoundError"
>RepositoryNotFoundError</a> —
If repository is not found (error 404): wrong repo_id/repo_type, private
but not authenticated or repo does not exist.</li>
<li><a
  href="/docs/huggingface_hub/main/en/package_reference/utilities#huggingface_hub.utils.BadRequestError"
>BadRequestError</a> —
If invalid reference for a branch. Ex: <code>refs/pr/5</code> or ‘refs/foo/bar’.</li>
<li><a
  href="/docs/huggingface_hub/main/en/package_reference/utilities#huggingface_hub.utils.HfHubHTTPError"
>HfHubHTTPError</a> —
If the branch already exists on the repo (error 409) and <code>exist_ok</code> is
set to <code>False</code>.</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.RepositoryNotFoundError"
>RepositoryNotFoundError</a> or <a
  href="/docs/huggingface_hub/main/en/package_reference/utilities#huggingface_hub.utils.BadRequestError"
>BadRequestError</a> or <a
  href="/docs/huggingface_hub/main/en/package_reference/utilities#huggingface_hub.utils.HfHubHTTPError"
>HfHubHTTPError</a></p>
`}}),La=new C({props:{name:"create_collection",anchor:"huggingface_hub.HfApi.create_collection",parameters:[{name:"title",val:": str"},{name:"namespace",val:": Optional[str] = None"},{name:"description",val:": Optional[str] = None"},{name:"private",val:": bool = False"},{name:"exists_ok",val:": bool = False"},{name:"token",val:": Optional[str] = None"}],parametersDescription:[{anchor:"huggingface_hub.HfApi.create_collection.title",description:`<strong>title</strong> (<code>str</code>) &#x2014;
Title of the collection to create. Example: <code>&quot;Recent models&quot;</code>.`,name:"title"},{anchor:"huggingface_hub.HfApi.create_collection.namespace",description:`<strong>namespace</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Namespace of the collection to create (username or org). Will default to the owner name.`,name:"namespace"},{anchor:"huggingface_hub.HfApi.create_collection.description",description:`<strong>description</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Description of the collection to create.`,name:"description"},{anchor:"huggingface_hub.HfApi.create_collection.private",description:`<strong>private</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether the collection should be private or not. Defaults to <code>False</code> (i.e. public collection).`,name:"private"},{anchor:"huggingface_hub.HfApi.create_collection.exists_ok",description:`<strong>exists_ok</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
If <code>True</code>, do not raise an error if collection already exists.`,name:"exists_ok"},{anchor:"huggingface_hub.HfApi.create_collection.token",description:`<strong>token</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Hugging Face token. Will default to the locally saved token if not provided.`,name:"token"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/hf_api.py#L6597"}}),Fn=new U({props:{anchor:"huggingface_hub.HfApi.create_collection.example",$$slots:{default:[J2]},$$scope:{ctx:w}}}),Ba=new C({props:{name:"create_commit",anchor:"huggingface_hub.HfApi.create_commit",parameters:[{name:"repo_id",val:": str"},{name:"operations",val:": Iterable[CommitOperation]"},{name:"commit_message",val:": str"},{name:"commit_description",val:": Optional[str] = None"},{name:"token",val:": Optional[str] = None"},{name:"repo_type",val:": Optional[str] = None"},{name:"revision",val:": Optional[str] = None"},{name:"create_pr",val:": Optional[bool] = None"},{name:"num_threads",val:": int = 5"},{name:"parent_commit",val:": Optional[str] = None"},{name:"run_as_future",val:": bool = False"}],parametersDescription:[{anchor:"huggingface_hub.HfApi.create_commit.repo_id",description:`<strong>repo_id</strong> (<code>str</code>) &#x2014;
The repository in which the commit will be created, for example:
<code>&quot;username/custom_transformers&quot;</code>`,name:"repo_id"},{anchor:"huggingface_hub.HfApi.create_commit.operations",description:`<strong>operations</strong> (<code>Iterable</code> of <code>CommitOperation()</code>) &#x2014;
An iterable of operations to include in the commit, either:</p>
<ul>
<li><a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.CommitOperationAdd">CommitOperationAdd</a> to upload a file</li>
<li><a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.CommitOperationDelete">CommitOperationDelete</a> to delete a file</li>
<li><a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.CommitOperationCopy">CommitOperationCopy</a> to copy a file</li>
</ul>
<p>Operation objects will be mutated to include information relative to the upload. Do not reuse the
same objects for multiple commits.`,name:"operations"},{anchor:"huggingface_hub.HfApi.create_commit.commit_message",description:`<strong>commit_message</strong> (<code>str</code>) &#x2014;
The summary (first line) of the commit that will be created.`,name:"commit_message"},{anchor:"huggingface_hub.HfApi.create_commit.commit_description",description:`<strong>commit_description</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The description of the commit that will be created`,name:"commit_description"},{anchor:"huggingface_hub.HfApi.create_commit.token",description:`<strong>token</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Authentication token, obtained with <code>HfApi.login</code> method. Will
default to the stored token.`,name:"token"},{anchor:"huggingface_hub.HfApi.create_commit.repo_type",description:`<strong>repo_type</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Set to <code>&quot;dataset&quot;</code> or <code>&quot;space&quot;</code> if uploading to a dataset or
space, <code>None</code> or <code>&quot;model&quot;</code> if uploading to a model. Default is
<code>None</code>.`,name:"repo_type"},{anchor:"huggingface_hub.HfApi.create_commit.revision",description:`<strong>revision</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The git revision to commit from. Defaults to the head of the <code>&quot;main&quot;</code> branch.`,name:"revision"},{anchor:"huggingface_hub.HfApi.create_commit.create_pr",description:`<strong>create_pr</strong> (<code>boolean</code>, <em>optional</em>) &#x2014;
Whether or not to create a Pull Request with that commit. Defaults to <code>False</code>.
If <code>revision</code> is not set, PR is opened against the <code>&quot;main&quot;</code> branch. If
<code>revision</code> is set and is a branch, PR is opened against this branch. If
<code>revision</code> is set and is not a branch name (example: a commit oid), an
<code>RevisionNotFoundError</code> is returned by the server.`,name:"create_pr"},{anchor:"huggingface_hub.HfApi.create_commit.num_threads",description:`<strong>num_threads</strong> (<code>int</code>, <em>optional</em>) &#x2014;
Number of concurrent threads for uploading files. Defaults to 5.
Setting it to 2 means at most 2 files will be uploaded concurrently.`,name:"num_threads"},{anchor:"huggingface_hub.HfApi.create_commit.parent_commit",description:`<strong>parent_commit</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The OID / SHA of the parent commit, as a hexadecimal string.
Shorthands (7 first characters) are also supported. If specified and <code>create_pr</code> is <code>False</code>,
the commit will fail if <code>revision</code> does not point to <code>parent_commit</code>. If specified and <code>create_pr</code>
is <code>True</code>, the pull request will be created from <code>parent_commit</code>. Specifying <code>parent_commit</code>
ensures the repo has not changed before committing the changes, and can be especially useful
if the repo is updated / committed to concurrently.`,name:"parent_commit"},{anchor:"huggingface_hub.HfApi.create_commit.run_as_future",description:`<strong>run_as_future</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to run this method in the background. Background jobs are run sequentially without
blocking the main thread. Passing <code>run_as_future=True</code> will return a <a href="https://docs.python.org/3/library/concurrent.futures.html#future-objects" rel="nofollow">Future</a>
object. Defaults to <code>False</code>.`,name:"run_as_future"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/hf_api.py#L3044",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>Instance of <a
  href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.CommitInfo"
>CommitInfo</a> containing information about the newly created commit (commit hash, commit
url, pr url, commit message,…). If <code>run_as_future=True</code> is passed, returns a Future object which will
contain the result when executed.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.CommitInfo"
>CommitInfo</a> or <code>Future</code></p>
`,raiseDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<ul>
<li><a
  href="https://docs.python.org/3/library/exceptions.html#ValueError"
  rel="nofollow"
><code>ValueError</code></a> —
If commit message is empty.</li>
<li><a
  href="https://docs.python.org/3/library/exceptions.html#ValueError"
  rel="nofollow"
><code>ValueError</code></a> —
If parent commit is not a valid commit OID.</li>
<li><a
  href="https://docs.python.org/3/library/exceptions.html#ValueError"
  rel="nofollow"
><code>ValueError</code></a> —
If the Hub API returns an HTTP 400 error (bad request)</li>
<li><a
  href="https://docs.python.org/3/library/exceptions.html#ValueError"
  rel="nofollow"
><code>ValueError</code></a> —
If <code>create_pr</code> is <code>True</code> and revision is neither <code>None</code> nor <code>"main"</code>.</li>
<li><a
  href="/docs/huggingface_hub/main/en/package_reference/utilities#huggingface_hub.utils.RepositoryNotFoundError"
>RepositoryNotFoundError</a> —
If repository is not found (error 404): wrong repo_id/repo_type, private
but not authenticated or repo does not exist.</li>
</ul>
`,raiseType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>ValueError</code> or <a
  href="/docs/huggingface_hub/main/en/package_reference/utilities#huggingface_hub.utils.RepositoryNotFoundError"
>RepositoryNotFoundError</a></p>
`}}),Zn=new J({props:{warning:!0,$$slots:{default:[A2]},$$scope:{ctx:w}}}),Ln=new J({props:{warning:!0,$$slots:{default:[q2]},$$scope:{ctx:w}}}),Bn=new J({props:{warning:!0,$$slots:{default:[N2]},$$scope:{ctx:w}}}),Wa=new C({props:{name:"create_commits_on_pr",anchor:"huggingface_hub.HfApi.create_commits_on_pr",parameters:[{name:"repo_id",val:": str"},{name:"addition_commits",val:": List[List[CommitOperationAdd]]"},{name:"deletion_commits",val:": List[List[CommitOperationDelete]]"},{name:"commit_message",val:": str"},{name:"commit_description",val:": Optional[str] = None"},{name:"token",val:": Optional[str] = None"},{name:"repo_type",val:": Optional[str] = None"},{name:"merge_pr",val:": bool = True"},{name:"num_threads",val:": int = 5"},{name:"verbose",val:": bool = False"}],parametersDescription:[{anchor:"huggingface_hub.HfApi.create_commits_on_pr.repo_id",description:`<strong>repo_id</strong> (<code>str</code>) &#x2014;
The repository in which the commits will be pushed. Example: <code>&quot;username/my-cool-model&quot;</code>.`,name:"repo_id"},{anchor:"huggingface_hub.HfApi.create_commits_on_pr.addition_commits",description:`<strong>addition_commits</strong> (<code>List</code> of <code>List</code> of <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.CommitOperationAdd">CommitOperationAdd</a>) &#x2014;
A list containing lists of <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.CommitOperationAdd">CommitOperationAdd</a>. Each sublist will result in a commit on the
PR.</p>
<p>deletion_commits &#x2014;
A list containing lists of <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.CommitOperationDelete">CommitOperationDelete</a>. Each sublist will result in a commit on
the PR. Deletion commits are pushed before addition commits.`,name:"addition_commits"},{anchor:"huggingface_hub.HfApi.create_commits_on_pr.commit_message",description:`<strong>commit_message</strong> (<code>str</code>) &#x2014;
The summary (first line) of the commit that will be created. Will also be the title of the PR.`,name:"commit_message"},{anchor:"huggingface_hub.HfApi.create_commits_on_pr.commit_description",description:`<strong>commit_description</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The description of the commit that will be created. The description will be added to the PR.`,name:"commit_description"},{anchor:"huggingface_hub.HfApi.create_commits_on_pr.token",description:`<strong>token</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Authentication token, obtained with <code>HfApi.login</code> method. Will default to the stored token.`,name:"token"},{anchor:"huggingface_hub.HfApi.create_commits_on_pr.repo_type",description:`<strong>repo_type</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Set to <code>&quot;dataset&quot;</code> or <code>&quot;space&quot;</code> if uploading to a dataset or space, <code>None</code> or <code>&quot;model&quot;</code> if uploading to
a model. Default is <code>None</code>.`,name:"repo_type"},{anchor:"huggingface_hub.HfApi.create_commits_on_pr.merge_pr",description:`<strong>merge_pr</strong> (<code>bool</code>) &#x2014;
If set to <code>True</code>, the Pull Request is merged at the end of the process. Defaults to <code>True</code>.`,name:"merge_pr"},{anchor:"huggingface_hub.HfApi.create_commits_on_pr.num_threads",description:`<strong>num_threads</strong> (<code>int</code>, <em>optional</em>) &#x2014;
Number of concurrent threads for uploading files. Defaults to 5.`,name:"num_threads"},{anchor:"huggingface_hub.HfApi.create_commits_on_pr.verbose",description:`<strong>verbose</strong> (<code>bool</code>) &#x2014;
If set to <code>True</code>, process will run on verbose mode i.e. print information about the ongoing tasks.
Defaults to <code>False</code>.`,name:"verbose"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/hf_api.py#L3265",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>URL to the created PR.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


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


<ul>
<li><code>MultiCommitException</code> —
If an unexpected issue occur in the process: empty commits, unexpected commits in a PR, unexpected PR
description, etc.</li>
</ul>
`,raiseType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>MultiCommitException</code></p>
`}}),Wn=new J({props:{warning:!0,$$slots:{default:[E2]},$$scope:{ctx:w}}}),Vn=new J({props:{warning:!0,$$slots:{default:[R2]},$$scope:{ctx:w}}}),Xn=new U({props:{anchor:"huggingface_hub.HfApi.create_commits_on_pr.example",$$slots:{default:[G2]},$$scope:{ctx:w}}}),Va=new C({props:{name:"create_discussion",anchor:"huggingface_hub.HfApi.create_discussion",parameters:[{name:"repo_id",val:": str"},{name:"title",val:": str"},{name:"token",val:": Optional[str] = None"},{name:"description",val:": Optional[str] = None"},{name:"repo_type",val:": Optional[str] = None"},{name:"pull_request",val:": bool = False"}],parametersDescription:[{anchor:"huggingface_hub.HfApi.create_discussion.repo_id",description:`<strong>repo_id</strong> (<code>str</code>) &#x2014;
A namespace (user or an organization) and a repo name separated
by a <code>/</code>.`,name:"repo_id"},{anchor:"huggingface_hub.HfApi.create_discussion.title",description:`<strong>title</strong> (<code>str</code>) &#x2014;
The title of the discussion. It can be up to 200 characters long,
and must be at least 3 characters long. Leading and trailing whitespaces
will be stripped.`,name:"title"},{anchor:"huggingface_hub.HfApi.create_discussion.token",description:`<strong>token</strong> (<code>str</code>, <em>optional</em>) &#x2014;
An authentication token (See <a href="https://huggingface.co/settings/token" rel="nofollow">https://huggingface.co/settings/token</a>)`,name:"token"},{anchor:"huggingface_hub.HfApi.create_discussion.description",description:`<strong>description</strong> (<code>str</code>, <em>optional</em>) &#x2014;
An optional description for the Pull Request.
Defaults to <code>&quot;Discussion opened with the huggingface_hub Python library&quot;</code>`,name:"description"},{anchor:"huggingface_hub.HfApi.create_discussion.pull_request",description:`<strong>pull_request</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether to create a Pull Request or discussion. If <code>True</code>, creates a Pull Request.
If <code>False</code>, creates a discussion. Defaults to <code>False</code>.`,name:"pull_request"},{anchor:"huggingface_hub.HfApi.create_discussion.repo_type",description:`<strong>repo_type</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Set to <code>&quot;dataset&quot;</code> or <code>&quot;space&quot;</code> if uploading to a dataset or
space, <code>None</code> or <code>&quot;model&quot;</code> if uploading to a model. Default is
<code>None</code>.`,name:"repo_type"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/hf_api.py#L5052"}}),Yn=new J({props:{$$slots:{default:[D2]},$$scope:{ctx:w}}}),Xa=new C({props:{name:"create_inference_endpoint",anchor:"huggingface_hub.HfApi.create_inference_endpoint",parameters:[{name:"name",val:": str"},{name:"repository",val:": str"},{name:"framework",val:": str"},{name:"accelerator",val:": str"},{name:"instance_size",val:": str"},{name:"instance_type",val:": str"},{name:"region",val:": str"},{name:"vendor",val:": str"},{name:"account_id",val:": Optional[str] = None"},{name:"min_replica",val:": int = 0"},{name:"max_replica",val:": int = 1"},{name:"revision",val:": Optional[str] = None"},{name:"task",val:": Optional[str] = None"},{name:"type",val:": InferenceEndpointType = <InferenceEndpointType.PROTECTED: 'protected'>"},{name:"namespace",val:": Optional[str] = None"},{name:"token",val:": Optional[str] = None"}],parametersDescription:[{anchor:"huggingface_hub.HfApi.create_inference_endpoint.name",description:`<strong>name</strong> (<code>str</code>) &#x2014;
The unique name for the new Inference Endpoint.`,name:"name"},{anchor:"huggingface_hub.HfApi.create_inference_endpoint.repository",description:`<strong>repository</strong> (<code>str</code>) &#x2014;
The name of the model repository associated with the Inference Endpoint (e.g. <code>&quot;gpt2&quot;</code>).`,name:"repository"},{anchor:"huggingface_hub.HfApi.create_inference_endpoint.framework",description:`<strong>framework</strong> (<code>str</code>) &#x2014;
The machine learning framework used for the model (e.g. <code>&quot;custom&quot;</code>).`,name:"framework"},{anchor:"huggingface_hub.HfApi.create_inference_endpoint.accelerator",description:`<strong>accelerator</strong> (<code>str</code>) &#x2014;
The hardware accelerator to be used for inference (e.g. <code>&quot;cpu&quot;</code>).`,name:"accelerator"},{anchor:"huggingface_hub.HfApi.create_inference_endpoint.instance_size",description:`<strong>instance_size</strong> (<code>str</code>) &#x2014;
The size or type of the instance to be used for hosting the model (e.g. <code>&quot;large&quot;</code>).`,name:"instance_size"},{anchor:"huggingface_hub.HfApi.create_inference_endpoint.instance_type",description:`<strong>instance_type</strong> (<code>str</code>) &#x2014;
The cloud instance type where the Inference Endpoint will be deployed (e.g. <code>&quot;c6i&quot;</code>).`,name:"instance_type"},{anchor:"huggingface_hub.HfApi.create_inference_endpoint.region",description:`<strong>region</strong> (<code>str</code>) &#x2014;
The cloud region in which the Inference Endpoint will be created (e.g. <code>&quot;us-east-1&quot;</code>).`,name:"region"},{anchor:"huggingface_hub.HfApi.create_inference_endpoint.vendor",description:`<strong>vendor</strong> (<code>str</code>) &#x2014;
The cloud provider or vendor where the Inference Endpoint will be hosted (e.g. <code>&quot;aws&quot;</code>).`,name:"vendor"},{anchor:"huggingface_hub.HfApi.create_inference_endpoint.account_id",description:`<strong>account_id</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The account ID used to link a VPC to a private Inference Endpoint (if applicable).`,name:"account_id"},{anchor:"huggingface_hub.HfApi.create_inference_endpoint.min_replica",description:`<strong>min_replica</strong> (<code>int</code>, <em>optional</em>) &#x2014;
The minimum number of replicas (instances) to keep running for the Inference Endpoint. Defaults to 0.`,name:"min_replica"},{anchor:"huggingface_hub.HfApi.create_inference_endpoint.max_replica",description:`<strong>max_replica</strong> (<code>int</code>, <em>optional</em>) &#x2014;
The maximum number of replicas (instances) to scale to for the Inference Endpoint. Defaults to 1.`,name:"max_replica"},{anchor:"huggingface_hub.HfApi.create_inference_endpoint.revision",description:`<strong>revision</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The specific model revision to deploy on the Inference Endpoint (e.g. <code>&quot;6c0e6080953db56375760c0471a8c5f2929baf11&quot;</code>).`,name:"revision"},{anchor:"huggingface_hub.HfApi.create_inference_endpoint.task",description:`<strong>task</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The task on which to deploy the model (e.g. <code>&quot;text-classification&quot;</code>).`,name:"task"},{anchor:"huggingface_hub.HfApi.create_inference_endpoint.type",description:"<strong>type</strong> ([`InferenceEndpointType]<code>, *optional*) -- The type of the Inference Endpoint, which can be </code>&#x201C;protected&#x201D;<code>(default),</code>&#x201C;public&#x201D;<code>or</code>&#x201C;private&#x201D;`.",name:"type"},{anchor:"huggingface_hub.HfApi.create_inference_endpoint.namespace",description:`<strong>namespace</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The namespace where the Inference Endpoint will be created. Defaults to the current user&#x2019;s namespace.`,name:"namespace"},{anchor:"huggingface_hub.HfApi.create_inference_endpoint.token",description:`<strong>token</strong> (<code>str</code>, <em>optional</em>) &#x2014;
An authentication token (See <a href="https://huggingface.co/settings/token" rel="nofollow">https://huggingface.co/settings/token</a>).`,name:"token"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/hf_api.py#L6176",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>information about the updated Inference Endpoint.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/huggingface_hub/main/en/package_reference/inference_endpoints#huggingface_hub.InferenceEndpoint"
>InferenceEndpoint</a></p>
`}}),Pn=new U({props:{anchor:"huggingface_hub.HfApi.create_inference_endpoint.example",$$slots:{default:[S2]},$$scope:{ctx:w}}}),Ya=new C({props:{name:"create_pull_request",anchor:"huggingface_hub.HfApi.create_pull_request",parameters:[{name:"repo_id",val:": str"},{name:"title",val:": str"},{name:"token",val:": Optional[str] = None"},{name:"description",val:": Optional[str] = None"},{name:"repo_type",val:": Optional[str] = None"}],parametersDescription:[{anchor:"huggingface_hub.HfApi.create_pull_request.repo_id",description:`<strong>repo_id</strong> (<code>str</code>) &#x2014;
A namespace (user or an organization) and a repo name separated
by a <code>/</code>.`,name:"repo_id"},{anchor:"huggingface_hub.HfApi.create_pull_request.title",description:`<strong>title</strong> (<code>str</code>) &#x2014;
The title of the discussion. It can be up to 200 characters long,
and must be at least 3 characters long. Leading and trailing whitespaces
will be stripped.`,name:"title"},{anchor:"huggingface_hub.HfApi.create_pull_request.token",description:`<strong>token</strong> (<code>str</code>, <em>optional</em>) &#x2014;
An authentication token (See <a href="https://huggingface.co/settings/token" rel="nofollow">https://huggingface.co/settings/token</a>)`,name:"token"},{anchor:"huggingface_hub.HfApi.create_pull_request.description",description:`<strong>description</strong> (<code>str</code>, <em>optional</em>) &#x2014;
An optional description for the Pull Request.
Defaults to <code>&quot;Discussion opened with the huggingface_hub Python library&quot;</code>`,name:"description"},{anchor:"huggingface_hub.HfApi.create_pull_request.repo_type",description:`<strong>repo_type</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Set to <code>&quot;dataset&quot;</code> or <code>&quot;space&quot;</code> if uploading to a dataset or
space, <code>None</code> or <code>&quot;model&quot;</code> if uploading to a model. Default is
<code>None</code>.`,name:"repo_type"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/hf_api.py#L5141"}}),On=new J({props:{$$slots:{default:[F2]},$$scope:{ctx:w}}}),Pa=new C({props:{name:"create_repo",anchor:"huggingface_hub.HfApi.create_repo",parameters:[{name:"repo_id",val:": str"},{name:"token",val:": Optional[str] = None"},{name:"private",val:": bool = False"},{name:"repo_type",val:": Optional[str] = None"},{name:"exist_ok",val:": bool = False"},{name:"space_sdk",val:": Optional[str] = None"},{name:"space_hardware",val:": Optional[SpaceHardware] = None"},{name:"space_storage",val:": Optional[SpaceStorage] = None"},{name:"space_sleep_time",val:": Optional[int] = None"},{name:"space_secrets",val:": Optional[List[Dict[str, str]]] = None"},{name:"space_variables",val:": Optional[List[Dict[str, str]]] = None"}],parametersDescription:[{anchor:"huggingface_hub.HfApi.create_repo.repo_id",description:`<strong>repo_id</strong> (<code>str</code>) &#x2014;
A namespace (user or an organization) and a repo name separated
by a <code>/</code>.`,name:"repo_id"},{anchor:"huggingface_hub.HfApi.create_repo.token",description:`<strong>token</strong> (<code>str</code>, <em>optional</em>) &#x2014;
An authentication token (See <a href="https://huggingface.co/settings/token" rel="nofollow">https://huggingface.co/settings/token</a>)`,name:"token"},{anchor:"huggingface_hub.HfApi.create_repo.private",description:`<strong>private</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether the model repo should be private.`,name:"private"},{anchor:"huggingface_hub.HfApi.create_repo.repo_type",description:`<strong>repo_type</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Set to <code>&quot;dataset&quot;</code> or <code>&quot;space&quot;</code> if uploading to a dataset or
space, <code>None</code> or <code>&quot;model&quot;</code> if uploading to a model. Default is
<code>None</code>.`,name:"repo_type"},{anchor:"huggingface_hub.HfApi.create_repo.exist_ok",description:`<strong>exist_ok</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
If <code>True</code>, do not raise an error if repo already exists.`,name:"exist_ok"},{anchor:"huggingface_hub.HfApi.create_repo.space_sdk",description:`<strong>space_sdk</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Choice of SDK to use if repo_type is &#x201C;space&#x201D;. Can be &#x201C;streamlit&#x201D;, &#x201C;gradio&#x201D;, &#x201C;docker&#x201D;, or &#x201C;static&#x201D;.`,name:"space_sdk"},{anchor:"huggingface_hub.HfApi.create_repo.space_hardware",description:`<strong>space_hardware</strong> (<code>SpaceHardware</code> or <code>str</code>, <em>optional</em>) &#x2014;
Choice of Hardware if repo_type is &#x201C;space&#x201D;. See <a href="/docs/huggingface_hub/main/en/package_reference/space_runtime#huggingface_hub.SpaceHardware">SpaceHardware</a> for a complete list.`,name:"space_hardware"},{anchor:"huggingface_hub.HfApi.create_repo.space_storage",description:`<strong>space_storage</strong> (<code>SpaceStorage</code> or <code>str</code>, <em>optional</em>) &#x2014;
Choice of persistent storage tier. Example: <code>&quot;small&quot;</code>. See <a href="/docs/huggingface_hub/main/en/package_reference/space_runtime#huggingface_hub.SpaceStorage">SpaceStorage</a> for a complete list.`,name:"space_storage"},{anchor:"huggingface_hub.HfApi.create_repo.space_sleep_time",description:`<strong>space_sleep_time</strong> (<code>int</code>, <em>optional</em>) &#x2014;
Number of seconds of inactivity to wait before a Space is put to sleep. Set to <code>-1</code> if you don&#x2019;t want
your Space to sleep (default behavior for upgraded hardware). For free hardware, you can&#x2019;t configure
the sleep time (value is fixed to 48 hours of inactivity).
See <a href="https://huggingface.co/docs/hub/spaces-gpus#sleep-time" rel="nofollow">https://huggingface.co/docs/hub/spaces-gpus#sleep-time</a> for more details.`,name:"space_sleep_time"},{anchor:"huggingface_hub.HfApi.create_repo.space_secrets",description:`<strong>space_secrets</strong> (<code>List[Dict[str, str]]</code>, <em>optional</em>) &#x2014;
A list of secret keys to set in your Space. Each item is in the form <code>{&quot;key&quot;: ..., &quot;value&quot;: ..., &quot;description&quot;: ...}</code> where description is optional.
For more details, see <a href="https://huggingface.co/docs/hub/spaces-overview#managing-secrets" rel="nofollow">https://huggingface.co/docs/hub/spaces-overview#managing-secrets</a>.`,name:"space_secrets"},{anchor:"huggingface_hub.HfApi.create_repo.space_variables",description:`<strong>space_variables</strong> (<code>List[Dict[str, str]]</code>, <em>optional</em>) &#x2014;
A list of public environment variables to set in your Space. Each item is in the form <code>{&quot;key&quot;: ..., &quot;value&quot;: ..., &quot;description&quot;: ...}</code> where description is optional.
For more details, see <a href="https://huggingface.co/docs/hub/spaces-overview#managing-secrets-and-environment-variables" rel="nofollow">https://huggingface.co/docs/hub/spaces-overview#managing-secrets-and-environment-variables</a>.`,name:"space_variables"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/hf_api.py#L2704",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>URL to the newly created repo. Value is a subclass of <code>str</code> containing
attributes like <code>endpoint</code>, <code>repo_type</code> and <code>repo_id</code>.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.RepoUrl"
>RepoUrl</a></p>
`}}),Oa=new C({props:{name:"create_tag",anchor:"huggingface_hub.HfApi.create_tag",parameters:[{name:"repo_id",val:": str"},{name:"tag",val:": str"},{name:"tag_message",val:": Optional[str] = None"},{name:"revision",val:": Optional[str] = None"},{name:"token",val:": Optional[str] = None"},{name:"repo_type",val:": Optional[str] = None"},{name:"exist_ok",val:": bool = False"}],parametersDescription:[{anchor:"huggingface_hub.HfApi.create_tag.repo_id",description:`<strong>repo_id</strong> (<code>str</code>) &#x2014;
The repository in which a commit will be tagged.
Example: <code>&quot;user/my-cool-model&quot;</code>.`,name:"repo_id"},{anchor:"huggingface_hub.HfApi.create_tag.tag",description:`<strong>tag</strong> (<code>str</code>) &#x2014;
The name of the tag to create.`,name:"tag"},{anchor:"huggingface_hub.HfApi.create_tag.tag_message",description:`<strong>tag_message</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The description of the tag to create.`,name:"tag_message"},{anchor:"huggingface_hub.HfApi.create_tag.revision",description:`<strong>revision</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The git revision to tag. It can be a branch name or the OID/SHA of a
commit, as a hexadecimal string. Shorthands (7 first characters) are
also supported. Defaults to the head of the <code>&quot;main&quot;</code> branch.`,name:"revision"},{anchor:"huggingface_hub.HfApi.create_tag.token",description:`<strong>token</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Authentication token. Will default to the stored token.`,name:"token"},{anchor:"huggingface_hub.HfApi.create_tag.repo_type",description:`<strong>repo_type</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Set to <code>&quot;dataset&quot;</code> or <code>&quot;space&quot;</code> if tagging a dataset or
space, <code>None</code> or <code>&quot;model&quot;</code> if tagging a model. Default is
<code>None</code>.`,name:"repo_type"},{anchor:"huggingface_hub.HfApi.create_tag.exist_ok",description:`<strong>exist_ok</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
If <code>True</code>, do not raise an error if tag already exists.`,name:"exist_ok"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/hf_api.py#L4744",raiseDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<ul>
<li><a
  href="/docs/huggingface_hub/main/en/package_reference/utilities#huggingface_hub.utils.RepositoryNotFoundError"
>RepositoryNotFoundError</a> —
If repository is not found (error 404): wrong repo_id/repo_type, private
but not authenticated or repo does not exist.</li>
<li><a
  href="/docs/huggingface_hub/main/en/package_reference/utilities#huggingface_hub.utils.RevisionNotFoundError"
>RevisionNotFoundError</a> —
If revision is not found (error 404) on the repo.</li>
<li><a
  href="/docs/huggingface_hub/main/en/package_reference/utilities#huggingface_hub.utils.HfHubHTTPError"
>HfHubHTTPError</a> —
If the branch already exists on the repo (error 409) and <code>exist_ok</code> is
set to <code>False</code>.</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.RepositoryNotFoundError"
>RepositoryNotFoundError</a> or <a
  href="/docs/huggingface_hub/main/en/package_reference/utilities#huggingface_hub.utils.RevisionNotFoundError"
>RevisionNotFoundError</a> or <a
  href="/docs/huggingface_hub/main/en/package_reference/utilities#huggingface_hub.utils.HfHubHTTPError"
>HfHubHTTPError</a></p>
`}}),za=new C({props:{name:"dataset_info",anchor:"huggingface_hub.HfApi.dataset_info",parameters:[{name:"repo_id",val:": str"},{name:"revision",val:": Optional[str] = None"},{name:"timeout",val:": Optional[float] = None"},{name:"files_metadata",val:": bool = False"},{name:"token",val:": Optional[Union[bool, str]] = None"}],parametersDescription:[{anchor:"huggingface_hub.HfApi.dataset_info.repo_id",description:`<strong>repo_id</strong> (<code>str</code>) &#x2014;
A namespace (user or an organization) and a repo name separated
by a <code>/</code>.`,name:"repo_id"},{anchor:"huggingface_hub.HfApi.dataset_info.revision",description:`<strong>revision</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The revision of the dataset repository from which to get the
information.`,name:"revision"},{anchor:"huggingface_hub.HfApi.dataset_info.timeout",description:`<strong>timeout</strong> (<code>float</code>, <em>optional</em>) &#x2014;
Whether to set a timeout for the request to the Hub.`,name:"timeout"},{anchor:"huggingface_hub.HfApi.dataset_info.files_metadata",description:`<strong>files_metadata</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to retrieve metadata for files in the repository
(size, LFS metadata, etc). Defaults to <code>False</code>.`,name:"files_metadata"},{anchor:"huggingface_hub.HfApi.dataset_info.token",description:`<strong>token</strong> (<code>bool</code> or <code>str</code>, <em>optional</em>) &#x2014;
A valid authentication token (see <a href="https://huggingface.co/settings/token" rel="nofollow">https://huggingface.co/settings/token</a>).
If <code>None</code> or <code>True</code> and machine is logged in (through <code>huggingface-cli login</code>
or <a href="/docs/huggingface_hub/main/en/package_reference/login#huggingface_hub.login">login()</a>), token will be retrieved from the cache.
If <code>False</code>, token is not sent in the request header.`,name:"token"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/hf_api.py#L1929",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>The dataset repository information.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.hf_api.DatasetInfo"
>hf_api.DatasetInfo</a></p>
`}}),Kn=new J({props:{$$slots:{default:[Z2]},$$scope:{ctx:w}}}),Qa=new C({props:{name:"delete_branch",anchor:"huggingface_hub.HfApi.delete_branch",parameters:[{name:"repo_id",val:": str"},{name:"branch",val:": str"},{name:"token",val:": Optional[str] = None"},{name:"repo_type",val:": Optional[str] = None"}],parametersDescription:[{anchor:"huggingface_hub.HfApi.delete_branch.repo_id",description:`<strong>repo_id</strong> (<code>str</code>) &#x2014;
The repository in which a branch will be deleted.
Example: <code>&quot;user/my-cool-model&quot;</code>.`,name:"repo_id"},{anchor:"huggingface_hub.HfApi.delete_branch.branch",description:`<strong>branch</strong> (<code>str</code>) &#x2014;
The name of the branch to delete.`,name:"branch"},{anchor:"huggingface_hub.HfApi.delete_branch.token",description:`<strong>token</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Authentication token. Will default to the stored token.`,name:"token"},{anchor:"huggingface_hub.HfApi.delete_branch.repo_type",description:`<strong>repo_type</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Set to <code>&quot;dataset&quot;</code> or <code>&quot;space&quot;</code> if creating a branch on a dataset or
space, <code>None</code> or <code>&quot;model&quot;</code> if tagging a model. Default is <code>None</code>.`,name:"repo_type"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/hf_api.py#L4695",raiseDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<ul>
<li><a
  href="/docs/huggingface_hub/main/en/package_reference/utilities#huggingface_hub.utils.RepositoryNotFoundError"
>RepositoryNotFoundError</a> —
If repository is not found (error 404): wrong repo_id/repo_type, private
but not authenticated or repo does not exist.</li>
<li><a
  href="/docs/huggingface_hub/main/en/package_reference/utilities#huggingface_hub.utils.HfHubHTTPError"
>HfHubHTTPError</a> —
If trying to delete a protected branch. Ex: <code>main</code> cannot be deleted.</li>
<li><a
  href="/docs/huggingface_hub/main/en/package_reference/utilities#huggingface_hub.utils.HfHubHTTPError"
>HfHubHTTPError</a> —
If trying to delete a branch that does not exist.</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.RepositoryNotFoundError"
>RepositoryNotFoundError</a> or <a
  href="/docs/huggingface_hub/main/en/package_reference/utilities#huggingface_hub.utils.HfHubHTTPError"
>HfHubHTTPError</a></p>
`}}),Ka=new C({props:{name:"delete_collection",anchor:"huggingface_hub.HfApi.delete_collection",parameters:[{name:"collection_slug",val:": str"},{name:"missing_ok",val:": bool = False"},{name:"token",val:": Optional[str] = None"}],parametersDescription:[{anchor:"huggingface_hub.HfApi.delete_collection.collection_slug",description:`<strong>collection_slug</strong> (<code>str</code>) &#x2014;
Slug of the collection to delete. Example: <code>&quot;TheBloke/recent-models-64f9a55bb3115b4f513ec026&quot;</code>.`,name:"collection_slug"},{anchor:"huggingface_hub.HfApi.delete_collection.missing_ok",description:`<strong>missing_ok</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
If <code>True</code>, do not raise an error if collection doesn&#x2019;t exists.`,name:"missing_ok"},{anchor:"huggingface_hub.HfApi.delete_collection.token",description:`<strong>token</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Hugging Face token. Will default to the locally saved token if not provided.`,name:"token"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/hf_api.py#L6727"}}),to=new U({props:{anchor:"huggingface_hub.HfApi.delete_collection.example",$$slots:{default:[L2]},$$scope:{ctx:w}}}),no=new J({props:{warning:!0,$$slots:{default:[B2]},$$scope:{ctx:w}}}),es=new C({props:{name:"delete_collection_item",anchor:"huggingface_hub.HfApi.delete_collection_item",parameters:[{name:"collection_slug",val:": str"},{name:"item_object_id",val:": str"},{name:"missing_ok",val:": bool = False"},{name:"token",val:": Optional[str] = None"}],parametersDescription:[{anchor:"huggingface_hub.HfApi.delete_collection_item.collection_slug",description:`<strong>collection_slug</strong> (<code>str</code>) &#x2014;
Slug of the collection to update. Example: <code>&quot;TheBloke/recent-models-64f9a55bb3115b4f513ec026&quot;</code>.`,name:"collection_slug"},{anchor:"huggingface_hub.HfApi.delete_collection_item.item_object_id",description:`<strong>item_object_id</strong> (<code>str</code>) &#x2014;
ID of the item in the collection. This is not the id of the item on the Hub (repo_id or paper id).
It must be retrieved from a <a href="/docs/huggingface_hub/main/en/package_reference/collections#huggingface_hub.CollectionItem">CollectionItem</a> object. Example: <code>collection.items[0]._id</code>.`,name:"item_object_id"},{anchor:"huggingface_hub.HfApi.delete_collection_item.missing_ok",description:`<strong>missing_ok</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
If <code>True</code>, do not raise an error if item doesn&#x2019;t exists.`,name:"missing_ok"},{anchor:"huggingface_hub.HfApi.delete_collection_item.token",description:`<strong>token</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Hugging Face token. Will default to the locally saved token if not provided.`,name:"token"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/hf_api.py#L6885"}}),oo=new U({props:{anchor:"huggingface_hub.HfApi.delete_collection_item.example",$$slots:{default:[W2]},$$scope:{ctx:w}}}),ts=new C({props:{name:"delete_file",anchor:"huggingface_hub.HfApi.delete_file",parameters:[{name:"path_in_repo",val:": str"},{name:"repo_id",val:": str"},{name:"token",val:": Optional[str] = None"},{name:"repo_type",val:": Optional[str] = None"},{name:"revision",val:": Optional[str] = None"},{name:"commit_message",val:": Optional[str] = None"},{name:"commit_description",val:": Optional[str] = None"},{name:"create_pr",val:": Optional[bool] = None"},{name:"parent_commit",val:": Optional[str] = None"}],parametersDescription:[{anchor:"huggingface_hub.HfApi.delete_file.path_in_repo",description:`<strong>path_in_repo</strong> (<code>str</code>) &#x2014;
Relative filepath in the repo, for example:
<code>&quot;checkpoints/1fec34a/weights.bin&quot;</code>`,name:"path_in_repo"},{anchor:"huggingface_hub.HfApi.delete_file.repo_id",description:`<strong>repo_id</strong> (<code>str</code>) &#x2014;
The repository from which the file will be deleted, for example:
<code>&quot;username/custom_transformers&quot;</code>`,name:"repo_id"},{anchor:"huggingface_hub.HfApi.delete_file.token",description:`<strong>token</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Authentication token, obtained with <code>HfApi.login</code> method. Will
default to the stored token.`,name:"token"},{anchor:"huggingface_hub.HfApi.delete_file.repo_type",description:`<strong>repo_type</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Set to <code>&quot;dataset&quot;</code> or <code>&quot;space&quot;</code> if the file is in a dataset or
space, <code>None</code> or <code>&quot;model&quot;</code> if in a model. Default is <code>None</code>.`,name:"repo_type"},{anchor:"huggingface_hub.HfApi.delete_file.revision",description:`<strong>revision</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The git revision to commit from. Defaults to the head of the <code>&quot;main&quot;</code> branch.`,name:"revision"},{anchor:"huggingface_hub.HfApi.delete_file.commit_message",description:`<strong>commit_message</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The summary / title / first line of the generated commit. Defaults to
<code>f&quot;Delete {path_in_repo} with huggingface_hub&quot;</code>.`,name:"commit_message"},{anchor:"huggingface_hub.HfApi.delete_file.commit_description",description:`<strong>commit_description</strong> (<code>str</code> <em>optional</em>) &#x2014;
The description of the generated commit`,name:"commit_description"},{anchor:"huggingface_hub.HfApi.delete_file.create_pr",description:`<strong>create_pr</strong> (<code>boolean</code>, <em>optional</em>) &#x2014;
Whether or not to create a Pull Request with that commit. Defaults to <code>False</code>.
If <code>revision</code> is not set, PR is opened against the <code>&quot;main&quot;</code> branch. If
<code>revision</code> is set and is a branch, PR is opened against this branch. If
<code>revision</code> is set and is not a branch name (example: a commit oid), an
<code>RevisionNotFoundError</code> is returned by the server.`,name:"create_pr"},{anchor:"huggingface_hub.HfApi.delete_file.parent_commit",description:`<strong>parent_commit</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The OID / SHA of the parent commit, as a hexadecimal string. Shorthands (7 first characters) are also supported.
If specified and <code>create_pr</code> is <code>False</code>, the commit will fail if <code>revision</code> does not point to <code>parent_commit</code>.
If specified and <code>create_pr</code> is <code>True</code>, the pull request will be created from <code>parent_commit</code>.
Specifying <code>parent_commit</code> ensures the repo has not changed before committing the changes, and can be
especially useful if the repo is updated / committed to concurrently.`,name:"parent_commit"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/hf_api.py#L4162"}}),ao=new J({props:{$$slots:{default:[V2]},$$scope:{ctx:w}}}),ns=new C({props:{name:"delete_folder",anchor:"huggingface_hub.HfApi.delete_folder",parameters:[{name:"path_in_repo",val:": str"},{name:"repo_id",val:": str"},{name:"token",val:": Optional[str] = None"},{name:"repo_type",val:": Optional[str] = None"},{name:"revision",val:": Optional[str] = None"},{name:"commit_message",val:": Optional[str] = None"},{name:"commit_description",val:": Optional[str] = None"},{name:"create_pr",val:": Optional[bool] = None"},{name:"parent_commit",val:": Optional[str] = None"}],parametersDescription:[{anchor:"huggingface_hub.HfApi.delete_folder.path_in_repo",description:`<strong>path_in_repo</strong> (<code>str</code>) &#x2014;
Relative folder path in the repo, for example: <code>&quot;checkpoints/1fec34a&quot;</code>.`,name:"path_in_repo"},{anchor:"huggingface_hub.HfApi.delete_folder.repo_id",description:`<strong>repo_id</strong> (<code>str</code>) &#x2014;
The repository from which the folder will be deleted, for example:
<code>&quot;username/custom_transformers&quot;</code>`,name:"repo_id"},{anchor:"huggingface_hub.HfApi.delete_folder.token",description:`<strong>token</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Authentication token, obtained with <code>HfApi.login</code> method. Will default
to the stored token.`,name:"token"},{anchor:"huggingface_hub.HfApi.delete_folder.repo_type",description:`<strong>repo_type</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Set to <code>&quot;dataset&quot;</code> or <code>&quot;space&quot;</code> if the folder is in a dataset or
space, <code>None</code> or <code>&quot;model&quot;</code> if in a model. Default is <code>None</code>.`,name:"repo_type"},{anchor:"huggingface_hub.HfApi.delete_folder.revision",description:`<strong>revision</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The git revision to commit from. Defaults to the head of the <code>&quot;main&quot;</code> branch.`,name:"revision"},{anchor:"huggingface_hub.HfApi.delete_folder.commit_message",description:`<strong>commit_message</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The summary / title / first line of the generated commit. Defaults to
<code>f&quot;Delete folder {path_in_repo} with huggingface_hub&quot;</code>.`,name:"commit_message"},{anchor:"huggingface_hub.HfApi.delete_folder.commit_description",description:`<strong>commit_description</strong> (<code>str</code> <em>optional</em>) &#x2014;
The description of the generated commit.`,name:"commit_description"},{anchor:"huggingface_hub.HfApi.delete_folder.create_pr",description:`<strong>create_pr</strong> (<code>boolean</code>, <em>optional</em>) &#x2014;
Whether or not to create a Pull Request with that commit. Defaults to <code>False</code>.
If <code>revision</code> is not set, PR is opened against the <code>&quot;main&quot;</code> branch. If
<code>revision</code> is set and is a branch, PR is opened against this branch. If
<code>revision</code> is set and is not a branch name (example: a commit oid), an
<code>RevisionNotFoundError</code> is returned by the server.`,name:"create_pr"},{anchor:"huggingface_hub.HfApi.delete_folder.parent_commit",description:`<strong>parent_commit</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The OID / SHA of the parent commit, as a hexadecimal string. Shorthands (7 first characters) are also supported.
If specified and <code>create_pr</code> is <code>False</code>, the commit will fail if <code>revision</code> does not point to <code>parent_commit</code>.
If specified and <code>create_pr</code> is <code>True</code>, the pull request will be created from <code>parent_commit</code>.
Specifying <code>parent_commit</code> ensures the repo has not changed before committing the changes, and can be
especially useful if the repo is updated / committed to concurrently.`,name:"parent_commit"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/hf_api.py#L4250"}}),os=new C({props:{name:"delete_inference_endpoint",anchor:"huggingface_hub.HfApi.delete_inference_endpoint",parameters:[{name:"name",val:": str"},{name:"namespace",val:": Optional[str] = None"},{name:"token",val:": Optional[str] = None"}],parametersDescription:[{anchor:"huggingface_hub.HfApi.delete_inference_endpoint.name",description:`<strong>name</strong> (<code>str</code>) &#x2014;
The name of the Inference Endpoint to delete.`,name:"name"},{anchor:"huggingface_hub.HfApi.delete_inference_endpoint.namespace",description:`<strong>namespace</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The namespace in which the Inference Endpoint is located. Defaults to the current user.`,name:"namespace"},{anchor:"huggingface_hub.HfApi.delete_inference_endpoint.token",description:`<strong>token</strong> (<code>str</code>, <em>optional</em>) &#x2014;
An authentication token (See <a href="https://huggingface.co/settings/token" rel="nofollow">https://huggingface.co/settings/token</a>).`,name:"token"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/hf_api.py#L6429"}}),as=new C({props:{name:"delete_repo",anchor:"huggingface_hub.HfApi.delete_repo",parameters:[{name:"repo_id",val:": str"},{name:"token",val:": Optional[str] = None"},{name:"repo_type",val:": Optional[str] = None"},{name:"missing_ok",val:": bool = False"}],parametersDescription:[{anchor:"huggingface_hub.HfApi.delete_repo.repo_id",description:`<strong>repo_id</strong> (<code>str</code>) &#x2014;
A namespace (user or an organization) and a repo name separated
by a <code>/</code>.`,name:"repo_id"},{anchor:"huggingface_hub.HfApi.delete_repo.token",description:`<strong>token</strong> (<code>str</code>, <em>optional</em>) &#x2014;
An authentication token (See <a href="https://huggingface.co/settings/token" rel="nofollow">https://huggingface.co/settings/token</a>)`,name:"token"},{anchor:"huggingface_hub.HfApi.delete_repo.repo_type",description:`<strong>repo_type</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Set to <code>&quot;dataset&quot;</code> or <code>&quot;space&quot;</code> if uploading to a dataset or
space, <code>None</code> or <code>&quot;model&quot;</code> if uploading to a model.`,name:"repo_type"},{anchor:"huggingface_hub.HfApi.delete_repo.missing_ok",description:`<strong>missing_ok</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
If <code>True</code>, do not raise an error if repo does not exist.`,name:"missing_ok"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/hf_api.py#L2839",raiseDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<ul>
<li><ul>
<li>— <a
  href="/docs/huggingface_hub/main/en/package_reference/utilities#huggingface_hub.utils.RepositoryNotFoundError"
>RepositoryNotFoundError</a>
If the repository to delete from cannot be found and <code>missing_ok</code> is set to False (default).</li>
</ul></li>
</ul>
`,raiseType:`<script context="module">export const metadata = 'undefined';<\/script>


<ul>
<li></li>
</ul>
`}}),ss=new C({props:{name:"delete_space_secret",anchor:"huggingface_hub.HfApi.delete_space_secret",parameters:[{name:"repo_id",val:": str"},{name:"key",val:": str"},{name:"token",val:": Optional[str] = None"}],parametersDescription:[{anchor:"huggingface_hub.HfApi.delete_space_secret.repo_id",description:`<strong>repo_id</strong> (<code>str</code>) &#x2014;
ID of the repo to update. Example: <code>&quot;bigcode/in-the-stack&quot;</code>.`,name:"repo_id"},{anchor:"huggingface_hub.HfApi.delete_space_secret.key",description:`<strong>key</strong> (<code>str</code>) &#x2014;
Secret key. Example: <code>&quot;GITHUB_API_KEY&quot;</code>.`,name:"key"},{anchor:"huggingface_hub.HfApi.delete_space_secret.token",description:`<strong>token</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Hugging Face token. Will default to the locally saved token if not provided.`,name:"token"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/hf_api.py#L5645"}}),is=new C({props:{name:"delete_space_storage",anchor:"huggingface_hub.HfApi.delete_space_storage",parameters:[{name:"repo_id",val:": str"},{name:"token",val:": Optional[str] = None"}],parametersDescription:[{anchor:"huggingface_hub.HfApi.delete_space_storage.repo_id",description:`<strong>repo_id</strong> (<code>str</code>) &#x2014;
ID of the Space to update. Example: <code>&quot;HuggingFaceH4/open_llm_leaderboard&quot;</code>.`,name:"repo_id"},{anchor:"huggingface_hub.HfApi.delete_space_storage.token",description:`<strong>token</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Hugging Face token. Will default to the locally saved token if not provided.`,name:"token"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/hf_api.py#L6089",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>Runtime information about a Space including Space stage and hardware.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/huggingface_hub/main/en/package_reference/space_runtime#huggingface_hub.SpaceRuntime"
>SpaceRuntime</a></p>
`,raiseDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<ul>
<li><code>BadRequestError</code> —
If space has no persistent storage.</li>
</ul>
`,raiseType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>BadRequestError</code></p>
`}}),rs=new C({props:{name:"delete_space_variable",anchor:"huggingface_hub.HfApi.delete_space_variable",parameters:[{name:"repo_id",val:": str"},{name:"key",val:": str"},{name:"token",val:": Optional[str] = None"}],parametersDescription:[{anchor:"huggingface_hub.HfApi.delete_space_variable.repo_id",description:`<strong>repo_id</strong> (<code>str</code>) &#x2014;
ID of the repo to update. Example: <code>&quot;bigcode/in-the-stack&quot;</code>.`,name:"repo_id"},{anchor:"huggingface_hub.HfApi.delete_space_variable.key",description:`<strong>key</strong> (<code>str</code>) &#x2014;
Variable key. Example: <code>&quot;MODEL_REPO_ID&quot;</code>`,name:"key"},{anchor:"huggingface_hub.HfApi.delete_space_variable.token",description:`<strong>token</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Hugging Face token. Will default to the locally saved token if not provided.`,name:"token"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/hf_api.py#L5719"}}),ls=new C({props:{name:"delete_tag",anchor:"huggingface_hub.HfApi.delete_tag",parameters:[{name:"repo_id",val:": str"},{name:"tag",val:": str"},{name:"token",val:": Optional[str] = None"},{name:"repo_type",val:": Optional[str] = None"}],parametersDescription:[{anchor:"huggingface_hub.HfApi.delete_tag.repo_id",description:`<strong>repo_id</strong> (<code>str</code>) &#x2014;
The repository in which a tag will be deleted.
Example: <code>&quot;user/my-cool-model&quot;</code>.`,name:"repo_id"},{anchor:"huggingface_hub.HfApi.delete_tag.tag",description:`<strong>tag</strong> (<code>str</code>) &#x2014;
The name of the tag to delete.`,name:"tag"},{anchor:"huggingface_hub.HfApi.delete_tag.token",description:`<strong>token</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Authentication token. Will default to the stored token.`,name:"token"},{anchor:"huggingface_hub.HfApi.delete_tag.repo_type",description:`<strong>repo_type</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Set to <code>&quot;dataset&quot;</code> or <code>&quot;space&quot;</code> if tagging a dataset or space, <code>None</code> or
<code>&quot;model&quot;</code> if tagging a model. Default is <code>None</code>.`,name:"repo_type"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/hf_api.py#L4815",raiseDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<ul>
<li><a
  href="/docs/huggingface_hub/main/en/package_reference/utilities#huggingface_hub.utils.RepositoryNotFoundError"
>RepositoryNotFoundError</a> —
If repository is not found (error 404): wrong repo_id/repo_type, private
but not authenticated or repo does not exist.</li>
<li><a
  href="/docs/huggingface_hub/main/en/package_reference/utilities#huggingface_hub.utils.RevisionNotFoundError"
>RevisionNotFoundError</a> —
If tag is not found.</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.RepositoryNotFoundError"
>RepositoryNotFoundError</a> or <a
  href="/docs/huggingface_hub/main/en/package_reference/utilities#huggingface_hub.utils.RevisionNotFoundError"
>RevisionNotFoundError</a></p>
`}}),cs=new C({props:{name:"duplicate_space",anchor:"huggingface_hub.HfApi.duplicate_space",parameters:[{name:"from_id",val:": str"},{name:"to_id",val:": Optional[str] = None"},{name:"private",val:": Optional[bool] = None"},{name:"token",val:": Optional[str] = None"},{name:"exist_ok",val:": bool = False"},{name:"hardware",val:": Optional[SpaceHardware] = None"},{name:"storage",val:": Optional[SpaceStorage] = None"},{name:"sleep_time",val:": Optional[int] = None"},{name:"secrets",val:": Optional[List[Dict[str, str]]] = None"},{name:"variables",val:": Optional[List[Dict[str, str]]] = None"}],parametersDescription:[{anchor:"huggingface_hub.HfApi.duplicate_space.from_id",description:`<strong>from_id</strong> (<code>str</code>) &#x2014;
ID of the Space to duplicate. Example: <code>&quot;pharma/CLIP-Interrogator&quot;</code>.`,name:"from_id"},{anchor:"huggingface_hub.HfApi.duplicate_space.to_id",description:`<strong>to_id</strong> (<code>str</code>, <em>optional</em>) &#x2014;
ID of the new Space. Example: <code>&quot;dog/CLIP-Interrogator&quot;</code>. If not provided, the new Space will have the same
name as the original Space, but in your account.`,name:"to_id"},{anchor:"huggingface_hub.HfApi.duplicate_space.private",description:`<strong>private</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether the new Space should be private or not. Defaults to the same privacy as the original Space.`,name:"private"},{anchor:"huggingface_hub.HfApi.duplicate_space.token",description:`<strong>token</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Hugging Face token. Will default to the locally saved token if not provided.`,name:"token"},{anchor:"huggingface_hub.HfApi.duplicate_space.exist_ok",description:`<strong>exist_ok</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
If <code>True</code>, do not raise an error if repo already exists.`,name:"exist_ok"},{anchor:"huggingface_hub.HfApi.duplicate_space.hardware",description:`<strong>hardware</strong> (<code>SpaceHardware</code> or <code>str</code>, <em>optional</em>) &#x2014;
Choice of Hardware. Example: <code>&quot;t4-medium&quot;</code>. See <a href="/docs/huggingface_hub/main/en/package_reference/space_runtime#huggingface_hub.SpaceHardware">SpaceHardware</a> for a complete list.`,name:"hardware"},{anchor:"huggingface_hub.HfApi.duplicate_space.storage",description:`<strong>storage</strong> (<code>SpaceStorage</code> or <code>str</code>, <em>optional</em>) &#x2014;
Choice of persistent storage tier. Example: <code>&quot;small&quot;</code>. See <a href="/docs/huggingface_hub/main/en/package_reference/space_runtime#huggingface_hub.SpaceStorage">SpaceStorage</a> for a complete list.`,name:"storage"},{anchor:"huggingface_hub.HfApi.duplicate_space.sleep_time",description:`<strong>sleep_time</strong> (<code>int</code>, <em>optional</em>) &#x2014;
Number of seconds of inactivity to wait before a Space is put to sleep. Set to <code>-1</code> if you don&#x2019;t want
your Space to sleep (default behavior for upgraded hardware). For free hardware, you can&#x2019;t configure
the sleep time (value is fixed to 48 hours of inactivity).
See <a href="https://huggingface.co/docs/hub/spaces-gpus#sleep-time" rel="nofollow">https://huggingface.co/docs/hub/spaces-gpus#sleep-time</a> for more details.`,name:"sleep_time"},{anchor:"huggingface_hub.HfApi.duplicate_space.secrets",description:`<strong>secrets</strong> (<code>List[Dict[str, str]]</code>, <em>optional</em>) &#x2014;
A list of secret keys to set in your Space. Each item is in the form <code>{&quot;key&quot;: ..., &quot;value&quot;: ..., &quot;description&quot;: ...}</code> where description is optional.
For more details, see <a href="https://huggingface.co/docs/hub/spaces-overview#managing-secrets" rel="nofollow">https://huggingface.co/docs/hub/spaces-overview#managing-secrets</a>.`,name:"secrets"},{anchor:"huggingface_hub.HfApi.duplicate_space.variables",description:`<strong>variables</strong> (<code>List[Dict[str, str]]</code>, <em>optional</em>) &#x2014;
A list of public environment variables to set in your Space. Each item is in the form <code>{&quot;key&quot;: ..., &quot;value&quot;: ..., &quot;description&quot;: ...}</code> where description is optional.
For more details, see <a href="https://huggingface.co/docs/hub/spaces-overview#managing-secrets-and-environment-variables" rel="nofollow">https://huggingface.co/docs/hub/spaces-overview#managing-secrets-and-environment-variables</a>.`,name:"variables"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/hf_api.py#L5938",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>URL to the newly created repo. Value is a subclass of <code>str</code> containing
attributes like <code>endpoint</code>, <code>repo_type</code> and <code>repo_id</code>.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.RepoUrl"
>RepoUrl</a></p>
`,raiseDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<ul>
<li><ul>
<li>— <a
  href="https://requests.readthedocs.io/en/latest/api/#requests.HTTPError"
  rel="nofollow"
><code>HTTPError</code></a>
if the HuggingFace API returned an error</li>
</ul></li>
<li><ul>
<li>— <a
  href="/docs/huggingface_hub/main/en/package_reference/utilities#huggingface_hub.utils.RepositoryNotFoundError"
>RepositoryNotFoundError</a>
If one of <code>from_id</code> or <code>to_id</code> cannot be found. This may be because it doesn’t exist,
or because it is set to <code>private</code> and you do not have access.</li>
</ul></li>
</ul>
`,raiseType:`<script context="module">export const metadata = 'undefined';<\/script>


<ul>
<li></li>
</ul>
`}}),lo=new U({props:{anchor:"huggingface_hub.HfApi.duplicate_space.example",$$slots:{default:[X2]},$$scope:{ctx:w}}}),ps=new C({props:{name:"edit_discussion_comment",anchor:"huggingface_hub.HfApi.edit_discussion_comment",parameters:[{name:"repo_id",val:": str"},{name:"discussion_num",val:": int"},{name:"comment_id",val:": str"},{name:"new_content",val:": str"},{name:"token",val:": Optional[str] = None"},{name:"repo_type",val:": Optional[str] = None"}],parametersDescription:[{anchor:"huggingface_hub.HfApi.edit_discussion_comment.repo_id",description:`<strong>repo_id</strong> (<code>str</code>) &#x2014;
A namespace (user or an organization) and a repo name separated
by a <code>/</code>.`,name:"repo_id"},{anchor:"huggingface_hub.HfApi.edit_discussion_comment.discussion_num",description:`<strong>discussion_num</strong> (<code>int</code>) &#x2014;
The number of the Discussion or Pull Request . Must be a strictly positive integer.`,name:"discussion_num"},{anchor:"huggingface_hub.HfApi.edit_discussion_comment.comment_id",description:`<strong>comment_id</strong> (<code>str</code>) &#x2014;
The ID of the comment to edit.`,name:"comment_id"},{anchor:"huggingface_hub.HfApi.edit_discussion_comment.new_content",description:`<strong>new_content</strong> (<code>str</code>) &#x2014;
The new content of the comment. Comments support markdown formatting.`,name:"new_content"},{anchor:"huggingface_hub.HfApi.edit_discussion_comment.repo_type",description:`<strong>repo_type</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Set to <code>&quot;dataset&quot;</code> or <code>&quot;space&quot;</code> if uploading to a dataset or
space, <code>None</code> or <code>&quot;model&quot;</code> if uploading to a model. Default is
<code>None</code>.`,name:"repo_type"},{anchor:"huggingface_hub.HfApi.edit_discussion_comment.token",description:`<strong>token</strong> (<code>str</code>, <em>optional</em>) &#x2014;
An authentication token (See <a href="https://huggingface.co/settings/token" rel="nofollow">https://huggingface.co/settings/token</a>)`,name:"token"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/hf_api.py#L5496",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>the edited comment</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/huggingface_hub/main/en/package_reference/community#huggingface_hub.DiscussionComment"
>DiscussionComment</a></p>
`}}),co=new J({props:{$$slots:{default:[Y2]},$$scope:{ctx:w}}}),ds=new C({props:{name:"file_exists",anchor:"huggingface_hub.HfApi.file_exists",parameters:[{name:"repo_id",val:": str"},{name:"filename",val:": str"},{name:"repo_type",val:": Optional[str] = None"},{name:"revision",val:": Optional[str] = None"},{name:"token",val:": Optional[str] = None"}],parametersDescription:[{anchor:"huggingface_hub.HfApi.file_exists.repo_id",description:`<strong>repo_id</strong> (<code>str</code>) &#x2014;
A namespace (user or an organization) and a repo name separated
by a <code>/</code>.`,name:"repo_id"},{anchor:"huggingface_hub.HfApi.file_exists.filename",description:`<strong>filename</strong> (<code>str</code>) &#x2014;
The name of the file to check, for example:
<code>&quot;config.json&quot;</code>`,name:"filename"},{anchor:"huggingface_hub.HfApi.file_exists.repo_type",description:`<strong>repo_type</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Set to <code>&quot;dataset&quot;</code> or <code>&quot;space&quot;</code> if getting repository info from a dataset or a space,
<code>None</code> or <code>&quot;model&quot;</code> if getting repository info from a model. Default is <code>None</code>.`,name:"repo_type"},{anchor:"huggingface_hub.HfApi.file_exists.revision",description:`<strong>revision</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The revision of the repository from which to get the information. Defaults to <code>&quot;main&quot;</code> branch.`,name:"revision"},{anchor:"huggingface_hub.HfApi.file_exists.token",description:`<strong>token</strong> (<code>bool</code> or <code>str</code>, <em>optional</em>) &#x2014;
A valid authentication token (see <a href="https://huggingface.co/settings/token" rel="nofollow">https://huggingface.co/settings/token</a>).
If <code>None</code> or <code>True</code> and machine is logged in (through <code>huggingface-cli login</code>
or <a href="/docs/huggingface_hub/main/en/package_reference/login#huggingface_hub.login">login()</a>), token will be retrieved from the cache.
If <code>False</code>, token is not sent in the request header.`,name:"token"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/hf_api.py#L2169",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>True if the file exists, False otherwise.</p>
`}}),po=new J({props:{$$slots:{default:[O2]},$$scope:{ctx:w}}}),gs=new C({props:{name:"get_collection",anchor:"huggingface_hub.HfApi.get_collection",parameters:[{name:"collection_slug",val:": str"},{name:"token",val:": Optional[str] = None"}],parametersDescription:[{anchor:"huggingface_hub.HfApi.get_collection.collection_slug",description:`<strong>collection_slug</strong> (<code>str</code>) &#x2014;
Slug of the collection of the Hub. Example: <code>&quot;TheBloke/recent-models-64f9a55bb3115b4f513ec026&quot;</code>.`,name:"collection_slug"},{anchor:"huggingface_hub.HfApi.get_collection.token",description:`<strong>token</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Hugging Face token. Will default to the locally saved token if not provided.`,name:"token"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/hf_api.py#L6561"}}),go=new U({props:{anchor:"huggingface_hub.HfApi.get_collection.example",$$slots:{default:[z2]},$$scope:{ctx:w}}}),us=new C({props:{name:"get_dataset_tags",anchor:"huggingface_hub.HfApi.get_dataset_tags",parameters:[],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/hf_api.py#L1189"}}),hs=new C({props:{name:"get_discussion_details",anchor:"huggingface_hub.HfApi.get_discussion_details",parameters:[{name:"repo_id",val:": str"},{name:"discussion_num",val:": int"},{name:"repo_type",val:": Optional[str] = None"},{name:"token",val:": Optional[str] = None"}],parametersDescription:[{anchor:"huggingface_hub.HfApi.get_discussion_details.repo_id",description:`<strong>repo_id</strong> (<code>str</code>) &#x2014;
A namespace (user or an organization) and a repo name separated
by a <code>/</code>.`,name:"repo_id"},{anchor:"huggingface_hub.HfApi.get_discussion_details.discussion_num",description:`<strong>discussion_num</strong> (<code>int</code>) &#x2014;
The number of the Discussion or Pull Request . Must be a strictly positive integer.`,name:"discussion_num"},{anchor:"huggingface_hub.HfApi.get_discussion_details.repo_type",description:`<strong>repo_type</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Set to <code>&quot;dataset&quot;</code> or <code>&quot;space&quot;</code> if uploading to a dataset or
space, <code>None</code> or <code>&quot;model&quot;</code> if uploading to a model. Default is
<code>None</code>.`,name:"repo_type"},{anchor:"huggingface_hub.HfApi.get_discussion_details.token",description:`<strong>token</strong> (<code>str</code>, <em>optional</em>) &#x2014;
An authentication token (See <a href="https://huggingface.co/settings/token" rel="nofollow">https://huggingface.co/settings/token</a>)`,name:"token"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/hf_api.py#L4976"}}),ho=new J({props:{$$slots:{default:[Q2]},$$scope:{ctx:w}}}),ms=new C({props:{name:"get_full_repo_name",anchor:"huggingface_hub.HfApi.get_full_repo_name",parameters:[{name:"model_id",val:": str"},{name:"organization",val:": Optional[str] = None"},{name:"token",val:": Optional[Union[bool, str]] = None"}],parametersDescription:[{anchor:"huggingface_hub.HfApi.get_full_repo_name.model_id",description:`<strong>model_id</strong> (<code>str</code>) &#x2014;
The name of the model.`,name:"model_id"},{anchor:"huggingface_hub.HfApi.get_full_repo_name.organization",description:`<strong>organization</strong> (<code>str</code>, <em>optional</em>) &#x2014;
If passed, the repository name will be in the organization
namespace instead of the user namespace.`,name:"organization"},{anchor:"huggingface_hub.HfApi.get_full_repo_name.token",description:`<strong>token</strong> (<code>bool</code> or <code>str</code>, <em>optional</em>) &#x2014;
A valid authentication token (see <a href="https://huggingface.co/settings/token" rel="nofollow">https://huggingface.co/settings/token</a>).
If <code>None</code> or <code>True</code> and machine is logged in (through <code>huggingface-cli login</code>
or <a href="/docs/huggingface_hub/main/en/package_reference/login#huggingface_hub.login">login()</a>), token will be retrieved from the cache.
If <code>False</code>, token is not sent in the request header.`,name:"token"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/hf_api.py#L4861",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>The repository name in the user’s namespace
({username}/{model_id}) if no organization is passed, and under the
organization namespace ({organization}/{model_id}) otherwise.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>str</code></p>
`}}),fs=new C({props:{name:"get_inference_endpoint",anchor:"huggingface_hub.HfApi.get_inference_endpoint",parameters:[{name:"name",val:": str"},{name:"namespace",val:": Optional[str] = None"},{name:"token",val:": Optional[str] = None"}],parametersDescription:[{anchor:"huggingface_hub.HfApi.get_inference_endpoint.name",description:`<strong>name</strong> (<code>str</code>) &#x2014;
The name of the Inference Endpoint to retrieve information about.`,name:"name"},{anchor:"huggingface_hub.HfApi.get_inference_endpoint.namespace",description:`<strong>namespace</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The namespace in which the Inference Endpoint is located. Defaults to the current user.`,name:"namespace"},{anchor:"huggingface_hub.HfApi.get_inference_endpoint.token",description:`<strong>token</strong> (<code>str</code>, <em>optional</em>) &#x2014;
An authentication token (See <a href="https://huggingface.co/settings/token" rel="nofollow">https://huggingface.co/settings/token</a>).`,name:"token"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/hf_api.py#L6296",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>information about the requested Inference Endpoint.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/huggingface_hub/main/en/package_reference/inference_endpoints#huggingface_hub.InferenceEndpoint"
>InferenceEndpoint</a></p>
`}}),fo=new U({props:{anchor:"huggingface_hub.HfApi.get_inference_endpoint.example",$$slots:{default:[K2]},$$scope:{ctx:w}}}),_s=new C({props:{name:"get_model_tags",anchor:"huggingface_hub.HfApi.get_model_tags",parameters:[],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/hf_api.py#L1180"}}),bs=new C({props:{name:"get_repo_discussions",anchor:"huggingface_hub.HfApi.get_repo_discussions",parameters:[{name:"repo_id",val:": str"},{name:"repo_type",val:": Optional[str] = None"},{name:"token",val:": Optional[str] = None"}],parametersDescription:[{anchor:"huggingface_hub.HfApi.get_repo_discussions.repo_id",description:`<strong>repo_id</strong> (<code>str</code>) &#x2014;
A namespace (user or an organization) and a repo name separated
by a <code>/</code>.`,name:"repo_id"},{anchor:"huggingface_hub.HfApi.get_repo_discussions.repo_type",description:`<strong>repo_type</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Set to <code>&quot;dataset&quot;</code> or <code>&quot;space&quot;</code> if fetching from a dataset or
space, <code>None</code> or <code>&quot;model&quot;</code> if fetching from a model. Default is
<code>None</code>.`,name:"repo_type"},{anchor:"huggingface_hub.HfApi.get_repo_discussions.token",description:`<strong>token</strong> (<code>str</code>, <em>optional</em>) &#x2014;
An authentication token (See <a href="https://huggingface.co/settings/token" rel="nofollow">https://huggingface.co/settings/token</a>).`,name:"token"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/hf_api.py#L4899",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>An iterator of <a
  href="/docs/huggingface_hub/main/en/package_reference/community#huggingface_hub.Discussion"
>Discussion</a> objects.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>Iterator[Discussion]</code></p>
`}}),bo=new U({props:{anchor:"huggingface_hub.HfApi.get_repo_discussions.example",$$slots:{default:[e1]},$$scope:{ctx:w}}}),vo=new U({props:{anchor:"huggingface_hub.HfApi.get_repo_discussions.example-2",$$slots:{default:[t1]},$$scope:{ctx:w}}}),vs=new C({props:{name:"get_space_runtime",anchor:"huggingface_hub.HfApi.get_space_runtime",parameters:[{name:"repo_id",val:": str"},{name:"token",val:": Optional[str] = None"}],parametersDescription:[{anchor:"huggingface_hub.HfApi.get_space_runtime.repo_id",description:`<strong>repo_id</strong> (<code>str</code>) &#x2014;
ID of the repo to update. Example: <code>&quot;bigcode/in-the-stack&quot;</code>.`,name:"repo_id"},{anchor:"huggingface_hub.HfApi.get_space_runtime.token",description:`<strong>token</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Hugging Face token. Will default to the locally saved token if
not provided.`,name:"token"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/hf_api.py#L5744",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>Runtime information about a Space including Space stage and hardware.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/huggingface_hub/main/en/package_reference/space_runtime#huggingface_hub.SpaceRuntime"
>SpaceRuntime</a></p>
`}}),$s=new C({props:{name:"get_space_variables",anchor:"huggingface_hub.HfApi.get_space_variables",parameters:[{name:"repo_id",val:": str"},{name:"token",val:": Optional[str] = None"}],parametersDescription:[{anchor:"huggingface_hub.HfApi.get_space_variables.repo_id",description:`<strong>repo_id</strong> (<code>str</code>) &#x2014;
ID of the repo to query. Example: <code>&quot;bigcode/in-the-stack&quot;</code>.`,name:"repo_id"},{anchor:"huggingface_hub.HfApi.get_space_variables.token",description:`<strong>token</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Hugging Face token. Will default to the locally saved token if not provided.`,name:"token"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/hf_api.py#L5667"}}),ys=new C({props:{name:"get_token_permission",anchor:"huggingface_hub.HfApi.get_token_permission",parameters:[{name:"token",val:": Optional[str] = None"}],parametersDescription:[{anchor:"huggingface_hub.HfApi.get_token_permission.token",description:`<strong>token</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The token to check for validity. Defaults to the one saved locally.`,name:"token"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/hf_api.py#L1161",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>Permission granted by the token (“read” or “write”). Returns <code>None</code> if no
token passed or token is invalid.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>Literal["read", "write", None]</code></p>
`}}),xs=new C({props:{name:"hf_hub_download",anchor:"huggingface_hub.HfApi.hf_hub_download",parameters:[{name:"repo_id",val:": str"},{name:"filename",val:": str"},{name:"subfolder",val:": Optional[str] = None"},{name:"repo_type",val:": Optional[str] = None"},{name:"revision",val:": Optional[str] = None"},{name:"cache_dir",val:": Union[str, Path, None] = None"},{name:"local_dir",val:": Union[str, Path, None] = None"},{name:"local_dir_use_symlinks",val:": Union[bool, Literal['auto']] = 'auto'"},{name:"force_download",val:": bool = False"},{name:"force_filename",val:": Optional[str] = None"},{name:"proxies",val:": Optional[Dict] = None"},{name:"etag_timeout",val:": float = 10"},{name:"resume_download",val:": bool = False"},{name:"token",val:": Optional[Union[str, bool]] = None"},{name:"local_files_only",val:": bool = False"},{name:"legacy_cache_layout",val:": bool = False"}],parametersDescription:[{anchor:"huggingface_hub.HfApi.hf_hub_download.repo_id",description:`<strong>repo_id</strong> (<code>str</code>) &#x2014;
A user or an organization name and a repo name separated by a <code>/</code>.`,name:"repo_id"},{anchor:"huggingface_hub.HfApi.hf_hub_download.filename",description:`<strong>filename</strong> (<code>str</code>) &#x2014;
The name of the file in the repo.`,name:"filename"},{anchor:"huggingface_hub.HfApi.hf_hub_download.subfolder",description:`<strong>subfolder</strong> (<code>str</code>, <em>optional</em>) &#x2014;
An optional value corresponding to a folder inside the model repo.`,name:"subfolder"},{anchor:"huggingface_hub.HfApi.hf_hub_download.repo_type",description:`<strong>repo_type</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Set to <code>&quot;dataset&quot;</code> or <code>&quot;space&quot;</code> if downloading from a dataset or space,
<code>None</code> or <code>&quot;model&quot;</code> if downloading from a model. Default is <code>None</code>.`,name:"repo_type"},{anchor:"huggingface_hub.HfApi.hf_hub_download.revision",description:`<strong>revision</strong> (<code>str</code>, <em>optional</em>) &#x2014;
An optional Git revision id which can be a branch name, a tag, or a
commit hash.`,name:"revision"},{anchor:"huggingface_hub.HfApi.hf_hub_download.endpoint",description:`<strong>endpoint</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Hugging Face Hub base url. Will default to <a href="https://huggingface.co/" rel="nofollow">https://huggingface.co/</a>. Otherwise, one can set the <code>HF_ENDPOINT</code>
environment variable.`,name:"endpoint"},{anchor:"huggingface_hub.HfApi.hf_hub_download.cache_dir",description:`<strong>cache_dir</strong> (<code>str</code>, <code>Path</code>, <em>optional</em>) &#x2014;
Path to the folder where cached files are stored.`,name:"cache_dir"},{anchor:"huggingface_hub.HfApi.hf_hub_download.local_dir",description:`<strong>local_dir</strong> (<code>str</code> or <code>Path</code>, <em>optional</em>) &#x2014;
If provided, the downloaded file will be placed under this directory, either as a symlink (default) or
a regular file (see description for more details).`,name:"local_dir"},{anchor:"huggingface_hub.HfApi.hf_hub_download.local_dir_use_symlinks",description:`<strong>local_dir_use_symlinks</strong> (<code>&quot;auto&quot;</code> or <code>bool</code>, defaults to <code>&quot;auto&quot;</code>) &#x2014;
To be used with <code>local_dir</code>. If set to &#x201C;auto&#x201D;, the cache directory will be used and the file will be either
duplicated or symlinked to the local directory depending on its size. It set to <code>True</code>, a symlink will be
created, no matter the file size. If set to <code>False</code>, the file will either be duplicated from cache (if
already exists) or downloaded from the Hub and not cached. See description for more details.`,name:"local_dir_use_symlinks"},{anchor:"huggingface_hub.HfApi.hf_hub_download.force_download",description:`<strong>force_download</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether the file should be downloaded even if it already exists in
the local cache.`,name:"force_download"},{anchor:"huggingface_hub.HfApi.hf_hub_download.proxies",description:`<strong>proxies</strong> (<code>dict</code>, <em>optional</em>) &#x2014;
Dictionary mapping protocol to the URL of the proxy passed to
<code>requests.request</code>.`,name:"proxies"},{anchor:"huggingface_hub.HfApi.hf_hub_download.etag_timeout",description:`<strong>etag_timeout</strong> (<code>float</code>, <em>optional</em>, defaults to <code>10</code>) &#x2014;
When fetching ETag, how many seconds to wait for the server to send
data before giving up which is passed to <code>requests.request</code>.`,name:"etag_timeout"},{anchor:"huggingface_hub.HfApi.hf_hub_download.resume_download",description:`<strong>resume_download</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
If <code>True</code>, resume a previously interrupted download.`,name:"resume_download"},{anchor:"huggingface_hub.HfApi.hf_hub_download.token",description:`<strong>token</strong> (<code>bool</code> or <code>str</code>, <em>optional</em>) &#x2014;
A valid authentication token (see <a href="https://huggingface.co/settings/token" rel="nofollow">https://huggingface.co/settings/token</a>).
If <code>None</code> or <code>True</code> and machine is logged in (through <code>huggingface-cli login</code>
or <a href="/docs/huggingface_hub/main/en/package_reference/login#huggingface_hub.login">login()</a>), token will be retrieved from the cache.
If <code>False</code>, token is not sent in the request header.`,name:"token"},{anchor:"huggingface_hub.HfApi.hf_hub_download.local_files_only",description:`<strong>local_files_only</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
If <code>True</code>, avoid downloading the file and return the path to the
local cached file if it exists.`,name:"local_files_only"},{anchor:"huggingface_hub.HfApi.hf_hub_download.legacy_cache_layout",description:`<strong>legacy_cache_layout</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
If <code>True</code>, uses the legacy file cache layout i.e. just call <a href="/docs/huggingface_hub/main/en/package_reference/file_download#huggingface_hub.hf_hub_url">hf_hub_url()</a>
then <code>cached_download</code>. This is deprecated as the new cache layout is
more powerful.`,name:"legacy_cache_layout"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/hf_api.py#L4315",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>Local path (string) of file or if networking is off, last version of
file cached on disk.</p>
`}}),yo=new U({props:{anchor:"huggingface_hub.HfApi.hf_hub_download.example",$$slots:{default:[n1]},$$scope:{ctx:w}}}),xo=new J({props:{$$slots:{default:[o1]},$$scope:{ctx:w}}}),ws=new C({props:{name:"hide_discussion_comment",anchor:"huggingface_hub.HfApi.hide_discussion_comment",parameters:[{name:"repo_id",val:": str"},{name:"discussion_num",val:": int"},{name:"comment_id",val:": str"},{name:"token",val:": Optional[str] = None"},{name:"repo_type",val:": Optional[str] = None"}],parametersDescription:[{anchor:"huggingface_hub.HfApi.hide_discussion_comment.repo_id",description:`<strong>repo_id</strong> (<code>str</code>) &#x2014;
A namespace (user or an organization) and a repo name separated
by a <code>/</code>.`,name:"repo_id"},{anchor:"huggingface_hub.HfApi.hide_discussion_comment.discussion_num",description:`<strong>discussion_num</strong> (<code>int</code>) &#x2014;
The number of the Discussion or Pull Request . Must be a strictly positive integer.`,name:"discussion_num"},{anchor:"huggingface_hub.HfApi.hide_discussion_comment.comment_id",description:`<strong>comment_id</strong> (<code>str</code>) &#x2014;
The ID of the comment to edit.`,name:"comment_id"},{anchor:"huggingface_hub.HfApi.hide_discussion_comment.repo_type",description:`<strong>repo_type</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Set to <code>&quot;dataset&quot;</code> or <code>&quot;space&quot;</code> if uploading to a dataset or
space, <code>None</code> or <code>&quot;model&quot;</code> if uploading to a model. Default is
<code>None</code>.`,name:"repo_type"},{anchor:"huggingface_hub.HfApi.hide_discussion_comment.token",description:`<strong>token</strong> (<code>str</code>, <em>optional</em>) &#x2014;
An authentication token (See <a href="https://huggingface.co/settings/token" rel="nofollow">https://huggingface.co/settings/token</a>)`,name:"token"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/hf_api.py#L5553",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>the hidden comment</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/huggingface_hub/main/en/package_reference/community#huggingface_hub.DiscussionComment"
>DiscussionComment</a></p>
`}}),wo=new J({props:{warning:!0,$$slots:{default:[a1]},$$scope:{ctx:w}}}),Mo=new J({props:{$$slots:{default:[s1]},$$scope:{ctx:w}}}),Ms=new C({props:{name:"like",anchor:"huggingface_hub.HfApi.like",parameters:[{name:"repo_id",val:": str"},{name:"token",val:": Optional[str] = None"},{name:"repo_type",val:": Optional[str] = None"}],parametersDescription:[{anchor:"huggingface_hub.HfApi.like.repo_id",description:`<strong>repo_id</strong> (<code>str</code>) &#x2014;
The repository to like. Example: <code>&quot;user/my-cool-model&quot;</code>.`,name:"repo_id"},{anchor:"huggingface_hub.HfApi.like.token",description:`<strong>token</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Authentication token. Will default to the stored token.`,name:"token"},{anchor:"huggingface_hub.HfApi.like.repo_type",description:`<strong>repo_type</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Set to <code>&quot;dataset&quot;</code> or <code>&quot;space&quot;</code> if liking a dataset or space, <code>None</code> or
<code>&quot;model&quot;</code> if liking a model. Default is <code>None</code>.`,name:"repo_type"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/hf_api.py#L1641",raiseDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<ul>
<li><a
  href="/docs/huggingface_hub/main/en/package_reference/utilities#huggingface_hub.utils.RepositoryNotFoundError"
>RepositoryNotFoundError</a> —
If repository is not found (error 404): wrong repo_id/repo_type, private
but not authenticated or repo does not exist.</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.RepositoryNotFoundError"
>RepositoryNotFoundError</a></p>
`}}),ko=new U({props:{anchor:"huggingface_hub.HfApi.like.example",$$slots:{default:[i1]},$$scope:{ctx:w}}}),ks=new C({props:{name:"list_datasets",anchor:"huggingface_hub.HfApi.list_datasets",parameters:[{name:"filter",val:": Union[DatasetFilter, str, Iterable[str], None] = None"},{name:"author",val:": Optional[str] = None"},{name:"search",val:": Optional[str] = None"},{name:"sort",val:": Union[Literal['last_modified'], str, None] = None"},{name:"direction",val:": Optional[Literal[-1]] = None"},{name:"limit",val:": Optional[int] = None"},{name:"full",val:": Optional[bool] = None"},{name:"token",val:": Optional[str] = None"}],parametersDescription:[{anchor:"huggingface_hub.HfApi.list_datasets.filter",description:`<strong>filter</strong> (<a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.DatasetFilter">DatasetFilter</a> or <code>str</code> or <code>Iterable</code>, <em>optional</em>) &#x2014;
A string or <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.DatasetFilter">DatasetFilter</a> which can be used to identify
datasets on the hub.`,name:"filter"},{anchor:"huggingface_hub.HfApi.list_datasets.author",description:`<strong>author</strong> (<code>str</code>, <em>optional</em>) &#x2014;
A string which identify the author of the returned datasets.`,name:"author"},{anchor:"huggingface_hub.HfApi.list_datasets.search",description:`<strong>search</strong> (<code>str</code>, <em>optional</em>) &#x2014;
A string that will be contained in the returned datasets.`,name:"search"},{anchor:"huggingface_hub.HfApi.list_datasets.sort",description:`<strong>sort</strong> (<code>Literal[&quot;last_modified&quot;]</code> or <code>str</code>, <em>optional</em>) &#x2014;
The key with which to sort the resulting datasets. Possible
values are the properties of the <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.hf_api.DatasetInfo">huggingface_hub.hf_api.DatasetInfo</a> class.`,name:"sort"},{anchor:"huggingface_hub.HfApi.list_datasets.direction",description:`<strong>direction</strong> (<code>Literal[-1]</code> or <code>int</code>, <em>optional</em>) &#x2014;
Direction in which to sort. The value <code>-1</code> sorts by descending
order while all other values sort by ascending order.`,name:"direction"},{anchor:"huggingface_hub.HfApi.list_datasets.limit",description:`<strong>limit</strong> (<code>int</code>, <em>optional</em>) &#x2014;
The limit on the number of datasets fetched. Leaving this option
to <code>None</code> fetches all datasets.`,name:"limit"},{anchor:"huggingface_hub.HfApi.list_datasets.full",description:`<strong>full</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether to fetch all dataset data, including the <code>last_modified</code>,
the <code>card_data</code> and  the files. Can contain useful information such as the
PapersWithCode ID.`,name:"full"},{anchor:"huggingface_hub.HfApi.list_datasets.token",description:`<strong>token</strong> (<code>bool</code> or <code>str</code>, <em>optional</em>) &#x2014;
A valid authentication token (see <a href="https://huggingface.co/settings/token" rel="nofollow">https://huggingface.co/settings/token</a>).
If <code>None</code> or <code>True</code> and machine is logged in (through <code>huggingface-cli login</code>
or <a href="/docs/huggingface_hub/main/en/package_reference/login#huggingface_hub.login">login()</a>), token will be retrieved from the cache.
If <code>False</code>, token is not sent in the request header.`,name:"token"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/hf_api.py#L1384",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>an iterable of <a
  href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.hf_api.DatasetInfo"
>huggingface_hub.hf_api.DatasetInfo</a> objects.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>Iterable[DatasetInfo]</code></p>
`}}),To=new U({props:{anchor:"huggingface_hub.HfApi.list_datasets.example",$$slots:{default:[r1]},$$scope:{ctx:w}}}),jo=new U({props:{anchor:"huggingface_hub.HfApi.list_datasets.example-2",$$slots:{default:[l1]},$$scope:{ctx:w}}}),Ts=new C({props:{name:"list_files_info",anchor:"huggingface_hub.HfApi.list_files_info",parameters:[{name:"repo_id",val:": str"},{name:"paths",val:": Union[List[str], str, None] = None"},{name:"expand",val:": bool = False"},{name:"revision",val:": Optional[str] = None"},{name:"repo_type",val:": Optional[str] = None"},{name:"token",val:": Optional[Union[bool, str]] = None"}],parametersDescription:[{anchor:"huggingface_hub.HfApi.list_files_info.repo_id",description:`<strong>repo_id</strong> (<code>str</code>) &#x2014;
A namespace (user or an organization) and a repo name separated by a <code>/</code>.`,name:"repo_id"},{anchor:"huggingface_hub.HfApi.list_files_info.paths",description:`<strong>paths</strong> (<code>Union[List[str], str, None]</code>, <em>optional</em>) &#x2014;
The paths to get information about. Paths to files are directly resolved. Paths to folders are resolved
recursively which means that information is returned about all files in the folder and its subfolders.
If <code>None</code>, all files are returned (the default). If a path do not exist, it is ignored without raising
an exception.`,name:"paths"},{anchor:"huggingface_hub.HfApi.list_files_info.expand",description:`<strong>expand</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether to fetch more information about the files (e.g. last commit and security scan results). This
operation is more expensive for the server so only 50 results are returned per page (instead of 1000).
As pagination is implemented in <code>huggingface_hub</code>, this is transparent for you except for the time it
takes to get the results.`,name:"expand"},{anchor:"huggingface_hub.HfApi.list_files_info.revision",description:`<strong>revision</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The revision of the repository from which to get the information. Defaults to <code>&quot;main&quot;</code> branch.`,name:"revision"},{anchor:"huggingface_hub.HfApi.list_files_info.repo_type",description:`<strong>repo_type</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The type of the repository from which to get the information (<code>&quot;model&quot;</code>, <code>&quot;dataset&quot;</code> or <code>&quot;space&quot;</code>.
Defaults to <code>&quot;model&quot;</code>.`,name:"repo_type"},{anchor:"huggingface_hub.HfApi.list_files_info.token",description:`<strong>token</strong> (<code>bool</code> or <code>str</code>, <em>optional</em>) &#x2014;
A valid authentication token (see <a href="https://huggingface.co/settings/token" rel="nofollow">https://huggingface.co/settings/token</a>). If <code>None</code> or <code>True</code> and
machine is logged in (through <code>huggingface-cli login</code> or <a href="/docs/huggingface_hub/main/en/package_reference/login#huggingface_hub.login">login()</a>), token will be
retrieved from the cache. If <code>False</code>, token is not sent in the request header.`,name:"token"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/hf_api.py#L2227",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>The information about the files, as an iterable of <code>RepoFile</code> objects. The order of the files is
not guaranteed.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


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


<ul>
<li><a
  href="/docs/huggingface_hub/main/en/package_reference/utilities#huggingface_hub.utils.RepositoryNotFoundError"
>RepositoryNotFoundError</a> —
If repository is not found (error 404): wrong repo_id/repo_type, private but not authenticated or repo
does not exist.</li>
<li><a
  href="/docs/huggingface_hub/main/en/package_reference/utilities#huggingface_hub.utils.RevisionNotFoundError"
>RevisionNotFoundError</a> —
If revision is not found (error 404) on the repo.</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.RepositoryNotFoundError"
>RepositoryNotFoundError</a> or <a
  href="/docs/huggingface_hub/main/en/package_reference/utilities#huggingface_hub.utils.RevisionNotFoundError"
>RevisionNotFoundError</a></p>
`}}),Co=new U({props:{anchor:"huggingface_hub.HfApi.list_files_info.example",$$slots:{default:[c1]},$$scope:{ctx:w}}}),Io=new U({props:{anchor:"huggingface_hub.HfApi.list_files_info.example-2",$$slots:{default:[p1]},$$scope:{ctx:w}}}),Ho=new U({props:{anchor:"huggingface_hub.HfApi.list_files_info.example-3",$$slots:{default:[d1]},$$scope:{ctx:w}}}),Uo=new U({props:{anchor:"huggingface_hub.HfApi.list_files_info.example-4",$$slots:{default:[g1]},$$scope:{ctx:w}}}),js=new C({props:{name:"list_inference_endpoints",anchor:"huggingface_hub.HfApi.list_inference_endpoints",parameters:[{name:"namespace",val:": Optional[str] = None"},{name:"token",val:": Optional[str] = None"}],parametersDescription:[{anchor:"huggingface_hub.HfApi.list_inference_endpoints.namespace",description:`<strong>namespace</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The namespace to list endpoints for. Defaults to the current user. Set to <code>&quot;*&quot;</code> to list all endpoints
from all namespaces (i.e. personal namespace and all orgs the user belongs to).`,name:"namespace"},{anchor:"huggingface_hub.HfApi.list_inference_endpoints.token",description:`<strong>token</strong> (<code>str</code>, <em>optional</em>) &#x2014;
An authentication token (See <a href="https://huggingface.co/settings/token" rel="nofollow">https://huggingface.co/settings/token</a>).`,name:"token"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/hf_api.py#L6121",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>A list of all inference endpoints for the given namespace.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p>List<a
  href="/docs/huggingface_hub/main/en/package_reference/inference_endpoints#huggingface_hub.InferenceEndpoint"
>InferenceEndpoint</a></p>
`}}),Jo=new U({props:{anchor:"huggingface_hub.HfApi.list_inference_endpoints.example",$$slots:{default:[u1]},$$scope:{ctx:w}}}),Cs=new C({props:{name:"list_liked_repos",anchor:"huggingface_hub.HfApi.list_liked_repos",parameters:[{name:"user",val:": Optional[str] = None"},{name:"token",val:": Optional[str] = None"}],parametersDescription:[{anchor:"huggingface_hub.HfApi.list_liked_repos.user",description:`<strong>user</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Name of the user for which you want to fetch the likes.`,name:"user"},{anchor:"huggingface_hub.HfApi.list_liked_repos.token",description:`<strong>token</strong> (<code>str</code>, <em>optional</em>) &#x2014;
A valid authentication token (see <a href="https://huggingface.co/settings/token" rel="nofollow">https://huggingface.co/settings/token</a>).
Used only if <code>user</code> is not passed to implicitly determine the current
user name.`,name:"token"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/hf_api.py#L1736",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>object containing the user name and 3 lists of repo ids (1 for
models, 1 for datasets and 1 for Spaces).</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.UserLikes"
>UserLikes</a></p>
`,raiseDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<ul>
<li><a
  href="https://docs.python.org/3/library/exceptions.html#ValueError"
  rel="nofollow"
><code>ValueError</code></a> —
If <code>user</code> is not passed and no token found (either from argument or from machine).</li>
</ul>
`,raiseType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>ValueError</code></p>
`}}),Ao=new U({props:{anchor:"huggingface_hub.HfApi.list_liked_repos.example",$$slots:{default:[h1]},$$scope:{ctx:w}}}),Is=new C({props:{name:"list_metrics",anchor:"huggingface_hub.HfApi.list_metrics",parameters:[],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/hf_api.py#L1541",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>a list of <code>MetricInfo</code> objects which.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>List[MetricInfo]</code></p>
`}}),Hs=new C({props:{name:"list_models",anchor:"huggingface_hub.HfApi.list_models",parameters:[{name:"filter",val:": Union[ModelFilter, str, Iterable[str], None] = None"},{name:"author",val:": Optional[str] = None"},{name:"search",val:": Optional[str] = None"},{name:"emissions_thresholds",val:": Optional[Tuple[float, float]] = None"},{name:"sort",val:": Union[Literal['last_modified'], str, None] = None"},{name:"direction",val:": Optional[Literal[-1]] = None"},{name:"limit",val:": Optional[int] = None"},{name:"full",val:": Optional[bool] = None"},{name:"cardData",val:": bool = False"},{name:"fetch_config",val:": bool = False"},{name:"token",val:": Optional[Union[bool, str]] = None"}],parametersDescription:[{anchor:"huggingface_hub.HfApi.list_models.filter",description:`<strong>filter</strong> (<a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.ModelFilter">ModelFilter</a> or <code>str</code> or <code>Iterable</code>, <em>optional</em>) &#x2014;
A string or <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.ModelFilter">ModelFilter</a> which can be used to identify models
on the Hub.`,name:"filter"},{anchor:"huggingface_hub.HfApi.list_models.author",description:`<strong>author</strong> (<code>str</code>, <em>optional</em>) &#x2014;
A string which identify the author (user or organization) of the
returned models`,name:"author"},{anchor:"huggingface_hub.HfApi.list_models.search",description:`<strong>search</strong> (<code>str</code>, <em>optional</em>) &#x2014;
A string that will be contained in the returned model ids.`,name:"search"},{anchor:"huggingface_hub.HfApi.list_models.emissions_thresholds",description:`<strong>emissions_thresholds</strong> (<code>Tuple</code>, <em>optional</em>) &#x2014;
A tuple of two ints or floats representing a minimum and maximum
carbon footprint to filter the resulting models with in grams.`,name:"emissions_thresholds"},{anchor:"huggingface_hub.HfApi.list_models.sort",description:`<strong>sort</strong> (<code>Literal[&quot;last_modified&quot;]</code> or <code>str</code>, <em>optional</em>) &#x2014;
The key with which to sort the resulting models. Possible values
are the properties of the <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.hf_api.ModelInfo">huggingface_hub.hf_api.ModelInfo</a> class.`,name:"sort"},{anchor:"huggingface_hub.HfApi.list_models.direction",description:`<strong>direction</strong> (<code>Literal[-1]</code> or <code>int</code>, <em>optional</em>) &#x2014;
Direction in which to sort. The value <code>-1</code> sorts by descending
order while all other values sort by ascending order.`,name:"direction"},{anchor:"huggingface_hub.HfApi.list_models.limit",description:`<strong>limit</strong> (<code>int</code>, <em>optional</em>) &#x2014;
The limit on the number of models fetched. Leaving this option
to <code>None</code> fetches all models.`,name:"limit"},{anchor:"huggingface_hub.HfApi.list_models.full",description:`<strong>full</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether to fetch all model data, including the <code>last_modified</code>,
the <code>sha</code>, the files and the <code>tags</code>. This is set to <code>True</code> by
default when using a filter.`,name:"full"},{anchor:"huggingface_hub.HfApi.list_models.cardData",description:`<strong>cardData</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether to grab the metadata for the model as well. Can contain
useful information such as carbon emissions, metrics, and
datasets trained on.`,name:"cardData"},{anchor:"huggingface_hub.HfApi.list_models.fetch_config",description:`<strong>fetch_config</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether to fetch the model configs as well. This is not included
in <code>full</code> due to its size.`,name:"fetch_config"},{anchor:"huggingface_hub.HfApi.list_models.token",description:`<strong>token</strong> (<code>bool</code> or <code>str</code>, <em>optional</em>) &#x2014;
A valid authentication token (see <a href="https://huggingface.co/settings/token" rel="nofollow">https://huggingface.co/settings/token</a>).
If <code>None</code> or <code>True</code> and machine is logged in (through <code>huggingface-cli login</code>
or <a href="/docs/huggingface_hub/main/en/package_reference/login#huggingface_hub.login">login()</a>), token will be retrieved from the cache.
If <code>False</code>, token is not sent in the request header.`,name:"token"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/hf_api.py#L1198",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>an iterable of <a
  href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.hf_api.ModelInfo"
>huggingface_hub.hf_api.ModelInfo</a> objects.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>Iterable[ModelInfo]</code></p>
`}}),No=new U({props:{anchor:"huggingface_hub.HfApi.list_models.example",$$slots:{default:[m1]},$$scope:{ctx:w}}}),Js=new E({props:{title:"List all models with “bert” in their name",local:"list-all-models-with-bert-in-their-name",headingTag:"h1"}}),As=new E({props:{title:"List all models with “bert” in their name made by google",local:"list-all-models-with-bert-in-their-name-made-by-google",headingTag:"h1"}}),qs=new H({props:{code:"",highlighted:"",wrap:!1}}),Ns=new C({props:{name:"list_repo_commits",anchor:"huggingface_hub.HfApi.list_repo_commits",parameters:[{name:"repo_id",val:": str"},{name:"repo_type",val:": Optional[str] = None"},{name:"token",val:": Optional[Union[bool, str]] = None"},{name:"revision",val:": Optional[str] = None"},{name:"formatted",val:": bool = False"}],parametersDescription:[{anchor:"huggingface_hub.HfApi.list_repo_commits.repo_id",description:`<strong>repo_id</strong> (<code>str</code>) &#x2014;
A namespace (user or an organization) and a repo name separated by a <code>/</code>.`,name:"repo_id"},{anchor:"huggingface_hub.HfApi.list_repo_commits.repo_type",description:`<strong>repo_type</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Set to <code>&quot;dataset&quot;</code> or <code>&quot;space&quot;</code> if listing commits from a dataset or a Space, <code>None</code> or <code>&quot;model&quot;</code> if
listing from a model. Default is <code>None</code>.`,name:"repo_type"},{anchor:"huggingface_hub.HfApi.list_repo_commits.token",description:`<strong>token</strong> (<code>bool</code> or <code>str</code>, <em>optional</em>) &#x2014;
A valid authentication token (see <a href="https://huggingface.co/settings/token" rel="nofollow">https://huggingface.co/settings/token</a>).
If <code>None</code> or <code>True</code> and machine is logged in (through <code>huggingface-cli login</code>
or <a href="/docs/huggingface_hub/main/en/package_reference/login#huggingface_hub.login">login()</a>), token will be retrieved from the cache.
If <code>False</code>, token is not sent in the request header.`,name:"token"},{anchor:"huggingface_hub.HfApi.list_repo_commits.revision",description:`<strong>revision</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The git revision to commit from. Defaults to the head of the <code>&quot;main&quot;</code> branch.`,name:"revision"},{anchor:"huggingface_hub.HfApi.list_repo_commits.formatted",description:`<strong>formatted</strong> (<code>bool</code>) &#x2014;
Whether to return the HTML-formatted title and description of the commits. Defaults to False.`,name:"formatted"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/hf_api.py#L2533",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>list of objects containing information about the commits for a repo on the Hub.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p>List[<a
  href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.GitCommitInfo"
>GitCommitInfo</a>]</p>
`,raiseDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<ul>
<li><a
  href="/docs/huggingface_hub/main/en/package_reference/utilities#huggingface_hub.utils.RepositoryNotFoundError"
>RepositoryNotFoundError</a> —
If repository is not found (error 404): wrong repo_id/repo_type, private but not authenticated or repo
does not exist.</li>
<li><a
  href="/docs/huggingface_hub/main/en/package_reference/utilities#huggingface_hub.utils.RevisionNotFoundError"
>RevisionNotFoundError</a> —
If revision is not found (error 404) on the repo.</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.RepositoryNotFoundError"
>RepositoryNotFoundError</a> or <a
  href="/docs/huggingface_hub/main/en/package_reference/utilities#huggingface_hub.utils.RevisionNotFoundError"
>RevisionNotFoundError</a></p>
`}}),Eo=new U({props:{anchor:"huggingface_hub.HfApi.list_repo_commits.example",$$slots:{default:[f1]},$$scope:{ctx:w}}}),Es=new C({props:{name:"list_repo_files",anchor:"huggingface_hub.HfApi.list_repo_files",parameters:[{name:"repo_id",val:": str"},{name:"revision",val:": Optional[str] = None"},{name:"repo_type",val:": Optional[str] = None"},{name:"timeout",val:": Optional[float] = None"},{name:"token",val:": Optional[Union[bool, str]] = None"}],parametersDescription:[{anchor:"huggingface_hub.HfApi.list_repo_files.repo_id",description:`<strong>repo_id</strong> (<code>str</code>) &#x2014;
A namespace (user or an organization) and a repo name separated by a <code>/</code>.`,name:"repo_id"},{anchor:"huggingface_hub.HfApi.list_repo_files.revision",description:`<strong>revision</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The revision of the model repository from which to get the information.`,name:"revision"},{anchor:"huggingface_hub.HfApi.list_repo_files.repo_type",description:`<strong>repo_type</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Set to <code>&quot;dataset&quot;</code> or <code>&quot;space&quot;</code> if uploading to a dataset or space, <code>None</code> or <code>&quot;model&quot;</code> if uploading to
a model. Default is <code>None</code>.`,name:"repo_type"},{anchor:"huggingface_hub.HfApi.list_repo_files.token",description:`<strong>token</strong> (<code>bool</code> or <code>str</code>, <em>optional</em>) &#x2014;
A valid authentication token (see <a href="https://huggingface.co/settings/token" rel="nofollow">https://huggingface.co/settings/token</a>). If <code>None</code> or <code>True</code> and
machine is logged in (through <code>huggingface-cli login</code> or <a href="/docs/huggingface_hub/main/en/package_reference/login#huggingface_hub.login">login()</a>), token will be
retrieved from the cache. If <code>False</code>, token is not sent in the request header.`,name:"token"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/hf_api.py#L2432",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>the list of files in a given repository.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>List[str]</code></p>
`}}),Rs=new C({props:{name:"list_repo_likers",anchor:"huggingface_hub.HfApi.list_repo_likers",parameters:[{name:"repo_id",val:": str"},{name:"repo_type",val:": Optional[str] = None"},{name:"token",val:": Optional[str] = None"}],parametersDescription:[{anchor:"huggingface_hub.HfApi.list_repo_likers.repo_id",description:`<strong>repo_id</strong> (<code>str</code>) &#x2014;
The repository to retrieve . Example: <code>&quot;user/my-cool-model&quot;</code>.`,name:"repo_id"},{anchor:"huggingface_hub.HfApi.list_repo_likers.token",description:`<strong>token</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Authentication token. Will default to the stored token.`,name:"token"},{anchor:"huggingface_hub.HfApi.list_repo_likers.repo_type",description:`<strong>repo_type</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Set to <code>&quot;dataset&quot;</code> or <code>&quot;space&quot;</code> if uploading to a dataset or
space, <code>None</code> or <code>&quot;model&quot;</code> if uploading to a model. Default is
<code>None</code>.`,name:"repo_type"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/hf_api.py#L1811",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>a list of <a
  href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.User"
>User</a> objects.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>List[User]</code></p>
`}}),Gs=new C({props:{name:"list_repo_refs",anchor:"huggingface_hub.HfApi.list_repo_refs",parameters:[{name:"repo_id",val:": str"},{name:"repo_type",val:": Optional[str] = None"},{name:"token",val:": Optional[Union[bool, str]] = None"}],parametersDescription:[{anchor:"huggingface_hub.HfApi.list_repo_refs.repo_id",description:`<strong>repo_id</strong> (<code>str</code>) &#x2014;
A namespace (user or an organization) and a repo name separated
by a <code>/</code>.`,name:"repo_id"},{anchor:"huggingface_hub.HfApi.list_repo_refs.repo_type",description:`<strong>repo_type</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Set to <code>&quot;dataset&quot;</code> or <code>&quot;space&quot;</code> if listing refs from a dataset or a Space,
<code>None</code> or <code>&quot;model&quot;</code> if listing from a model. Default is <code>None</code>.`,name:"repo_type"},{anchor:"huggingface_hub.HfApi.list_repo_refs.token",description:`<strong>token</strong> (<code>bool</code> or <code>str</code>, <em>optional</em>) &#x2014;
A valid authentication token (see <a href="https://huggingface.co/settings/token" rel="nofollow">https://huggingface.co/settings/token</a>).
If <code>None</code> or <code>True</code> and machine is logged in (through <code>huggingface-cli login</code>
or <a href="/docs/huggingface_hub/main/en/package_reference/login#huggingface_hub.login">login()</a>), token will be retrieved from the cache.
If <code>False</code>, token is not sent in the request header.`,name:"token"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/hf_api.py#L2469",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>object containing all information about branches and tags for a
repo on the Hub.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.GitRefs"
>GitRefs</a></p>
`}}),Go=new U({props:{anchor:"huggingface_hub.HfApi.list_repo_refs.example",$$slots:{default:[_1]},$$scope:{ctx:w}}}),Ds=new C({props:{name:"list_spaces",anchor:"huggingface_hub.HfApi.list_spaces",parameters:[{name:"filter",val:": Union[str, Iterable[str], None] = None"},{name:"author",val:": Optional[str] = None"},{name:"search",val:": Optional[str] = None"},{name:"sort",val:": Union[Literal['last_modified'], str, None] = None"},{name:"direction",val:": Optional[Literal[-1]] = None"},{name:"limit",val:": Optional[int] = None"},{name:"datasets",val:": Union[str, Iterable[str], None] = None"},{name:"models",val:": Union[str, Iterable[str], None] = None"},{name:"linked",val:": bool = False"},{name:"full",val:": Optional[bool] = None"},{name:"token",val:": Optional[str] = None"}],parametersDescription:[{anchor:"huggingface_hub.HfApi.list_spaces.filter",description:`<strong>filter</strong> (<code>str</code> or <code>Iterable</code>, <em>optional</em>) &#x2014;
A string tag or list of tags that can be used to identify Spaces on the Hub.`,name:"filter"},{anchor:"huggingface_hub.HfApi.list_spaces.author",description:`<strong>author</strong> (<code>str</code>, <em>optional</em>) &#x2014;
A string which identify the author of the returned Spaces.`,name:"author"},{anchor:"huggingface_hub.HfApi.list_spaces.search",description:`<strong>search</strong> (<code>str</code>, <em>optional</em>) &#x2014;
A string that will be contained in the returned Spaces.`,name:"search"},{anchor:"huggingface_hub.HfApi.list_spaces.sort",description:`<strong>sort</strong> (<code>Literal[&quot;last_modified&quot;]</code> or <code>str</code>, <em>optional</em>) &#x2014;
The key with which to sort the resulting Spaces. Possible
values are the properties of the <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.hf_api.SpaceInfo">huggingface_hub.hf_api.SpaceInfo</a>\` class.`,name:"sort"},{anchor:"huggingface_hub.HfApi.list_spaces.direction",description:`<strong>direction</strong> (<code>Literal[-1]</code> or <code>int</code>, <em>optional</em>) &#x2014;
Direction in which to sort. The value <code>-1</code> sorts by descending
order while all other values sort by ascending order.`,name:"direction"},{anchor:"huggingface_hub.HfApi.list_spaces.limit",description:`<strong>limit</strong> (<code>int</code>, <em>optional</em>) &#x2014;
The limit on the number of Spaces fetched. Leaving this option
to <code>None</code> fetches all Spaces.`,name:"limit"},{anchor:"huggingface_hub.HfApi.list_spaces.datasets",description:`<strong>datasets</strong> (<code>str</code> or <code>Iterable</code>, <em>optional</em>) &#x2014;
Whether to return Spaces that make use of a dataset.
The name of a specific dataset can be passed as a string.`,name:"datasets"},{anchor:"huggingface_hub.HfApi.list_spaces.models",description:`<strong>models</strong> (<code>str</code> or <code>Iterable</code>, <em>optional</em>) &#x2014;
Whether to return Spaces that make use of a model.
The name of a specific model can be passed as a string.`,name:"models"},{anchor:"huggingface_hub.HfApi.list_spaces.linked",description:`<strong>linked</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether to return Spaces that make use of either a model or a dataset.`,name:"linked"},{anchor:"huggingface_hub.HfApi.list_spaces.full",description:`<strong>full</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether to fetch all Spaces data, including the <code>last_modified</code>, <code>siblings</code>
and <code>card_data</code> fields.`,name:"full"},{anchor:"huggingface_hub.HfApi.list_spaces.token",description:`<strong>token</strong> (<code>bool</code> or <code>str</code>, <em>optional</em>) &#x2014;
A valid authentication token (see <a href="https://huggingface.co/settings/token" rel="nofollow">https://huggingface.co/settings/token</a>).
If <code>None</code> or <code>True</code> and machine is logged in (through <code>huggingface-cli login</code>
or <a href="/docs/huggingface_hub/main/en/package_reference/login#huggingface_hub.login">login()</a>), token will be retrieved from the cache.
If <code>False</code>, token is not sent in the request header.`,name:"token"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/hf_api.py#L1554",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>an iterable of <a
  href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.hf_api.SpaceInfo"
>huggingface_hub.hf_api.SpaceInfo</a> objects.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>Iterable[SpaceInfo]</code></p>
`}}),Ss=new C({props:{name:"merge_pull_request",anchor:"huggingface_hub.HfApi.merge_pull_request",parameters:[{name:"repo_id",val:": str"},{name:"discussion_num",val:": int"},{name:"token",val:": Optional[str] = None"},{name:"comment",val:": Optional[str] = None"},{name:"repo_type",val:": Optional[str] = None"}],parametersDescription:[{anchor:"huggingface_hub.HfApi.merge_pull_request.repo_id",description:`<strong>repo_id</strong> (<code>str</code>) &#x2014;
A namespace (user or an organization) and a repo name separated
by a <code>/</code>.`,name:"repo_id"},{anchor:"huggingface_hub.HfApi.merge_pull_request.discussion_num",description:`<strong>discussion_num</strong> (<code>int</code>) &#x2014;
The number of the Discussion or Pull Request . Must be a strictly positive integer.`,name:"discussion_num"},{anchor:"huggingface_hub.HfApi.merge_pull_request.comment",description:`<strong>comment</strong> (<code>str</code>, <em>optional</em>) &#x2014;
An optional comment to post with the status change.`,name:"comment"},{anchor:"huggingface_hub.HfApi.merge_pull_request.repo_type",description:`<strong>repo_type</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Set to <code>&quot;dataset&quot;</code> or <code>&quot;space&quot;</code> if uploading to a dataset or
space, <code>None</code> or <code>&quot;model&quot;</code> if uploading to a model. Default is
<code>None</code>.`,name:"repo_type"},{anchor:"huggingface_hub.HfApi.merge_pull_request.token",description:`<strong>token</strong> (<code>str</code>, <em>optional</em>) &#x2014;
An authentication token (See <a href="https://huggingface.co/settings/token" rel="nofollow">https://huggingface.co/settings/token</a>)`,name:"token"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/hf_api.py#L5443",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>the status change event</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/huggingface_hub/main/en/package_reference/community#huggingface_hub.DiscussionStatusChange"
>DiscussionStatusChange</a></p>
`}}),So=new J({props:{$$slots:{default:[b1]},$$scope:{ctx:w}}}),Fs=new C({props:{name:"model_info",anchor:"huggingface_hub.HfApi.model_info",parameters:[{name:"repo_id",val:": str"},{name:"revision",val:": Optional[str] = None"},{name:"timeout",val:": Optional[float] = None"},{name:"securityStatus",val:": Optional[bool] = None"},{name:"files_metadata",val:": bool = False"},{name:"token",val:": Optional[Union[bool, str]] = None"}],parametersDescription:[{anchor:"huggingface_hub.HfApi.model_info.repo_id",description:`<strong>repo_id</strong> (<code>str</code>) &#x2014;
A namespace (user or an organization) and a repo name separated
by a <code>/</code>.`,name:"repo_id"},{anchor:"huggingface_hub.HfApi.model_info.revision",description:`<strong>revision</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The revision of the model repository from which to get the
information.`,name:"revision"},{anchor:"huggingface_hub.HfApi.model_info.timeout",description:`<strong>timeout</strong> (<code>float</code>, <em>optional</em>) &#x2014;
Whether to set a timeout for the request to the Hub.`,name:"timeout"},{anchor:"huggingface_hub.HfApi.model_info.securityStatus",description:`<strong>securityStatus</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether to retrieve the security status from the model
repository as well.`,name:"securityStatus"},{anchor:"huggingface_hub.HfApi.model_info.files_metadata",description:`<strong>files_metadata</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to retrieve metadata for files in the repository
(size, LFS metadata, etc). Defaults to <code>False</code>.`,name:"files_metadata"},{anchor:"huggingface_hub.HfApi.model_info.token",description:`<strong>token</strong> (<code>bool</code> or <code>str</code>, <em>optional</em>) &#x2014;
A valid authentication token (see <a href="https://huggingface.co/settings/token" rel="nofollow">https://huggingface.co/settings/token</a>).
If <code>None</code> or <code>True</code> and machine is logged in (through <code>huggingface-cli login</code>
or <a href="/docs/huggingface_hub/main/en/package_reference/login#huggingface_hub.login">login()</a>), token will be retrieved from the cache.
If <code>False</code>, token is not sent in the request header.`,name:"token"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/hf_api.py#L1861",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>The model repository information.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.hf_api.ModelInfo"
>huggingface_hub.hf_api.ModelInfo</a></p>
`}}),Fo=new J({props:{$$slots:{default:[v1]},$$scope:{ctx:w}}}),Zs=new C({props:{name:"move_repo",anchor:"huggingface_hub.HfApi.move_repo",parameters:[{name:"from_id",val:": str"},{name:"to_id",val:": str"},{name:"repo_type",val:": Optional[str] = None"},{name:"token",val:": Optional[str] = None"}],parametersDescription:[{anchor:"huggingface_hub.HfApi.move_repo.from_id",description:`<strong>from_id</strong> (<code>str</code>) &#x2014;
A namespace (user or an organization) and a repo name separated
by a <code>/</code>. Original repository identifier.`,name:"from_id"},{anchor:"huggingface_hub.HfApi.move_repo.to_id",description:`<strong>to_id</strong> (<code>str</code>) &#x2014;
A namespace (user or an organization) and a repo name separated
by a <code>/</code>. Final repository identifier.`,name:"to_id"},{anchor:"huggingface_hub.HfApi.move_repo.repo_type",description:`<strong>repo_type</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Set to <code>&quot;dataset&quot;</code> or <code>&quot;space&quot;</code> if uploading to a dataset or
space, <code>None</code> or <code>&quot;model&quot;</code> if uploading to a model. Default is
<code>None</code>.`,name:"repo_type"},{anchor:"huggingface_hub.HfApi.move_repo.token",description:`<strong>token</strong> (<code>str</code>, <em>optional</em>) &#x2014;
An authentication token (See <a href="https://huggingface.co/settings/token" rel="nofollow">https://huggingface.co/settings/token</a>)`,name:"token"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/hf_api.py#L2946"}}),Zo=new J({props:{$$slots:{default:[$1]},$$scope:{ctx:w}}}),Ls=new C({props:{name:"pause_inference_endpoint",anchor:"huggingface_hub.HfApi.pause_inference_endpoint",parameters:[{name:"name",val:": str"},{name:"namespace",val:": Optional[str] = None"},{name:"token",val:": Optional[str] = None"}],parametersDescription:[{anchor:"huggingface_hub.HfApi.pause_inference_endpoint.name",description:`<strong>name</strong> (<code>str</code>) &#x2014;
The name of the Inference Endpoint to pause.`,name:"name"},{anchor:"huggingface_hub.HfApi.pause_inference_endpoint.namespace",description:`<strong>namespace</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The namespace in which the Inference Endpoint is located. Defaults to the current user.`,name:"namespace"},{anchor:"huggingface_hub.HfApi.pause_inference_endpoint.token",description:`<strong>token</strong> (<code>str</code>, <em>optional</em>) &#x2014;
An authentication token (See <a href="https://huggingface.co/settings/token" rel="nofollow">https://huggingface.co/settings/token</a>).`,name:"token"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/hf_api.py#L6454",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>information about the paused Inference Endpoint.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/huggingface_hub/main/en/package_reference/inference_endpoints#huggingface_hub.InferenceEndpoint"
>InferenceEndpoint</a></p>
`}}),Bs=new C({props:{name:"pause_space",anchor:"huggingface_hub.HfApi.pause_space",parameters:[{name:"repo_id",val:": str"},{name:"token",val:": Optional[str] = None"}],parametersDescription:[{anchor:"huggingface_hub.HfApi.pause_space.repo_id",description:`<strong>repo_id</strong> (<code>str</code>) &#x2014;
ID of the Space to pause. Example: <code>&quot;Salesforce/BLIP2&quot;</code>.`,name:"repo_id"},{anchor:"huggingface_hub.HfApi.pause_space.token",description:`<strong>token</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Hugging Face token. Will default to the locally saved token if not provided.`,name:"token"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/hf_api.py#L5859",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>Runtime information about your Space including <code>stage=PAUSED</code> and requested hardware.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/huggingface_hub/main/en/package_reference/space_runtime#huggingface_hub.SpaceRuntime"
>SpaceRuntime</a></p>
`,raiseDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<ul>
<li><a
  href="/docs/huggingface_hub/main/en/package_reference/utilities#huggingface_hub.utils.RepositoryNotFoundError"
>RepositoryNotFoundError</a> —
If your Space is not found (error 404). Most probably wrong repo_id or your space is private but you
are not authenticated.</li>
<li><a
  href="/docs/huggingface_hub/main/en/package_reference/utilities#huggingface_hub.utils.HfHubHTTPError"
>HfHubHTTPError</a> —
403 Forbidden: only the owner of a Space can pause it. If you want to manage a Space that you don’t
own, either ask the owner by opening a Discussion or duplicate the Space.</li>
<li><a
  href="/docs/huggingface_hub/main/en/package_reference/utilities#huggingface_hub.utils.BadRequestError"
>BadRequestError</a> —
If your Space is a static Space. Static Spaces are always running and never billed. If you want to hide
a static Space, you can set it to private.</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.RepositoryNotFoundError"
>RepositoryNotFoundError</a> or <a
  href="/docs/huggingface_hub/main/en/package_reference/utilities#huggingface_hub.utils.HfHubHTTPError"
>HfHubHTTPError</a> or <a
  href="/docs/huggingface_hub/main/en/package_reference/utilities#huggingface_hub.utils.BadRequestError"
>BadRequestError</a></p>
`}}),Ws=new C({props:{name:"preupload_lfs_files",anchor:"huggingface_hub.HfApi.preupload_lfs_files",parameters:[{name:"repo_id",val:": str"},{name:"additions",val:": Iterable[CommitOperationAdd]"},{name:"token",val:": Optional[str] = None"},{name:"repo_type",val:": Optional[str] = None"},{name:"revision",val:": Optional[str] = None"},{name:"create_pr",val:": Optional[bool] = None"},{name:"num_threads",val:": int = 5"},{name:"free_memory",val:": bool = True"}],parametersDescription:[{anchor:"huggingface_hub.HfApi.preupload_lfs_files.repo_id",description:`<strong>repo_id</strong> (<code>str</code>) &#x2014;
The repository in which you will commit the files, for example: <code>&quot;username/custom_transformers&quot;</code>.`,name:"repo_id"},{anchor:"huggingface_hub.HfApi.preupload_lfs_files.operations",description:`<strong>operations</strong> (<code>Iterable</code> of <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.CommitOperationAdd">CommitOperationAdd</a>) &#x2014;
The list of files to upload. Warning: the objects in this list will be mutated to include information
relative to the upload. Do not reuse the same objects for multiple commits.`,name:"operations"},{anchor:"huggingface_hub.HfApi.preupload_lfs_files.token",description:`<strong>token</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Authentication token. Will default to the stored token.`,name:"token"},{anchor:"huggingface_hub.HfApi.preupload_lfs_files.repo_type",description:`<strong>repo_type</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The type of repository to upload to (e.g. <code>&quot;model&quot;</code> -default-, <code>&quot;dataset&quot;</code> or <code>&quot;space&quot;</code>).`,name:"repo_type"},{anchor:"huggingface_hub.HfApi.preupload_lfs_files.revision",description:`<strong>revision</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The git revision to commit from. Defaults to the head of the <code>&quot;main&quot;</code> branch.`,name:"revision"},{anchor:"huggingface_hub.HfApi.preupload_lfs_files.create_pr",description:`<strong>create_pr</strong> (<code>boolean</code>, <em>optional</em>) &#x2014;
Whether or not you plan to create a Pull Request with that commit. Defaults to <code>False</code>.`,name:"create_pr"},{anchor:"huggingface_hub.HfApi.preupload_lfs_files.num_threads",description:`<strong>num_threads</strong> (<code>int</code>, <em>optional</em>) &#x2014;
Number of concurrent threads for uploading files. Defaults to 5.
Setting it to 2 means at most 2 files will be uploaded concurrently.`,name:"num_threads"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/hf_api.py#L3565"}}),Lo=new J({props:{warning:!0,$$slots:{default:[y1]},$$scope:{ctx:w}}}),Bo=new J({props:{warning:!0,$$slots:{default:[x1]},$$scope:{ctx:w}}}),Wo=new U({props:{anchor:"huggingface_hub.HfApi.preupload_lfs_files.example",$$slots:{default:[w1]},$$scope:{ctx:w}}}),Vs=new C({props:{name:"rename_discussion",anchor:"huggingface_hub.HfApi.rename_discussion",parameters:[{name:"repo_id",val:": str"},{name:"discussion_num",val:": int"},{name:"new_title",val:": str"},{name:"token",val:": Optional[str] = None"},{name:"repo_type",val:": Optional[str] = None"}],parametersDescription:[{anchor:"huggingface_hub.HfApi.rename_discussion.repo_id",description:`<strong>repo_id</strong> (<code>str</code>) &#x2014;
A namespace (user or an organization) and a repo name separated
by a <code>/</code>.`,name:"repo_id"},{anchor:"huggingface_hub.HfApi.rename_discussion.discussion_num",description:`<strong>discussion_num</strong> (<code>int</code>) &#x2014;
The number of the Discussion or Pull Request . Must be a strictly positive integer.`,name:"discussion_num"},{anchor:"huggingface_hub.HfApi.rename_discussion.new_title",description:`<strong>new_title</strong> (<code>str</code>) &#x2014;
The new title for the discussion`,name:"new_title"},{anchor:"huggingface_hub.HfApi.rename_discussion.repo_type",description:`<strong>repo_type</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Set to <code>&quot;dataset&quot;</code> or <code>&quot;space&quot;</code> if uploading to a dataset or
space, <code>None</code> or <code>&quot;model&quot;</code> if uploading to a model. Default is
<code>None</code>.`,name:"repo_type"},{anchor:"huggingface_hub.HfApi.rename_discussion.token",description:`<strong>token</strong> (<code>str</code>, <em>optional</em>) &#x2014;
An authentication token (See <a href="https://huggingface.co/settings/token" rel="nofollow">https://huggingface.co/settings/token</a>)`,name:"token"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/hf_api.py#L5301",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>the title change event</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/huggingface_hub/main/en/package_reference/community#huggingface_hub.DiscussionTitleChange"
>DiscussionTitleChange</a></p>
`}}),Vo=new U({props:{anchor:"huggingface_hub.HfApi.rename_discussion.example",$$slots:{default:[M1]},$$scope:{ctx:w}}}),Xo=new J({props:{$$slots:{default:[k1]},$$scope:{ctx:w}}}),Xs=new C({props:{name:"repo_exists",anchor:"huggingface_hub.HfApi.repo_exists",parameters:[{name:"repo_id",val:": str"},{name:"repo_type",val:": Optional[str] = None"},{name:"token",val:": Optional[str] = None"}],parametersDescription:[{anchor:"huggingface_hub.HfApi.repo_exists.repo_id",description:`<strong>repo_id</strong> (<code>str</code>) &#x2014;
A namespace (user or an organization) and a repo name separated
by a <code>/</code>.`,name:"repo_id"},{anchor:"huggingface_hub.HfApi.repo_exists.repo_type",description:`<strong>repo_type</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Set to <code>&quot;dataset&quot;</code> or <code>&quot;space&quot;</code> if getting repository info from a dataset or a space,
<code>None</code> or <code>&quot;model&quot;</code> if getting repository info from a model. Default is <code>None</code>.`,name:"repo_type"},{anchor:"huggingface_hub.HfApi.repo_exists.token",description:`<strong>token</strong> (<code>bool</code> or <code>str</code>, <em>optional</em>) &#x2014;
A valid authentication token (see <a href="https://huggingface.co/settings/token" rel="nofollow">https://huggingface.co/settings/token</a>).
If <code>None</code> or <code>True</code> and machine is logged in (through <code>huggingface-cli login</code>
or <a href="/docs/huggingface_hub/main/en/package_reference/login#huggingface_hub.login">login()</a>), token will be retrieved from the cache.
If <code>False</code>, token is not sent in the request header.`,name:"token"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/hf_api.py#L2123",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>True if the repository exists, False otherwise.</p>
`}}),Yo=new J({props:{$$slots:{default:[j1]},$$scope:{ctx:w}}}),Ys=new C({props:{name:"repo_info",anchor:"huggingface_hub.HfApi.repo_info",parameters:[{name:"repo_id",val:": str"},{name:"revision",val:": Optional[str] = None"},{name:"repo_type",val:": Optional[str] = None"},{name:"timeout",val:": Optional[float] = None"},{name:"files_metadata",val:": bool = False"},{name:"token",val:": Optional[Union[bool, str]] = None"}],parametersDescription:[{anchor:"huggingface_hub.HfApi.repo_info.repo_id",description:`<strong>repo_id</strong> (<code>str</code>) &#x2014;
A namespace (user or an organization) and a repo name separated
by a <code>/</code>.`,name:"repo_id"},{anchor:"huggingface_hub.HfApi.repo_info.revision",description:`<strong>revision</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The revision of the repository from which to get the
information.`,name:"revision"},{anchor:"huggingface_hub.HfApi.repo_info.repo_type",description:`<strong>repo_type</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Set to <code>&quot;dataset&quot;</code> or <code>&quot;space&quot;</code> if getting repository info from a dataset or a space,
<code>None</code> or <code>&quot;model&quot;</code> if getting repository info from a model. Default is <code>None</code>.`,name:"repo_type"},{anchor:"huggingface_hub.HfApi.repo_info.timeout",description:`<strong>timeout</strong> (<code>float</code>, <em>optional</em>) &#x2014;
Whether to set a timeout for the request to the Hub.`,name:"timeout"},{anchor:"huggingface_hub.HfApi.repo_info.files_metadata",description:`<strong>files_metadata</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to retrieve metadata for files in the repository
(size, LFS metadata, etc). Defaults to <code>False</code>.`,name:"files_metadata"},{anchor:"huggingface_hub.HfApi.repo_info.token",description:`<strong>token</strong> (<code>bool</code> or <code>str</code>, <em>optional</em>) &#x2014;
A valid authentication token (see <a href="https://huggingface.co/settings/token" rel="nofollow">https://huggingface.co/settings/token</a>).
If <code>None</code> or <code>True</code> and machine is logged in (through <code>huggingface-cli login</code>
or <a href="/docs/huggingface_hub/main/en/package_reference/login#huggingface_hub.login">login()</a>), token will be retrieved from the cache.
If <code>False</code>, token is not sent in the request header.`,name:"token"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/hf_api.py#L2055",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>The repository information, as a
<a
  href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.hf_api.DatasetInfo"
>huggingface_hub.hf_api.DatasetInfo</a>, <a
  href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.hf_api.ModelInfo"
>huggingface_hub.hf_api.ModelInfo</a>
or <a
  href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.hf_api.SpaceInfo"
>huggingface_hub.hf_api.SpaceInfo</a> object.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>Union[SpaceInfo, DatasetInfo, ModelInfo]</code></p>
`}}),Po=new J({props:{$$slots:{default:[C1]},$$scope:{ctx:w}}}),Ps=new C({props:{name:"request_space_hardware",anchor:"huggingface_hub.HfApi.request_space_hardware",parameters:[{name:"repo_id",val:": str"},{name:"hardware",val:": SpaceHardware"},{name:"token",val:": Optional[str] = None"},{name:"sleep_time",val:": Optional[int] = None"}],parametersDescription:[{anchor:"huggingface_hub.HfApi.request_space_hardware.repo_id",description:`<strong>repo_id</strong> (<code>str</code>) &#x2014;
ID of the repo to update. Example: <code>&quot;bigcode/in-the-stack&quot;</code>.`,name:"repo_id"},{anchor:"huggingface_hub.HfApi.request_space_hardware.hardware",description:`<strong>hardware</strong> (<code>str</code> or <a href="/docs/huggingface_hub/main/en/package_reference/space_runtime#huggingface_hub.SpaceHardware">SpaceHardware</a>) &#x2014;
Hardware on which to run the Space. Example: <code>&quot;t4-medium&quot;</code>.`,name:"hardware"},{anchor:"huggingface_hub.HfApi.request_space_hardware.token",description:`<strong>token</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Hugging Face token. Will default to the locally saved token if not provided.`,name:"token"},{anchor:"huggingface_hub.HfApi.request_space_hardware.sleep_time",description:`<strong>sleep_time</strong> (<code>int</code>, <em>optional</em>) &#x2014;
Number of seconds of inactivity to wait before a Space is put to sleep. Set to <code>-1</code> if you don&#x2019;t want
your Space to sleep (default behavior for upgraded hardware). For free hardware, you can&#x2019;t configure
the sleep time (value is fixed to 48 hours of inactivity).
See <a href="https://huggingface.co/docs/hub/spaces-gpus#sleep-time" rel="nofollow">https://huggingface.co/docs/hub/spaces-gpus#sleep-time</a> for more details.`,name:"sleep_time"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/hf_api.py#L5763",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>Runtime information about a Space including Space stage and hardware.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/huggingface_hub/main/en/package_reference/space_runtime#huggingface_hub.SpaceRuntime"
>SpaceRuntime</a></p>
`}}),Oo=new J({props:{$$slots:{default:[I1]},$$scope:{ctx:w}}}),Os=new C({props:{name:"request_space_storage",anchor:"huggingface_hub.HfApi.request_space_storage",parameters:[{name:"repo_id",val:": str"},{name:"storage",val:": SpaceStorage"},{name:"token",val:": Optional[str] = None"}],parametersDescription:[{anchor:"huggingface_hub.HfApi.request_space_storage.repo_id",description:`<strong>repo_id</strong> (<code>str</code>) &#x2014;
ID of the Space to update. Example: <code>&quot;HuggingFaceH4/open_llm_leaderboard&quot;</code>.`,name:"repo_id"},{anchor:"huggingface_hub.HfApi.request_space_storage.storage",description:`<strong>storage</strong> (<code>str</code> or <a href="/docs/huggingface_hub/main/en/package_reference/space_runtime#huggingface_hub.SpaceStorage">SpaceStorage</a>) &#x2014;
Storage tier. Either &#x2018;small&#x2019;, &#x2018;medium&#x2019;, or &#x2018;large&#x2019;.`,name:"storage"},{anchor:"huggingface_hub.HfApi.request_space_storage.token",description:`<strong>token</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Hugging Face token. Will default to the locally saved token if not provided.`,name:"token"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/hf_api.py#L6053",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>Runtime information about a Space including Space stage and hardware.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/huggingface_hub/main/en/package_reference/space_runtime#huggingface_hub.SpaceRuntime"
>SpaceRuntime</a></p>
`}}),zo=new J({props:{$$slots:{default:[H1]},$$scope:{ctx:w}}}),zs=new C({props:{name:"restart_space",anchor:"huggingface_hub.HfApi.restart_space",parameters:[{name:"repo_id",val:": str"},{name:"token",val:": Optional[str] = None"},{name:"factory_reboot",val:": bool = False"}],parametersDescription:[{anchor:"huggingface_hub.HfApi.restart_space.repo_id",description:`<strong>repo_id</strong> (<code>str</code>) &#x2014;
ID of the Space to restart. Example: <code>&quot;Salesforce/BLIP2&quot;</code>.`,name:"repo_id"},{anchor:"huggingface_hub.HfApi.restart_space.token",description:`<strong>token</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Hugging Face token. Will default to the locally saved token if not provided.`,name:"token"},{anchor:"huggingface_hub.HfApi.restart_space.factory_reboot",description:`<strong>factory_reboot</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
If <code>True</code>, the Space will be rebuilt from scratch without caching any requirements.`,name:"factory_reboot"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/hf_api.py#L5895",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>Runtime information about your Space.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/huggingface_hub/main/en/package_reference/space_runtime#huggingface_hub.SpaceRuntime"
>SpaceRuntime</a></p>
`,raiseDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<ul>
<li><a
  href="/docs/huggingface_hub/main/en/package_reference/utilities#huggingface_hub.utils.RepositoryNotFoundError"
>RepositoryNotFoundError</a> —
If your Space is not found (error 404). Most probably wrong repo_id or your space is private but you
are not authenticated.</li>
<li><a
  href="/docs/huggingface_hub/main/en/package_reference/utilities#huggingface_hub.utils.HfHubHTTPError"
>HfHubHTTPError</a> —
403 Forbidden: only the owner of a Space can restart it. If you want to restart a Space that you don’t
own, either ask the owner by opening a Discussion or duplicate the Space.</li>
<li><a
  href="/docs/huggingface_hub/main/en/package_reference/utilities#huggingface_hub.utils.BadRequestError"
>BadRequestError</a> —
If your Space is a static Space. Static Spaces are always running and never billed. If you want to hide
a static Space, you can set it to private.</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.RepositoryNotFoundError"
>RepositoryNotFoundError</a> or <a
  href="/docs/huggingface_hub/main/en/package_reference/utilities#huggingface_hub.utils.HfHubHTTPError"
>HfHubHTTPError</a> or <a
  href="/docs/huggingface_hub/main/en/package_reference/utilities#huggingface_hub.utils.BadRequestError"
>BadRequestError</a></p>
`}}),Qs=new C({props:{name:"resume_inference_endpoint",anchor:"huggingface_hub.HfApi.resume_inference_endpoint",parameters:[{name:"name",val:": str"},{name:"namespace",val:": Optional[str] = None"},{name:"token",val:": Optional[str] = None"}],parametersDescription:[{anchor:"huggingface_hub.HfApi.resume_inference_endpoint.name",description:`<strong>name</strong> (<code>str</code>) &#x2014;
The name of the Inference Endpoint to resume.`,name:"name"},{anchor:"huggingface_hub.HfApi.resume_inference_endpoint.namespace",description:`<strong>namespace</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The namespace in which the Inference Endpoint is located. Defaults to the current user.`,name:"namespace"},{anchor:"huggingface_hub.HfApi.resume_inference_endpoint.token",description:`<strong>token</strong> (<code>str</code>, <em>optional</em>) &#x2014;
An authentication token (See <a href="https://huggingface.co/settings/token" rel="nofollow">https://huggingface.co/settings/token</a>).`,name:"token"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/hf_api.py#L6486",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>information about the resumed Inference Endpoint.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/huggingface_hub/main/en/package_reference/inference_endpoints#huggingface_hub.InferenceEndpoint"
>InferenceEndpoint</a></p>
`}}),Ks=new C({props:{name:"run_as_future",anchor:"huggingface_hub.HfApi.run_as_future",parameters:[{name:"fn",val:": Callable[..., R]"},{name:"*args",val:""},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"huggingface_hub.HfApi.run_as_future.fn",description:`<strong>fn</strong> (<code>Callable</code>) &#x2014;
The method to run in the background.`,name:"fn"},{anchor:"huggingface_hub.HfApi.run_as_future.*args,",description:`<strong>*args,</strong> **kwargs &#x2014;
Arguments with which the method will be called.`,name:"*args,"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/hf_api.py#L1091",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>a <a
  href="https://docs.python.org/3/library/concurrent.futures.html#future-objects"
  rel="nofollow"
>Future</a> instance to
get the result of the task.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>Future</code></p>
`}}),Qo=new U({props:{anchor:"huggingface_hub.HfApi.run_as_future.example",$$slots:{default:[U1]},$$scope:{ctx:w}}}),ei=new C({props:{name:"scale_to_zero_inference_endpoint",anchor:"huggingface_hub.HfApi.scale_to_zero_inference_endpoint",parameters:[{name:"name",val:": str"},{name:"namespace",val:": Optional[str] = None"},{name:"token",val:": Optional[str] = None"}],parametersDescription:[{anchor:"huggingface_hub.HfApi.scale_to_zero_inference_endpoint.name",description:`<strong>name</strong> (<code>str</code>) &#x2014;
The name of the Inference Endpoint to scale to zero.`,name:"name"},{anchor:"huggingface_hub.HfApi.scale_to_zero_inference_endpoint.namespace",description:`<strong>namespace</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The namespace in which the Inference Endpoint is located. Defaults to the current user.`,name:"namespace"},{anchor:"huggingface_hub.HfApi.scale_to_zero_inference_endpoint.token",description:`<strong>token</strong> (<code>str</code>, <em>optional</em>) &#x2014;
An authentication token (See <a href="https://huggingface.co/settings/token" rel="nofollow">https://huggingface.co/settings/token</a>).`,name:"token"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/hf_api.py#L6514",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>information about the scaled-to-zero Inference Endpoint.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/huggingface_hub/main/en/package_reference/inference_endpoints#huggingface_hub.InferenceEndpoint"
>InferenceEndpoint</a></p>
`}}),ti=new C({props:{name:"set_space_sleep_time",anchor:"huggingface_hub.HfApi.set_space_sleep_time",parameters:[{name:"repo_id",val:": str"},{name:"sleep_time",val:": int"},{name:"token",val:": Optional[str] = None"}],parametersDescription:[{anchor:"huggingface_hub.HfApi.set_space_sleep_time.repo_id",description:`<strong>repo_id</strong> (<code>str</code>) &#x2014;
ID of the repo to update. Example: <code>&quot;bigcode/in-the-stack&quot;</code>.`,name:"repo_id"},{anchor:"huggingface_hub.HfApi.set_space_sleep_time.sleep_time",description:`<strong>sleep_time</strong> (<code>int</code>, <em>optional</em>) &#x2014;
Number of seconds of inactivity to wait before a Space is put to sleep. Set to <code>-1</code> if you don&#x2019;t want
your Space to pause (default behavior for upgraded hardware). For free hardware, you can&#x2019;t configure
the sleep time (value is fixed to 48 hours of inactivity).
See <a href="https://huggingface.co/docs/hub/spaces-gpus#sleep-time" rel="nofollow">https://huggingface.co/docs/hub/spaces-gpus#sleep-time</a> for more details.`,name:"sleep_time"},{anchor:"huggingface_hub.HfApi.set_space_sleep_time.token",description:`<strong>token</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Hugging Face token. Will default to the locally saved token if not provided.`,name:"token"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/hf_api.py#L5813",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>Runtime information about a Space including Space stage and hardware.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/huggingface_hub/main/en/package_reference/space_runtime#huggingface_hub.SpaceRuntime"
>SpaceRuntime</a></p>
`}}),Ko=new J({props:{$$slots:{default:[J1]},$$scope:{ctx:w}}}),ni=new C({props:{name:"snapshot_download",anchor:"huggingface_hub.HfApi.snapshot_download",parameters:[{name:"repo_id",val:": str"},{name:"repo_type",val:": Optional[str] = None"},{name:"revision",val:": Optional[str] = None"},{name:"cache_dir",val:": Union[str, Path, None] = None"},{name:"local_dir",val:": Union[str, Path, None] = None"},{name:"local_dir_use_symlinks",val:": Union[bool, Literal['auto']] = 'auto'"},{name:"proxies",val:": Optional[Dict] = None"},{name:"etag_timeout",val:": float = 10"},{name:"resume_download",val:": bool = False"},{name:"force_download",val:": bool = False"},{name:"token",val:": Optional[Union[str, bool]] = None"},{name:"local_files_only",val:": bool = False"},{name:"allow_patterns",val:": Optional[Union[List[str], str]] = None"},{name:"ignore_patterns",val:": Optional[Union[List[str], str]] = None"},{name:"max_workers",val:": int = 8"},{name:"tqdm_class",val:": Optional[base_tqdm] = None"}],parametersDescription:[{anchor:"huggingface_hub.HfApi.snapshot_download.repo_id",description:`<strong>repo_id</strong> (<code>str</code>) &#x2014;
A user or an organization name and a repo name separated by a <code>/</code>.`,name:"repo_id"},{anchor:"huggingface_hub.HfApi.snapshot_download.repo_type",description:`<strong>repo_type</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Set to <code>&quot;dataset&quot;</code> or <code>&quot;space&quot;</code> if downloading from a dataset or space,
<code>None</code> or <code>&quot;model&quot;</code> if downloading from a model. Default is <code>None</code>.`,name:"repo_type"},{anchor:"huggingface_hub.HfApi.snapshot_download.revision",description:`<strong>revision</strong> (<code>str</code>, <em>optional</em>) &#x2014;
An optional Git revision id which can be a branch name, a tag, or a
commit hash.`,name:"revision"},{anchor:"huggingface_hub.HfApi.snapshot_download.cache_dir",description:`<strong>cache_dir</strong> (<code>str</code>, <code>Path</code>, <em>optional</em>) &#x2014;
Path to the folder where cached files are stored.`,name:"cache_dir"},{anchor:"huggingface_hub.HfApi.snapshot_download.local_dir",description:`<strong>local_dir</strong> (<code>str</code> or <code>Path</code>, <em>optional</em>) &#x2014;
If provided, the downloaded files will be placed under this directory, either as symlinks (default) or
regular files (see description for more details).`,name:"local_dir"},{anchor:"huggingface_hub.HfApi.snapshot_download.local_dir_use_symlinks",description:`<strong>local_dir_use_symlinks</strong> (<code>&quot;auto&quot;</code> or <code>bool</code>, defaults to <code>&quot;auto&quot;</code>) &#x2014;
To be used with <code>local_dir</code>. If set to &#x201C;auto&#x201D;, the cache directory will be used and the file will be either
duplicated or symlinked to the local directory depending on its size. It set to <code>True</code>, a symlink will be
created, no matter the file size. If set to <code>False</code>, the file will either be duplicated from cache (if
already exists) or downloaded from the Hub and not cached. See description for more details.`,name:"local_dir_use_symlinks"},{anchor:"huggingface_hub.HfApi.snapshot_download.proxies",description:`<strong>proxies</strong> (<code>dict</code>, <em>optional</em>) &#x2014;
Dictionary mapping protocol to the URL of the proxy passed to
<code>requests.request</code>.`,name:"proxies"},{anchor:"huggingface_hub.HfApi.snapshot_download.etag_timeout",description:`<strong>etag_timeout</strong> (<code>float</code>, <em>optional</em>, defaults to <code>10</code>) &#x2014;
When fetching ETag, how many seconds to wait for the server to send
data before giving up which is passed to <code>requests.request</code>.`,name:"etag_timeout"},{anchor:"huggingface_hub.HfApi.snapshot_download.resume_download",description:"<strong>resume_download</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False) -- If </code>True`, resume a previously interrupted download.",name:"resume_download"},{anchor:"huggingface_hub.HfApi.snapshot_download.force_download",description:`<strong>force_download</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether the file should be downloaded even if it already exists in the local cache.`,name:"force_download"},{anchor:"huggingface_hub.HfApi.snapshot_download.token",description:`<strong>token</strong> (<code>bool</code> or <code>str</code>, <em>optional</em>) &#x2014;
A valid authentication token (see <a href="https://huggingface.co/settings/token" rel="nofollow">https://huggingface.co/settings/token</a>).
If <code>None</code> or <code>True</code> and machine is logged in (through <code>huggingface-cli login</code>
or <a href="/docs/huggingface_hub/main/en/package_reference/login#huggingface_hub.login">login()</a>), token will be retrieved from the cache.
If <code>False</code>, token is not sent in the request header.`,name:"token"},{anchor:"huggingface_hub.HfApi.snapshot_download.local_files_only",description:`<strong>local_files_only</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
If <code>True</code>, avoid downloading the file and return the path to the
local cached file if it exists.`,name:"local_files_only"},{anchor:"huggingface_hub.HfApi.snapshot_download.allow_patterns",description:`<strong>allow_patterns</strong> (<code>List[str]</code> or <code>str</code>, <em>optional</em>) &#x2014;
If provided, only files matching at least one pattern are downloaded.`,name:"allow_patterns"},{anchor:"huggingface_hub.HfApi.snapshot_download.ignore_patterns",description:`<strong>ignore_patterns</strong> (<code>List[str]</code> or <code>str</code>, <em>optional</em>) &#x2014;
If provided, files matching any of the patterns are not downloaded.`,name:"ignore_patterns"},{anchor:"huggingface_hub.HfApi.snapshot_download.max_workers",description:`<strong>max_workers</strong> (<code>int</code>, <em>optional</em>) &#x2014;
Number of concurrent threads to download files (1 thread = 1 file download).
Defaults to 8.`,name:"max_workers"},{anchor:"huggingface_hub.HfApi.snapshot_download.tqdm_class",description:`<strong>tqdm_class</strong> (<code>tqdm</code>, <em>optional</em>) &#x2014;
If provided, overwrites the default behavior for the progress bar. Passed
argument must inherit from <code>tqdm.auto.tqdm</code> or at least mimic its behavior.
Note that the <code>tqdm_class</code> is not passed to each individual download.
Defaults to the custom HF progress bar that can be disabled by setting
<code>HF_HUB_DISABLE_PROGRESS_BARS</code> environment variable.`,name:"tqdm_class"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/hf_api.py#L4486",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>Local folder path (string) of repo snapshot</p>
`}}),ea=new J({props:{$$slots:{default:[A1]},$$scope:{ctx:w}}}),oi=new C({props:{name:"space_info",anchor:"huggingface_hub.HfApi.space_info",parameters:[{name:"repo_id",val:": str"},{name:"revision",val:": Optional[str] = None"},{name:"timeout",val:": Optional[float] = None"},{name:"files_metadata",val:": bool = False"},{name:"token",val:": Optional[Union[bool, str]] = None"}],parametersDescription:[{anchor:"huggingface_hub.HfApi.space_info.repo_id",description:`<strong>repo_id</strong> (<code>str</code>) &#x2014;
A namespace (user or an organization) and a repo name separated
by a <code>/</code>.`,name:"repo_id"},{anchor:"huggingface_hub.HfApi.space_info.revision",description:`<strong>revision</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The revision of the space repository from which to get the
information.`,name:"revision"},{anchor:"huggingface_hub.HfApi.space_info.timeout",description:`<strong>timeout</strong> (<code>float</code>, <em>optional</em>) &#x2014;
Whether to set a timeout for the request to the Hub.`,name:"timeout"},{anchor:"huggingface_hub.HfApi.space_info.files_metadata",description:`<strong>files_metadata</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to retrieve metadata for files in the repository
(size, LFS metadata, etc). Defaults to <code>False</code>.`,name:"files_metadata"},{anchor:"huggingface_hub.HfApi.space_info.token",description:`<strong>token</strong> (<code>bool</code> or <code>str</code>, <em>optional</em>) &#x2014;
A valid authentication token (see <a href="https://huggingface.co/settings/token" rel="nofollow">https://huggingface.co/settings/token</a>).
If <code>None</code> or <code>True</code> and machine is logged in (through <code>huggingface-cli login</code>
or <a href="/docs/huggingface_hub/main/en/package_reference/login#huggingface_hub.login">login()</a>), token will be retrieved from the cache.
If <code>False</code>, token is not sent in the request header.`,name:"token"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/hf_api.py#L1992",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>The space repository information.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.hf_api.SpaceInfo"
>SpaceInfo</a></p>
`}}),ta=new J({props:{$$slots:{default:[q1]},$$scope:{ctx:w}}}),ai=new C({props:{name:"super_squash_history",anchor:"huggingface_hub.HfApi.super_squash_history",parameters:[{name:"repo_id",val:": str"},{name:"branch",val:": Optional[str] = None"},{name:"commit_message",val:": Optional[str] = None"},{name:"repo_type",val:": Optional[str] = None"},{name:"token",val:": Optional[str] = None"}],parametersDescription:[{anchor:"huggingface_hub.HfApi.super_squash_history.repo_id",description:`<strong>repo_id</strong> (<code>str</code>) &#x2014;
A namespace (user or an organization) and a repo name separated by a <code>/</code>.`,name:"repo_id"},{anchor:"huggingface_hub.HfApi.super_squash_history.branch",description:`<strong>branch</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The branch to squash. Defaults to the head of the <code>&quot;main&quot;</code> branch.`,name:"branch"},{anchor:"huggingface_hub.HfApi.super_squash_history.commit_message",description:`<strong>commit_message</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The commit message to use for the squashed commit.`,name:"commit_message"},{anchor:"huggingface_hub.HfApi.super_squash_history.repo_type",description:`<strong>repo_type</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Set to <code>&quot;dataset&quot;</code> or <code>&quot;space&quot;</code> if listing commits from a dataset or a Space, <code>None</code> or <code>&quot;model&quot;</code> if
listing from a model. Default is <code>None</code>.`,name:"repo_type"},{anchor:"huggingface_hub.HfApi.super_squash_history.token",description:`<strong>token</strong> (<code>str</code>, <em>optional</em>) &#x2014;
A valid authentication token (see <a href="https://huggingface.co/settings/token" rel="nofollow">https://huggingface.co/settings/token</a>). If the machine is logged in
(through <code>huggingface-cli login</code> or <a href="/docs/huggingface_hub/main/en/package_reference/login#huggingface_hub.login">login()</a>), token can be automatically retrieved
from the cache.`,name:"token"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/hf_api.py#L2619",raiseDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<ul>
<li><a
  href="/docs/huggingface_hub/main/en/package_reference/utilities#huggingface_hub.utils.RepositoryNotFoundError"
>RepositoryNotFoundError</a> —
If repository is not found (error 404): wrong repo_id/repo_type, private but not authenticated or repo
does not exist.</li>
<li><a
  href="/docs/huggingface_hub/main/en/package_reference/utilities#huggingface_hub.utils.RevisionNotFoundError"
>RevisionNotFoundError</a> —
If the branch to squash cannot be found.</li>
<li><a
  href="/docs/huggingface_hub/main/en/package_reference/utilities#huggingface_hub.utils.BadRequestError"
>BadRequestError</a> —
If invalid reference for a branch. You cannot squash history on tags.</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.RepositoryNotFoundError"
>RepositoryNotFoundError</a> or <a
  href="/docs/huggingface_hub/main/en/package_reference/utilities#huggingface_hub.utils.RevisionNotFoundError"
>RevisionNotFoundError</a> or <a
  href="/docs/huggingface_hub/main/en/package_reference/utilities#huggingface_hub.utils.BadRequestError"
>BadRequestError</a></p>
`}}),na=new J({props:{warning:!0,$$slots:{default:[N1]},$$scope:{ctx:w}}}),oa=new J({props:{warning:!0,$$slots:{default:[E1]},$$scope:{ctx:w}}}),aa=new U({props:{anchor:"huggingface_hub.HfApi.super_squash_history.example",$$slots:{default:[R1]},$$scope:{ctx:w}}}),si=new C({props:{name:"unlike",anchor:"huggingface_hub.HfApi.unlike",parameters:[{name:"repo_id",val:": str"},{name:"token",val:": Optional[str] = None"},{name:"repo_type",val:": Optional[str] = None"}],parametersDescription:[{anchor:"huggingface_hub.HfApi.unlike.repo_id",description:`<strong>repo_id</strong> (<code>str</code>) &#x2014;
The repository to unlike. Example: <code>&quot;user/my-cool-model&quot;</code>.`,name:"repo_id"},{anchor:"huggingface_hub.HfApi.unlike.token",description:`<strong>token</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Authentication token. Will default to the stored token.`,name:"token"},{anchor:"huggingface_hub.HfApi.unlike.repo_type",description:`<strong>repo_type</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Set to <code>&quot;dataset&quot;</code> or <code>&quot;space&quot;</code> if unliking a dataset or space, <code>None</code> or
<code>&quot;model&quot;</code> if unliking a model. Default is <code>None</code>.`,name:"repo_type"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/hf_api.py#L1689",raiseDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<ul>
<li><a
  href="/docs/huggingface_hub/main/en/package_reference/utilities#huggingface_hub.utils.RepositoryNotFoundError"
>RepositoryNotFoundError</a> —
If repository is not found (error 404): wrong repo_id/repo_type, private
but not authenticated or repo does not exist.</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.RepositoryNotFoundError"
>RepositoryNotFoundError</a></p>
`}}),sa=new U({props:{anchor:"huggingface_hub.HfApi.unlike.example",$$slots:{default:[G1]},$$scope:{ctx:w}}}),ii=new C({props:{name:"update_collection_item",anchor:"huggingface_hub.HfApi.update_collection_item",parameters:[{name:"collection_slug",val:": str"},{name:"item_object_id",val:": str"},{name:"note",val:": Optional[str] = None"},{name:"position",val:": Optional[int] = None"},{name:"token",val:": Optional[str] = None"}],parametersDescription:[{anchor:"huggingface_hub.HfApi.update_collection_item.collection_slug",description:`<strong>collection_slug</strong> (<code>str</code>) &#x2014;
Slug of the collection to update. Example: <code>&quot;TheBloke/recent-models-64f9a55bb3115b4f513ec026&quot;</code>.`,name:"collection_slug"},{anchor:"huggingface_hub.HfApi.update_collection_item.item_object_id",description:`<strong>item_object_id</strong> (<code>str</code>) &#x2014;
ID of the item in the collection. This is not the id of the item on the Hub (repo_id or paper id).
It must be retrieved from a <a href="/docs/huggingface_hub/main/en/package_reference/collections#huggingface_hub.CollectionItem">CollectionItem</a> object. Example: <code>collection.items[0].item_object_id</code>.`,name:"item_object_id"},{anchor:"huggingface_hub.HfApi.update_collection_item.note",description:`<strong>note</strong> (<code>str</code>, <em>optional</em>) &#x2014;
A note to attach to the item in the collection. The maximum size for a note is 500 characters.`,name:"note"},{anchor:"huggingface_hub.HfApi.update_collection_item.position",description:`<strong>position</strong> (<code>int</code>, <em>optional</em>) &#x2014;
New position of the item in the collection.`,name:"position"},{anchor:"huggingface_hub.HfApi.update_collection_item.token",description:`<strong>token</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Hugging Face token. Will default to the locally saved token if not provided.`,name:"token"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/hf_api.py#L6835"}}),ia=new U({props:{anchor:"huggingface_hub.HfApi.update_collection_item.example",$$slots:{default:[D1]},$$scope:{ctx:w}}}),ri=new C({props:{name:"update_collection_metadata",anchor:"huggingface_hub.HfApi.update_collection_metadata",parameters:[{name:"collection_slug",val:": str"},{name:"title",val:": Optional[str] = None"},{name:"description",val:": Optional[str] = None"},{name:"position",val:": Optional[int] = None"},{name:"private",val:": Optional[bool] = None"},{name:"theme",val:": Optional[str] = None"},{name:"token",val:": Optional[str] = None"}],parametersDescription:[{anchor:"huggingface_hub.HfApi.update_collection_metadata.collection_slug",description:`<strong>collection_slug</strong> (<code>str</code>) &#x2014;
Slug of the collection to update. Example: <code>&quot;TheBloke/recent-models-64f9a55bb3115b4f513ec026&quot;</code>.`,name:"collection_slug"},{anchor:"huggingface_hub.HfApi.update_collection_metadata.title",description:`<strong>title</strong> (<code>str</code>) &#x2014;
Title of the collection to update.`,name:"title"},{anchor:"huggingface_hub.HfApi.update_collection_metadata.description",description:`<strong>description</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Description of the collection to update.`,name:"description"},{anchor:"huggingface_hub.HfApi.update_collection_metadata.position",description:`<strong>position</strong> (<code>int</code>, <em>optional</em>) &#x2014;
New position of the collection in the list of collections of the user.`,name:"position"},{anchor:"huggingface_hub.HfApi.update_collection_metadata.private",description:`<strong>private</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether the collection should be private or not.`,name:"private"},{anchor:"huggingface_hub.HfApi.update_collection_metadata.theme",description:`<strong>theme</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Theme of the collection on the Hub.`,name:"theme"},{anchor:"huggingface_hub.HfApi.update_collection_metadata.token",description:`<strong>token</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Hugging Face token. Will default to the locally saved token if not provided.`,name:"token"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/hf_api.py#L6662"}}),ra=new U({props:{anchor:"huggingface_hub.HfApi.update_collection_metadata.example",$$slots:{default:[S1]},$$scope:{ctx:w}}}),li=new C({props:{name:"update_inference_endpoint",anchor:"huggingface_hub.HfApi.update_inference_endpoint",parameters:[{name:"name",val:": str"},{name:"accelerator",val:": Optional[str] = None"},{name:"instance_size",val:": Optional[str] = None"},{name:"instance_type",val:": Optional[str] = None"},{name:"min_replica",val:": Optional[int] = None"},{name:"max_replica",val:": Optional[int] = None"},{name:"repository",val:": Optional[str] = None"},{name:"framework",val:": Optional[str] = None"},{name:"revision",val:": Optional[str] = None"},{name:"task",val:": Optional[str] = None"},{name:"namespace",val:": Optional[str] = None"},{name:"token",val:": Optional[str] = None"}],parametersDescription:[{anchor:"huggingface_hub.HfApi.update_inference_endpoint.name",description:`<strong>name</strong> (<code>str</code>) &#x2014;
The name of the Inference Endpoint to update.`,name:"name"},{anchor:"huggingface_hub.HfApi.update_inference_endpoint.accelerator",description:`<strong>accelerator</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The hardware accelerator to be used for inference (e.g. <code>&quot;cpu&quot;</code>).`,name:"accelerator"},{anchor:"huggingface_hub.HfApi.update_inference_endpoint.instance_size",description:`<strong>instance_size</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The size or type of the instance to be used for hosting the model (e.g. <code>&quot;large&quot;</code>).`,name:"instance_size"},{anchor:"huggingface_hub.HfApi.update_inference_endpoint.instance_type",description:`<strong>instance_type</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The cloud instance type where the Inference Endpoint will be deployed (e.g. <code>&quot;c6i&quot;</code>).`,name:"instance_type"},{anchor:"huggingface_hub.HfApi.update_inference_endpoint.min_replica",description:`<strong>min_replica</strong> (<code>int</code>, <em>optional</em>) &#x2014;
The minimum number of replicas (instances) to keep running for the Inference Endpoint.`,name:"min_replica"},{anchor:"huggingface_hub.HfApi.update_inference_endpoint.max_replica",description:`<strong>max_replica</strong> (<code>int</code>, <em>optional</em>) &#x2014;
The maximum number of replicas (instances) to scale to for the Inference Endpoint.`,name:"max_replica"},{anchor:"huggingface_hub.HfApi.update_inference_endpoint.repository",description:`<strong>repository</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The name of the model repository associated with the Inference Endpoint (e.g. <code>&quot;gpt2&quot;</code>).`,name:"repository"},{anchor:"huggingface_hub.HfApi.update_inference_endpoint.framework",description:`<strong>framework</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The machine learning framework used for the model (e.g. <code>&quot;custom&quot;</code>).`,name:"framework"},{anchor:"huggingface_hub.HfApi.update_inference_endpoint.revision",description:`<strong>revision</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The specific model revision to deploy on the Inference Endpoint (e.g. <code>&quot;6c0e6080953db56375760c0471a8c5f2929baf11&quot;</code>).`,name:"revision"},{anchor:"huggingface_hub.HfApi.update_inference_endpoint.task",description:`<strong>task</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The task on which to deploy the model (e.g. <code>&quot;text-classification&quot;</code>).`,name:"task"},{anchor:"huggingface_hub.HfApi.update_inference_endpoint.namespace",description:`<strong>namespace</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The namespace where the Inference Endpoint will be updated. Defaults to the current user&#x2019;s namespace.`,name:"namespace"},{anchor:"huggingface_hub.HfApi.update_inference_endpoint.token",description:`<strong>token</strong> (<code>str</code>, <em>optional</em>) &#x2014;
An authentication token (See <a href="https://huggingface.co/settings/token" rel="nofollow">https://huggingface.co/settings/token</a>).`,name:"token"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/hf_api.py#L6340",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>information about the updated Inference Endpoint.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/huggingface_hub/main/en/package_reference/inference_endpoints#huggingface_hub.InferenceEndpoint"
>InferenceEndpoint</a></p>
`}}),ci=new C({props:{name:"update_repo_visibility",anchor:"huggingface_hub.HfApi.update_repo_visibility",parameters:[{name:"repo_id",val:": str"},{name:"private",val:": bool = False"},{name:"token",val:": Optional[str] = None"},{name:"organization",val:": Optional[str] = None"},{name:"repo_type",val:": Optional[str] = None"},{name:"name",val:": Optional[str] = None"}],parametersDescription:[{anchor:"huggingface_hub.HfApi.update_repo_visibility.repo_id",description:`<strong>repo_id</strong> (<code>str</code>, <em>optional</em>) &#x2014;
A namespace (user or an organization) and a repo name separated
by a <code>/</code>.`,name:"repo_id"},{anchor:"huggingface_hub.HfApi.update_repo_visibility.private",description:`<strong>private</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether the model repo should be private.`,name:"private"},{anchor:"huggingface_hub.HfApi.update_repo_visibility.token",description:`<strong>token</strong> (<code>str</code>, <em>optional</em>) &#x2014;
An authentication token (See <a href="https://huggingface.co/settings/token" rel="nofollow">https://huggingface.co/settings/token</a>)`,name:"token"},{anchor:"huggingface_hub.HfApi.update_repo_visibility.repo_type",description:`<strong>repo_type</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Set to <code>&quot;dataset&quot;</code> or <code>&quot;space&quot;</code> if uploading to a dataset or
space, <code>None</code> or <code>&quot;model&quot;</code> if uploading to a model. Default is
<code>None</code>.`,name:"repo_type"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/hf_api.py#L2886",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>The HTTP response in json.</p>
`}}),la=new J({props:{$$slots:{default:[F1]},$$scope:{ctx:w}}}),pi=new C({props:{name:"upload_file",anchor:"huggingface_hub.HfApi.upload_file",parameters:[{name:"path_or_fileobj",val:": Union[str, Path, bytes, BinaryIO]"},{name:"path_in_repo",val:": str"},{name:"repo_id",val:": str"},{name:"token",val:": Optional[str] = None"},{name:"repo_type",val:": Optional[str] = None"},{name:"revision",val:": Optional[str] = None"},{name:"commit_message",val:": Optional[str] = None"},{name:"commit_description",val:": Optional[str] = None"},{name:"create_pr",val:": Optional[bool] = None"},{name:"parent_commit",val:": Optional[str] = None"},{name:"run_as_future",val:": bool = False"}],parametersDescription:[{anchor:"huggingface_hub.HfApi.upload_file.path_or_fileobj",description:`<strong>path_or_fileobj</strong> (<code>str</code>, <code>Path</code>, <code>bytes</code>, or <code>IO</code>) &#x2014;
Path to a file on the local machine or binary data stream /
fileobj / buffer.`,name:"path_or_fileobj"},{anchor:"huggingface_hub.HfApi.upload_file.path_in_repo",description:`<strong>path_in_repo</strong> (<code>str</code>) &#x2014;
Relative filepath in the repo, for example:
<code>&quot;checkpoints/1fec34a/weights.bin&quot;</code>`,name:"path_in_repo"},{anchor:"huggingface_hub.HfApi.upload_file.repo_id",description:`<strong>repo_id</strong> (<code>str</code>) &#x2014;
The repository to which the file will be uploaded, for example:
<code>&quot;username/custom_transformers&quot;</code>`,name:"repo_id"},{anchor:"huggingface_hub.HfApi.upload_file.token",description:`<strong>token</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Authentication token, obtained with <code>HfApi.login</code> method. Will
default to the stored token.`,name:"token"},{anchor:"huggingface_hub.HfApi.upload_file.repo_type",description:`<strong>repo_type</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Set to <code>&quot;dataset&quot;</code> or <code>&quot;space&quot;</code> if uploading to a dataset or
space, <code>None</code> or <code>&quot;model&quot;</code> if uploading to a model. Default is
<code>None</code>.`,name:"repo_type"},{anchor:"huggingface_hub.HfApi.upload_file.revision",description:`<strong>revision</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The git revision to commit from. Defaults to the head of the <code>&quot;main&quot;</code> branch.`,name:"revision"},{anchor:"huggingface_hub.HfApi.upload_file.commit_message",description:`<strong>commit_message</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The summary / title / first line of the generated commit`,name:"commit_message"},{anchor:"huggingface_hub.HfApi.upload_file.commit_description",description:`<strong>commit_description</strong> (<code>str</code> <em>optional</em>) &#x2014;
The description of the generated commit`,name:"commit_description"},{anchor:"huggingface_hub.HfApi.upload_file.create_pr",description:`<strong>create_pr</strong> (<code>boolean</code>, <em>optional</em>) &#x2014;
Whether or not to create a Pull Request with that commit. Defaults to <code>False</code>.
If <code>revision</code> is not set, PR is opened against the <code>&quot;main&quot;</code> branch. If
<code>revision</code> is set and is a branch, PR is opened against this branch. If
<code>revision</code> is set and is not a branch name (example: a commit oid), an
<code>RevisionNotFoundError</code> is returned by the server.`,name:"create_pr"},{anchor:"huggingface_hub.HfApi.upload_file.parent_commit",description:`<strong>parent_commit</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The OID / SHA of the parent commit, as a hexadecimal string. Shorthands (7 first characters) are also supported.
If specified and <code>create_pr</code> is <code>False</code>, the commit will fail if <code>revision</code> does not point to <code>parent_commit</code>.
If specified and <code>create_pr</code> is <code>True</code>, the pull request will be created from <code>parent_commit</code>.
Specifying <code>parent_commit</code> ensures the repo has not changed before committing the changes, and can be
especially useful if the repo is updated / committed to concurrently.`,name:"parent_commit"},{anchor:"huggingface_hub.HfApi.upload_file.run_as_future",description:`<strong>run_as_future</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to run this method in the background. Background jobs are run sequentially without
blocking the main thread. Passing <code>run_as_future=True</code> will return a <a href="https://docs.python.org/3/library/concurrent.futures.html#future-objects" rel="nofollow">Future</a>
object. Defaults to <code>False</code>.`,name:"run_as_future"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/hf_api.py#L3717",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>The URL to visualize the uploaded file on the hub. If <code>run_as_future=True</code> is passed,
returns a Future object which will contain the result when executed.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>str</code> or <code>Future</code></p>
`}}),ca=new J({props:{$$slots:{default:[Z1]},$$scope:{ctx:w}}}),pa=new J({props:{warning:!0,$$slots:{default:[L1]},$$scope:{ctx:w}}}),da=new U({props:{anchor:"huggingface_hub.HfApi.upload_file.example",$$slots:{default:[B1]},$$scope:{ctx:w}}}),di=new C({props:{name:"upload_folder",anchor:"huggingface_hub.HfApi.upload_folder",parameters:[{name:"repo_id",val:": str"},{name:"folder_path",val:": Union[str, Path]"},{name:"path_in_repo",val:": Optional[str] = None"},{name:"commit_message",val:": Optional[str] = None"},{name:"commit_description",val:": Optional[str] = None"},{name:"token",val:": Optional[str] = None"},{name:"repo_type",val:": Optional[str] = None"},{name:"revision",val:": Optional[str] = None"},{name:"create_pr",val:": Optional[bool] = None"},{name:"parent_commit",val:": Optional[str] = None"},{name:"allow_patterns",val:": Optional[Union[List[str], str]] = None"},{name:"ignore_patterns",val:": Optional[Union[List[str], str]] = None"},{name:"delete_patterns",val:": Optional[Union[List[str], str]] = None"},{name:"multi_commits",val:": bool = False"},{name:"multi_commits_verbose",val:": bool = False"},{name:"run_as_future",val:": bool = False"}],parametersDescription:[{anchor:"huggingface_hub.HfApi.upload_folder.repo_id",description:`<strong>repo_id</strong> (<code>str</code>) &#x2014;
The repository to which the file will be uploaded, for example:
<code>&quot;username/custom_transformers&quot;</code>`,name:"repo_id"},{anchor:"huggingface_hub.HfApi.upload_folder.folder_path",description:`<strong>folder_path</strong> (<code>str</code> or <code>Path</code>) &#x2014;
Path to the folder to upload on the local file system`,name:"folder_path"},{anchor:"huggingface_hub.HfApi.upload_folder.path_in_repo",description:`<strong>path_in_repo</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Relative path of the directory in the repo, for example:
<code>&quot;checkpoints/1fec34a/results&quot;</code>. Will default to the root folder of the repository.`,name:"path_in_repo"},{anchor:"huggingface_hub.HfApi.upload_folder.token",description:`<strong>token</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Authentication token, obtained with <code>HfApi.login</code> method. Will
default to the stored token.`,name:"token"},{anchor:"huggingface_hub.HfApi.upload_folder.repo_type",description:`<strong>repo_type</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Set to <code>&quot;dataset&quot;</code> or <code>&quot;space&quot;</code> if uploading to a dataset or
space, <code>None</code> or <code>&quot;model&quot;</code> if uploading to a model. Default is
<code>None</code>.`,name:"repo_type"},{anchor:"huggingface_hub.HfApi.upload_folder.revision",description:`<strong>revision</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The git revision to commit from. Defaults to the head of the <code>&quot;main&quot;</code> branch.`,name:"revision"},{anchor:"huggingface_hub.HfApi.upload_folder.commit_message",description:`<strong>commit_message</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The summary / title / first line of the generated commit. Defaults to:
<code>f&quot;Upload {path_in_repo} with huggingface_hub&quot;</code>`,name:"commit_message"},{anchor:"huggingface_hub.HfApi.upload_folder.commit_description",description:`<strong>commit_description</strong> (<code>str</code> <em>optional</em>) &#x2014;
The description of the generated commit`,name:"commit_description"},{anchor:"huggingface_hub.HfApi.upload_folder.create_pr",description:`<strong>create_pr</strong> (<code>boolean</code>, <em>optional</em>) &#x2014;
Whether or not to create a Pull Request with that commit. Defaults to <code>False</code>. If <code>revision</code> is not
set, PR is opened against the <code>&quot;main&quot;</code> branch. If <code>revision</code> is set and is a branch, PR is opened
against this branch. If <code>revision</code> is set and is not a branch name (example: a commit oid), an
<code>RevisionNotFoundError</code> is returned by the server. If both <code>multi_commits</code> and <code>create_pr</code> are True,
the PR created in the multi-commit process is kept opened.`,name:"create_pr"},{anchor:"huggingface_hub.HfApi.upload_folder.parent_commit",description:`<strong>parent_commit</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The OID / SHA of the parent commit, as a hexadecimal string. Shorthands (7 first characters) are also supported.
If specified and <code>create_pr</code> is <code>False</code>, the commit will fail if <code>revision</code> does not point to <code>parent_commit</code>.
If specified and <code>create_pr</code> is <code>True</code>, the pull request will be created from <code>parent_commit</code>.
Specifying <code>parent_commit</code> ensures the repo has not changed before committing the changes, and can be
especially useful if the repo is updated / committed to concurrently.`,name:"parent_commit"},{anchor:"huggingface_hub.HfApi.upload_folder.allow_patterns",description:`<strong>allow_patterns</strong> (<code>List[str]</code> or <code>str</code>, <em>optional</em>) &#x2014;
If provided, only files matching at least one pattern are uploaded.`,name:"allow_patterns"},{anchor:"huggingface_hub.HfApi.upload_folder.ignore_patterns",description:`<strong>ignore_patterns</strong> (<code>List[str]</code> or <code>str</code>, <em>optional</em>) &#x2014;
If provided, files matching any of the patterns are not uploaded.`,name:"ignore_patterns"},{anchor:"huggingface_hub.HfApi.upload_folder.delete_patterns",description:`<strong>delete_patterns</strong> (<code>List[str]</code> or <code>str</code>, <em>optional</em>) &#x2014;
If provided, remote files matching any of the patterns will be deleted from the repo while committing
new files. This is useful if you don&#x2019;t know which files have already been uploaded.
Note: to avoid discrepancies the <code>.gitattributes</code> file is not deleted even if it matches the pattern.`,name:"delete_patterns"},{anchor:"huggingface_hub.HfApi.upload_folder.multi_commits",description:`<strong>multi_commits</strong> (<code>bool</code>) &#x2014;
If True, changes are pushed to a PR using a multi-commit process. Defaults to <code>False</code>.`,name:"multi_commits"},{anchor:"huggingface_hub.HfApi.upload_folder.multi_commits_verbose",description:`<strong>multi_commits_verbose</strong> (<code>bool</code>) &#x2014;
If True and <code>multi_commits</code> is used, more information will be displayed to the user.`,name:"multi_commits_verbose"},{anchor:"huggingface_hub.HfApi.upload_folder.run_as_future",description:`<strong>run_as_future</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to run this method in the background. Background jobs are run sequentially without
blocking the main thread. Passing <code>run_as_future=True</code> will return a <a href="https://docs.python.org/3/library/concurrent.futures.html#future-objects" rel="nofollow">Future</a>
object. Defaults to <code>False</code>.`,name:"run_as_future"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/hf_api.py#L3919",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>A URL to visualize the uploaded folder on the hub. If <code>run_as_future=True</code> is passed,
returns a Future object which will contain the result when executed.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>str</code> or <code>Future[str]</code></p>
`}}),ga=new J({props:{$$slots:{default:[W1]},$$scope:{ctx:w}}}),ua=new J({props:{warning:!0,$$slots:{default:[V1]},$$scope:{ctx:w}}}),ha=new J({props:{warning:!0,$$slots:{default:[X1]},$$scope:{ctx:w}}}),ma=new U({props:{anchor:"huggingface_hub.HfApi.upload_folder.example",$$slots:{default:[Y1]},$$scope:{ctx:w}}}),gi=new C({props:{name:"whoami",anchor:"huggingface_hub.HfApi.whoami",parameters:[{name:"token",val:": Optional[str] = None"}],parametersDescription:[{anchor:"huggingface_hub.HfApi.whoami.token",description:`<strong>token</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Hugging Face token. Will default to the locally saved token if
not provided.`,name:"token"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/hf_api.py#L1131"}}),ui=new C({props:{name:"huggingface_hub.plan_multi_commits",anchor:"huggingface_hub.plan_multi_commits",parameters:[{name:"operations",val:": typing.Iterable[typing.Union[huggingface_hub._commit_api.CommitOperationAdd, huggingface_hub._commit_api.CommitOperationDelete]]"},{name:"max_operations_per_commit",val:": int = 50"},{name:"max_upload_size_per_commit",val:": int = 2147483648"}],parametersDescription:[{anchor:"huggingface_hub.plan_multi_commits.operations",description:`<strong>operations</strong> (<code>List</code> of <code>CommitOperation()</code>) &#x2014;
The list of operations to split into commits.`,name:"operations"},{anchor:"huggingface_hub.plan_multi_commits.max_operations_per_commit",description:`<strong>max_operations_per_commit</strong> (<code>int</code>) &#x2014;
Maximum number of operations in a single commit. Defaults to 50.`,name:"max_operations_per_commit"},{anchor:"huggingface_hub.plan_multi_commits.max_upload_size_per_commit",description:`<strong>max_upload_size_per_commit</strong> (<code>int</code>) &#x2014;
Maximum size to upload (in bytes) in a single commit. Defaults to 2GB. Files bigger than this limit are
uploaded, 1 per commit.`,name:"max_upload_size_per_commit"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/_multi_commits.py#L77",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>a tuple. First item is a list of
lists of <a
  href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.CommitOperationAdd"
>CommitOperationAdd</a> representing the addition commits to push. The second item is a list of lists
of <a
  href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.CommitOperationDelete"
>CommitOperationDelete</a> representing the deletion commits.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>Tuple[List[List[CommitOperationAdd]], List[List[CommitOperationDelete]]]</code></p>
`}}),_a=new J({props:{warning:!0,$$slots:{default:[P1]},$$scope:{ctx:w}}}),ba=new U({props:{anchor:"huggingface_hub.plan_multi_commits.example",$$slots:{default:[O1]},$$scope:{ctx:w}}}),va=new J({props:{warning:!0,$$slots:{default:[z1]},$$scope:{ctx:w}}}),hi=new E({props:{title:"API Dataclasses",local:"api-dataclasses",headingTag:"h2"}}),mi=new E({props:{title:"CommitInfo",local:"huggingface_hub.CommitInfo",headingTag:"h3"}}),fi=new C({props:{name:"class huggingface_hub.CommitInfo",anchor:"huggingface_hub.CommitInfo",parameters:[{name:"commit_url",val:": str"},{name:"commit_message",val:": str"},{name:"commit_description",val:": str"},{name:"oid",val:": str"},{name:"pr_url",val:": Optional[str] = None"}],parametersDescription:[{anchor:"huggingface_hub.CommitInfo.commit_url",description:`<strong>commit_url</strong> (<code>str</code>) &#x2014;
Url where to find the commit.`,name:"commit_url"},{anchor:"huggingface_hub.CommitInfo.commit_message",description:`<strong>commit_message</strong> (<code>str</code>) &#x2014;
The summary (first line) of the commit that has been created.`,name:"commit_message"},{anchor:"huggingface_hub.CommitInfo.commit_description",description:`<strong>commit_description</strong> (<code>str</code>) &#x2014;
Description of the commit that has been created. Can be empty.`,name:"commit_description"},{anchor:"huggingface_hub.CommitInfo.oid",description:`<strong>oid</strong> (<code>str</code>) &#x2014;
Commit hash id. Example: <code>&quot;91c54ad1727ee830252e457677f467be0bfd8a57&quot;</code>.`,name:"oid"},{anchor:"huggingface_hub.CommitInfo.pr_url",description:`<strong>pr_url</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Url to the PR that has been created, if any. Populated when <code>create_pr=True</code>
is passed.`,name:"pr_url"},{anchor:"huggingface_hub.CommitInfo.pr_revision",description:`<strong>pr_revision</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Revision of the PR that has been created, if any. Populated when
<code>create_pr=True</code> is passed. Example: <code>&quot;refs/pr/1&quot;</code>.`,name:"pr_revision"},{anchor:"huggingface_hub.CommitInfo.pr_num",description:`<strong>pr_num</strong> (<code>int</code>, <em>optional</em>) &#x2014;
Number of the PR discussion that has been created, if any. Populated when
<code>create_pr=True</code> is passed. Can be passed as <code>discussion_num</code> in
<a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.HfApi.get_discussion_details">get_discussion_details()</a>. Example: <code>1</code>.`,name:"pr_num"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/hf_api.py#L264"}}),_i=new E({props:{title:"DatasetInfo",local:"huggingface_hub.hf_api.DatasetInfo",headingTag:"h3"}}),bi=new C({props:{name:"class huggingface_hub.hf_api.DatasetInfo",anchor:"huggingface_hub.hf_api.DatasetInfo",parameters:[{name:"**kwargs",val:""}],parametersDescription:[{anchor:"huggingface_hub.hf_api.DatasetInfo.id",description:`<strong>id</strong> (<code>str</code>) &#x2014;
ID of dataset.`,name:"id"},{anchor:"huggingface_hub.hf_api.DatasetInfo.author",description:`<strong>author</strong> (<code>str</code>) &#x2014;
Author of the dataset.`,name:"author"},{anchor:"huggingface_hub.hf_api.DatasetInfo.sha",description:`<strong>sha</strong> (<code>str</code>) &#x2014;
Repo SHA at this particular revision.`,name:"sha"},{anchor:"huggingface_hub.hf_api.DatasetInfo.last_modified",description:`<strong>last_modified</strong> (<code>datetime</code>, <em>optional</em>) &#x2014;
Date of last commit to the repo.`,name:"last_modified"},{anchor:"huggingface_hub.hf_api.DatasetInfo.private",description:`<strong>private</strong> (<code>bool</code>) &#x2014;
Is the repo private.`,name:"private"},{anchor:"huggingface_hub.hf_api.DatasetInfo.disabled",description:`<strong>disabled</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Is the repo disabled.`,name:"disabled"},{anchor:"huggingface_hub.hf_api.DatasetInfo.gated",description:`<strong>gated</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Is the repo gated.`,name:"gated"},{anchor:"huggingface_hub.hf_api.DatasetInfo.downloads",description:`<strong>downloads</strong> (<code>int</code>) &#x2014;
Number of downloads of the dataset.`,name:"downloads"},{anchor:"huggingface_hub.hf_api.DatasetInfo.likes",description:`<strong>likes</strong> (<code>int</code>) &#x2014;
Number of likes of the dataset.`,name:"likes"},{anchor:"huggingface_hub.hf_api.DatasetInfo.tags",description:`<strong>tags</strong> (<code>List[str]</code>) &#x2014;
List of tags of the dataset.`,name:"tags"},{anchor:"huggingface_hub.hf_api.DatasetInfo.card_data",description:`<strong>card_data</strong> (<code>DatasetCardData</code>, <em>optional</em>) &#x2014;
Model Card Metadata  as a <a href="/docs/huggingface_hub/main/en/package_reference/cards#huggingface_hub.DatasetCardData">huggingface_hub.repocard_data.DatasetCardData</a> object.`,name:"card_data"},{anchor:"huggingface_hub.hf_api.DatasetInfo.siblings",description:`<strong>siblings</strong> (<code>List[RepoSibling]</code>) &#x2014;
List of <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.hf_api.RepoSibling">huggingface_hub.hf_api.RepoSibling</a> objects that constitute the dataset.`,name:"siblings"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/hf_api.py#L569"}}),vi=new E({props:{title:"GitRefInfo",local:"huggingface_hub.GitRefInfo",headingTag:"h3"}}),$i=new C({props:{name:"class huggingface_hub.GitRefInfo",anchor:"huggingface_hub.GitRefInfo",parameters:[{name:"name",val:": str"},{name:"ref",val:": str"},{name:"target_commit",val:": str"}],parametersDescription:[{anchor:"huggingface_hub.GitRefInfo.name",description:`<strong>name</strong> (<code>str</code>) &#x2014;
Name of the reference (e.g. tag name or branch name).`,name:"name"},{anchor:"huggingface_hub.GitRefInfo.ref",description:`<strong>ref</strong> (<code>str</code>) &#x2014;
Full git ref on the Hub (e.g. <code>&quot;refs/heads/main&quot;</code> or <code>&quot;refs/tags/v1.0&quot;</code>).`,name:"ref"},{anchor:"huggingface_hub.GitRefInfo.target_commit",description:`<strong>target_commit</strong> (<code>str</code>) &#x2014;
OID of the target commit for the ref (e.g. <code>&quot;e7da7f221d5bf496a48136c0cd264e630fe9fcc8&quot;</code>)`,name:"target_commit"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/hf_api.py#L897"}}),yi=new E({props:{title:"GitCommitInfo",local:"huggingface_hub.GitCommitInfo",headingTag:"h3"}}),xi=new C({props:{name:"class huggingface_hub.GitCommitInfo",anchor:"huggingface_hub.GitCommitInfo",parameters:[{name:"commit_id",val:": str"},{name:"authors",val:": List[str]"},{name:"created_at",val:": datetime"},{name:"title",val:": str"},{name:"message",val:": str"},{name:"formatted_title",val:": Optional[str]"},{name:"formatted_message",val:": Optional[str]"}],parametersDescription:[{anchor:"huggingface_hub.GitCommitInfo.commit_id",description:`<strong>commit_id</strong> (<code>str</code>) &#x2014;
OID of the commit (e.g. <code>&quot;e7da7f221d5bf496a48136c0cd264e630fe9fcc8&quot;</code>)`,name:"commit_id"},{anchor:"huggingface_hub.GitCommitInfo.authors",description:`<strong>authors</strong> (<code>List[str]</code>) &#x2014;
List of authors of the commit.`,name:"authors"},{anchor:"huggingface_hub.GitCommitInfo.created_at",description:`<strong>created_at</strong> (<code>datetime</code>) &#x2014;
Datetime when the commit was created.`,name:"created_at"},{anchor:"huggingface_hub.GitCommitInfo.title",description:`<strong>title</strong> (<code>str</code>) &#x2014;
Title of the commit. This is a free-text value entered by the authors.`,name:"title"},{anchor:"huggingface_hub.GitCommitInfo.message",description:`<strong>message</strong> (<code>str</code>) &#x2014;
Description of the commit. This is a free-text value entered by the authors.`,name:"message"},{anchor:"huggingface_hub.GitCommitInfo.formatted_title",description:`<strong>formatted_title</strong> (<code>str</code>) &#x2014;
Title of the commit formatted as HTML. Only returned if <code>formatted=True</code> is set.`,name:"formatted_title"},{anchor:"huggingface_hub.GitCommitInfo.formatted_message",description:`<strong>formatted_message</strong> (<code>str</code>) &#x2014;
Description of the commit formatted as HTML. Only returned if <code>formatted=True</code> is set.`,name:"formatted_message"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/hf_api.py#L938"}}),wi=new E({props:{title:"GitRefs",local:"huggingface_hub.GitRefs",headingTag:"h3"}}),Mi=new C({props:{name:"class huggingface_hub.GitRefs",anchor:"huggingface_hub.GitRefs",parameters:[{name:"branches",val:": List[GitRefInfo]"},{name:"converts",val:": List[GitRefInfo]"},{name:"tags",val:": List[GitRefInfo]"}],parametersDescription:[{anchor:"huggingface_hub.GitRefs.branches",description:`<strong>branches</strong> (<code>List[GitRefInfo]</code>) &#x2014;
A list of <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.GitRefInfo">GitRefInfo</a> containing information about branches on the repo.`,name:"branches"},{anchor:"huggingface_hub.GitRefs.converts",description:`<strong>converts</strong> (<code>List[GitRefInfo]</code>) &#x2014;
A list of <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.GitRefInfo">GitRefInfo</a> containing information about &#x201C;convert&#x201D; refs on the repo.
Converts are refs used (internally) to push preprocessed data in Dataset repos.`,name:"converts"},{anchor:"huggingface_hub.GitRefs.tags",description:`<strong>tags</strong> (<code>List[GitRefInfo]</code>) &#x2014;
A list of <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.GitRefInfo">GitRefInfo</a> containing information about tags on the repo.`,name:"tags"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/hf_api.py#L916"}}),ki=new E({props:{title:"ModelInfo",local:"huggingface_hub.hf_api.ModelInfo",headingTag:"h3"}}),Ti=new C({props:{name:"class huggingface_hub.hf_api.ModelInfo",anchor:"huggingface_hub.hf_api.ModelInfo",parameters:[{name:"**kwargs",val:""}],parametersDescription:[{anchor:"huggingface_hub.hf_api.ModelInfo.id",description:`<strong>id</strong> (<code>str</code>) &#x2014;
ID of dataset.`,name:"id"},{anchor:"huggingface_hub.hf_api.ModelInfo.author",description:`<strong>author</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Author of the dataset.`,name:"author"},{anchor:"huggingface_hub.hf_api.ModelInfo.sha",description:`<strong>sha</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Repo SHA at this particular revision.`,name:"sha"},{anchor:"huggingface_hub.hf_api.ModelInfo.last_modified",description:`<strong>last_modified</strong> (<code>datetime</code>, <em>optional</em>) &#x2014;
Date of last commit to the repo.`,name:"last_modified"},{anchor:"huggingface_hub.hf_api.ModelInfo.private",description:`<strong>private</strong> (<code>bool</code>) &#x2014;
Is the repo private.`,name:"private"},{anchor:"huggingface_hub.hf_api.ModelInfo.disabled",description:`<strong>disabled</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Is the repo disabled.`,name:"disabled"},{anchor:"huggingface_hub.hf_api.ModelInfo.gated",description:`<strong>gated</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Is the repo gated.`,name:"gated"},{anchor:"huggingface_hub.hf_api.ModelInfo.downloads",description:`<strong>downloads</strong> (<code>int</code>) &#x2014;
Number of downloads of the dataset.`,name:"downloads"},{anchor:"huggingface_hub.hf_api.ModelInfo.likes",description:`<strong>likes</strong> (<code>int</code>) &#x2014;
Number of likes of the dataset.`,name:"likes"},{anchor:"huggingface_hub.hf_api.ModelInfo.library_name",description:`<strong>library_name</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Library associated with the model.`,name:"library_name"},{anchor:"huggingface_hub.hf_api.ModelInfo.tags",description:`<strong>tags</strong> (<code>List[str]</code>) &#x2014;
List of tags of the model. Compared to <code>card_data.tags</code>, contains extra tags computed by the Hub
(e.g. supported libraries, model&#x2019;s arXiv).`,name:"tags"},{anchor:"huggingface_hub.hf_api.ModelInfo.pipeline_tag",description:`<strong>pipeline_tag</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Pipeline tag associated with the model.`,name:"pipeline_tag"},{anchor:"huggingface_hub.hf_api.ModelInfo.mask_token",description:`<strong>mask_token</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Mask token used by the model.`,name:"mask_token"},{anchor:"huggingface_hub.hf_api.ModelInfo.widget_data",description:`<strong>widget_data</strong> (<code>Any</code>, <em>optional</em>) &#x2014;
Widget data associated with the model.`,name:"widget_data"},{anchor:"huggingface_hub.hf_api.ModelInfo.model_index",description:`<strong>model_index</strong> (<code>Dict</code>, <em>optional</em>) &#x2014;
Model index for evaluation.`,name:"model_index"},{anchor:"huggingface_hub.hf_api.ModelInfo.config",description:`<strong>config</strong> (<code>Dict</code>, <em>optional</em>) &#x2014;
Model configuration.`,name:"config"},{anchor:"huggingface_hub.hf_api.ModelInfo.transformers_info",description:`<strong>transformers_info</strong> (<code>TransformersInfo</code>, <em>optional</em>) &#x2014;
Transformers-specific info (auto class, processor, etc.) associated with the model.`,name:"transformers_info"},{anchor:"huggingface_hub.hf_api.ModelInfo.card_data",description:`<strong>card_data</strong> (<code>ModelCardData</code>, <em>optional</em>) &#x2014;
Model Card Metadata  as a <a href="/docs/huggingface_hub/main/en/package_reference/cards#huggingface_hub.ModelCardData">huggingface_hub.repocard_data.ModelCardData</a> object.`,name:"card_data"},{anchor:"huggingface_hub.hf_api.ModelInfo.siblings",description:`<strong>siblings</strong> (<code>List[RepoSibling]</code>) &#x2014;
List of <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.hf_api.RepoSibling">huggingface_hub.hf_api.RepoSibling</a> objects that constitute the model.`,name:"siblings"},{anchor:"huggingface_hub.hf_api.ModelInfo.spaces",description:`<strong>spaces</strong> (<code>List[str]</code>, <em>optional</em>) &#x2014;
List of spaces using the model.`,name:"spaces"},{anchor:"huggingface_hub.hf_api.ModelInfo.safetensors",description:`<strong>safetensors</strong> (<code>SafeTensorsInfo</code>, <em>optional</em>) &#x2014;
Model&#x2019;s safetensors information.`,name:"safetensors"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/hf_api.py#L438"}}),ji=new E({props:{title:"RepoSibling",local:"huggingface_hub.hf_api.RepoSibling",headingTag:"h3"}}),Ci=new C({props:{name:"class huggingface_hub.hf_api.RepoSibling",anchor:"huggingface_hub.hf_api.RepoSibling",parameters:[{name:"rfilename",val:": str"},{name:"size",val:": Optional[int] = None"},{name:"blob_id",val:": Optional[str] = None"},{name:"lfs",val:": Optional[BlobLfsInfo] = None"}],parametersDescription:[{anchor:"huggingface_hub.hf_api.RepoSibling.rfilename",description:`<strong>rfilename</strong> (str) &#x2014;
file name, relative to the repo root.`,name:"rfilename"},{anchor:"huggingface_hub.hf_api.RepoSibling.size",description:`<strong>size</strong> (<code>int</code>, <em>optional</em>) &#x2014;
The file&#x2019;s size, in bytes. This attribute is defined when <code>files_metadata</code> argument of <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.HfApi.repo_info">repo_info()</a> is set
to <code>True</code>. It&#x2019;s <code>None</code> otherwise.`,name:"size"},{anchor:"huggingface_hub.hf_api.RepoSibling.blob_id",description:`<strong>blob_id</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The file&#x2019;s git OID. This attribute is defined when <code>files_metadata</code> argument of <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.HfApi.repo_info">repo_info()</a> is set to
<code>True</code>. It&#x2019;s <code>None</code> otherwise.`,name:"blob_id"},{anchor:"huggingface_hub.hf_api.RepoSibling.lfs",description:`<strong>lfs</strong> (<code>BlobLfsInfo</code>, <em>optional</em>) &#x2014;
The file&#x2019;s LFS metadata. This attribute is defined when<code>files_metadata</code> argument of <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.HfApi.repo_info">repo_info()</a> is set to
<code>True</code> and the file is stored with Git LFS. It&#x2019;s <code>None</code> otherwise.`,name:"lfs"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/hf_api.py#L380"}}),Ii=new E({props:{title:"RepoFile",local:"huggingface_hub.hf_api.RepoFile",headingTag:"h3"}}),Hi=new C({props:{name:"class huggingface_hub.hf_api.RepoFile",anchor:"huggingface_hub.hf_api.RepoFile",parameters:[{name:"path",val:": str"},{name:"size",val:": int"},{name:"blob_id",val:": str"},{name:"lfs",val:": Optional[BlobLfsInfo] = None"},{name:"last_commit",val:": Optional[BlobLastCommitInfo] = None"},{name:"security",val:": Optional[BlobSecurityInfo] = None"}],parametersDescription:[{anchor:"huggingface_hub.hf_api.RepoFile.path",description:`<strong>path</strong> (str) &#x2014;
file path relative to the repo root.`,name:"path"},{anchor:"huggingface_hub.hf_api.RepoFile.size",description:`<strong>size</strong> (<code>int</code>) &#x2014;
The file&#x2019;s size, in bytes.`,name:"size"},{anchor:"huggingface_hub.hf_api.RepoFile.blob_id",description:`<strong>blob_id</strong> (<code>str</code>) &#x2014;
The file&#x2019;s git OID.`,name:"blob_id"},{anchor:"huggingface_hub.hf_api.RepoFile.lfs",description:`<strong>lfs</strong> (<code>BlobLfsInfo</code>) &#x2014;
The file&#x2019;s LFS metadata.`,name:"lfs"},{anchor:"huggingface_hub.hf_api.RepoFile.last_commit",description:`<strong>last_commit</strong> (<code>BlobLastCommitInfo</code>, <em>optional</em>) &#x2014;
The file&#x2019;s last commit metadata. Only defined if <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.HfApi.list_files_info">list_files_info()</a> is called with <code>expand=True</code>`,name:"last_commit"},{anchor:"huggingface_hub.hf_api.RepoFile.security",description:`<strong>security</strong> (<code>BlobSecurityInfo</code>, <em>optional</em>) &#x2014;
The file&#x2019;s security scan metadata. Only defined if <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.HfApi.list_files_info">list_files_info()</a> is called with <code>expand=True</code>.`,name:"security"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/hf_api.py#L405"}}),Ui=new E({props:{title:"RepoUrl",local:"huggingface_hub.RepoUrl",headingTag:"h3"}}),Ji=new C({props:{name:"class huggingface_hub.RepoUrl",anchor:"huggingface_hub.RepoUrl",parameters:[{name:"url",val:": Any"},{name:"endpoint",val:": Optional[str] = None"}],parametersDescription:[{anchor:"huggingface_hub.RepoUrl.url",description:`<strong>url</strong> (<code>Any</code>) &#x2014;
String value of the repo url.`,name:"url"},{anchor:"huggingface_hub.RepoUrl.endpoint",description:`<strong>endpoint</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Endpoint of the Hub. Defaults to <a href="https://huggingface.co" rel="nofollow">https://huggingface.co</a>.`,name:"endpoint"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/hf_api.py#L319",raiseDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<ul>
<li><ul>
<li>— <a
  href="https://docs.python.org/3/library/exceptions.html#ValueError"
  rel="nofollow"
><code>ValueError</code></a>
If URL cannot be parsed.</li>
</ul></li>
<li><ul>
<li>— <a
  href="https://docs.python.org/3/library/exceptions.html#ValueError"
  rel="nofollow"
><code>ValueError</code></a>
If <code>repo_type</code> is unknown.</li>
</ul></li>
</ul>
`,raiseType:`<script context="module">export const metadata = 'undefined';<\/script>


<ul>
<li></li>
</ul>
`}}),$a=new U({props:{anchor:"huggingface_hub.RepoUrl.example",$$slots:{default:[Q1]},$$scope:{ctx:w}}}),Ai=new E({props:{title:"SpaceInfo",local:"huggingface_hub.hf_api.SpaceInfo",headingTag:"h3"}}),qi=new C({props:{name:"class huggingface_hub.hf_api.SpaceInfo",anchor:"huggingface_hub.hf_api.SpaceInfo",parameters:[{name:"**kwargs",val:""}],parametersDescription:[{anchor:"huggingface_hub.hf_api.SpaceInfo.id",description:`<strong>id</strong> (<code>str</code>) &#x2014;
ID of the Space.`,name:"id"},{anchor:"huggingface_hub.hf_api.SpaceInfo.author",description:`<strong>author</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Author of the Space.`,name:"author"},{anchor:"huggingface_hub.hf_api.SpaceInfo.sha",description:`<strong>sha</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Repo SHA at this particular revision.`,name:"sha"},{anchor:"huggingface_hub.hf_api.SpaceInfo.last_modified",description:`<strong>last_modified</strong> (<code>datetime</code>, <em>optional</em>) &#x2014;
Date of last commit to the repo.`,name:"last_modified"},{anchor:"huggingface_hub.hf_api.SpaceInfo.private",description:`<strong>private</strong> (<code>bool</code>) &#x2014;
Is the repo private.`,name:"private"},{anchor:"huggingface_hub.hf_api.SpaceInfo.gated",description:`<strong>gated</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Is the repo gated.`,name:"gated"},{anchor:"huggingface_hub.hf_api.SpaceInfo.disabled",description:`<strong>disabled</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Is the Space disabled.`,name:"disabled"},{anchor:"huggingface_hub.hf_api.SpaceInfo.host",description:`<strong>host</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Host URL of the Space.`,name:"host"},{anchor:"huggingface_hub.hf_api.SpaceInfo.subdomain",description:`<strong>subdomain</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Subdomain of the Space.`,name:"subdomain"},{anchor:"huggingface_hub.hf_api.SpaceInfo.likes",description:`<strong>likes</strong> (<code>int</code>) &#x2014;
Number of likes of the Space.`,name:"likes"},{anchor:"huggingface_hub.hf_api.SpaceInfo.tags",description:`<strong>tags</strong> (<code>List[str]</code>) &#x2014;
List of tags of the Space.`,name:"tags"},{anchor:"huggingface_hub.hf_api.SpaceInfo.siblings",description:`<strong>siblings</strong> (<code>List[RepoSibling]</code>) &#x2014;
List of <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.hf_api.RepoSibling">huggingface_hub.hf_api.RepoSibling</a> objects that constitute the Space.`,name:"siblings"},{anchor:"huggingface_hub.hf_api.SpaceInfo.card_data",description:`<strong>card_data</strong> (<code>SpaceCardData</code>, <em>optional</em>) &#x2014;
Space Card Metadata  as a <a href="/docs/huggingface_hub/main/en/package_reference/cards#huggingface_hub.SpaceCardData">huggingface_hub.repocard_data.SpaceCardData</a> object.`,name:"card_data"},{anchor:"huggingface_hub.hf_api.SpaceInfo.runtime",description:`<strong>runtime</strong> (<code>SpaceRuntime</code>, <em>optional</em>) &#x2014;
Space runtime information as a <a href="/docs/huggingface_hub/main/en/package_reference/space_runtime#huggingface_hub.SpaceRuntime">huggingface_hub.hf_api.SpaceRuntime</a> object.`,name:"runtime"},{anchor:"huggingface_hub.hf_api.SpaceInfo.sdk",description:`<strong>sdk</strong> (<code>str</code>, <em>optional</em>) &#x2014;
SDK used by the Space.`,name:"sdk"},{anchor:"huggingface_hub.hf_api.SpaceInfo.models",description:`<strong>models</strong> (<code>List[str]</code>, <em>optional</em>) &#x2014;
List of models used by the Space.`,name:"models"},{anchor:"huggingface_hub.hf_api.SpaceInfo.datasets",description:`<strong>datasets</strong> (<code>List[str]</code>, <em>optional</em>) &#x2014;
List of datasets used by the Space.`,name:"datasets"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/hf_api.py#L661"}}),Ni=new E({props:{title:"User",local:"huggingface_hub.User",headingTag:"h3"}}),Ei=new C({props:{name:"class huggingface_hub.User",anchor:"huggingface_hub.User",parameters:[{name:"avatar_url",val:": str"},{name:"username",val:": str"},{name:"fullname",val:": str"}],parametersDescription:[{anchor:"huggingface_hub.User.avatar_url",description:`<strong>avatar_url</strong> (<code>str</code>) &#x2014;
URL of the user&#x2019;s avatar.`,name:"avatar_url"},{anchor:"huggingface_hub.User.username",description:`<strong>username</strong> (<code>str</code>) &#x2014;
Name of the user on the Hub (unique).`,name:"username"},{anchor:"huggingface_hub.User.fullname",description:`<strong>fullname</strong> (<code>str</code>) &#x2014;
User&#x2019;s full name.`,name:"fullname"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/hf_api.py#L999"}}),Ri=new E({props:{title:"UserLikes",local:"huggingface_hub.UserLikes",headingTag:"h3"}}),Gi=new C({props:{name:"class huggingface_hub.UserLikes",anchor:"huggingface_hub.UserLikes",parameters:[{name:"user",val:": str"},{name:"total",val:": int"},{name:"datasets",val:": List[str]"},{name:"models",val:": List[str]"},{name:"spaces",val:": List[str]"}],parametersDescription:[{anchor:"huggingface_hub.UserLikes.user",description:`<strong>user</strong> (<code>str</code>) &#x2014;
Name of the user for which we fetched the likes.`,name:"user"},{anchor:"huggingface_hub.UserLikes.total",description:`<strong>total</strong> (<code>int</code>) &#x2014;
Total number of likes.`,name:"total"},{anchor:"huggingface_hub.UserLikes.datasets",description:`<strong>datasets</strong> (<code>List[str]</code>) &#x2014;
List of datasets liked by the user (as repo_ids).`,name:"datasets"},{anchor:"huggingface_hub.UserLikes.models",description:`<strong>models</strong> (<code>List[str]</code>) &#x2014;
List of models liked by the user (as repo_ids).`,name:"models"},{anchor:"huggingface_hub.UserLikes.spaces",description:`<strong>spaces</strong> (<code>List[str]</code>) &#x2014;
List of spaces liked by the user (as repo_ids).`,name:"spaces"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/hf_api.py#L971"}}),Di=new E({props:{title:"CommitOperation",local:"huggingface_hub.CommitOperationAdd",headingTag:"h2"}}),Fi=new C({props:{name:"class huggingface_hub.CommitOperationAdd",anchor:"huggingface_hub.CommitOperationAdd",parameters:[{name:"path_in_repo",val:": str"},{name:"path_or_fileobj",val:": typing.Union[str, pathlib.Path, bytes, typing.BinaryIO]"}],parametersDescription:[{anchor:"huggingface_hub.CommitOperationAdd.path_in_repo",description:`<strong>path_in_repo</strong> (<code>str</code>) &#x2014;
Relative filepath in the repo, for example: <code>&quot;checkpoints/1fec34a/weights.bin&quot;</code>`,name:"path_in_repo"},{anchor:"huggingface_hub.CommitOperationAdd.path_or_fileobj",description:`<strong>path_or_fileobj</strong> (<code>str</code>, <code>Path</code>, <code>bytes</code>, or <code>BinaryIO</code>) &#x2014;
Either:<ul>
<li>a path to a local file (as <code>str</code> or <code>pathlib.Path</code>) to upload</li>
<li>a buffer of bytes (<code>bytes</code>) holding the content of the file to upload</li>
<li>a &#x201C;file object&#x201D; (subclass of <code>io.BufferedIOBase</code>), typically obtained
with <code>open(path, &quot;rb&quot;)</code>. It must support <code>seek()</code> and <code>tell()</code> methods.</li>
</ul>`,name:"path_or_fileobj"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/_commit_api.py#L111",raiseDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<ul>
<li><a
  href="https://docs.python.org/3/library/exceptions.html#ValueError"
  rel="nofollow"
><code>ValueError</code></a> —
If <code>path_or_fileobj</code> is not one of <code>str</code>, <code>Path</code>, <code>bytes</code> or <code>io.BufferedIOBase</code>.</li>
<li><a
  href="https://docs.python.org/3/library/exceptions.html#ValueError"
  rel="nofollow"
><code>ValueError</code></a> —
If <code>path_or_fileobj</code> is a <code>str</code> or <code>Path</code> but not a path to an existing file.</li>
<li><a
  href="https://docs.python.org/3/library/exceptions.html#ValueError"
  rel="nofollow"
><code>ValueError</code></a> —
If <code>path_or_fileobj</code> is a <code>io.BufferedIOBase</code> but it doesn’t support both
<code>seek()</code> and <code>tell()</code>.</li>
</ul>
`,raiseType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>ValueError</code></p>
`}}),Zi=new C({props:{name:"as_file",anchor:"huggingface_hub.CommitOperationAdd.as_file",parameters:[{name:"with_tqdm",val:": bool = False"}],parametersDescription:[{anchor:"huggingface_hub.CommitOperationAdd.as_file.with_tqdm",description:`<strong>with_tqdm</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
If True, iterating over the file object will display a progress bar. Only
works if the file-like object is a path to a file. Pure bytes and buffers
are not supported.`,name:"with_tqdm"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/_commit_api.py#L183"}}),ya=new U({props:{anchor:"huggingface_hub.CommitOperationAdd.as_file.example",$$slots:{default:[K1]},$$scope:{ctx:w}}}),Li=new C({props:{name:"b64content",anchor:"huggingface_hub.CommitOperationAdd.b64content",parameters:[],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/_commit_api.py#L233"}}),Bi=new C({props:{name:"class huggingface_hub.CommitOperationDelete",anchor:"huggingface_hub.CommitOperationDelete",parameters:[{name:"path_in_repo",val:": str"},{name:"is_folder",val:": typing.Union[bool, typing.Literal['auto']] = 'auto'"}],parametersDescription:[{anchor:"huggingface_hub.CommitOperationDelete.path_in_repo",description:`<strong>path_in_repo</strong> (<code>str</code>) &#x2014;
Relative filepath in the repo, for example: <code>&quot;checkpoints/1fec34a/weights.bin&quot;</code>
for a file or <code>&quot;checkpoints/1fec34a/&quot;</code> for a folder.`,name:"path_in_repo"},{anchor:"huggingface_hub.CommitOperationDelete.is_folder",description:`<strong>is_folder</strong> (<code>bool</code> or <code>Literal[&quot;auto&quot;]</code>, <em>optional</em>) &#x2014;
Whether the Delete Operation applies to a folder or not. If &#x201C;auto&#x201D;, the path
type (file or folder) is guessed automatically by looking if path ends with
a &#x201D;/&#x201D; (folder) or not (file). To explicitly set the path type, you can set
<code>is_folder=True</code> or <code>is_folder=False</code>.`,name:"is_folder"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/_commit_api.py#L50"}}),Wi=new C({props:{name:"class huggingface_hub.CommitOperationCopy",anchor:"huggingface_hub.CommitOperationCopy",parameters:[{name:"src_path_in_repo",val:": str"},{name:"path_in_repo",val:": str"},{name:"src_revision",val:": typing.Optional[str] = None"}],parametersDescription:[{anchor:"huggingface_hub.CommitOperationCopy.src_path_in_repo",description:`<strong>src_path_in_repo</strong> (<code>str</code>) &#x2014;
Relative filepath in the repo of the file to be copied, e.g. <code>&quot;checkpoints/1fec34a/weights.bin&quot;</code>.`,name:"src_path_in_repo"},{anchor:"huggingface_hub.CommitOperationCopy.path_in_repo",description:`<strong>path_in_repo</strong> (<code>str</code>) &#x2014;
Relative filepath in the repo where to copy the file, e.g. <code>&quot;checkpoints/1fec34a/weights_copy.bin&quot;</code>.`,name:"path_in_repo"},{anchor:"huggingface_hub.CommitOperationCopy.src_revision",description:`<strong>src_revision</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The git revision of the file to be copied. Can be any valid git revision.
Default to the target commit revision.`,name:"src_revision"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/_commit_api.py#L81"}}),Vi=new E({props:{title:"CommitScheduler",local:"huggingface_hub.CommitScheduler",headingTag:"h2"}}),Xi=new C({props:{name:"class huggingface_hub.CommitScheduler",anchor:"huggingface_hub.CommitScheduler",parameters:[{name:"repo_id",val:": str"},{name:"folder_path",val:": typing.Union[str, pathlib.Path]"},{name:"every",val:": typing.Union[int, float] = 5"},{name:"path_in_repo",val:": typing.Optional[str] = None"},{name:"repo_type",val:": typing.Optional[str] = None"},{name:"revision",val:": typing.Optional[str] = None"},{name:"private",val:": bool = False"},{name:"token",val:": typing.Optional[str] = None"},{name:"allow_patterns",val:": typing.Union[typing.List[str], str, NoneType] = None"},{name:"ignore_patterns",val:": typing.Union[typing.List[str], str, NoneType] = None"},{name:"squash_history",val:": bool = False"},{name:"hf_api",val:": typing.Optional[ForwardRef('HfApi')] = None"}],parametersDescription:[{anchor:"huggingface_hub.CommitScheduler.repo_id",description:`<strong>repo_id</strong> (<code>str</code>) &#x2014;
The id of the repo to commit to.`,name:"repo_id"},{anchor:"huggingface_hub.CommitScheduler.folder_path",description:`<strong>folder_path</strong> (<code>str</code> or <code>Path</code>) &#x2014;
Path to the local folder to upload regularly.`,name:"folder_path"},{anchor:"huggingface_hub.CommitScheduler.every",description:`<strong>every</strong> (<code>int</code> or <code>float</code>, <em>optional</em>) &#x2014;
The number of minutes between each commit. Defaults to 5 minutes.`,name:"every"},{anchor:"huggingface_hub.CommitScheduler.path_in_repo",description:`<strong>path_in_repo</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Relative path of the directory in the repo, for example: <code>&quot;checkpoints/&quot;</code>. Defaults to the root folder
of the repository.`,name:"path_in_repo"},{anchor:"huggingface_hub.CommitScheduler.repo_type",description:`<strong>repo_type</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The type of the repo to commit to. Defaults to <code>model</code>.`,name:"repo_type"},{anchor:"huggingface_hub.CommitScheduler.revision",description:`<strong>revision</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The revision of the repo to commit to. Defaults to <code>main</code>.`,name:"revision"},{anchor:"huggingface_hub.CommitScheduler.private",description:`<strong>private</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether to make the repo private. Defaults to <code>False</code>. This value is ignored if the repo already exist.`,name:"private"},{anchor:"huggingface_hub.CommitScheduler.token",description:`<strong>token</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The token to use to commit to the repo. Defaults to the token saved on the machine.`,name:"token"},{anchor:"huggingface_hub.CommitScheduler.allow_patterns",description:`<strong>allow_patterns</strong> (<code>List[str]</code> or <code>str</code>, <em>optional</em>) &#x2014;
If provided, only files matching at least one pattern are uploaded.`,name:"allow_patterns"},{anchor:"huggingface_hub.CommitScheduler.ignore_patterns",description:`<strong>ignore_patterns</strong> (<code>List[str]</code> or <code>str</code>, <em>optional</em>) &#x2014;
If provided, files matching any of the patterns are not uploaded.`,name:"ignore_patterns"},{anchor:"huggingface_hub.CommitScheduler.squash_history",description:`<strong>squash_history</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether to squash the history of the repo after each commit. Defaults to <code>False</code>. Squashing commits is
useful to avoid degraded performances on the repo when it grows too large.`,name:"squash_history"},{anchor:"huggingface_hub.CommitScheduler.hf_api",description:`<strong>hf_api</strong> (<code>HfApi</code>, <em>optional</em>) &#x2014;
The <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.HfApi">HfApi</a> client to use to commit to the Hub. Can be set with custom settings (user agent, token,&#x2026;).`,name:"hf_api"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/_commit_scheduler.py#L29"}}),xa=new U({props:{anchor:"huggingface_hub.CommitScheduler.example",$$slots:{default:[ew]},$$scope:{ctx:w}}}),Yi=new C({props:{name:"push_to_hub",anchor:"huggingface_hub.CommitScheduler.push_to_hub",parameters:[],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/_commit_scheduler.py#L178"}}),wa=new J({props:{warning:!0,$$slots:{default:[tw]},$$scope:{ctx:w}}}),Pi=new C({props:{name:"stop",anchor:"huggingface_hub.CommitScheduler.stop",parameters:[],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/_commit_scheduler.py#L140"}}),Oi=new C({props:{name:"trigger",anchor:"huggingface_hub.CommitScheduler.trigger",parameters:[],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/_commit_scheduler.py#L155"}}),zi=new E({props:{title:"Token helper",local:"huggingface_hub.HfFolder",headingTag:"h2"}}),er=new C({props:{name:"class huggingface_hub.HfFolder",anchor:"huggingface_hub.HfFolder",parameters:[],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/utils/_hf_folder.py#L24"}}),tr=new C({props:{name:"delete_token",anchor:"huggingface_hub.HfFolder.delete_token",parameters:[],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/utils/_hf_folder.py#L81"}}),nr=new C({props:{name:"get_token",anchor:"huggingface_hub.HfFolder.get_token",parameters:[],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/utils/_hf_folder.py#L44",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>The token, <code>None</code> if it doesn’t exist.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>str</code> or <code>None</code></p>
`}}),or=new C({props:{name:"save_token",anchor:"huggingface_hub.HfFolder.save_token",parameters:[{name:"token",val:": str"}],parametersDescription:[{anchor:"huggingface_hub.HfFolder.save_token.token",description:`<strong>token</strong> (<code>str</code>) &#x2014;
The token to save to the <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.HfFolder">HfFolder</a>`,name:"token"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/utils/_hf_folder.py#L29"}}),ar=new E({props:{title:"Search helpers",local:"search-helpers",headingTag:"h2"}}),ir=new E({props:{title:"DatasetFilter",local:"huggingface_hub.DatasetFilter",headingTag:"h3"}}),rr=new C({props:{name:"class huggingface_hub.DatasetFilter",anchor:"huggingface_hub.DatasetFilter",parameters:[{name:"author",val:": typing.Optional[str] = None"},{name:"benchmark",val:": typing.Union[typing.List[str], str, NoneType] = None"},{name:"dataset_name",val:": typing.Optional[str] = None"},{name:"language_creators",val:": typing.Union[typing.List[str], str, NoneType] = None"},{name:"language",val:": typing.Union[typing.List[str], str, NoneType] = None"},{name:"multilinguality",val:": typing.Union[typing.List[str], str, NoneType] = None"},{name:"size_categories",val:": typing.Union[typing.List[str], str, NoneType] = None"},{name:"task_categories",val:": typing.Union[typing.List[str], str, NoneType] = None"},{name:"task_ids",val:": typing.Union[typing.List[str], str, NoneType] = None"}],parametersDescription:[{anchor:"huggingface_hub.DatasetFilter.author",description:`<strong>author</strong> (<code>str</code>, <em>optional</em>) &#x2014;
A string or list of strings that can be used to identify datasets on
the Hub by the original uploader (author or organization), such as
<code>facebook</code> or <code>huggingface</code>.`,name:"author"},{anchor:"huggingface_hub.DatasetFilter.benchmark",description:`<strong>benchmark</strong> (<code>str</code> or <code>List</code>, <em>optional</em>) &#x2014;
A string or list of strings that can be used to identify datasets on
the Hub by their official benchmark.`,name:"benchmark"},{anchor:"huggingface_hub.DatasetFilter.dataset_name",description:`<strong>dataset_name</strong> (<code>str</code>, <em>optional</em>) &#x2014;
A string or list of strings that can be used to identify datasets on
the Hub by its name, such as <code>SQAC</code> or <code>wikineural</code>`,name:"dataset_name"},{anchor:"huggingface_hub.DatasetFilter.language_creators",description:`<strong>language_creators</strong> (<code>str</code> or <code>List</code>, <em>optional</em>) &#x2014;
A string or list of strings that can be used to identify datasets on
the Hub with how the data was curated, such as <code>crowdsourced</code> or
<code>machine_generated</code>.`,name:"language_creators"},{anchor:"huggingface_hub.DatasetFilter.language",description:`<strong>language</strong> (<code>str</code> or <code>List</code>, <em>optional</em>) &#x2014;
A string or list of strings representing a two-character language to
filter datasets by on the Hub.`,name:"language"},{anchor:"huggingface_hub.DatasetFilter.multilinguality",description:`<strong>multilinguality</strong> (<code>str</code> or <code>List</code>, <em>optional</em>) &#x2014;
A string or list of strings representing a filter for datasets that
contain multiple languages.`,name:"multilinguality"},{anchor:"huggingface_hub.DatasetFilter.size_categories",description:`<strong>size_categories</strong> (<code>str</code> or <code>List</code>, <em>optional</em>) &#x2014;
A string or list of strings that can be used to identify datasets on
the Hub by the size of the dataset such as <code>100K&lt;n&lt;1M</code> or
<code>1M&lt;n&lt;10M</code>.`,name:"size_categories"},{anchor:"huggingface_hub.DatasetFilter.task_categories",description:`<strong>task_categories</strong> (<code>str</code> or <code>List</code>, <em>optional</em>) &#x2014;
A string or list of strings that can be used to identify datasets on
the Hub by the designed task, such as <code>audio_classification</code> or
<code>named_entity_recognition</code>.`,name:"task_categories"},{anchor:"huggingface_hub.DatasetFilter.task_ids",description:`<strong>task_ids</strong> (<code>str</code> or <code>List</code>, <em>optional</em>) &#x2014;
A string or list of strings that can be used to identify datasets on
the Hub by the specific task such as <code>speech_emotion_recognition</code> or
<code>paraphrase</code>.`,name:"task_ids"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/utils/endpoint_helpers.py#L70"}}),ka=new U({props:{anchor:"huggingface_hub.DatasetFilter.example",$$slots:{default:[nw]},$$scope:{ctx:w}}}),lr=new E({props:{title:"ModelFilter",local:"huggingface_hub.ModelFilter",headingTag:"h3"}}),cr=new C({props:{name:"class huggingface_hub.ModelFilter",anchor:"huggingface_hub.ModelFilter",parameters:[{name:"author",val:": typing.Optional[str] = None"},{name:"library",val:": typing.Union[typing.List[str], str, NoneType] = None"},{name:"language",val:": typing.Union[typing.List[str], str, NoneType] = None"},{name:"model_name",val:": typing.Optional[str] = None"},{name:"task",val:": typing.Union[typing.List[str], str, NoneType] = None"},{name:"trained_dataset",val:": typing.Union[typing.List[str], str, NoneType] = None"},{name:"tags",val:": typing.Union[typing.List[str], str, NoneType] = None"}],parametersDescription:[{anchor:"huggingface_hub.ModelFilter.author",description:`<strong>author</strong> (<code>str</code>, <em>optional</em>) &#x2014;
A string that can be used to identify models on the Hub by the
original uploader (author or organization), such as <code>facebook</code> or
<code>huggingface</code>.`,name:"author"},{anchor:"huggingface_hub.ModelFilter.library",description:`<strong>library</strong> (<code>str</code> or <code>List</code>, <em>optional</em>) &#x2014;
A string or list of strings of foundational libraries models were
originally trained from, such as pytorch, tensorflow, or allennlp.`,name:"library"},{anchor:"huggingface_hub.ModelFilter.language",description:`<strong>language</strong> (<code>str</code> or <code>List</code>, <em>optional</em>) &#x2014;
A string or list of strings of languages, both by name and country
code, such as &#x201C;en&#x201D; or &#x201C;English&#x201D;`,name:"language"},{anchor:"huggingface_hub.ModelFilter.model_name",description:`<strong>model_name</strong> (<code>str</code>, <em>optional</em>) &#x2014;
A string that contain complete or partial names for models on the
Hub, such as &#x201C;bert&#x201D; or &#x201C;bert-base-cased&#x201D;`,name:"model_name"},{anchor:"huggingface_hub.ModelFilter.task",description:`<strong>task</strong> (<code>str</code> or <code>List</code>, <em>optional</em>) &#x2014;
A string or list of strings of tasks models were designed for, such
as: &#x201C;fill-mask&#x201D; or &#x201C;automatic-speech-recognition&#x201D;`,name:"task"},{anchor:"huggingface_hub.ModelFilter.tags",description:`<strong>tags</strong> (<code>str</code> or <code>List</code>, <em>optional</em>) &#x2014;
A string tag or a list of tags to filter models on the Hub by, such
as <code>text-generation</code> or <code>spacy</code>.`,name:"tags"},{anchor:"huggingface_hub.ModelFilter.trained_dataset",description:`<strong>trained_dataset</strong> (<code>str</code> or <code>List</code>, <em>optional</em>) &#x2014;
A string tag or a list of string tags of the trained dataset for a
model on the Hub.`,name:"trained_dataset"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/utils/endpoint_helpers.py#L156"}}),Ta=new U({props:{anchor:"huggingface_hub.ModelFilter.example",$$slots:{default:[ow]},$$scope:{ctx:w}}}),{c(){n=l("meta"),g=i(),s=l("p"),a=i(),h($.$$.fragment),t=i(),y=l("p"),y.innerHTML=Ua,jd=i(),Ja=l("p"),Ja.innerHTML=Uv,Cd=i(),Aa=l("p"),Aa.innerHTML=Jv,Id=i(),h(qa.$$.fragment),Hd=i(),h(Na.$$.fragment),Ud=i(),M=l("div"),h(Ea.$$.fragment),Ng=i(),ve=l("div"),h(Ra.$$.fragment),Eg=i(),kr=l("p"),kr.textContent=Av,Rg=i(),Tr=l("p"),Tr.innerHTML=qv,Gg=i(),h(Nn.$$.fragment),Dg=i(),yt=l("div"),h(Ga.$$.fragment),Sg=i(),jr=l("p"),jr.textContent=Nv,Fg=i(),Cr=l("p"),Cr.innerHTML=Ev,Zg=i(),xt=l("div"),h(Da.$$.fragment),Lg=i(),Ir=l("p"),Ir.textContent=Rv,Bg=i(),Hr=l("p"),Hr.innerHTML=Gv,Wg=i(),$e=l("div"),h(Sa.$$.fragment),Vg=i(),Ur=l("p"),Ur.textContent=Dv,Xg=i(),h(En.$$.fragment),Yg=i(),h(Rn.$$.fragment),Pg=i(),ye=l("div"),h(Fa.$$.fragment),Og=i(),Jr=l("p"),Jr.textContent=Sv,zg=i(),h(Gn.$$.fragment),Qg=i(),h(Dn.$$.fragment),Kg=i(),Sn=l("div"),h(Za.$$.fragment),eu=i(),Ar=l("p"),Ar.innerHTML=Fv,tu=i(),xe=l("div"),h(La.$$.fragment),nu=i(),qr=l("p"),qr.textContent=Zv,ou=i(),Nr=l("p"),Nr.innerHTML=Lv,au=i(),h(Fn.$$.fragment),su=i(),se=l("div"),h(Ba.$$.fragment),iu=i(),Er=l("p"),Er.textContent=Bv,ru=i(),h(Zn.$$.fragment),lu=i(),h(Ln.$$.fragment),cu=i(),h(Bn.$$.fragment),pu=i(),Z=l("div"),h(Wa.$$.fragment),du=i(),Rr=l("p"),Rr.textContent=Wv,gu=i(),Gr=l("p"),Gr.innerHTML=Vv,uu=i(),Dr=l("p"),Dr.textContent=Xv,hu=i(),h(Wn.$$.fragment),mu=i(),h(Vn.$$.fragment),fu=i(),h(Xn.$$.fragment),_u=i(),V=l("div"),h(Va.$$.fragment),bu=i(),Sr=l("p"),Sr.textContent=Yv,vu=i(),Fr=l("p"),Fr.innerHTML=Pv,$u=i(),Zr=l("p"),Zr.innerHTML=Ov,yu=i(),Lr=l("p"),Lr.innerHTML=zv,xu=i(),h(Yn.$$.fragment),wu=i(),wt=l("div"),h(Xa.$$.fragment),Mu=i(),Br=l("p"),Br.textContent=Qv,ku=i(),h(Pn.$$.fragment),Tu=i(),X=l("div"),h(Ya.$$.fragment),ju=i(),Wr=l("p"),Wr.innerHTML=Kv,Cu=i(),Vr=l("p"),Vr.innerHTML=e$,Iu=i(),Xr=l("p"),Xr.innerHTML=t$,Hu=i(),Yr=l("p"),Yr.innerHTML=n$,Uu=i(),h(On.$$.fragment),Ju=i(),zn=l("div"),h(Pa.$$.fragment),Au=i(),Pr=l("p"),Pr.textContent=o$,qu=i(),Qn=l("div"),h(Oa.$$.fragment),Nu=i(),Or=l("p"),Or.textContent=a$,Eu=i(),we=l("div"),h(za.$$.fragment),Ru=i(),zr=l("p"),zr.textContent=s$,Gu=i(),Qr=l("p"),Qr.textContent=i$,Du=i(),h(Kn.$$.fragment),Su=i(),eo=l("div"),h(Qa.$$.fragment),Fu=i(),Kr=l("p"),Kr.textContent=r$,Zu=i(),Me=l("div"),h(Ka.$$.fragment),Lu=i(),el=l("p"),el.textContent=l$,Bu=i(),h(to.$$.fragment),Wu=i(),h(no.$$.fragment),Vu=i(),Mt=l("div"),h(es.$$.fragment),Xu=i(),tl=l("p"),tl.textContent=c$,Yu=i(),h(oo.$$.fragment),Pu=i(),kt=l("div"),h(ts.$$.fragment),Ou=i(),nl=l("p"),nl.textContent=p$,zu=i(),h(ao.$$.fragment),Qu=i(),Tt=l("div"),h(ns.$$.fragment),Ku=i(),ol=l("p"),ol.textContent=d$,eh=i(),al=l("p"),al.innerHTML=g$,th=i(),ke=l("div"),h(os.$$.fragment),nh=i(),sl=l("p"),sl.textContent=u$,oh=i(),il=l("p"),il.innerHTML=h$,ah=i(),rl=l("p"),rl.innerHTML=m$,sh=i(),so=l("div"),h(as.$$.fragment),ih=i(),ll=l("p"),ll.textContent=f$,rh=i(),jt=l("div"),h(ss.$$.fragment),lh=i(),cl=l("p"),cl.textContent=_$,ch=i(),pl=l("p"),pl.innerHTML=b$,ph=i(),io=l("div"),h(is.$$.fragment),dh=i(),dl=l("p"),dl.textContent=v$,gh=i(),Ct=l("div"),h(rs.$$.fragment),uh=i(),gl=l("p"),gl.textContent=$$,hh=i(),ul=l("p"),ul.innerHTML=y$,mh=i(),ro=l("div"),h(ls.$$.fragment),fh=i(),hl=l("p"),hl.textContent=x$,_h=i(),Te=l("div"),h(cs.$$.fragment),bh=i(),ml=l("p"),ml.textContent=w$,vh=i(),fl=l("p"),fl.textContent=M$,$h=i(),h(lo.$$.fragment),yh=i(),It=l("div"),h(ps.$$.fragment),xh=i(),_l=l("p"),_l.textContent=k$,wh=i(),h(co.$$.fragment),Mh=i(),Ht=l("div"),h(ds.$$.fragment),kh=i(),bl=l("p"),bl.textContent=T$,Th=i(),h(po.$$.fragment),jh=i(),je=l("div"),h(gs.$$.fragment),Ch=i(),vl=l("p"),vl.textContent=j$,Ih=i(),$l=l("p"),$l.innerHTML=C$,Hh=i(),h(go.$$.fragment),Uh=i(),uo=l("div"),h(us.$$.fragment),Jh=i(),yl=l("p"),yl.textContent=I$,Ah=i(),Ce=l("div"),h(hs.$$.fragment),qh=i(),xl=l("p"),xl.textContent=H$,Nh=i(),wl=l("p"),wl.innerHTML=U$,Eh=i(),h(ho.$$.fragment),Rh=i(),mo=l("div"),h(ms.$$.fragment),Gh=i(),Ml=l("p"),Ml.textContent=J$,Dh=i(),Ut=l("div"),h(fs.$$.fragment),Sh=i(),kl=l("p"),kl.textContent=A$,Fh=i(),h(fo.$$.fragment),Zh=i(),_o=l("div"),h(_s.$$.fragment),Lh=i(),Tl=l("p"),Tl.textContent=q$,Bh=i(),ie=l("div"),h(bs.$$.fragment),Wh=i(),jl=l("p"),jl.textContent=N$,Vh=i(),Cl=l("p"),Cl.textContent=E$,Xh=i(),h(bo.$$.fragment),Yh=i(),h(vo.$$.fragment),Ph=i(),$o=l("div"),h(vs.$$.fragment),Oh=i(),Il=l("p"),Il.textContent=R$,zh=i(),Jt=l("div"),h($s.$$.fragment),Qh=i(),Hl=l("p"),Hl.textContent=G$,Kh=i(),Ul=l("p"),Ul.innerHTML=D$,em=i(),At=l("div"),h(ys.$$.fragment),tm=i(),Jl=l("p"),Jl.innerHTML=S$,nm=i(),Al=l("p"),Al.innerHTML=F$,om=i(),D=l("div"),h(xs.$$.fragment),am=i(),ql=l("p"),ql.textContent=Z$,sm=i(),Nl=l("p"),Nl.textContent=L$,im=i(),El=l("ul"),El.innerHTML=B$,rm=i(),Rl=l("p"),Rl.innerHTML=W$,lm=i(),Gl=l("ul"),Gl.innerHTML=V$,cm=i(),h(yo.$$.fragment),pm=i(),h(xo.$$.fragment),dm=i(),Ie=l("div"),h(ws.$$.fragment),gm=i(),Dl=l("p"),Dl.textContent=X$,um=i(),h(wo.$$.fragment),hm=i(),h(Mo.$$.fragment),mm=i(),He=l("div"),h(Ms.$$.fragment),fm=i(),Sl=l("p"),Sl.textContent=Y$,_m=i(),Fl=l("p"),Fl.innerHTML=P$,bm=i(),h(ko.$$.fragment),vm=i(),Ue=l("div"),h(ks.$$.fragment),$m=i(),Zl=l("p"),Zl.textContent=O$,ym=i(),h(To.$$.fragment),xm=i(),h(jo.$$.fragment),wm=i(),A=l("div"),h(Ts.$$.fragment),Mm=i(),Ll=l("p"),Ll.textContent=z$,km=i(),Bl=l("p"),Bl.textContent=Q$,Tm=i(),Wl=l("ol"),Wl.innerHTML=K$,jm=i(),Vl=l("p"),Vl.textContent=ey,Cm=i(),Xl=l("p"),Xl.textContent=ty,Im=i(),h(Co.$$.fragment),Hm=i(),Yl=l("p"),Yl.textContent=ny,Um=i(),h(Io.$$.fragment),Jm=i(),Pl=l("p"),Pl.textContent=oy,Am=i(),h(Ho.$$.fragment),qm=i(),Ol=l("p"),Ol.textContent=ay,Nm=i(),h(Uo.$$.fragment),Em=i(),qt=l("div"),h(js.$$.fragment),Rm=i(),zl=l("p"),zl.textContent=sy,Gm=i(),h(Jo.$$.fragment),Dm=i(),re=l("div"),h(Cs.$$.fragment),Sm=i(),Ql=l("p"),Ql.textContent=iy,Fm=i(),Kl=l("p"),Kl.innerHTML=ry,Zm=i(),ec=l("p"),ec.innerHTML=ly,Lm=i(),h(Ao.$$.fragment),Bm=i(),qo=l("div"),h(Is.$$.fragment),Wm=i(),tc=l("p"),tc.textContent=cy,Vm=i(),Y=l("div"),h(Hs.$$.fragment),Xm=i(),nc=l("p"),nc.textContent=py,Ym=i(),h(No.$$.fragment),Pm=$2(`python
>>> from huggingface_hub import HfApi
`),oc=l("blockquote"),oc.innerHTML=dy,Om=i(),bd=l("blockquote"),vd=l("blockquote"),Us=l("blockquote"),h(Js.$$.fragment),zm=i(),ac=l("p"),ac.textContent=gy,Qm=i(),$d=l("blockquote"),yd=l("blockquote"),Kt=l("blockquote"),h(As.$$.fragment),Km=i(),sc=l("p"),sc.textContent=uy,ef=i(),h(qs.$$.fragment),tf=i(),Je=l("div"),h(Ns.$$.fragment),nf=i(),ic=l("p"),ic.textContent=hy,of=i(),rc=l("p"),rc.textContent=my,af=i(),h(Eo.$$.fragment),sf=i(),Ro=l("div"),h(Es.$$.fragment),rf=i(),lc=l("p"),lc.textContent=fy,lf=i(),Nt=l("div"),h(Rs.$$.fragment),cf=i(),cc=l("p"),cc.textContent=_y,pf=i(),pc=l("p"),pc.innerHTML=by,df=i(),Et=l("div"),h(Gs.$$.fragment),gf=i(),dc=l("p"),dc.textContent=vy,uf=i(),h(Go.$$.fragment),hf=i(),Do=l("div"),h(Ds.$$.fragment),mf=i(),gc=l("p"),gc.textContent=$y,ff=i(),Rt=l("div"),h(Ss.$$.fragment),_f=i(),uc=l("p"),uc.textContent=yy,bf=i(),h(So.$$.fragment),vf=i(),Ae=l("div"),h(Fs.$$.fragment),$f=i(),hc=l("p"),hc.textContent=xy,yf=i(),mc=l("p"),mc.textContent=wy,xf=i(),h(Fo.$$.fragment),wf=i(),qe=l("div"),h(Zs.$$.fragment),Mf=i(),fc=l("p"),fc.textContent=My,kf=i(),_c=l("p"),_c.innerHTML=ky,Tf=i(),h(Zo.$$.fragment),jf=i(),Ne=l("div"),h(Ls.$$.fragment),Cf=i(),bc=l("p"),bc.textContent=Ty,If=i(),vc=l("p"),vc.innerHTML=jy,Hf=i(),$c=l("p"),$c.innerHTML=Cy,Uf=i(),Ee=l("div"),h(Bs.$$.fragment),Jf=i(),yc=l("p"),yc.textContent=Iy,Af=i(),xc=l("p"),xc.innerHTML=Hy,qf=i(),wc=l("p"),wc.innerHTML=Uy,Nf=i(),P=l("div"),h(Ws.$$.fragment),Ef=i(),Mc=l("p"),Mc.textContent=Jy,Rf=i(),kc=l("p"),kc.textContent=Ay,Gf=i(),h(Lo.$$.fragment),Df=i(),h(Bo.$$.fragment),Sf=i(),h(Wo.$$.fragment),Ff=i(),Re=l("div"),h(Vs.$$.fragment),Zf=i(),Tc=l("p"),Tc.textContent=qy,Lf=i(),h(Vo.$$.fragment),Bf=i(),h(Xo.$$.fragment),Wf=i(),Gt=l("div"),h(Xs.$$.fragment),Vf=i(),jc=l("p"),jc.textContent=Ny,Xf=i(),h(Yo.$$.fragment),Yf=i(),Dt=l("div"),h(Ys.$$.fragment),Pf=i(),Cc=l("p"),Cc.textContent=Ey,Of=i(),h(Po.$$.fragment),zf=i(),St=l("div"),h(Ps.$$.fragment),Qf=i(),Ic=l("p"),Ic.textContent=Ry,Kf=i(),h(Oo.$$.fragment),e_=i(),Ft=l("div"),h(Os.$$.fragment),t_=i(),Hc=l("p"),Hc.textContent=Gy,n_=i(),h(zo.$$.fragment),o_=i(),Ge=l("div"),h(zs.$$.fragment),a_=i(),Uc=l("p"),Uc.textContent=Dy,s_=i(),Jc=l("p"),Jc.innerHTML=Sy,i_=i(),Ac=l("p"),Ac.innerHTML=Fy,r_=i(),Zt=l("div"),h(Qs.$$.fragment),l_=i(),qc=l("p"),qc.textContent=Zy,c_=i(),Nc=l("p"),Nc.innerHTML=Ly,p_=i(),le=l("div"),h(Ks.$$.fragment),d_=i(),Ec=l("p"),Ec.textContent=By,g_=i(),Rc=l("p"),Rc.innerHTML=Wy,u_=i(),Gc=l("p"),Gc.innerHTML=Vy,h_=i(),h(Qo.$$.fragment),m_=i(),De=l("div"),h(ei.$$.fragment),f_=i(),Dc=l("p"),Dc.textContent=Xy,__=i(),Sc=l("p"),Sc.innerHTML=Yy,b_=i(),Fc=l("p"),Fc.innerHTML=Py,v_=i(),Se=l("div"),h(ti.$$.fragment),$_=i(),Zc=l("p"),Zc.textContent=Oy,y_=i(),Lc=l("p"),Lc.innerHTML=zy,x_=i(),h(Ko.$$.fragment),w_=i(),L=l("div"),h(ni.$$.fragment),M_=i(),Bc=l("p"),Bc.textContent=Qy,k_=i(),Wc=l("p"),Wc.innerHTML=Ky,T_=i(),Vc=l("p"),Vc.innerHTML=ex,j_=i(),Xc=l("ul"),Xc.innerHTML=tx,C_=i(),Yc=l("p"),Yc.textContent=nx,I_=i(),h(ea.$$.fragment),H_=i(),Fe=l("div"),h(oi.$$.fragment),U_=i(),Pc=l("p"),Pc.textContent=ox,J_=i(),Oc=l("p"),Oc.textContent=ax,A_=i(),h(ta.$$.fragment),q_=i(),O=l("div"),h(ai.$$.fragment),N_=i(),zc=l("p"),zc.textContent=sx,E_=i(),Qc=l("p"),Qc.textContent=ix,R_=i(),h(na.$$.fragment),G_=i(),h(oa.$$.fragment),D_=i(),h(aa.$$.fragment),S_=i(),Ze=l("div"),h(si.$$.fragment),F_=i(),Kc=l("p"),Kc.textContent=rx,Z_=i(),ep=l("p"),ep.innerHTML=lx,L_=i(),h(sa.$$.fragment),B_=i(),Lt=l("div"),h(ii.$$.fragment),W_=i(),tp=l("p"),tp.textContent=cx,V_=i(),h(ia.$$.fragment),X_=i(),ce=l("div"),h(ri.$$.fragment),Y_=i(),np=l("p"),np.textContent=px,P_=i(),op=l("p"),op.textContent=dx,O_=i(),ap=l("p"),ap.innerHTML=gx,z_=i(),h(ra.$$.fragment),Q_=i(),Le=l("div"),h(li.$$.fragment),K_=i(),sp=l("p"),sp.textContent=ux,eb=i(),ip=l("p"),ip.textContent=hx,tb=i(),rp=l("p"),rp.innerHTML=mx,nb=i(),Bt=l("div"),h(ci.$$.fragment),ob=i(),lp=l("p"),lp.textContent=fx,ab=i(),h(la.$$.fragment),sb=i(),pe=l("div"),h(pi.$$.fragment),ib=i(),cp=l("p"),cp.textContent=_x,rb=i(),h(ca.$$.fragment),lb=i(),h(pa.$$.fragment),cb=i(),h(da.$$.fragment),pb=i(),N=l("div"),h(di.$$.fragment),db=i(),pp=l("p"),pp.textContent=bx,gb=i(),dp=l("p"),dp.textContent=vx,ub=i(),gp=l("p"),gp.innerHTML=$x,hb=i(),up=l("p"),up.innerHTML=yx,mb=i(),hp=l("p"),hp.innerHTML=xx,fb=i(),mp=l("p"),mp.innerHTML=wx,_b=i(),h(ga.$$.fragment),bb=i(),h(ua.$$.fragment),vb=i(),h(ha.$$.fragment),$b=i(),h(ma.$$.fragment),yb=i(),fa=l("div"),h(gi.$$.fragment),xb=i(),fp=l("p"),fp.textContent=Mx,Jd=i(),G=l("div"),h(ui.$$.fragment),wb=i(),_p=l("p"),_p.textContent=kx,Mb=i(),bp=l("p"),bp.textContent=Tx,kb=i(),vp=l("ol"),vp.innerHTML=jx,Tb=i(),$p=l("p"),$p.innerHTML=Cx,jb=i(),h(_a.$$.fragment),Cb=i(),h(ba.$$.fragment),Ib=i(),h(va.$$.fragment),Ad=i(),h(hi.$$.fragment),qd=i(),h(mi.$$.fragment),Nd=i(),Ve=l("div"),h(fi.$$.fragment),Hb=i(),yp=l("p"),yp.textContent=Ix,Ub=i(),xp=l("p"),xp.innerHTML=Hx,Ed=i(),h(_i.$$.fragment),Rd=i(),en=l("div"),h(bi.$$.fragment),Jb=i(),wp=l("p"),wp.textContent=Ux,Gd=i(),h(vi.$$.fragment),Dd=i(),tn=l("div"),h($i.$$.fragment),Ab=i(),Mp=l("p"),Mp.textContent=Jx,Sd=i(),h(yi.$$.fragment),Fd=i(),nn=l("div"),h(xi.$$.fragment),qb=i(),kp=l("p"),kp.innerHTML=Ax,Zd=i(),h(wi.$$.fragment),Ld=i(),Xe=l("div"),h(Mi.$$.fragment),Nb=i(),Tp=l("p"),Tp.textContent=qx,Eb=i(),jp=l("p"),jp.innerHTML=Nx,Bd=i(),h(ki.$$.fragment),Wd=i(),on=l("div"),h(Ti.$$.fragment),Rb=i(),Cp=l("p"),Cp.textContent=Ex,Vd=i(),h(ji.$$.fragment),Xd=i(),an=l("div"),h(Ci.$$.fragment),Gb=i(),Ip=l("p"),Ip.textContent=Rx,Yd=i(),h(Ii.$$.fragment),Pd=i(),sn=l("div"),h(Hi.$$.fragment),Db=i(),Hp=l("p"),Hp.textContent=Gx,Od=i(),h(Ui.$$.fragment),zd=i(),Q=l("div"),h(Ji.$$.fragment),Sb=i(),Up=l("p"),Up.innerHTML=Dx,Fb=i(),Jp=l("p"),Jp.innerHTML=Sx,Zb=i(),Ap=l("ul"),Ap.innerHTML=Fx,Lb=i(),h($a.$$.fragment),Qd=i(),h(Ai.$$.fragment),Kd=i(),rn=l("div"),h(qi.$$.fragment),Bb=i(),qp=l("p"),qp.textContent=Zx,eg=i(),h(Ni.$$.fragment),tg=i(),ln=l("div"),h(Ei.$$.fragment),Wb=i(),Np=l("p"),Np.textContent=Lx,ng=i(),h(Ri.$$.fragment),og=i(),cn=l("div"),h(Gi.$$.fragment),Vb=i(),Ep=l("p"),Ep.textContent=Bx,ag=i(),h(Di.$$.fragment),sg=i(),Si=l("p"),Si.innerHTML=Wx,ig=i(),ge=l("div"),h(Fi.$$.fragment),Xb=i(),Rp=l("p"),Rp.textContent=Vx,Yb=i(),Wt=l("div"),h(Zi.$$.fragment),Pb=i(),Gp=l("p"),Gp.innerHTML=Xx,Ob=i(),h(ya.$$.fragment),zb=i(),Vt=l("div"),h(Li.$$.fragment),Qb=i(),Dp=l("p"),Dp.innerHTML=Yx,Kb=i(),Sp=l("p"),Sp.innerHTML=Px,rg=i(),pn=l("div"),h(Bi.$$.fragment),ev=i(),Fp=l("p"),Fp.textContent=Ox,lg=i(),K=l("div"),h(Wi.$$.fragment),tv=i(),Zp=l("p"),Zp.textContent=zx,nv=i(),Lp=l("p"),Lp.textContent=Qx,ov=i(),Bp=l("ul"),Bp.innerHTML=Kx,av=i(),Wp=l("p"),Wp.innerHTML=e2,cg=i(),h(Vi.$$.fragment),pg=i(),S=l("div"),h(Xi.$$.fragment),sv=i(),Vp=l("p"),Vp.textContent=t2,iv=i(),Xp=l("p"),Xp.innerHTML=n2,rv=i(),h(xa.$$.fragment),lv=i(),Be=l("div"),h(Yi.$$.fragment),cv=i(),Yp=l("p"),Yp.textContent=o2,pv=i(),h(wa.$$.fragment),dv=i(),Pp=l("p"),Pp.innerHTML=a2,gv=i(),Xt=l("div"),h(Pi.$$.fragment),uv=i(),Op=l("p"),Op.textContent=s2,hv=i(),zp=l("p"),zp.textContent=i2,mv=i(),Yt=l("div"),h(Oi.$$.fragment),fv=i(),Qp=l("p"),Qp.innerHTML=r2,_v=i(),Kp=l("p"),Kp.innerHTML=l2,dg=i(),h(zi.$$.fragment),gg=i(),Qi=l("p"),Qi.innerHTML=c2,ug=i(),Ki=l("p"),Ki.innerHTML=p2,hg=i(),ue=l("div"),h(er.$$.fragment),bv=i(),Ma=l("div"),h(tr.$$.fragment),vv=i(),ed=l("p"),ed.textContent=d2,$v=i(),We=l("div"),h(nr.$$.fragment),yv=i(),td=l("p"),td.textContent=g2,xv=i(),nd=l("p"),nd.innerHTML=u2,wv=i(),od=l("p"),od.innerHTML=h2,Mv=i(),Pt=l("div"),h(or.$$.fragment),kv=i(),ad=l("p"),ad.textContent=m2,Tv=i(),sd=l("p"),sd.innerHTML=f2,mg=i(),h(ar.$$.fragment),fg=i(),sr=l("p"),sr.innerHTML=_2,_g=i(),h(ir.$$.fragment),bg=i(),Ye=l("div"),h(rr.$$.fragment),jv=i(),id=l("p"),id.textContent=b2,Cv=i(),h(ka.$$.fragment),vg=i(),h(lr.$$.fragment),$g=i(),Pe=l("div"),h(cr.$$.fragment),Iv=i(),rd=l("p"),rd.textContent=v2,Hv=i(),h(Ta.$$.fragment),yg=i(),xd=l("p"),this.h()},l(e){const u=T2("svelte-u9bgzb",document.head);n=c(u,"META",{name:!0,content:!0}),u.forEach(p),g=r(e),s=c(e,"P",{}),T(s).forEach(p),a=r(e),m($.$$.fragment,e),t=r(e),y=c(e,"P",{"data-svelte-h":!0}),d(y)!=="svelte-vbqehn"&&(y.innerHTML=Ua),jd=r(e),Ja=c(e,"P",{"data-svelte-h":!0}),d(Ja)!=="svelte-ii6hxn"&&(Ja.innerHTML=Uv),Cd=r(e),Aa=c(e,"P",{"data-svelte-h":!0}),d(Aa)!=="svelte-1pntla4"&&(Aa.innerHTML=Jv),Id=r(e),m(qa.$$.fragment,e),Hd=r(e),m(Na.$$.fragment,e),Ud=r(e),M=c(e,"DIV",{class:!0});var k=T(M);m(Ea.$$.fragment,k),Ng=r(k),ve=c(k,"DIV",{class:!0});var Oe=T(ve);m(Ra.$$.fragment,Oe),Eg=r(Oe),kr=c(Oe,"P",{"data-svelte-h":!0}),d(kr)!=="svelte-pl69v6"&&(kr.textContent=Av),Rg=r(Oe),Tr=c(Oe,"P",{"data-svelte-h":!0}),d(Tr)!=="svelte-164ppjv"&&(Tr.innerHTML=qv),Gg=r(Oe),m(Nn.$$.fragment,Oe),Oe.forEach(p),Dg=r(k),yt=c(k,"DIV",{class:!0});var dn=T(yt);m(Ga.$$.fragment,dn),Sg=r(dn),jr=c(dn,"P",{"data-svelte-h":!0}),d(jr)!=="svelte-p5bez4"&&(jr.textContent=Nv),Fg=r(dn),Cr=c(dn,"P",{"data-svelte-h":!0}),d(Cr)!=="svelte-eb77qn"&&(Cr.innerHTML=Ev),dn.forEach(p),Zg=r(k),xt=c(k,"DIV",{class:!0});var gn=T(xt);m(Da.$$.fragment,gn),Lg=r(gn),Ir=c(gn,"P",{"data-svelte-h":!0}),d(Ir)!=="svelte-1ck64b0"&&(Ir.textContent=Rv),Bg=r(gn),Hr=c(gn,"P",{"data-svelte-h":!0}),d(Hr)!=="svelte-xt39ay"&&(Hr.innerHTML=Gv),gn.forEach(p),Wg=r(k),$e=c(k,"DIV",{class:!0});var ze=T($e);m(Sa.$$.fragment,ze),Vg=r(ze),Ur=c(ze,"P",{"data-svelte-h":!0}),d(Ur)!=="svelte-16mfbn3"&&(Ur.textContent=Dv),Xg=r(ze),m(En.$$.fragment,ze),Yg=r(ze),m(Rn.$$.fragment,ze),ze.forEach(p),Pg=r(k),ye=c(k,"DIV",{class:!0});var Qe=T(ye);m(Fa.$$.fragment,Qe),Og=r(Qe),Jr=c(Qe,"P",{"data-svelte-h":!0}),d(Jr)!=="svelte-1xtlk3i"&&(Jr.textContent=Sv),zg=r(Qe),m(Gn.$$.fragment,Qe),Qg=r(Qe),m(Dn.$$.fragment,Qe),Qe.forEach(p),Kg=r(k),Sn=c(k,"DIV",{class:!0});var pr=T(Sn);m(Za.$$.fragment,pr),eu=r(pr),Ar=c(pr,"P",{"data-svelte-h":!0}),d(Ar)!=="svelte-q41614"&&(Ar.innerHTML=Fv),pr.forEach(p),tu=r(k),xe=c(k,"DIV",{class:!0});var Ke=T(xe);m(La.$$.fragment,Ke),nu=r(Ke),qr=c(Ke,"P",{"data-svelte-h":!0}),d(qr)!=="svelte-8lce12"&&(qr.textContent=Zv),ou=r(Ke),Nr=c(Ke,"P",{"data-svelte-h":!0}),d(Nr)!=="svelte-164ppjv"&&(Nr.innerHTML=Lv),au=r(Ke),m(Fn.$$.fragment,Ke),Ke.forEach(p),su=r(k),se=c(k,"DIV",{class:!0});var he=T(se);m(Ba.$$.fragment,he),iu=r(he),Er=c(he,"P",{"data-svelte-h":!0}),d(Er)!=="svelte-pth6mb"&&(Er.textContent=Bv),ru=r(he),m(Zn.$$.fragment,he),lu=r(he),m(Ln.$$.fragment,he),cu=r(he),m(Bn.$$.fragment,he),he.forEach(p),pu=r(k),Z=c(k,"DIV",{class:!0});var B=T(Z);m(Wa.$$.fragment,B),du=r(B),Rr=c(B,"P",{"data-svelte-h":!0}),d(Rr)!=="svelte-rmrpcj"&&(Rr.textContent=Wv),gu=r(B),Gr=c(B,"P",{"data-svelte-h":!0}),d(Gr)!=="svelte-12u67q9"&&(Gr.innerHTML=Vv),uu=r(B),Dr=c(B,"P",{"data-svelte-h":!0}),d(Dr)!=="svelte-1c86n24"&&(Dr.textContent=Xv),hu=r(B),m(Wn.$$.fragment,B),mu=r(B),m(Vn.$$.fragment,B),fu=r(B),m(Xn.$$.fragment,B),B.forEach(p),_u=r(k),V=c(k,"DIV",{class:!0});var ee=T(V);m(Va.$$.fragment,ee),bu=r(ee),Sr=c(ee,"P",{"data-svelte-h":!0}),d(Sr)!=="svelte-1g87pq3"&&(Sr.textContent=Yv),vu=r(ee),Fr=c(ee,"P",{"data-svelte-h":!0}),d(Fr)!=="svelte-1gunwzz"&&(Fr.innerHTML=Pv),$u=r(ee),Zr=c(ee,"P",{"data-svelte-h":!0}),d(Zr)!=="svelte-r5v8l0"&&(Zr.innerHTML=Ov),yu=r(ee),Lr=c(ee,"P",{"data-svelte-h":!0}),d(Lr)!=="svelte-1on7ni7"&&(Lr.innerHTML=zv),xu=r(ee),m(Yn.$$.fragment,ee),ee.forEach(p),wu=r(k),wt=c(k,"DIV",{class:!0});var un=T(wt);m(Xa.$$.fragment,un),Mu=r(un),Br=c(un,"P",{"data-svelte-h":!0}),d(Br)!=="svelte-aoy5wl"&&(Br.textContent=Qv),ku=r(un),m(Pn.$$.fragment,un),un.forEach(p),Tu=r(k),X=c(k,"DIV",{class:!0});var te=T(X);m(Ya.$$.fragment,te),ju=r(te),Wr=c(te,"P",{"data-svelte-h":!0}),d(Wr)!=="svelte-1hp36yr"&&(Wr.innerHTML=Kv),Cu=r(te),Vr=c(te,"P",{"data-svelte-h":!0}),d(Vr)!=="svelte-r57fdn"&&(Vr.innerHTML=e$),Iu=r(te),Xr=c(te,"P",{"data-svelte-h":!0}),d(Xr)!=="svelte-13rslc6"&&(Xr.innerHTML=t$),Hu=r(te),Yr=c(te,"P",{"data-svelte-h":!0}),d(Yr)!=="svelte-1on7ni7"&&(Yr.innerHTML=n$),Uu=r(te),m(On.$$.fragment,te),te.forEach(p),Ju=r(k),zn=c(k,"DIV",{class:!0});var dr=T(zn);m(Pa.$$.fragment,dr),Au=r(dr),Pr=c(dr,"P",{"data-svelte-h":!0}),d(Pr)!=="svelte-12go647"&&(Pr.textContent=o$),dr.forEach(p),qu=r(k),Qn=c(k,"DIV",{class:!0});var gr=T(Qn);m(Oa.$$.fragment,gr),Nu=r(gr),Or=c(gr,"P",{"data-svelte-h":!0}),d(Or)!=="svelte-14fvvbg"&&(Or.textContent=a$),gr.forEach(p),Eu=r(k),we=c(k,"DIV",{class:!0});var et=T(we);m(za.$$.fragment,et),Ru=r(et),zr=c(et,"P",{"data-svelte-h":!0}),d(zr)!=="svelte-15pbnj8"&&(zr.textContent=s$),Gu=r(et),Qr=c(et,"P",{"data-svelte-h":!0}),d(Qr)!=="svelte-1fg5f6l"&&(Qr.textContent=i$),Du=r(et),m(Kn.$$.fragment,et),et.forEach(p),Su=r(k),eo=c(k,"DIV",{class:!0});var ur=T(eo);m(Qa.$$.fragment,ur),Fu=r(ur),Kr=c(ur,"P",{"data-svelte-h":!0}),d(Kr)!=="svelte-1n7quvg"&&(Kr.textContent=r$),ur.forEach(p),Zu=r(k),Me=c(k,"DIV",{class:!0});var tt=T(Me);m(Ka.$$.fragment,tt),Lu=r(tt),el=c(tt,"P",{"data-svelte-h":!0}),d(el)!=="svelte-1s6a009"&&(el.textContent=l$),Bu=r(tt),m(to.$$.fragment,tt),Wu=r(tt),m(no.$$.fragment,tt),tt.forEach(p),Vu=r(k),Mt=c(k,"DIV",{class:!0});var hn=T(Mt);m(es.$$.fragment,hn),Xu=r(hn),tl=c(hn,"P",{"data-svelte-h":!0}),d(tl)!=="svelte-gmiayq"&&(tl.textContent=c$),Yu=r(hn),m(oo.$$.fragment,hn),hn.forEach(p),Pu=r(k),kt=c(k,"DIV",{class:!0});var mn=T(kt);m(ts.$$.fragment,mn),Ou=r(mn),nl=c(mn,"P",{"data-svelte-h":!0}),d(nl)!=="svelte-l8j8qy"&&(nl.textContent=p$),zu=r(mn),m(ao.$$.fragment,mn),mn.forEach(p),Qu=r(k),Tt=c(k,"DIV",{class:!0});var fn=T(Tt);m(ns.$$.fragment,fn),Ku=r(fn),ol=c(fn,"P",{"data-svelte-h":!0}),d(ol)!=="svelte-1gp9ysc"&&(ol.textContent=d$),eh=r(fn),al=c(fn,"P",{"data-svelte-h":!0}),d(al)!=="svelte-1seiqi6"&&(al.innerHTML=g$),fn.forEach(p),th=r(k),ke=c(k,"DIV",{class:!0});var nt=T(ke);m(os.$$.fragment,nt),nh=r(nt),sl=c(nt,"P",{"data-svelte-h":!0}),d(sl)!=="svelte-xvin3w"&&(sl.textContent=u$),oh=r(nt),il=c(nt,"P",{"data-svelte-h":!0}),d(il)!=="svelte-1vd9l2b"&&(il.innerHTML=h$),ah=r(nt),rl=c(nt,"P",{"data-svelte-h":!0}),d(rl)!=="svelte-wf2uv4"&&(rl.innerHTML=m$),nt.forEach(p),sh=r(k),so=c(k,"DIV",{class:!0});var hr=T(so);m(as.$$.fragment,hr),ih=r(hr),ll=c(hr,"P",{"data-svelte-h":!0}),d(ll)!=="svelte-17rezgl"&&(ll.textContent=f$),hr.forEach(p),rh=r(k),jt=c(k,"DIV",{class:!0});var _n=T(jt);m(ss.$$.fragment,_n),lh=r(_n),cl=c(_n,"P",{"data-svelte-h":!0}),d(cl)!=="svelte-1lh7ib8"&&(cl.textContent=_$),ch=r(_n),pl=c(_n,"P",{"data-svelte-h":!0}),d(pl)!=="svelte-eb77qn"&&(pl.innerHTML=b$),_n.forEach(p),ph=r(k),io=c(k,"DIV",{class:!0});var mr=T(io);m(is.$$.fragment,mr),dh=r(mr),dl=c(mr,"P",{"data-svelte-h":!0}),d(dl)!=="svelte-2wnalp"&&(dl.textContent=v$),mr.forEach(p),gh=r(k),Ct=c(k,"DIV",{class:!0});var bn=T(Ct);m(rs.$$.fragment,bn),uh=r(bn),gl=c(bn,"P",{"data-svelte-h":!0}),d(gl)!=="svelte-idifvk"&&(gl.textContent=$$),hh=r(bn),ul=c(bn,"P",{"data-svelte-h":!0}),d(ul)!=="svelte-xt39ay"&&(ul.innerHTML=y$),bn.forEach(p),mh=r(k),ro=c(k,"DIV",{class:!0});var fr=T(ro);m(ls.$$.fragment,fr),fh=r(fr),hl=c(fr,"P",{"data-svelte-h":!0}),d(hl)!=="svelte-1k595hs"&&(hl.textContent=x$),fr.forEach(p),_h=r(k),Te=c(k,"DIV",{class:!0});var ot=T(Te);m(cs.$$.fragment,ot),bh=r(ot),ml=c(ot,"P",{"data-svelte-h":!0}),d(ml)!=="svelte-106oizm"&&(ml.textContent=w$),vh=r(ot),fl=c(ot,"P",{"data-svelte-h":!0}),d(fl)!=="svelte-1tfv4hv"&&(fl.textContent=M$),$h=r(ot),m(lo.$$.fragment,ot),ot.forEach(p),yh=r(k),It=c(k,"DIV",{class:!0});var vn=T(It);m(ps.$$.fragment,vn),xh=r(vn),_l=c(vn,"P",{"data-svelte-h":!0}),d(_l)!=="svelte-13117mw"&&(_l.textContent=k$),wh=r(vn),m(co.$$.fragment,vn),vn.forEach(p),Mh=r(k),Ht=c(k,"DIV",{class:!0});var $n=T(Ht);m(ds.$$.fragment,$n),kh=r($n),bl=c($n,"P",{"data-svelte-h":!0}),d(bl)!=="svelte-sivey2"&&(bl.textContent=T$),Th=r($n),m(po.$$.fragment,$n),$n.forEach(p),jh=r(k),je=c(k,"DIV",{class:!0});var at=T(je);m(gs.$$.fragment,at),Ch=r(at),vl=c(at,"P",{"data-svelte-h":!0}),d(vl)!=="svelte-1niezvm"&&(vl.textContent=j$),Ih=r(at),$l=c(at,"P",{"data-svelte-h":!0}),d($l)!=="svelte-164ppjv"&&($l.innerHTML=C$),Hh=r(at),m(go.$$.fragment,at),at.forEach(p),Uh=r(k),uo=c(k,"DIV",{class:!0});var _r=T(uo);m(us.$$.fragment,_r),Jh=r(_r),yl=c(_r,"P",{"data-svelte-h":!0}),d(yl)!=="svelte-1o179eo"&&(yl.textContent=I$),_r.forEach(p),Ah=r(k),Ce=c(k,"DIV",{class:!0});var st=T(Ce);m(hs.$$.fragment,st),qh=r(st),xl=c(st,"P",{"data-svelte-h":!0}),d(xl)!=="svelte-1av5ht1"&&(xl.textContent=H$),Nh=r(st),wl=c(st,"P",{"data-svelte-h":!0}),d(wl)!=="svelte-1on7ni7"&&(wl.innerHTML=U$),Eh=r(st),m(ho.$$.fragment,st),st.forEach(p),Rh=r(k),mo=c(k,"DIV",{class:!0});var br=T(mo);m(ms.$$.fragment,br),Gh=r(br),Ml=c(br,"P",{"data-svelte-h":!0}),d(Ml)!=="svelte-1a5sg0y"&&(Ml.textContent=J$),br.forEach(p),Dh=r(k),Ut=c(k,"DIV",{class:!0});var yn=T(Ut);m(fs.$$.fragment,yn),Sh=r(yn),kl=c(yn,"P",{"data-svelte-h":!0}),d(kl)!=="svelte-oj23bg"&&(kl.textContent=A$),Fh=r(yn),m(fo.$$.fragment,yn),yn.forEach(p),Zh=r(k),_o=c(k,"DIV",{class:!0});var vr=T(_o);m(_s.$$.fragment,vr),Lh=r(vr),Tl=c(vr,"P",{"data-svelte-h":!0}),d(Tl)!=="svelte-d99h9l"&&(Tl.textContent=q$),vr.forEach(p),Bh=r(k),ie=c(k,"DIV",{class:!0});var me=T(ie);m(bs.$$.fragment,me),Wh=r(me),jl=c(me,"P",{"data-svelte-h":!0}),d(jl)!=="svelte-1ipows8"&&(jl.textContent=N$),Vh=r(me),Cl=c(me,"P",{"data-svelte-h":!0}),d(Cl)!=="svelte-11lpom8"&&(Cl.textContent=E$),Xh=r(me),m(bo.$$.fragment,me),Yh=r(me),m(vo.$$.fragment,me),me.forEach(p),Ph=r(k),$o=c(k,"DIV",{class:!0});var $r=T($o);m(vs.$$.fragment,$r),Oh=r($r),Il=c($r,"P",{"data-svelte-h":!0}),d(Il)!=="svelte-130dnbj"&&(Il.textContent=R$),$r.forEach(p),zh=r(k),Jt=c(k,"DIV",{class:!0});var xn=T(Jt);m($s.$$.fragment,xn),Qh=r(xn),Hl=c(xn,"P",{"data-svelte-h":!0}),d(Hl)!=="svelte-20b1wq"&&(Hl.textContent=G$),Kh=r(xn),Ul=c(xn,"P",{"data-svelte-h":!0}),d(Ul)!=="svelte-xt39ay"&&(Ul.innerHTML=D$),xn.forEach(p),em=r(k),At=c(k,"DIV",{class:!0});var wn=T(At);m(ys.$$.fragment,wn),tm=r(wn),Jl=c(wn,"P",{"data-svelte-h":!0}),d(Jl)!=="svelte-1vu5uho"&&(Jl.innerHTML=S$),nm=r(wn),Al=c(wn,"P",{"data-svelte-h":!0}),d(Al)!=="svelte-65kopl"&&(Al.innerHTML=F$),wn.forEach(p),om=r(k),D=c(k,"DIV",{class:!0});var F=T(D);m(xs.$$.fragment,F),am=r(F),ql=c(F,"P",{"data-svelte-h":!0}),d(ql)!=="svelte-gsbehr"&&(ql.textContent=Z$),sm=r(F),Nl=c(F,"P",{"data-svelte-h":!0}),d(Nl)!=="svelte-1rkm1l0"&&(Nl.textContent=L$),im=r(F),El=c(F,"UL",{"data-svelte-h":!0}),d(El)!=="svelte-1t8qnom"&&(El.innerHTML=B$),rm=r(F),Rl=c(F,"P",{"data-svelte-h":!0}),d(Rl)!=="svelte-ph9tk9"&&(Rl.innerHTML=W$),lm=r(F),Gl=c(F,"UL",{"data-svelte-h":!0}),d(Gl)!=="svelte-16eulop"&&(Gl.innerHTML=V$),cm=r(F),m(yo.$$.fragment,F),pm=r(F),m(xo.$$.fragment,F),F.forEach(p),dm=r(k),Ie=c(k,"DIV",{class:!0});var it=T(Ie);m(ws.$$.fragment,it),gm=r(it),Dl=c(it,"P",{"data-svelte-h":!0}),d(Dl)!=="svelte-1ia1m9g"&&(Dl.textContent=X$),um=r(it),m(wo.$$.fragment,it),hm=r(it),m(Mo.$$.fragment,it),it.forEach(p),mm=r(k),He=c(k,"DIV",{class:!0});var rt=T(He);m(Ms.$$.fragment,rt),fm=r(rt),Sl=c(rt,"P",{"data-svelte-h":!0}),d(Sl)!=="svelte-s9iia3"&&(Sl.textContent=Y$),_m=r(rt),Fl=c(rt,"P",{"data-svelte-h":!0}),d(Fl)!=="svelte-l2qemr"&&(Fl.innerHTML=P$),bm=r(rt),m(ko.$$.fragment,rt),rt.forEach(p),vm=r(k),Ue=c(k,"DIV",{class:!0});var lt=T(Ue);m(ks.$$.fragment,lt),$m=r(lt),Zl=c(lt,"P",{"data-svelte-h":!0}),d(Zl)!=="svelte-f61qi5"&&(Zl.textContent=O$),ym=r(lt),m(To.$$.fragment,lt),xm=r(lt),m(jo.$$.fragment,lt),lt.forEach(p),wm=r(k),A=c(k,"DIV",{class:!0});var q=T(A);m(Ts.$$.fragment,q),Mm=r(q),Ll=c(q,"P",{"data-svelte-h":!0}),d(Ll)!=="svelte-1coofhx"&&(Ll.textContent=z$),km=r(q),Bl=c(q,"P",{"data-svelte-h":!0}),d(Bl)!=="svelte-o80s4k"&&(Bl.textContent=Q$),Tm=r(q),Wl=c(q,"OL",{"data-svelte-h":!0}),d(Wl)!=="svelte-isam2w"&&(Wl.innerHTML=K$),jm=r(q),Vl=c(q,"P",{"data-svelte-h":!0}),d(Vl)!=="svelte-kvfsh7"&&(Vl.textContent=ey),Cm=r(q),Xl=c(q,"P",{"data-svelte-h":!0}),d(Xl)!=="svelte-1lj0qik"&&(Xl.textContent=ty),Im=r(q),m(Co.$$.fragment,q),Hm=r(q),Yl=c(q,"P",{"data-svelte-h":!0}),d(Yl)!=="svelte-1weh6a3"&&(Yl.textContent=ny),Um=r(q),m(Io.$$.fragment,q),Jm=r(q),Pl=c(q,"P",{"data-svelte-h":!0}),d(Pl)!=="svelte-8it0p3"&&(Pl.textContent=oy),Am=r(q),m(Ho.$$.fragment,q),qm=r(q),Ol=c(q,"P",{"data-svelte-h":!0}),d(Ol)!=="svelte-toc2c"&&(Ol.textContent=ay),Nm=r(q),m(Uo.$$.fragment,q),q.forEach(p),Em=r(k),qt=c(k,"DIV",{class:!0});var Mn=T(qt);m(js.$$.fragment,Mn),Rm=r(Mn),zl=c(Mn,"P",{"data-svelte-h":!0}),d(zl)!=="svelte-omx1g3"&&(zl.textContent=sy),Gm=r(Mn),m(Jo.$$.fragment,Mn),Mn.forEach(p),Dm=r(k),re=c(k,"DIV",{class:!0});var fe=T(re);m(Cs.$$.fragment,fe),Sm=r(fe),Ql=c(fe,"P",{"data-svelte-h":!0}),d(Ql)!=="svelte-lufmym"&&(Ql.textContent=iy),Fm=r(fe),Kl=c(fe,"P",{"data-svelte-h":!0}),d(Kl)!=="svelte-517n25"&&(Kl.innerHTML=ry),Zm=r(fe),ec=c(fe,"P",{"data-svelte-h":!0}),d(ec)!=="svelte-qhkeo9"&&(ec.innerHTML=ly),Lm=r(fe),m(Ao.$$.fragment,fe),fe.forEach(p),Bm=r(k),qo=c(k,"DIV",{class:!0});var yr=T(qo);m(Is.$$.fragment,yr),Wm=r(yr),tc=c(yr,"P",{"data-svelte-h":!0}),d(tc)!=="svelte-1cgcdt7"&&(tc.textContent=cy),yr.forEach(p),Vm=r(k),Y=c(k,"DIV",{class:!0});var ne=T(Y);m(Hs.$$.fragment,ne),Xm=r(ne),nc=c(ne,"P",{"data-svelte-h":!0}),d(nc)!=="svelte-7xr8du"&&(nc.textContent=py),Ym=r(ne),m(No.$$.fragment,ne),Pm=y2(ne,`python
>>> from huggingface_hub import HfApi
`),oc=c(ne,"BLOCKQUOTE",{"data-svelte-h":!0}),d(oc)!=="svelte-hmz92v"&&(oc.innerHTML=dy),Om=r(ne),bd=c(ne,"BLOCKQUOTE",{});var wd=T(bd);vd=c(wd,"BLOCKQUOTE",{});var Md=T(vd);Us=c(Md,"BLOCKQUOTE",{});var xr=T(Us);m(Js.$$.fragment,xr),zm=r(xr),ac=c(xr,"P",{"data-svelte-h":!0}),d(ac)!=="svelte-fjcfu9"&&(ac.textContent=gy),xr.forEach(p),Md.forEach(p),wd.forEach(p),Qm=r(ne),$d=c(ne,"BLOCKQUOTE",{});var kd=T($d);yd=c(kd,"BLOCKQUOTE",{});var Td=T(yd);Kt=c(Td,"BLOCKQUOTE",{});var kn=T(Kt);m(As.$$.fragment,kn),Km=r(kn),sc=c(kn,"P",{"data-svelte-h":!0}),d(sc)!=="svelte-pbj1ob"&&(sc.textContent=uy),ef=r(kn),m(qs.$$.fragment,kn),kn.forEach(p),Td.forEach(p),kd.forEach(p),ne.forEach(p),tf=r(k),Je=c(k,"DIV",{class:!0});var ct=T(Je);m(Ns.$$.fragment,ct),nf=r(ct),ic=c(ct,"P",{"data-svelte-h":!0}),d(ic)!=="svelte-1vpgi7z"&&(ic.textContent=hy),of=r(ct),rc=c(ct,"P",{"data-svelte-h":!0}),d(rc)!=="svelte-11ohrqa"&&(rc.textContent=my),af=r(ct),m(Eo.$$.fragment,ct),ct.forEach(p),sf=r(k),Ro=c(k,"DIV",{class:!0});var wr=T(Ro);m(Es.$$.fragment,wr),rf=r(wr),lc=c(wr,"P",{"data-svelte-h":!0}),d(lc)!=="svelte-wnw53w"&&(lc.textContent=fy),wr.forEach(p),lf=r(k),Nt=c(k,"DIV",{class:!0});var Tn=T(Nt);m(Rs.$$.fragment,Tn),cf=r(Tn),cc=c(Tn,"P",{"data-svelte-h":!0}),d(cc)!=="svelte-b4yhj"&&(cc.textContent=_y),pf=r(Tn),pc=c(Tn,"P",{"data-svelte-h":!0}),d(pc)!=="svelte-1expdup"&&(pc.innerHTML=by),Tn.forEach(p),df=r(k),Et=c(k,"DIV",{class:!0});var jn=T(Et);m(Gs.$$.fragment,jn),gf=r(jn),dc=c(jn,"P",{"data-svelte-h":!0}),d(dc)!=="svelte-12l2ojn"&&(dc.textContent=vy),uf=r(jn),m(Go.$$.fragment,jn),jn.forEach(p),hf=r(k),Do=c(k,"DIV",{class:!0});var Mr=T(Do);m(Ds.$$.fragment,Mr),mf=r(Mr),gc=c(Mr,"P",{"data-svelte-h":!0}),d(gc)!=="svelte-uowooj"&&(gc.textContent=$y),Mr.forEach(p),ff=r(k),Rt=c(k,"DIV",{class:!0});var Cn=T(Rt);m(Ss.$$.fragment,Cn),_f=r(Cn),uc=c(Cn,"P",{"data-svelte-h":!0}),d(uc)!=="svelte-tnvivq"&&(uc.textContent=yy),bf=r(Cn),m(So.$$.fragment,Cn),Cn.forEach(p),vf=r(k),Ae=c(k,"DIV",{class:!0});var pt=T(Ae);m(Fs.$$.fragment,pt),$f=r(pt),hc=c(pt,"P",{"data-svelte-h":!0}),d(hc)!=="svelte-1qa90id"&&(hc.textContent=xy),yf=r(pt),mc=c(pt,"P",{"data-svelte-h":!0}),d(mc)!=="svelte-1knrefm"&&(mc.textContent=wy),xf=r(pt),m(Fo.$$.fragment,pt),pt.forEach(p),wf=r(k),qe=c(k,"DIV",{class:!0});var dt=T(qe);m(Zs.$$.fragment,dt),Mf=r(dt),fc=c(dt,"P",{"data-svelte-h":!0}),d(fc)!=="svelte-3q13qo"&&(fc.textContent=My),kf=r(dt),_c=c(dt,"P",{"data-svelte-h":!0}),d(_c)!=="svelte-1p5ibr4"&&(_c.innerHTML=ky),Tf=r(dt),m(Zo.$$.fragment,dt),dt.forEach(p),jf=r(k),Ne=c(k,"DIV",{class:!0});var gt=T(Ne);m(Ls.$$.fragment,gt),Cf=r(gt),bc=c(gt,"P",{"data-svelte-h":!0}),d(bc)!=="svelte-16tls2x"&&(bc.textContent=Ty),If=r(gt),vc=c(gt,"P",{"data-svelte-h":!0}),d(vc)!=="svelte-n0cprg"&&(vc.innerHTML=jy),Hf=r(gt),$c=c(gt,"P",{"data-svelte-h":!0}),d($c)!=="svelte-mf5z8c"&&($c.innerHTML=Cy),gt.forEach(p),Uf=r(k),Ee=c(k,"DIV",{class:!0});var ut=T(Ee);m(Bs.$$.fragment,ut),Jf=r(ut),yc=c(ut,"P",{"data-svelte-h":!0}),d(yc)!=="svelte-keb9bv"&&(yc.textContent=Iy),Af=r(ut),xc=c(ut,"P",{"data-svelte-h":!0}),d(xc)!=="svelte-2lslon"&&(xc.innerHTML=Hy),qf=r(ut),wc=c(ut,"P",{"data-svelte-h":!0}),d(wc)!=="svelte-12do56u"&&(wc.innerHTML=Uy),ut.forEach(p),Nf=r(k),P=c(k,"DIV",{class:!0});var oe=T(P);m(Ws.$$.fragment,oe),Ef=r(oe),Mc=c(oe,"P",{"data-svelte-h":!0}),d(Mc)!=="svelte-13c8xg2"&&(Mc.textContent=Jy),Rf=r(oe),kc=c(oe,"P",{"data-svelte-h":!0}),d(kc)!=="svelte-5htwml"&&(kc.textContent=Ay),Gf=r(oe),m(Lo.$$.fragment,oe),Df=r(oe),m(Bo.$$.fragment,oe),Sf=r(oe),m(Wo.$$.fragment,oe),oe.forEach(p),Ff=r(k),Re=c(k,"DIV",{class:!0});var ht=T(Re);m(Vs.$$.fragment,ht),Zf=r(ht),Tc=c(ht,"P",{"data-svelte-h":!0}),d(Tc)!=="svelte-vjmct2"&&(Tc.textContent=qy),Lf=r(ht),m(Vo.$$.fragment,ht),Bf=r(ht),m(Xo.$$.fragment,ht),ht.forEach(p),Wf=r(k),Gt=c(k,"DIV",{class:!0});var In=T(Gt);m(Xs.$$.fragment,In),Vf=r(In),jc=c(In,"P",{"data-svelte-h":!0}),d(jc)!=="svelte-1h0ufuc"&&(jc.textContent=Ny),Xf=r(In),m(Yo.$$.fragment,In),In.forEach(p),Yf=r(k),Dt=c(k,"DIV",{class:!0});var Hn=T(Dt);m(Ys.$$.fragment,Hn),Pf=r(Hn),Cc=c(Hn,"P",{"data-svelte-h":!0}),d(Cc)!=="svelte-1my46uo"&&(Cc.textContent=Ey),Of=r(Hn),m(Po.$$.fragment,Hn),Hn.forEach(p),zf=r(k),St=c(k,"DIV",{class:!0});var Un=T(St);m(Ps.$$.fragment,Un),Qf=r(Un),Ic=c(Un,"P",{"data-svelte-h":!0}),d(Ic)!=="svelte-5pcxuz"&&(Ic.textContent=Ry),Kf=r(Un),m(Oo.$$.fragment,Un),Un.forEach(p),e_=r(k),Ft=c(k,"DIV",{class:!0});var Jn=T(Ft);m(Os.$$.fragment,Jn),t_=r(Jn),Hc=c(Jn,"P",{"data-svelte-h":!0}),d(Hc)!=="svelte-10aqzwl"&&(Hc.textContent=Gy),n_=r(Jn),m(zo.$$.fragment,Jn),Jn.forEach(p),o_=r(k),Ge=c(k,"DIV",{class:!0});var mt=T(Ge);m(zs.$$.fragment,mt),a_=r(mt),Uc=c(mt,"P",{"data-svelte-h":!0}),d(Uc)!=="svelte-38gi4y"&&(Uc.textContent=Dy),s_=r(mt),Jc=c(mt,"P",{"data-svelte-h":!0}),d(Jc)!=="svelte-65s7rh"&&(Jc.innerHTML=Sy),i_=r(mt),Ac=c(mt,"P",{"data-svelte-h":!0}),d(Ac)!=="svelte-12do56u"&&(Ac.innerHTML=Fy),mt.forEach(p),r_=r(k),Zt=c(k,"DIV",{class:!0});var An=T(Zt);m(Qs.$$.fragment,An),l_=r(An),qc=c(An,"P",{"data-svelte-h":!0}),d(qc)!=="svelte-o2dz8s"&&(qc.textContent=Zy),c_=r(An),Nc=c(An,"P",{"data-svelte-h":!0}),d(Nc)!=="svelte-198t660"&&(Nc.innerHTML=Ly),An.forEach(p),p_=r(k),le=c(k,"DIV",{class:!0});var _e=T(le);m(Ks.$$.fragment,_e),d_=r(_e),Ec=c(_e,"P",{"data-svelte-h":!0}),d(Ec)!=="svelte-i4rj9b"&&(Ec.textContent=By),g_=r(_e),Rc=c(_e,"P",{"data-svelte-h":!0}),d(Rc)!=="svelte-15iw2gd"&&(Rc.innerHTML=Wy),u_=r(_e),Gc=c(_e,"P",{"data-svelte-h":!0}),d(Gc)!=="svelte-8s7qco"&&(Gc.innerHTML=Vy),h_=r(_e),m(Qo.$$.fragment,_e),_e.forEach(p),m_=r(k),De=c(k,"DIV",{class:!0});var ft=T(De);m(ei.$$.fragment,ft),f_=r(ft),Dc=c(ft,"P",{"data-svelte-h":!0}),d(Dc)!=="svelte-6vx93v"&&(Dc.textContent=Xy),__=r(ft),Sc=c(ft,"P",{"data-svelte-h":!0}),d(Sc)!=="svelte-1992tg8"&&(Sc.innerHTML=Yy),b_=r(ft),Fc=c(ft,"P",{"data-svelte-h":!0}),d(Fc)!=="svelte-gmy86i"&&(Fc.innerHTML=Py),ft.forEach(p),v_=r(k),Se=c(k,"DIV",{class:!0});var _t=T(Se);m(ti.$$.fragment,_t),$_=r(_t),Zc=c(_t,"P",{"data-svelte-h":!0}),d(Zc)!=="svelte-h8ye5s"&&(Zc.textContent=Oy),y_=r(_t),Lc=c(_t,"P",{"data-svelte-h":!0}),d(Lc)!=="svelte-1u14fwi"&&(Lc.innerHTML=zy),x_=r(_t),m(Ko.$$.fragment,_t),_t.forEach(p),w_=r(k),L=c(k,"DIV",{class:!0});var W=T(L);m(ni.$$.fragment,W),M_=r(W),Bc=c(W,"P",{"data-svelte-h":!0}),d(Bc)!=="svelte-t9d1pp"&&(Bc.textContent=Qy),k_=r(W),Wc=c(W,"P",{"data-svelte-h":!0}),d(Wc)!=="svelte-xxyl9g"&&(Wc.innerHTML=Ky),T_=r(W),Vc=c(W,"P",{"data-svelte-h":!0}),d(Vc)!=="svelte-ph9tk9"&&(Vc.innerHTML=ex),j_=r(W),Xc=c(W,"UL",{"data-svelte-h":!0}),d(Xc)!=="svelte-16eulop"&&(Xc.innerHTML=tx),C_=r(W),Yc=c(W,"P",{"data-svelte-h":!0}),d(Yc)!=="svelte-k7g81c"&&(Yc.textContent=nx),I_=r(W),m(ea.$$.fragment,W),W.forEach(p),H_=r(k),Fe=c(k,"DIV",{class:!0});var bt=T(Fe);m(oi.$$.fragment,bt),U_=r(bt),Pc=c(bt,"P",{"data-svelte-h":!0}),d(Pc)!=="svelte-1lgtcoe"&&(Pc.textContent=ox),J_=r(bt),Oc=c(bt,"P",{"data-svelte-h":!0}),d(Oc)!=="svelte-zugpyn"&&(Oc.textContent=ax),A_=r(bt),m(ta.$$.fragment,bt),bt.forEach(p),q_=r(k),O=c(k,"DIV",{class:!0});var ae=T(O);m(ai.$$.fragment,ae),N_=r(ae),zc=c(ae,"P",{"data-svelte-h":!0}),d(zc)!=="svelte-1j5taqn"&&(zc.textContent=sx),E_=r(ae),Qc=c(ae,"P",{"data-svelte-h":!0}),d(Qc)!=="svelte-1oloczu"&&(Qc.textContent=ix),R_=r(ae),m(na.$$.fragment,ae),G_=r(ae),m(oa.$$.fragment,ae),D_=r(ae),m(aa.$$.fragment,ae),ae.forEach(p),S_=r(k),Ze=c(k,"DIV",{class:!0});var vt=T(Ze);m(si.$$.fragment,vt),F_=r(vt),Kc=c(vt,"P",{"data-svelte-h":!0}),d(Kc)!=="svelte-z82c1y"&&(Kc.textContent=rx),Z_=r(vt),ep=c(vt,"P",{"data-svelte-h":!0}),d(ep)!=="svelte-1expdup"&&(ep.innerHTML=lx),L_=r(vt),m(sa.$$.fragment,vt),vt.forEach(p),B_=r(k),Lt=c(k,"DIV",{class:!0});var qn=T(Lt);m(ii.$$.fragment,qn),W_=r(qn),tp=c(qn,"P",{"data-svelte-h":!0}),d(tp)!=="svelte-klf1wz"&&(tp.textContent=cx),V_=r(qn),m(ia.$$.fragment,qn),qn.forEach(p),X_=r(k),ce=c(k,"DIV",{class:!0});var be=T(ce);m(ri.$$.fragment,be),Y_=r(be),np=c(be,"P",{"data-svelte-h":!0}),d(np)!=="svelte-6tdefx"&&(np.textContent=px),P_=r(be),op=c(be,"P",{"data-svelte-h":!0}),d(op)!=="svelte-sjutdt"&&(op.textContent=dx),O_=r(be),ap=c(be,"P",{"data-svelte-h":!0}),d(ap)!=="svelte-164ppjv"&&(ap.innerHTML=gx),z_=r(be),m(ra.$$.fragment,be),be.forEach(p),Q_=r(k),Le=c(k,"DIV",{class:!0});var $t=T(Le);m(li.$$.fragment,$t),K_=r($t),sp=c($t,"P",{"data-svelte-h":!0}),d(sp)!=="svelte-tgkk8q"&&(sp.textContent=ux),eb=r($t),ip=c($t,"P",{"data-svelte-h":!0}),d(ip)!=="svelte-llxqqu"&&(ip.textContent=hx),tb=r($t),rp=c($t,"P",{"data-svelte-h":!0}),d(rp)!=="svelte-1bxaipy"&&(rp.innerHTML=mx),$t.forEach(p),nb=r(k),Bt=c(k,"DIV",{class:!0});var ld=T(Bt);m(ci.$$.fragment,ld),ob=r(ld),lp=c(ld,"P",{"data-svelte-h":!0}),d(lp)!=="svelte-1icdi1y"&&(lp.textContent=fx),ab=r(ld),m(la.$$.fragment,ld),ld.forEach(p),sb=r(k),pe=c(k,"DIV",{class:!0});var Ot=T(pe);m(pi.$$.fragment,Ot),ib=r(Ot),cp=c(Ot,"P",{"data-svelte-h":!0}),d(cp)!=="svelte-kukbcr"&&(cp.textContent=_x),rb=r(Ot),m(ca.$$.fragment,Ot),lb=r(Ot),m(pa.$$.fragment,Ot),cb=r(Ot),m(da.$$.fragment,Ot),Ot.forEach(p),pb=r(k),N=c(k,"DIV",{class:!0});var R=T(N);m(di.$$.fragment,R),db=r(R),pp=c(R,"P",{"data-svelte-h":!0}),d(pp)!=="svelte-1nvey1d"&&(pp.textContent=bx),gb=r(R),dp=c(R,"P",{"data-svelte-h":!0}),d(dp)!=="svelte-1vu0l4l"&&(dp.textContent=vx),ub=r(R),gp=c(R,"P",{"data-svelte-h":!0}),d(gp)!=="svelte-adrskp"&&(gp.innerHTML=$x),hb=r(R),up=c(R,"P",{"data-svelte-h":!0}),d(up)!=="svelte-1m6fudm"&&(up.innerHTML=yx),mb=r(R),hp=c(R,"P",{"data-svelte-h":!0}),d(hp)!=="svelte-nojwu3"&&(hp.innerHTML=xx),fb=r(R),mp=c(R,"P",{"data-svelte-h":!0}),d(mp)!=="svelte-90ewc6"&&(mp.innerHTML=wx),_b=r(R),m(ga.$$.fragment,R),bb=r(R),m(ua.$$.fragment,R),vb=r(R),m(ha.$$.fragment,R),$b=r(R),m(ma.$$.fragment,R),R.forEach(p),yb=r(k),fa=c(k,"DIV",{class:!0});var wg=T(fa);m(gi.$$.fragment,wg),xb=r(wg),fp=c(wg,"P",{"data-svelte-h":!0}),d(fp)!=="svelte-l7gr50"&&(fp.textContent=Mx),wg.forEach(p),k.forEach(p),Jd=r(e),G=c(e,"DIV",{class:!0});var z=T(G);m(ui.$$.fragment,z),wb=r(z),_p=c(z,"P",{"data-svelte-h":!0}),d(_p)!=="svelte-1qftj6h"&&(_p.textContent=kx),Mb=r(z),bp=c(z,"P",{"data-svelte-h":!0}),d(bp)!=="svelte-xomfnq"&&(bp.textContent=Tx),kb=r(z),vp=c(z,"OL",{"data-svelte-h":!0}),d(vp)!=="svelte-2mvyin"&&(vp.innerHTML=jx),Tb=r(z),$p=c(z,"P",{"data-svelte-h":!0}),d($p)!=="svelte-6du8u1"&&($p.innerHTML=Cx),jb=r(z),m(_a.$$.fragment,z),Cb=r(z),m(ba.$$.fragment,z),Ib=r(z),m(va.$$.fragment,z),z.forEach(p),Ad=r(e),m(hi.$$.fragment,e),qd=r(e),m(mi.$$.fragment,e),Nd=r(e),Ve=c(e,"DIV",{class:!0});var cd=T(Ve);m(fi.$$.fragment,cd),Hb=r(cd),yp=c(cd,"P",{"data-svelte-h":!0}),d(yp)!=="svelte-n4j72f"&&(yp.textContent=Ix),Ub=r(cd),xp=c(cd,"P",{"data-svelte-h":!0}),d(xp)!=="svelte-27npff"&&(xp.innerHTML=Hx),cd.forEach(p),Ed=r(e),m(_i.$$.fragment,e),Rd=r(e),en=c(e,"DIV",{class:!0});var Mg=T(en);m(bi.$$.fragment,Mg),Jb=r(Mg),wp=c(Mg,"P",{"data-svelte-h":!0}),d(wp)!=="svelte-si50g0"&&(wp.textContent=Ux),Mg.forEach(p),Gd=r(e),m(vi.$$.fragment,e),Dd=r(e),tn=c(e,"DIV",{class:!0});var kg=T(tn);m($i.$$.fragment,kg),Ab=r(kg),Mp=c(kg,"P",{"data-svelte-h":!0}),d(Mp)!=="svelte-1dp8z99"&&(Mp.textContent=Jx),kg.forEach(p),Sd=r(e),m(yi.$$.fragment,e),Fd=r(e),nn=c(e,"DIV",{class:!0});var Tg=T(nn);m(xi.$$.fragment,Tg),qb=r(Tg),kp=c(Tg,"P",{"data-svelte-h":!0}),d(kp)!=="svelte-1m53mfe"&&(kp.innerHTML=Ax),Tg.forEach(p),Zd=r(e),m(wi.$$.fragment,e),Ld=r(e),Xe=c(e,"DIV",{class:!0});var pd=T(Xe);m(Mi.$$.fragment,pd),Nb=r(pd),Tp=c(pd,"P",{"data-svelte-h":!0}),d(Tp)!=="svelte-8pkqdq"&&(Tp.textContent=qx),Eb=r(pd),jp=c(pd,"P",{"data-svelte-h":!0}),d(jp)!=="svelte-vdyl1q"&&(jp.innerHTML=Nx),pd.forEach(p),Bd=r(e),m(ki.$$.fragment,e),Wd=r(e),on=c(e,"DIV",{class:!0});var jg=T(on);m(Ti.$$.fragment,jg),Rb=r(jg),Cp=c(jg,"P",{"data-svelte-h":!0}),d(Cp)!=="svelte-fx2iaz"&&(Cp.textContent=Ex),jg.forEach(p),Vd=r(e),m(ji.$$.fragment,e),Xd=r(e),an=c(e,"DIV",{class:!0});var Cg=T(an);m(Ci.$$.fragment,Cg),Gb=r(Cg),Ip=c(Cg,"P",{"data-svelte-h":!0}),d(Ip)!=="svelte-pzc88f"&&(Ip.textContent=Rx),Cg.forEach(p),Yd=r(e),m(Ii.$$.fragment,e),Pd=r(e),sn=c(e,"DIV",{class:!0});var Ig=T(sn);m(Hi.$$.fragment,Ig),Db=r(Ig),Hp=c(Ig,"P",{"data-svelte-h":!0}),d(Hp)!=="svelte-fx2iaz"&&(Hp.textContent=Gx),Ig.forEach(p),Od=r(e),m(Ui.$$.fragment,e),zd=r(e),Q=c(e,"DIV",{class:!0});var zt=T(Q);m(Ji.$$.fragment,zt),Sb=r(zt),Up=c(zt,"P",{"data-svelte-h":!0}),d(Up)!=="svelte-1v78htg"&&(Up.innerHTML=Dx),Fb=r(zt),Jp=c(zt,"P",{"data-svelte-h":!0}),d(Jp)!=="svelte-murgw9"&&(Jp.innerHTML=Sx),Zb=r(zt),Ap=c(zt,"UL",{"data-svelte-h":!0}),d(Ap)!=="svelte-1mrng5l"&&(Ap.innerHTML=Fx),Lb=r(zt),m($a.$$.fragment,zt),zt.forEach(p),Qd=r(e),m(Ai.$$.fragment,e),Kd=r(e),rn=c(e,"DIV",{class:!0});var Hg=T(rn);m(qi.$$.fragment,Hg),Bb=r(Hg),qp=c(Hg,"P",{"data-svelte-h":!0}),d(qp)!=="svelte-1v8t816"&&(qp.textContent=Zx),Hg.forEach(p),eg=r(e),m(Ni.$$.fragment,e),tg=r(e),ln=c(e,"DIV",{class:!0});var Ug=T(ln);m(Ei.$$.fragment,Ug),Wb=r(Ug),Np=c(Ug,"P",{"data-svelte-h":!0}),d(Np)!=="svelte-f10xp"&&(Np.textContent=Lx),Ug.forEach(p),ng=r(e),m(Ri.$$.fragment,e),og=r(e),cn=c(e,"DIV",{class:!0});var Jg=T(cn);m(Gi.$$.fragment,Jg),Vb=r(Jg),Ep=c(Jg,"P",{"data-svelte-h":!0}),d(Ep)!=="svelte-s36het"&&(Ep.textContent=Bx),Jg.forEach(p),ag=r(e),m(Di.$$.fragment,e),sg=r(e),Si=c(e,"P",{"data-svelte-h":!0}),d(Si)!=="svelte-eea1xn"&&(Si.innerHTML=Wx),ig=r(e),ge=c(e,"DIV",{class:!0});var ja=T(ge);m(Fi.$$.fragment,ja),Xb=r(ja),Rp=c(ja,"P",{"data-svelte-h":!0}),d(Rp)!=="svelte-1nyzeix"&&(Rp.textContent=Vx),Yb=r(ja),Wt=c(ja,"DIV",{class:!0});var dd=T(Wt);m(Zi.$$.fragment,dd),Pb=r(dd),Gp=c(dd,"P",{"data-svelte-h":!0}),d(Gp)!=="svelte-1d7s5nc"&&(Gp.innerHTML=Xx),Ob=r(dd),m(ya.$$.fragment,dd),dd.forEach(p),zb=r(ja),Vt=c(ja,"DIV",{class:!0});var gd=T(Vt);m(Li.$$.fragment,gd),Qb=r(gd),Dp=c(gd,"P",{"data-svelte-h":!0}),d(Dp)!=="svelte-1o44akx"&&(Dp.innerHTML=Yx),Kb=r(gd),Sp=c(gd,"P",{"data-svelte-h":!0}),d(Sp)!=="svelte-huzhzj"&&(Sp.innerHTML=Px),gd.forEach(p),ja.forEach(p),rg=r(e),pn=c(e,"DIV",{class:!0});var Ag=T(pn);m(Bi.$$.fragment,Ag),ev=r(Ag),Fp=c(Ag,"P",{"data-svelte-h":!0}),d(Fp)!=="svelte-1cij9yu"&&(Fp.textContent=Ox),Ag.forEach(p),lg=r(e),K=c(e,"DIV",{class:!0});var Qt=T(K);m(Wi.$$.fragment,Qt),tv=r(Qt),Zp=c(Qt,"P",{"data-svelte-h":!0}),d(Zp)!=="svelte-bx32lj"&&(Zp.textContent=zx),nv=r(Qt),Lp=c(Qt,"P",{"data-svelte-h":!0}),d(Lp)!=="svelte-1a6nwfz"&&(Lp.textContent=Qx),ov=r(Qt),Bp=c(Qt,"UL",{"data-svelte-h":!0}),d(Bp)!=="svelte-1wreq5n"&&(Bp.innerHTML=Kx),av=r(Qt),Wp=c(Qt,"P",{"data-svelte-h":!0}),d(Wp)!=="svelte-zlmtk1"&&(Wp.innerHTML=e2),Qt.forEach(p),cg=r(e),m(Vi.$$.fragment,e),pg=r(e),S=c(e,"DIV",{class:!0});var de=T(S);m(Xi.$$.fragment,de),sv=r(de),Vp=c(de,"P",{"data-svelte-h":!0}),d(Vp)!=="svelte-1wfz9hx"&&(Vp.textContent=t2),iv=r(de),Xp=c(de,"P",{"data-svelte-h":!0}),d(Xp)!=="svelte-3pj0bu"&&(Xp.innerHTML=n2),rv=r(de),m(xa.$$.fragment,de),lv=r(de),Be=c(de,"DIV",{class:!0});var Ca=T(Be);m(Yi.$$.fragment,Ca),cv=r(Ca),Yp=c(Ca,"P",{"data-svelte-h":!0}),d(Yp)!=="svelte-e95u7k"&&(Yp.textContent=o2),pv=r(Ca),m(wa.$$.fragment,Ca),dv=r(Ca),Pp=c(Ca,"P",{"data-svelte-h":!0}),d(Pp)!=="svelte-eijr4"&&(Pp.innerHTML=a2),Ca.forEach(p),gv=r(de),Xt=c(de,"DIV",{class:!0});var ud=T(Xt);m(Pi.$$.fragment,ud),uv=r(ud),Op=c(ud,"P",{"data-svelte-h":!0}),d(Op)!=="svelte-t1x1k0"&&(Op.textContent=s2),hv=r(ud),zp=c(ud,"P",{"data-svelte-h":!0}),d(zp)!=="svelte-1jdo3t2"&&(zp.textContent=i2),ud.forEach(p),mv=r(de),Yt=c(de,"DIV",{class:!0});var hd=T(Yt);m(Oi.$$.fragment,hd),fv=r(hd),Qp=c(hd,"P",{"data-svelte-h":!0}),d(Qp)!=="svelte-m2dnyn"&&(Qp.innerHTML=r2),_v=r(hd),Kp=c(hd,"P",{"data-svelte-h":!0}),d(Kp)!=="svelte-aasb0o"&&(Kp.innerHTML=l2),hd.forEach(p),de.forEach(p),dg=r(e),m(zi.$$.fragment,e),gg=r(e),Qi=c(e,"P",{"data-svelte-h":!0}),d(Qi)!=="svelte-68gbbv"&&(Qi.innerHTML=c2),ug=r(e),Ki=c(e,"P",{"data-svelte-h":!0}),d(Ki)!=="svelte-kng32h"&&(Ki.innerHTML=p2),hg=r(e),ue=c(e,"DIV",{class:!0});var Ia=T(ue);m(er.$$.fragment,Ia),bv=r(Ia),Ma=c(Ia,"DIV",{class:!0});var qg=T(Ma);m(tr.$$.fragment,qg),vv=r(qg),ed=c(qg,"P",{"data-svelte-h":!0}),d(ed)!=="svelte-13yo7bo"&&(ed.textContent=d2),qg.forEach(p),$v=r(Ia),We=c(Ia,"DIV",{class:!0});var Ha=T(We);m(nr.$$.fragment,Ha),yv=r(Ha),td=c(Ha,"P",{"data-svelte-h":!0}),d(td)!=="svelte-10irnww"&&(td.textContent=g2),xv=r(Ha),nd=c(Ha,"P",{"data-svelte-h":!0}),d(nd)!=="svelte-19we6r7"&&(nd.innerHTML=u2),wv=r(Ha),od=c(Ha,"P",{"data-svelte-h":!0}),d(od)!=="svelte-1inaj4c"&&(od.innerHTML=h2),Ha.forEach(p),Mv=r(Ia),Pt=c(Ia,"DIV",{class:!0});var md=T(Pt);m(or.$$.fragment,md),kv=r(md),ad=c(md,"P",{"data-svelte-h":!0}),d(ad)!=="svelte-15htb62"&&(ad.textContent=m2),Tv=r(md),sd=c(md,"P",{"data-svelte-h":!0}),d(sd)!=="svelte-1d6bkt7"&&(sd.innerHTML=f2),md.forEach(p),Ia.forEach(p),mg=r(e),m(ar.$$.fragment,e),fg=r(e),sr=c(e,"P",{"data-svelte-h":!0}),d(sr)!=="svelte-uto5dd"&&(sr.innerHTML=_2),_g=r(e),m(ir.$$.fragment,e),bg=r(e),Ye=c(e,"DIV",{class:!0});var fd=T(Ye);m(rr.$$.fragment,fd),jv=r(fd),id=c(fd,"P",{"data-svelte-h":!0}),d(id)!=="svelte-1qo0ul7"&&(id.textContent=b2),Cv=r(fd),m(ka.$$.fragment,fd),fd.forEach(p),vg=r(e),m(lr.$$.fragment,e),$g=r(e),Pe=c(e,"DIV",{class:!0});var _d=T(Pe);m(cr.$$.fragment,_d),Iv=r(_d),rd=c(_d,"P",{"data-svelte-h":!0}),d(rd)!=="svelte-m0m658"&&(rd.textContent=v2),Hv=r(_d),m(Ta.$$.fragment,_d),_d.forEach(p),yg=r(e),xd=c(e,"P",{}),T(xd).forEach(p),this.h()},h(){j(n,"name","hf:doc:metadata"),j(n,"content",sw),j(ve,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(yt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(xt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j($e,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(ye,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(Sn,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(xe,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(se,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(Z,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(V,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(wt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(X,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(zn,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(Qn,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(we,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(eo,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(Me,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(Mt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(kt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(Tt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(ke,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(so,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(jt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(io,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(Ct,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(ro,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(Te,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(It,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(Ht,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(je,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(uo,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(Ce,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(mo,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(Ut,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(_o,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(ie,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j($o,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(Jt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(At,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(D,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(Ie,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(He,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(Ue,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(A,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(qt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(re,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(qo,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(Y,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(Je,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(Ro,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(Nt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(Et,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(Do,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(Rt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(Ae,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(qe,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(Ne,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(Ee,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(P,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(Re,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(Gt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(Dt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(St,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(Ft,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(Ge,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(Zt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(le,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(De,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(Se,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(L,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(Fe,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(O,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(Ze,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(Lt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(ce,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(Le,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(Bt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(pe,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(N,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(fa,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(M,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(G,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(Ve,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(en,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(tn,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(nn,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(Xe,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(on,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(an,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(sn,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(Q,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(rn,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(ln,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(cn,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(Wt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(Vt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(ge,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(pn,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(K,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(Be,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(Xt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(Yt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(S,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(Ma,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(We,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(Pt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(ue,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(Ye,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(Pe,"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,u){o(document.head,n),x(e,g,u),x(e,s,u),x(e,a,u),f($,e,u),x(e,t,u),x(e,y,u),x(e,jd,u),x(e,Ja,u),x(e,Cd,u),x(e,Aa,u),x(e,Id,u),f(qa,e,u),x(e,Hd,u),f(Na,e,u),x(e,Ud,u),x(e,M,u),f(Ea,M,null),o(M,Ng),o(M,ve),f(Ra,ve,null),o(ve,Eg),o(ve,kr),o(ve,Rg),o(ve,Tr),o(ve,Gg),f(Nn,ve,null),o(M,Dg),o(M,yt),f(Ga,yt,null),o(yt,Sg),o(yt,jr),o(yt,Fg),o(yt,Cr),o(M,Zg),o(M,xt),f(Da,xt,null),o(xt,Lg),o(xt,Ir),o(xt,Bg),o(xt,Hr),o(M,Wg),o(M,$e),f(Sa,$e,null),o($e,Vg),o($e,Ur),o($e,Xg),f(En,$e,null),o($e,Yg),f(Rn,$e,null),o(M,Pg),o(M,ye),f(Fa,ye,null),o(ye,Og),o(ye,Jr),o(ye,zg),f(Gn,ye,null),o(ye,Qg),f(Dn,ye,null),o(M,Kg),o(M,Sn),f(Za,Sn,null),o(Sn,eu),o(Sn,Ar),o(M,tu),o(M,xe),f(La,xe,null),o(xe,nu),o(xe,qr),o(xe,ou),o(xe,Nr),o(xe,au),f(Fn,xe,null),o(M,su),o(M,se),f(Ba,se,null),o(se,iu),o(se,Er),o(se,ru),f(Zn,se,null),o(se,lu),f(Ln,se,null),o(se,cu),f(Bn,se,null),o(M,pu),o(M,Z),f(Wa,Z,null),o(Z,du),o(Z,Rr),o(Z,gu),o(Z,Gr),o(Z,uu),o(Z,Dr),o(Z,hu),f(Wn,Z,null),o(Z,mu),f(Vn,Z,null),o(Z,fu),f(Xn,Z,null),o(M,_u),o(M,V),f(Va,V,null),o(V,bu),o(V,Sr),o(V,vu),o(V,Fr),o(V,$u),o(V,Zr),o(V,yu),o(V,Lr),o(V,xu),f(Yn,V,null),o(M,wu),o(M,wt),f(Xa,wt,null),o(wt,Mu),o(wt,Br),o(wt,ku),f(Pn,wt,null),o(M,Tu),o(M,X),f(Ya,X,null),o(X,ju),o(X,Wr),o(X,Cu),o(X,Vr),o(X,Iu),o(X,Xr),o(X,Hu),o(X,Yr),o(X,Uu),f(On,X,null),o(M,Ju),o(M,zn),f(Pa,zn,null),o(zn,Au),o(zn,Pr),o(M,qu),o(M,Qn),f(Oa,Qn,null),o(Qn,Nu),o(Qn,Or),o(M,Eu),o(M,we),f(za,we,null),o(we,Ru),o(we,zr),o(we,Gu),o(we,Qr),o(we,Du),f(Kn,we,null),o(M,Su),o(M,eo),f(Qa,eo,null),o(eo,Fu),o(eo,Kr),o(M,Zu),o(M,Me),f(Ka,Me,null),o(Me,Lu),o(Me,el),o(Me,Bu),f(to,Me,null),o(Me,Wu),f(no,Me,null),o(M,Vu),o(M,Mt),f(es,Mt,null),o(Mt,Xu),o(Mt,tl),o(Mt,Yu),f(oo,Mt,null),o(M,Pu),o(M,kt),f(ts,kt,null),o(kt,Ou),o(kt,nl),o(kt,zu),f(ao,kt,null),o(M,Qu),o(M,Tt),f(ns,Tt,null),o(Tt,Ku),o(Tt,ol),o(Tt,eh),o(Tt,al),o(M,th),o(M,ke),f(os,ke,null),o(ke,nh),o(ke,sl),o(ke,oh),o(ke,il),o(ke,ah),o(ke,rl),o(M,sh),o(M,so),f(as,so,null),o(so,ih),o(so,ll),o(M,rh),o(M,jt),f(ss,jt,null),o(jt,lh),o(jt,cl),o(jt,ch),o(jt,pl),o(M,ph),o(M,io),f(is,io,null),o(io,dh),o(io,dl),o(M,gh),o(M,Ct),f(rs,Ct,null),o(Ct,uh),o(Ct,gl),o(Ct,hh),o(Ct,ul),o(M,mh),o(M,ro),f(ls,ro,null),o(ro,fh),o(ro,hl),o(M,_h),o(M,Te),f(cs,Te,null),o(Te,bh),o(Te,ml),o(Te,vh),o(Te,fl),o(Te,$h),f(lo,Te,null),o(M,yh),o(M,It),f(ps,It,null),o(It,xh),o(It,_l),o(It,wh),f(co,It,null),o(M,Mh),o(M,Ht),f(ds,Ht,null),o(Ht,kh),o(Ht,bl),o(Ht,Th),f(po,Ht,null),o(M,jh),o(M,je),f(gs,je,null),o(je,Ch),o(je,vl),o(je,Ih),o(je,$l),o(je,Hh),f(go,je,null),o(M,Uh),o(M,uo),f(us,uo,null),o(uo,Jh),o(uo,yl),o(M,Ah),o(M,Ce),f(hs,Ce,null),o(Ce,qh),o(Ce,xl),o(Ce,Nh),o(Ce,wl),o(Ce,Eh),f(ho,Ce,null),o(M,Rh),o(M,mo),f(ms,mo,null),o(mo,Gh),o(mo,Ml),o(M,Dh),o(M,Ut),f(fs,Ut,null),o(Ut,Sh),o(Ut,kl),o(Ut,Fh),f(fo,Ut,null),o(M,Zh),o(M,_o),f(_s,_o,null),o(_o,Lh),o(_o,Tl),o(M,Bh),o(M,ie),f(bs,ie,null),o(ie,Wh),o(ie,jl),o(ie,Vh),o(ie,Cl),o(ie,Xh),f(bo,ie,null),o(ie,Yh),f(vo,ie,null),o(M,Ph),o(M,$o),f(vs,$o,null),o($o,Oh),o($o,Il),o(M,zh),o(M,Jt),f($s,Jt,null),o(Jt,Qh),o(Jt,Hl),o(Jt,Kh),o(Jt,Ul),o(M,em),o(M,At),f(ys,At,null),o(At,tm),o(At,Jl),o(At,nm),o(At,Al),o(M,om),o(M,D),f(xs,D,null),o(D,am),o(D,ql),o(D,sm),o(D,Nl),o(D,im),o(D,El),o(D,rm),o(D,Rl),o(D,lm),o(D,Gl),o(D,cm),f(yo,D,null),o(D,pm),f(xo,D,null),o(M,dm),o(M,Ie),f(ws,Ie,null),o(Ie,gm),o(Ie,Dl),o(Ie,um),f(wo,Ie,null),o(Ie,hm),f(Mo,Ie,null),o(M,mm),o(M,He),f(Ms,He,null),o(He,fm),o(He,Sl),o(He,_m),o(He,Fl),o(He,bm),f(ko,He,null),o(M,vm),o(M,Ue),f(ks,Ue,null),o(Ue,$m),o(Ue,Zl),o(Ue,ym),f(To,Ue,null),o(Ue,xm),f(jo,Ue,null),o(M,wm),o(M,A),f(Ts,A,null),o(A,Mm),o(A,Ll),o(A,km),o(A,Bl),o(A,Tm),o(A,Wl),o(A,jm),o(A,Vl),o(A,Cm),o(A,Xl),o(A,Im),f(Co,A,null),o(A,Hm),o(A,Yl),o(A,Um),f(Io,A,null),o(A,Jm),o(A,Pl),o(A,Am),f(Ho,A,null),o(A,qm),o(A,Ol),o(A,Nm),f(Uo,A,null),o(M,Em),o(M,qt),f(js,qt,null),o(qt,Rm),o(qt,zl),o(qt,Gm),f(Jo,qt,null),o(M,Dm),o(M,re),f(Cs,re,null),o(re,Sm),o(re,Ql),o(re,Fm),o(re,Kl),o(re,Zm),o(re,ec),o(re,Lm),f(Ao,re,null),o(M,Bm),o(M,qo),f(Is,qo,null),o(qo,Wm),o(qo,tc),o(M,Vm),o(M,Y),f(Hs,Y,null),o(Y,Xm),o(Y,nc),o(Y,Ym),f(No,Y,null),o(Y,Pm),o(Y,oc),o(Y,Om),o(Y,bd),o(bd,vd),o(vd,Us),f(Js,Us,null),o(Us,zm),o(Us,ac),o(Y,Qm),o(Y,$d),o($d,yd),o(yd,Kt),f(As,Kt,null),o(Kt,Km),o(Kt,sc),o(Kt,ef),f(qs,Kt,null),o(M,tf),o(M,Je),f(Ns,Je,null),o(Je,nf),o(Je,ic),o(Je,of),o(Je,rc),o(Je,af),f(Eo,Je,null),o(M,sf),o(M,Ro),f(Es,Ro,null),o(Ro,rf),o(Ro,lc),o(M,lf),o(M,Nt),f(Rs,Nt,null),o(Nt,cf),o(Nt,cc),o(Nt,pf),o(Nt,pc),o(M,df),o(M,Et),f(Gs,Et,null),o(Et,gf),o(Et,dc),o(Et,uf),f(Go,Et,null),o(M,hf),o(M,Do),f(Ds,Do,null),o(Do,mf),o(Do,gc),o(M,ff),o(M,Rt),f(Ss,Rt,null),o(Rt,_f),o(Rt,uc),o(Rt,bf),f(So,Rt,null),o(M,vf),o(M,Ae),f(Fs,Ae,null),o(Ae,$f),o(Ae,hc),o(Ae,yf),o(Ae,mc),o(Ae,xf),f(Fo,Ae,null),o(M,wf),o(M,qe),f(Zs,qe,null),o(qe,Mf),o(qe,fc),o(qe,kf),o(qe,_c),o(qe,Tf),f(Zo,qe,null),o(M,jf),o(M,Ne),f(Ls,Ne,null),o(Ne,Cf),o(Ne,bc),o(Ne,If),o(Ne,vc),o(Ne,Hf),o(Ne,$c),o(M,Uf),o(M,Ee),f(Bs,Ee,null),o(Ee,Jf),o(Ee,yc),o(Ee,Af),o(Ee,xc),o(Ee,qf),o(Ee,wc),o(M,Nf),o(M,P),f(Ws,P,null),o(P,Ef),o(P,Mc),o(P,Rf),o(P,kc),o(P,Gf),f(Lo,P,null),o(P,Df),f(Bo,P,null),o(P,Sf),f(Wo,P,null),o(M,Ff),o(M,Re),f(Vs,Re,null),o(Re,Zf),o(Re,Tc),o(Re,Lf),f(Vo,Re,null),o(Re,Bf),f(Xo,Re,null),o(M,Wf),o(M,Gt),f(Xs,Gt,null),o(Gt,Vf),o(Gt,jc),o(Gt,Xf),f(Yo,Gt,null),o(M,Yf),o(M,Dt),f(Ys,Dt,null),o(Dt,Pf),o(Dt,Cc),o(Dt,Of),f(Po,Dt,null),o(M,zf),o(M,St),f(Ps,St,null),o(St,Qf),o(St,Ic),o(St,Kf),f(Oo,St,null),o(M,e_),o(M,Ft),f(Os,Ft,null),o(Ft,t_),o(Ft,Hc),o(Ft,n_),f(zo,Ft,null),o(M,o_),o(M,Ge),f(zs,Ge,null),o(Ge,a_),o(Ge,Uc),o(Ge,s_),o(Ge,Jc),o(Ge,i_),o(Ge,Ac),o(M,r_),o(M,Zt),f(Qs,Zt,null),o(Zt,l_),o(Zt,qc),o(Zt,c_),o(Zt,Nc),o(M,p_),o(M,le),f(Ks,le,null),o(le,d_),o(le,Ec),o(le,g_),o(le,Rc),o(le,u_),o(le,Gc),o(le,h_),f(Qo,le,null),o(M,m_),o(M,De),f(ei,De,null),o(De,f_),o(De,Dc),o(De,__),o(De,Sc),o(De,b_),o(De,Fc),o(M,v_),o(M,Se),f(ti,Se,null),o(Se,$_),o(Se,Zc),o(Se,y_),o(Se,Lc),o(Se,x_),f(Ko,Se,null),o(M,w_),o(M,L),f(ni,L,null),o(L,M_),o(L,Bc),o(L,k_),o(L,Wc),o(L,T_),o(L,Vc),o(L,j_),o(L,Xc),o(L,C_),o(L,Yc),o(L,I_),f(ea,L,null),o(M,H_),o(M,Fe),f(oi,Fe,null),o(Fe,U_),o(Fe,Pc),o(Fe,J_),o(Fe,Oc),o(Fe,A_),f(ta,Fe,null),o(M,q_),o(M,O),f(ai,O,null),o(O,N_),o(O,zc),o(O,E_),o(O,Qc),o(O,R_),f(na,O,null),o(O,G_),f(oa,O,null),o(O,D_),f(aa,O,null),o(M,S_),o(M,Ze),f(si,Ze,null),o(Ze,F_),o(Ze,Kc),o(Ze,Z_),o(Ze,ep),o(Ze,L_),f(sa,Ze,null),o(M,B_),o(M,Lt),f(ii,Lt,null),o(Lt,W_),o(Lt,tp),o(Lt,V_),f(ia,Lt,null),o(M,X_),o(M,ce),f(ri,ce,null),o(ce,Y_),o(ce,np),o(ce,P_),o(ce,op),o(ce,O_),o(ce,ap),o(ce,z_),f(ra,ce,null),o(M,Q_),o(M,Le),f(li,Le,null),o(Le,K_),o(Le,sp),o(Le,eb),o(Le,ip),o(Le,tb),o(Le,rp),o(M,nb),o(M,Bt),f(ci,Bt,null),o(Bt,ob),o(Bt,lp),o(Bt,ab),f(la,Bt,null),o(M,sb),o(M,pe),f(pi,pe,null),o(pe,ib),o(pe,cp),o(pe,rb),f(ca,pe,null),o(pe,lb),f(pa,pe,null),o(pe,cb),f(da,pe,null),o(M,pb),o(M,N),f(di,N,null),o(N,db),o(N,pp),o(N,gb),o(N,dp),o(N,ub),o(N,gp),o(N,hb),o(N,up),o(N,mb),o(N,hp),o(N,fb),o(N,mp),o(N,_b),f(ga,N,null),o(N,bb),f(ua,N,null),o(N,vb),f(ha,N,null),o(N,$b),f(ma,N,null),o(M,yb),o(M,fa),f(gi,fa,null),o(fa,xb),o(fa,fp),x(e,Jd,u),x(e,G,u),f(ui,G,null),o(G,wb),o(G,_p),o(G,Mb),o(G,bp),o(G,kb),o(G,vp),o(G,Tb),o(G,$p),o(G,jb),f(_a,G,null),o(G,Cb),f(ba,G,null),o(G,Ib),f(va,G,null),x(e,Ad,u),f(hi,e,u),x(e,qd,u),f(mi,e,u),x(e,Nd,u),x(e,Ve,u),f(fi,Ve,null),o(Ve,Hb),o(Ve,yp),o(Ve,Ub),o(Ve,xp),x(e,Ed,u),f(_i,e,u),x(e,Rd,u),x(e,en,u),f(bi,en,null),o(en,Jb),o(en,wp),x(e,Gd,u),f(vi,e,u),x(e,Dd,u),x(e,tn,u),f($i,tn,null),o(tn,Ab),o(tn,Mp),x(e,Sd,u),f(yi,e,u),x(e,Fd,u),x(e,nn,u),f(xi,nn,null),o(nn,qb),o(nn,kp),x(e,Zd,u),f(wi,e,u),x(e,Ld,u),x(e,Xe,u),f(Mi,Xe,null),o(Xe,Nb),o(Xe,Tp),o(Xe,Eb),o(Xe,jp),x(e,Bd,u),f(ki,e,u),x(e,Wd,u),x(e,on,u),f(Ti,on,null),o(on,Rb),o(on,Cp),x(e,Vd,u),f(ji,e,u),x(e,Xd,u),x(e,an,u),f(Ci,an,null),o(an,Gb),o(an,Ip),x(e,Yd,u),f(Ii,e,u),x(e,Pd,u),x(e,sn,u),f(Hi,sn,null),o(sn,Db),o(sn,Hp),x(e,Od,u),f(Ui,e,u),x(e,zd,u),x(e,Q,u),f(Ji,Q,null),o(Q,Sb),o(Q,Up),o(Q,Fb),o(Q,Jp),o(Q,Zb),o(Q,Ap),o(Q,Lb),f($a,Q,null),x(e,Qd,u),f(Ai,e,u),x(e,Kd,u),x(e,rn,u),f(qi,rn,null),o(rn,Bb),o(rn,qp),x(e,eg,u),f(Ni,e,u),x(e,tg,u),x(e,ln,u),f(Ei,ln,null),o(ln,Wb),o(ln,Np),x(e,ng,u),f(Ri,e,u),x(e,og,u),x(e,cn,u),f(Gi,cn,null),o(cn,Vb),o(cn,Ep),x(e,ag,u),f(Di,e,u),x(e,sg,u),x(e,Si,u),x(e,ig,u),x(e,ge,u),f(Fi,ge,null),o(ge,Xb),o(ge,Rp),o(ge,Yb),o(ge,Wt),f(Zi,Wt,null),o(Wt,Pb),o(Wt,Gp),o(Wt,Ob),f(ya,Wt,null),o(ge,zb),o(ge,Vt),f(Li,Vt,null),o(Vt,Qb),o(Vt,Dp),o(Vt,Kb),o(Vt,Sp),x(e,rg,u),x(e,pn,u),f(Bi,pn,null),o(pn,ev),o(pn,Fp),x(e,lg,u),x(e,K,u),f(Wi,K,null),o(K,tv),o(K,Zp),o(K,nv),o(K,Lp),o(K,ov),o(K,Bp),o(K,av),o(K,Wp),x(e,cg,u),f(Vi,e,u),x(e,pg,u),x(e,S,u),f(Xi,S,null),o(S,sv),o(S,Vp),o(S,iv),o(S,Xp),o(S,rv),f(xa,S,null),o(S,lv),o(S,Be),f(Yi,Be,null),o(Be,cv),o(Be,Yp),o(Be,pv),f(wa,Be,null),o(Be,dv),o(Be,Pp),o(S,gv),o(S,Xt),f(Pi,Xt,null),o(Xt,uv),o(Xt,Op),o(Xt,hv),o(Xt,zp),o(S,mv),o(S,Yt),f(Oi,Yt,null),o(Yt,fv),o(Yt,Qp),o(Yt,_v),o(Yt,Kp),x(e,dg,u),f(zi,e,u),x(e,gg,u),x(e,Qi,u),x(e,ug,u),x(e,Ki,u),x(e,hg,u),x(e,ue,u),f(er,ue,null),o(ue,bv),o(ue,Ma),f(tr,Ma,null),o(Ma,vv),o(Ma,ed),o(ue,$v),o(ue,We),f(nr,We,null),o(We,yv),o(We,td),o(We,xv),o(We,nd),o(We,wv),o(We,od),o(ue,Mv),o(ue,Pt),f(or,Pt,null),o(Pt,kv),o(Pt,ad),o(Pt,Tv),o(Pt,sd),x(e,mg,u),f(ar,e,u),x(e,fg,u),x(e,sr,u),x(e,_g,u),f(ir,e,u),x(e,bg,u),x(e,Ye,u),f(rr,Ye,null),o(Ye,jv),o(Ye,id),o(Ye,Cv),f(ka,Ye,null),x(e,vg,u),f(lr,e,u),x(e,$g,u),x(e,Pe,u),f(cr,Pe,null),o(Pe,Iv),o(Pe,rd),o(Pe,Hv),f(Ta,Pe,null),x(e,yg,u),x(e,xd,u),xg=!0},p(e,[u]){const k={};u&2&&(k.$$scope={dirty:u,ctx:e}),Nn.$set(k);const Oe={};u&2&&(Oe.$$scope={dirty:u,ctx:e}),En.$set(Oe);const dn={};u&2&&(dn.$$scope={dirty:u,ctx:e}),Rn.$set(dn);const gn={};u&2&&(gn.$$scope={dirty:u,ctx:e}),Gn.$set(gn);const ze={};u&2&&(ze.$$scope={dirty:u,ctx:e}),Dn.$set(ze);const Qe={};u&2&&(Qe.$$scope={dirty:u,ctx:e}),Fn.$set(Qe);const pr={};u&2&&(pr.$$scope={dirty:u,ctx:e}),Zn.$set(pr);const Ke={};u&2&&(Ke.$$scope={dirty:u,ctx:e}),Ln.$set(Ke);const he={};u&2&&(he.$$scope={dirty:u,ctx:e}),Bn.$set(he);const B={};u&2&&(B.$$scope={dirty:u,ctx:e}),Wn.$set(B);const ee={};u&2&&(ee.$$scope={dirty:u,ctx:e}),Vn.$set(ee);const un={};u&2&&(un.$$scope={dirty:u,ctx:e}),Xn.$set(un);const te={};u&2&&(te.$$scope={dirty:u,ctx:e}),Yn.$set(te);const dr={};u&2&&(dr.$$scope={dirty:u,ctx:e}),Pn.$set(dr);const gr={};u&2&&(gr.$$scope={dirty:u,ctx:e}),On.$set(gr);const et={};u&2&&(et.$$scope={dirty:u,ctx:e}),Kn.$set(et);const ur={};u&2&&(ur.$$scope={dirty:u,ctx:e}),to.$set(ur);const tt={};u&2&&(tt.$$scope={dirty:u,ctx:e}),no.$set(tt);const hn={};u&2&&(hn.$$scope={dirty:u,ctx:e}),oo.$set(hn);const mn={};u&2&&(mn.$$scope={dirty:u,ctx:e}),ao.$set(mn);const fn={};u&2&&(fn.$$scope={dirty:u,ctx:e}),lo.$set(fn);const nt={};u&2&&(nt.$$scope={dirty:u,ctx:e}),co.$set(nt);const hr={};u&2&&(hr.$$scope={dirty:u,ctx:e}),po.$set(hr);const _n={};u&2&&(_n.$$scope={dirty:u,ctx:e}),go.$set(_n);const mr={};u&2&&(mr.$$scope={dirty:u,ctx:e}),ho.$set(mr);const bn={};u&2&&(bn.$$scope={dirty:u,ctx:e}),fo.$set(bn);const fr={};u&2&&(fr.$$scope={dirty:u,ctx:e}),bo.$set(fr);const ot={};u&2&&(ot.$$scope={dirty:u,ctx:e}),vo.$set(ot);const vn={};u&2&&(vn.$$scope={dirty:u,ctx:e}),yo.$set(vn);const $n={};u&2&&($n.$$scope={dirty:u,ctx:e}),xo.$set($n);const at={};u&2&&(at.$$scope={dirty:u,ctx:e}),wo.$set(at);const _r={};u&2&&(_r.$$scope={dirty:u,ctx:e}),Mo.$set(_r);const st={};u&2&&(st.$$scope={dirty:u,ctx:e}),ko.$set(st);const br={};u&2&&(br.$$scope={dirty:u,ctx:e}),To.$set(br);const yn={};u&2&&(yn.$$scope={dirty:u,ctx:e}),jo.$set(yn);const vr={};u&2&&(vr.$$scope={dirty:u,ctx:e}),Co.$set(vr);const me={};u&2&&(me.$$scope={dirty:u,ctx:e}),Io.$set(me);const $r={};u&2&&($r.$$scope={dirty:u,ctx:e}),Ho.$set($r);const xn={};u&2&&(xn.$$scope={dirty:u,ctx:e}),Uo.$set(xn);const wn={};u&2&&(wn.$$scope={dirty:u,ctx:e}),Jo.$set(wn);const F={};u&2&&(F.$$scope={dirty:u,ctx:e}),Ao.$set(F);const it={};u&2&&(it.$$scope={dirty:u,ctx:e}),No.$set(it);const rt={};u&2&&(rt.$$scope={dirty:u,ctx:e}),Eo.$set(rt);const lt={};u&2&&(lt.$$scope={dirty:u,ctx:e}),Go.$set(lt);const q={};u&2&&(q.$$scope={dirty:u,ctx:e}),So.$set(q);const Mn={};u&2&&(Mn.$$scope={dirty:u,ctx:e}),Fo.$set(Mn);const fe={};u&2&&(fe.$$scope={dirty:u,ctx:e}),Zo.$set(fe);const yr={};u&2&&(yr.$$scope={dirty:u,ctx:e}),Lo.$set(yr);const ne={};u&2&&(ne.$$scope={dirty:u,ctx:e}),Bo.$set(ne);const wd={};u&2&&(wd.$$scope={dirty:u,ctx:e}),Wo.$set(wd);const Md={};u&2&&(Md.$$scope={dirty:u,ctx:e}),Vo.$set(Md);const xr={};u&2&&(xr.$$scope={dirty:u,ctx:e}),Xo.$set(xr);const kd={};u&2&&(kd.$$scope={dirty:u,ctx:e}),Yo.$set(kd);const Td={};u&2&&(Td.$$scope={dirty:u,ctx:e}),Po.$set(Td);const kn={};u&2&&(kn.$$scope={dirty:u,ctx:e}),Oo.$set(kn);const ct={};u&2&&(ct.$$scope={dirty:u,ctx:e}),zo.$set(ct);const wr={};u&2&&(wr.$$scope={dirty:u,ctx:e}),Qo.$set(wr);const Tn={};u&2&&(Tn.$$scope={dirty:u,ctx:e}),Ko.$set(Tn);const jn={};u&2&&(jn.$$scope={dirty:u,ctx:e}),ea.$set(jn);const Mr={};u&2&&(Mr.$$scope={dirty:u,ctx:e}),ta.$set(Mr);const Cn={};u&2&&(Cn.$$scope={dirty:u,ctx:e}),na.$set(Cn);const pt={};u&2&&(pt.$$scope={dirty:u,ctx:e}),oa.$set(pt);const dt={};u&2&&(dt.$$scope={dirty:u,ctx:e}),aa.$set(dt);const gt={};u&2&&(gt.$$scope={dirty:u,ctx:e}),sa.$set(gt);const ut={};u&2&&(ut.$$scope={dirty:u,ctx:e}),ia.$set(ut);const oe={};u&2&&(oe.$$scope={dirty:u,ctx:e}),ra.$set(oe);const ht={};u&2&&(ht.$$scope={dirty:u,ctx:e}),la.$set(ht);const In={};u&2&&(In.$$scope={dirty:u,ctx:e}),ca.$set(In);const Hn={};u&2&&(Hn.$$scope={dirty:u,ctx:e}),pa.$set(Hn);const Un={};u&2&&(Un.$$scope={dirty:u,ctx:e}),da.$set(Un);const Jn={};u&2&&(Jn.$$scope={dirty:u,ctx:e}),ga.$set(Jn);const mt={};u&2&&(mt.$$scope={dirty:u,ctx:e}),ua.$set(mt);const An={};u&2&&(An.$$scope={dirty:u,ctx:e}),ha.$set(An);const _e={};u&2&&(_e.$$scope={dirty:u,ctx:e}),ma.$set(_e);const ft={};u&2&&(ft.$$scope={dirty:u,ctx:e}),_a.$set(ft);const _t={};u&2&&(_t.$$scope={dirty:u,ctx:e}),ba.$set(_t);const W={};u&2&&(W.$$scope={dirty:u,ctx:e}),va.$set(W);const bt={};u&2&&(bt.$$scope={dirty:u,ctx:e}),$a.$set(bt);const ae={};u&2&&(ae.$$scope={dirty:u,ctx:e}),ya.$set(ae);const vt={};u&2&&(vt.$$scope={dirty:u,ctx:e}),xa.$set(vt);const qn={};u&2&&(qn.$$scope={dirty:u,ctx:e}),wa.$set(qn);const be={};u&2&&(be.$$scope={dirty:u,ctx:e}),ka.$set(be);const $t={};u&2&&($t.$$scope={dirty:u,ctx:e}),Ta.$set($t)},i(e){xg||(_($.$$.fragment,e),_(qa.$$.fragment,e),_(Na.$$.fragment,e),_(Ea.$$.fragment,e),_(Ra.$$.fragment,e),_(Nn.$$.fragment,e),_(Ga.$$.fragment,e),_(Da.$$.fragment,e),_(Sa.$$.fragment,e),_(En.$$.fragment,e),_(Rn.$$.fragment,e),_(Fa.$$.fragment,e),_(Gn.$$.fragment,e),_(Dn.$$.fragment,e),_(Za.$$.fragment,e),_(La.$$.fragment,e),_(Fn.$$.fragment,e),_(Ba.$$.fragment,e),_(Zn.$$.fragment,e),_(Ln.$$.fragment,e),_(Bn.$$.fragment,e),_(Wa.$$.fragment,e),_(Wn.$$.fragment,e),_(Vn.$$.fragment,e),_(Xn.$$.fragment,e),_(Va.$$.fragment,e),_(Yn.$$.fragment,e),_(Xa.$$.fragment,e),_(Pn.$$.fragment,e),_(Ya.$$.fragment,e),_(On.$$.fragment,e),_(Pa.$$.fragment,e),_(Oa.$$.fragment,e),_(za.$$.fragment,e),_(Kn.$$.fragment,e),_(Qa.$$.fragment,e),_(Ka.$$.fragment,e),_(to.$$.fragment,e),_(no.$$.fragment,e),_(es.$$.fragment,e),_(oo.$$.fragment,e),_(ts.$$.fragment,e),_(ao.$$.fragment,e),_(ns.$$.fragment,e),_(os.$$.fragment,e),_(as.$$.fragment,e),_(ss.$$.fragment,e),_(is.$$.fragment,e),_(rs.$$.fragment,e),_(ls.$$.fragment,e),_(cs.$$.fragment,e),_(lo.$$.fragment,e),_(ps.$$.fragment,e),_(co.$$.fragment,e),_(ds.$$.fragment,e),_(po.$$.fragment,e),_(gs.$$.fragment,e),_(go.$$.fragment,e),_(us.$$.fragment,e),_(hs.$$.fragment,e),_(ho.$$.fragment,e),_(ms.$$.fragment,e),_(fs.$$.fragment,e),_(fo.$$.fragment,e),_(_s.$$.fragment,e),_(bs.$$.fragment,e),_(bo.$$.fragment,e),_(vo.$$.fragment,e),_(vs.$$.fragment,e),_($s.$$.fragment,e),_(ys.$$.fragment,e),_(xs.$$.fragment,e),_(yo.$$.fragment,e),_(xo.$$.fragment,e),_(ws.$$.fragment,e),_(wo.$$.fragment,e),_(Mo.$$.fragment,e),_(Ms.$$.fragment,e),_(ko.$$.fragment,e),_(ks.$$.fragment,e),_(To.$$.fragment,e),_(jo.$$.fragment,e),_(Ts.$$.fragment,e),_(Co.$$.fragment,e),_(Io.$$.fragment,e),_(Ho.$$.fragment,e),_(Uo.$$.fragment,e),_(js.$$.fragment,e),_(Jo.$$.fragment,e),_(Cs.$$.fragment,e),_(Ao.$$.fragment,e),_(Is.$$.fragment,e),_(Hs.$$.fragment,e),_(No.$$.fragment,e),_(Js.$$.fragment,e),_(As.$$.fragment,e),_(qs.$$.fragment,e),_(Ns.$$.fragment,e),_(Eo.$$.fragment,e),_(Es.$$.fragment,e),_(Rs.$$.fragment,e),_(Gs.$$.fragment,e),_(Go.$$.fragment,e),_(Ds.$$.fragment,e),_(Ss.$$.fragment,e),_(So.$$.fragment,e),_(Fs.$$.fragment,e),_(Fo.$$.fragment,e),_(Zs.$$.fragment,e),_(Zo.$$.fragment,e),_(Ls.$$.fragment,e),_(Bs.$$.fragment,e),_(Ws.$$.fragment,e),_(Lo.$$.fragment,e),_(Bo.$$.fragment,e),_(Wo.$$.fragment,e),_(Vs.$$.fragment,e),_(Vo.$$.fragment,e),_(Xo.$$.fragment,e),_(Xs.$$.fragment,e),_(Yo.$$.fragment,e),_(Ys.$$.fragment,e),_(Po.$$.fragment,e),_(Ps.$$.fragment,e),_(Oo.$$.fragment,e),_(Os.$$.fragment,e),_(zo.$$.fragment,e),_(zs.$$.fragment,e),_(Qs.$$.fragment,e),_(Ks.$$.fragment,e),_(Qo.$$.fragment,e),_(ei.$$.fragment,e),_(ti.$$.fragment,e),_(Ko.$$.fragment,e),_(ni.$$.fragment,e),_(ea.$$.fragment,e),_(oi.$$.fragment,e),_(ta.$$.fragment,e),_(ai.$$.fragment,e),_(na.$$.fragment,e),_(oa.$$.fragment,e),_(aa.$$.fragment,e),_(si.$$.fragment,e),_(sa.$$.fragment,e),_(ii.$$.fragment,e),_(ia.$$.fragment,e),_(ri.$$.fragment,e),_(ra.$$.fragment,e),_(li.$$.fragment,e),_(ci.$$.fragment,e),_(la.$$.fragment,e),_(pi.$$.fragment,e),_(ca.$$.fragment,e),_(pa.$$.fragment,e),_(da.$$.fragment,e),_(di.$$.fragment,e),_(ga.$$.fragment,e),_(ua.$$.fragment,e),_(ha.$$.fragment,e),_(ma.$$.fragment,e),_(gi.$$.fragment,e),_(ui.$$.fragment,e),_(_a.$$.fragment,e),_(ba.$$.fragment,e),_(va.$$.fragment,e),_(hi.$$.fragment,e),_(mi.$$.fragment,e),_(fi.$$.fragment,e),_(_i.$$.fragment,e),_(bi.$$.fragment,e),_(vi.$$.fragment,e),_($i.$$.fragment,e),_(yi.$$.fragment,e),_(xi.$$.fragment,e),_(wi.$$.fragment,e),_(Mi.$$.fragment,e),_(ki.$$.fragment,e),_(Ti.$$.fragment,e),_(ji.$$.fragment,e),_(Ci.$$.fragment,e),_(Ii.$$.fragment,e),_(Hi.$$.fragment,e),_(Ui.$$.fragment,e),_(Ji.$$.fragment,e),_($a.$$.fragment,e),_(Ai.$$.fragment,e),_(qi.$$.fragment,e),_(Ni.$$.fragment,e),_(Ei.$$.fragment,e),_(Ri.$$.fragment,e),_(Gi.$$.fragment,e),_(Di.$$.fragment,e),_(Fi.$$.fragment,e),_(Zi.$$.fragment,e),_(ya.$$.fragment,e),_(Li.$$.fragment,e),_(Bi.$$.fragment,e),_(Wi.$$.fragment,e),_(Vi.$$.fragment,e),_(Xi.$$.fragment,e),_(xa.$$.fragment,e),_(Yi.$$.fragment,e),_(wa.$$.fragment,e),_(Pi.$$.fragment,e),_(Oi.$$.fragment,e),_(zi.$$.fragment,e),_(er.$$.fragment,e),_(tr.$$.fragment,e),_(nr.$$.fragment,e),_(or.$$.fragment,e),_(ar.$$.fragment,e),_(ir.$$.fragment,e),_(rr.$$.fragment,e),_(ka.$$.fragment,e),_(lr.$$.fragment,e),_(cr.$$.fragment,e),_(Ta.$$.fragment,e),xg=!0)},o(e){b($.$$.fragment,e),b(qa.$$.fragment,e),b(Na.$$.fragment,e),b(Ea.$$.fragment,e),b(Ra.$$.fragment,e),b(Nn.$$.fragment,e),b(Ga.$$.fragment,e),b(Da.$$.fragment,e),b(Sa.$$.fragment,e),b(En.$$.fragment,e),b(Rn.$$.fragment,e),b(Fa.$$.fragment,e),b(Gn.$$.fragment,e),b(Dn.$$.fragment,e),b(Za.$$.fragment,e),b(La.$$.fragment,e),b(Fn.$$.fragment,e),b(Ba.$$.fragment,e),b(Zn.$$.fragment,e),b(Ln.$$.fragment,e),b(Bn.$$.fragment,e),b(Wa.$$.fragment,e),b(Wn.$$.fragment,e),b(Vn.$$.fragment,e),b(Xn.$$.fragment,e),b(Va.$$.fragment,e),b(Yn.$$.fragment,e),b(Xa.$$.fragment,e),b(Pn.$$.fragment,e),b(Ya.$$.fragment,e),b(On.$$.fragment,e),b(Pa.$$.fragment,e),b(Oa.$$.fragment,e),b(za.$$.fragment,e),b(Kn.$$.fragment,e),b(Qa.$$.fragment,e),b(Ka.$$.fragment,e),b(to.$$.fragment,e),b(no.$$.fragment,e),b(es.$$.fragment,e),b(oo.$$.fragment,e),b(ts.$$.fragment,e),b(ao.$$.fragment,e),b(ns.$$.fragment,e),b(os.$$.fragment,e),b(as.$$.fragment,e),b(ss.$$.fragment,e),b(is.$$.fragment,e),b(rs.$$.fragment,e),b(ls.$$.fragment,e),b(cs.$$.fragment,e),b(lo.$$.fragment,e),b(ps.$$.fragment,e),b(co.$$.fragment,e),b(ds.$$.fragment,e),b(po.$$.fragment,e),b(gs.$$.fragment,e),b(go.$$.fragment,e),b(us.$$.fragment,e),b(hs.$$.fragment,e),b(ho.$$.fragment,e),b(ms.$$.fragment,e),b(fs.$$.fragment,e),b(fo.$$.fragment,e),b(_s.$$.fragment,e),b(bs.$$.fragment,e),b(bo.$$.fragment,e),b(vo.$$.fragment,e),b(vs.$$.fragment,e),b($s.$$.fragment,e),b(ys.$$.fragment,e),b(xs.$$.fragment,e),b(yo.$$.fragment,e),b(xo.$$.fragment,e),b(ws.$$.fragment,e),b(wo.$$.fragment,e),b(Mo.$$.fragment,e),b(Ms.$$.fragment,e),b(ko.$$.fragment,e),b(ks.$$.fragment,e),b(To.$$.fragment,e),b(jo.$$.fragment,e),b(Ts.$$.fragment,e),b(Co.$$.fragment,e),b(Io.$$.fragment,e),b(Ho.$$.fragment,e),b(Uo.$$.fragment,e),b(js.$$.fragment,e),b(Jo.$$.fragment,e),b(Cs.$$.fragment,e),b(Ao.$$.fragment,e),b(Is.$$.fragment,e),b(Hs.$$.fragment,e),b(No.$$.fragment,e),b(Js.$$.fragment,e),b(As.$$.fragment,e),b(qs.$$.fragment,e),b(Ns.$$.fragment,e),b(Eo.$$.fragment,e),b(Es.$$.fragment,e),b(Rs.$$.fragment,e),b(Gs.$$.fragment,e),b(Go.$$.fragment,e),b(Ds.$$.fragment,e),b(Ss.$$.fragment,e),b(So.$$.fragment,e),b(Fs.$$.fragment,e),b(Fo.$$.fragment,e),b(Zs.$$.fragment,e),b(Zo.$$.fragment,e),b(Ls.$$.fragment,e),b(Bs.$$.fragment,e),b(Ws.$$.fragment,e),b(Lo.$$.fragment,e),b(Bo.$$.fragment,e),b(Wo.$$.fragment,e),b(Vs.$$.fragment,e),b(Vo.$$.fragment,e),b(Xo.$$.fragment,e),b(Xs.$$.fragment,e),b(Yo.$$.fragment,e),b(Ys.$$.fragment,e),b(Po.$$.fragment,e),b(Ps.$$.fragment,e),b(Oo.$$.fragment,e),b(Os.$$.fragment,e),b(zo.$$.fragment,e),b(zs.$$.fragment,e),b(Qs.$$.fragment,e),b(Ks.$$.fragment,e),b(Qo.$$.fragment,e),b(ei.$$.fragment,e),b(ti.$$.fragment,e),b(Ko.$$.fragment,e),b(ni.$$.fragment,e),b(ea.$$.fragment,e),b(oi.$$.fragment,e),b(ta.$$.fragment,e),b(ai.$$.fragment,e),b(na.$$.fragment,e),b(oa.$$.fragment,e),b(aa.$$.fragment,e),b(si.$$.fragment,e),b(sa.$$.fragment,e),b(ii.$$.fragment,e),b(ia.$$.fragment,e),b(ri.$$.fragment,e),b(ra.$$.fragment,e),b(li.$$.fragment,e),b(ci.$$.fragment,e),b(la.$$.fragment,e),b(pi.$$.fragment,e),b(ca.$$.fragment,e),b(pa.$$.fragment,e),b(da.$$.fragment,e),b(di.$$.fragment,e),b(ga.$$.fragment,e),b(ua.$$.fragment,e),b(ha.$$.fragment,e),b(ma.$$.fragment,e),b(gi.$$.fragment,e),b(ui.$$.fragment,e),b(_a.$$.fragment,e),b(ba.$$.fragment,e),b(va.$$.fragment,e),b(hi.$$.fragment,e),b(mi.$$.fragment,e),b(fi.$$.fragment,e),b(_i.$$.fragment,e),b(bi.$$.fragment,e),b(vi.$$.fragment,e),b($i.$$.fragment,e),b(yi.$$.fragment,e),b(xi.$$.fragment,e),b(wi.$$.fragment,e),b(Mi.$$.fragment,e),b(ki.$$.fragment,e),b(Ti.$$.fragment,e),b(ji.$$.fragment,e),b(Ci.$$.fragment,e),b(Ii.$$.fragment,e),b(Hi.$$.fragment,e),b(Ui.$$.fragment,e),b(Ji.$$.fragment,e),b($a.$$.fragment,e),b(Ai.$$.fragment,e),b(qi.$$.fragment,e),b(Ni.$$.fragment,e),b(Ei.$$.fragment,e),b(Ri.$$.fragment,e),b(Gi.$$.fragment,e),b(Di.$$.fragment,e),b(Fi.$$.fragment,e),b(Zi.$$.fragment,e),b(ya.$$.fragment,e),b(Li.$$.fragment,e),b(Bi.$$.fragment,e),b(Wi.$$.fragment,e),b(Vi.$$.fragment,e),b(Xi.$$.fragment,e),b(xa.$$.fragment,e),b(Yi.$$.fragment,e),b(wa.$$.fragment,e),b(Pi.$$.fragment,e),b(Oi.$$.fragment,e),b(zi.$$.fragment,e),b(er.$$.fragment,e),b(tr.$$.fragment,e),b(nr.$$.fragment,e),b(or.$$.fragment,e),b(ar.$$.fragment,e),b(ir.$$.fragment,e),b(rr.$$.fragment,e),b(ka.$$.fragment,e),b(lr.$$.fragment,e),b(cr.$$.fragment,e),b(Ta.$$.fragment,e),xg=!1},d(e){e&&(p(g),p(s),p(a),p(t),p(y),p(jd),p(Ja),p(Cd),p(Aa),p(Id),p(Hd),p(Ud),p(M),p(Jd),p(G),p(Ad),p(qd),p(Nd),p(Ve),p(Ed),p(Rd),p(en),p(Gd),p(Dd),p(tn),p(Sd),p(Fd),p(nn),p(Zd),p(Ld),p(Xe),p(Bd),p(Wd),p(on),p(Vd),p(Xd),p(an),p(Yd),p(Pd),p(sn),p(Od),p(zd),p(Q),p(Qd),p(Kd),p(rn),p(eg),p(tg),p(ln),p(ng),p(og),p(cn),p(ag),p(sg),p(Si),p(ig),p(ge),p(rg),p(pn),p(lg),p(K),p(cg),p(pg),p(S),p(dg),p(gg),p(Qi),p(ug),p(Ki),p(hg),p(ue),p(mg),p(fg),p(sr),p(_g),p(bg),p(Ye),p(vg),p($g),p(Pe),p(yg),p(xd)),p(n),v($,e),v(qa,e),v(Na,e),v(Ea),v(Ra),v(Nn),v(Ga),v(Da),v(Sa),v(En),v(Rn),v(Fa),v(Gn),v(Dn),v(Za),v(La),v(Fn),v(Ba),v(Zn),v(Ln),v(Bn),v(Wa),v(Wn),v(Vn),v(Xn),v(Va),v(Yn),v(Xa),v(Pn),v(Ya),v(On),v(Pa),v(Oa),v(za),v(Kn),v(Qa),v(Ka),v(to),v(no),v(es),v(oo),v(ts),v(ao),v(ns),v(os),v(as),v(ss),v(is),v(rs),v(ls),v(cs),v(lo),v(ps),v(co),v(ds),v(po),v(gs),v(go),v(us),v(hs),v(ho),v(ms),v(fs),v(fo),v(_s),v(bs),v(bo),v(vo),v(vs),v($s),v(ys),v(xs),v(yo),v(xo),v(ws),v(wo),v(Mo),v(Ms),v(ko),v(ks),v(To),v(jo),v(Ts),v(Co),v(Io),v(Ho),v(Uo),v(js),v(Jo),v(Cs),v(Ao),v(Is),v(Hs),v(No),v(Js),v(As),v(qs),v(Ns),v(Eo),v(Es),v(Rs),v(Gs),v(Go),v(Ds),v(Ss),v(So),v(Fs),v(Fo),v(Zs),v(Zo),v(Ls),v(Bs),v(Ws),v(Lo),v(Bo),v(Wo),v(Vs),v(Vo),v(Xo),v(Xs),v(Yo),v(Ys),v(Po),v(Ps),v(Oo),v(Os),v(zo),v(zs),v(Qs),v(Ks),v(Qo),v(ei),v(ti),v(Ko),v(ni),v(ea),v(oi),v(ta),v(ai),v(na),v(oa),v(aa),v(si),v(sa),v(ii),v(ia),v(ri),v(ra),v(li),v(ci),v(la),v(pi),v(ca),v(pa),v(da),v(di),v(ga),v(ua),v(ha),v(ma),v(gi),v(ui),v(_a),v(ba),v(va),v(hi,e),v(mi,e),v(fi),v(_i,e),v(bi),v(vi,e),v($i),v(yi,e),v(xi),v(wi,e),v(Mi),v(ki,e),v(Ti),v(ji,e),v(Ci),v(Ii,e),v(Hi),v(Ui,e),v(Ji),v($a),v(Ai,e),v(qi),v(Ni,e),v(Ei),v(Ri,e),v(Gi),v(Di,e),v(Fi),v(Zi),v(ya),v(Li),v(Bi),v(Wi),v(Vi,e),v(Xi),v(xa),v(Yi),v(wa),v(Pi),v(Oi),v(zi,e),v(er),v(tr),v(nr),v(or),v(ar,e),v(ir,e),v(rr),v(ka),v(lr,e),v(cr),v(Ta)}}}const sw='{"title":"HfApi Client","local":"hfapi-client","sections":[{"title":"HfApi","local":"huggingface_hub.HfApi","sections":[],"depth":2}],"depth":1}';function iw(w){return w2(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class hw extends M2{constructor(n){super(),k2(this,n,iw,aw,x2,{})}}export{hw as component};
