import{s as x1,o as w1,n as I}from"../chunks/scheduler.6062bdaf.js";import{S as M1,i as k1,g as l,s as r,r as h,m as y1,A as T1,h as c,f as p,c as i,j as T,u as f,x as d,n as $1,k as j,y as o,a as x,v as m,d as _,t as b,w as v}from"../chunks/index.4bca734e.js";import{H as E,g as j1}from"../chunks/Heading.949e2f88.js";import{T as J}from"../chunks/Tip.b9ac1f03.js";import{D as C}from"../chunks/Docstring.5c2fc3ce.js";import{C as H}from"../chunks/CodeBlock.fa01571c.js";import{E as U}from"../chunks/ExampleCodeBlock.29b93798.js";function C1(w){let n,g="Example:",s,a,y;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=r(),h(a.$$.fragment)},l(t){n=c(t,"P",{"data-svelte-h":!0}),d(n)!=="svelte-11lpom8"&&(n.textContent=g),s=i(t),f(a.$$.fragment,t)},m(t,$){x(t,n,$),x(t,s,$),m(a,t,$),y=!0},p:I,i(t){y||(_(a.$$.fragment,t),y=!0)},o(t){b(a.$$.fragment,t),y=!1},d(t){t&&(p(n),p(s)),v(a,t)}}}function I1(w){let n,g="Examples:",s,a,y;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=r(),h(a.$$.fragment)},l(t){n=c(t,"P",{"data-svelte-h":!0}),d(n)!=="svelte-kvfsh7"&&(n.textContent=g),s=i(t),f(a.$$.fragment,t)},m(t,$){x(t,n,$),x(t,s,$),m(a,t,$),y=!0},p:I,i(t){y||(_(a.$$.fragment,t),y=!0)},o(t){b(a.$$.fragment,t),y=!1},d(t){t&&(p(n),p(s)),v(a,t)}}}function H1(w){let n,g="Raises the following errors:",s,a,y=`<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/v0.19.2/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=r(),a=l("ul"),a.innerHTML=y},l(t){n=c(t,"P",{"data-svelte-h":!0}),d(n)!=="svelte-182te9i"&&(n.textContent=g),s=i(t),a=c(t,"UL",{"data-svelte-h":!0}),d(a)!=="svelte-tpn8yp"&&(a.innerHTML=y)},m(t,$){x(t,n,$),x(t,s,$),x(t,a,$)},p:I,d(t){t&&(p(n),p(s),p(a))}}}function U1(w){let n,g="Examples:",s,a,y;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=r(),h(a.$$.fragment)},l(t){n=c(t,"P",{"data-svelte-h":!0}),d(n)!=="svelte-kvfsh7"&&(n.textContent=g),s=i(t),f(a.$$.fragment,t)},m(t,$){x(t,n,$),x(t,s,$),m(a,t,$),y=!0},p:I,i(t){y||(_(a.$$.fragment,t),y=!0)},o(t){b(a.$$.fragment,t),y=!1},d(t){t&&(p(n),p(s)),v(a,t)}}}function J1(w){let n,g="Raises the following errors:",s,a,y=`<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/v0.19.2/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=r(),a=l("ul"),a.innerHTML=y},l(t){n=c(t,"P",{"data-svelte-h":!0}),d(n)!=="svelte-182te9i"&&(n.textContent=g),s=i(t),a=c(t,"UL",{"data-svelte-h":!0}),d(a)!=="svelte-tpn8yp"&&(a.innerHTML=y)},m(t,$){x(t,n,$),x(t,s,$),x(t,a,$)},p:I,d(t){t&&(p(n),p(s),p(a))}}}function A1(w){let n,g="Example:",s,a,y;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=r(),h(a.$$.fragment)},l(t){n=c(t,"P",{"data-svelte-h":!0}),d(n)!=="svelte-11lpom8"&&(n.textContent=g),s=i(t),f(a.$$.fragment,t)},m(t,$){x(t,n,$),x(t,s,$),m(a,t,$),y=!0},p:I,i(t){y||(_(a.$$.fragment,t),y=!0)},o(t){b(a.$$.fragment,t),y=!1},d(t){t&&(p(n),p(s)),v(a,t)}}}function q1(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 N1(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/v0.19.2/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-1len21g"&&(n.innerHTML=g)},m(s,a){x(s,n,a)},p:I,d(s){s&&p(n)}}}function E1(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 R1(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 G1(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/v0.19.2/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-lb7j86"&&(n.innerHTML=g)},m(s,a){x(s,n,a)},p:I,d(s){s&&p(n)}}}function D1(w){let n,g="Example:",s,a,y;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=r(),h(a.$$.fragment)},l(t){n=c(t,"P",{"data-svelte-h":!0}),d(n)!=="svelte-11lpom8"&&(n.textContent=g),s=i(t),f(a.$$.fragment,t)},m(t,$){x(t,n,$),x(t,s,$),m(a,t,$),y=!0},p:I,i(t){y||(_(a.$$.fragment,t),y=!0)},o(t){b(a.$$.fragment,t),y=!1},d(t){t&&(p(n),p(s)),v(a,t)}}}function S1(w){let n,g="Raises the following errors:",s,a,y=`<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/v0.19.2/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=r(),a=l("ul"),a.innerHTML=y},l(t){n=c(t,"P",{"data-svelte-h":!0}),d(n)!=="svelte-182te9i"&&(n.textContent=g),s=i(t),a=c(t,"UL",{"data-svelte-h":!0}),d(a)!=="svelte-tpn8yp"&&(a.innerHTML=y)},m(t,$){x(t,n,$),x(t,s,$),x(t,a,$)},p:I,d(t){t&&(p(n),p(s),p(a))}}}function F1(w){let n,g="Example:",s,a,y;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=r(),h(a.$$.fragment)},l(t){n=c(t,"P",{"data-svelte-h":!0}),d(n)!=="svelte-11lpom8"&&(n.textContent=g),s=i(t),f(a.$$.fragment,t)},m(t,$){x(t,n,$),x(t,s,$),m(a,t,$),y=!0},p:I,i(t){y||(_(a.$$.fragment,t),y=!0)},o(t){b(a.$$.fragment,t),y=!1},d(t){t&&(p(n),p(s)),v(a,t)}}}function Z1(w){let n,g="Raises the following errors:",s,a,y=`<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/v0.19.2/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=r(),a=l("ul"),a.innerHTML=y},l(t){n=c(t,"P",{"data-svelte-h":!0}),d(n)!=="svelte-182te9i"&&(n.textContent=g),s=i(t),a=c(t,"UL",{"data-svelte-h":!0}),d(a)!=="svelte-tpn8yp"&&(a.innerHTML=y)},m(t,$){x(t,n,$),x(t,s,$),x(t,a,$)},p:I,d(t){t&&(p(n),p(s),p(a))}}}function L1(w){let n,g="Raises the following errors:",s,a,y=`<li><a href="/docs/huggingface_hub/v0.19.2/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/v0.19.2/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=r(),a=l("ul"),a.innerHTML=y},l(t){n=c(t,"P",{"data-svelte-h":!0}),d(n)!=="svelte-182te9i"&&(n.textContent=g),s=i(t),a=c(t,"UL",{"data-svelte-h":!0}),d(a)!=="svelte-1iub84k"&&(a.innerHTML=y)},m(t,$){x(t,n,$),x(t,s,$),x(t,a,$)},p:I,d(t){t&&(p(n),p(s),p(a))}}}function B1(w){let n,g="Example:",s,a,y;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=r(),h(a.$$.fragment)},l(t){n=c(t,"P",{"data-svelte-h":!0}),d(n)!=="svelte-11lpom8"&&(n.textContent=g),s=i(t),f(a.$$.fragment,t)},m(t,$){x(t,n,$),x(t,s,$),m(a,t,$),y=!0},p:I,i(t){y||(_(a.$$.fragment,t),y=!0)},o(t){b(a.$$.fragment,t),y=!1},d(t){t&&(p(n),p(s)),v(a,t)}}}function W1(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 V1(w){let n,g="Example:",s,a,y;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=r(),h(a.$$.fragment)},l(t){n=c(t,"P",{"data-svelte-h":!0}),d(n)!=="svelte-11lpom8"&&(n.textContent=g),s=i(t),f(a.$$.fragment,t)},m(t,$){x(t,n,$),x(t,s,$),m(a,t,$),y=!0},p:I,i(t){y||(_(a.$$.fragment,t),y=!0)},o(t){b(a.$$.fragment,t),y=!1},d(t){t&&(p(n),p(s)),v(a,t)}}}function X1(w){let n,g="Raises the following errors:",s,a,y=`<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/v0.19.2/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/v0.19.2/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/v0.19.2/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=r(),a=l("ul"),a.innerHTML=y},l(t){n=c(t,"P",{"data-svelte-h":!0}),d(n)!=="svelte-182te9i"&&(n.textContent=g),s=i(t),a=c(t,"UL",{"data-svelte-h":!0}),d(a)!=="svelte-1h5xu2s"&&(a.innerHTML=y)},m(t,$){x(t,n,$),x(t,s,$),x(t,a,$)},p:I,d(t){t&&(p(n),p(s),p(a))}}}function Y1(w){let n,g="Example:",s,a,y;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=r(),h(a.$$.fragment)},l(t){n=c(t,"P",{"data-svelte-h":!0}),d(n)!=="svelte-11lpom8"&&(n.textContent=g),s=i(t),f(a.$$.fragment,t)},m(t,$){x(t,n,$),x(t,s,$),m(a,t,$),y=!0},p:I,i(t){y||(_(a.$$.fragment,t),y=!0)},o(t){b(a.$$.fragment,t),y=!1},d(t){t&&(p(n),p(s)),v(a,t)}}}function P1(w){let n,g="Raises the following errors:",s,a,y=`<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/v0.19.2/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=r(),a=l("ul"),a.innerHTML=y},l(t){n=c(t,"P",{"data-svelte-h":!0}),d(n)!=="svelte-182te9i"&&(n.textContent=g),s=i(t),a=c(t,"UL",{"data-svelte-h":!0}),d(a)!=="svelte-tpn8yp"&&(a.innerHTML=y)},m(t,$){x(t,n,$),x(t,s,$),x(t,a,$)},p:I,d(t){t&&(p(n),p(s),p(a))}}}function O1(w){let n,g="Examples:",s,a,y;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=r(),h(a.$$.fragment)},l(t){n=c(t,"P",{"data-svelte-h":!0}),d(n)!=="svelte-kvfsh7"&&(n.textContent=g),s=i(t),f(a.$$.fragment,t)},m(t,$){x(t,n,$),x(t,s,$),m(a,t,$),y=!0},p:I,i(t){y||(_(a.$$.fragment,t),y=!0)},o(t){b(a.$$.fragment,t),y=!1},d(t){t&&(p(n),p(s)),v(a,t)}}}function z1(w){let n,g;return n=new U({props:{anchor:"huggingface_hub.HfApi.file_exists.example",$$slots:{default:[O1]},$$scope:{ctx:w}}}),{c(){h(n.$$.fragment)},l(s){f(n.$$.fragment,s)},m(s,a){m(n,s,a),g=!0},p(s,a){const y={};a&2&&(y.$$scope={dirty:a,ctx:s}),n.$set(y)},i(s){g||(_(n.$$.fragment,s),g=!0)},o(s){b(n.$$.fragment,s),g=!1},d(s){v(n,s)}}}function Q1(w){let n,g="Example:",s,a,y;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=r(),h(a.$$.fragment)},l(t){n=c(t,"P",{"data-svelte-h":!0}),d(n)!=="svelte-11lpom8"&&(n.textContent=g),s=i(t),f(a.$$.fragment,t)},m(t,$){x(t,n,$),x(t,s,$),m(a,t,$),y=!0},p:I,i(t){y||(_(a.$$.fragment,t),y=!0)},o(t){b(a.$$.fragment,t),y=!1},d(t){t&&(p(n),p(s)),v(a,t)}}}function K1(w){let n,g="Raises the following errors:",s,a,y=`<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/v0.19.2/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=r(),a=l("ul"),a.innerHTML=y},l(t){n=c(t,"P",{"data-svelte-h":!0}),d(n)!=="svelte-182te9i"&&(n.textContent=g),s=i(t),a=c(t,"UL",{"data-svelte-h":!0}),d(a)!=="svelte-tpn8yp"&&(a.innerHTML=y)},m(t,$){x(t,n,$),x(t,s,$),x(t,a,$)},p:I,d(t){t&&(p(n),p(s),p(a))}}}function ex(w){let n,g="Example:",s,a,y;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=r(),h(a.$$.fragment)},l(t){n=c(t,"P",{"data-svelte-h":!0}),d(n)!=="svelte-11lpom8"&&(n.textContent=g),s=i(t),f(a.$$.fragment,t)},m(t,$){x(t,n,$),x(t,s,$),m(a,t,$),y=!0},p:I,i(t){y||(_(a.$$.fragment,t),y=!0)},o(t){b(a.$$.fragment,t),y=!1},d(t){t&&(p(n),p(s)),v(a,t)}}}function tx(w){let n,g="Collecting all discussions of a repo in a list:",s,a,y;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=r(),h(a.$$.fragment)},l(t){n=c(t,"P",{"data-svelte-h":!0}),d(n)!=="svelte-1p6axsk"&&(n.textContent=g),s=i(t),f(a.$$.fragment,t)},m(t,$){x(t,n,$),x(t,s,$),m(a,t,$),y=!0},p:I,i(t){y||(_(a.$$.fragment,t),y=!0)},o(t){b(a.$$.fragment,t),y=!1},d(t){t&&(p(n),p(s)),v(a,t)}}}function nx(w){let n,g="Iterating over discussions of a repo:",s,a,y;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=r(),h(a.$$.fragment)},l(t){n=c(t,"P",{"data-svelte-h":!0}),d(n)!=="svelte-121l6g4"&&(n.textContent=g),s=i(t),f(a.$$.fragment,t)},m(t,$){x(t,n,$),x(t,s,$),m(a,t,$),y=!0},p:I,i(t){y||(_(a.$$.fragment,t),y=!0)},o(t){b(a.$$.fragment,t),y=!1},d(t){t&&(p(n),p(s)),v(a,t)}}}function ox(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){f(n.$$.fragment,s)},m(s,a){m(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 ax(w){let n,g="Raises the following errors:",s,a,y=`<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/v0.19.2/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/v0.19.2/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/v0.19.2/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/v0.19.2/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=r(),a=l("ul"),a.innerHTML=y},l(t){n=c(t,"P",{"data-svelte-h":!0}),d(n)!=="svelte-182te9i"&&(n.textContent=g),s=i(t),a=c(t,"UL",{"data-svelte-h":!0}),d(a)!=="svelte-1yrgcik"&&(a.innerHTML=y)},m(t,$){x(t,n,$),x(t,s,$),x(t,a,$)},p:I,d(t){t&&(p(n),p(s),p(a))}}}function sx(w){let n;return{c(){n=y1("Hidden comments' content cannot be retrieved anymore. Hiding a comment is irreversible.")},l(g){n=$1(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 rx(w){let n,g="Raises the following errors:",s,a,y=`<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/v0.19.2/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=r(),a=l("ul"),a.innerHTML=y},l(t){n=c(t,"P",{"data-svelte-h":!0}),d(n)!=="svelte-182te9i"&&(n.textContent=g),s=i(t),a=c(t,"UL",{"data-svelte-h":!0}),d(a)!=="svelte-tpn8yp"&&(a.innerHTML=y)},m(t,$){x(t,n,$),x(t,s,$),x(t,a,$)},p:I,d(t){t&&(p(n),p(s),p(a))}}}function ix(w){let n,g="Example:",s,a,y;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=r(),h(a.$$.fragment)},l(t){n=c(t,"P",{"data-svelte-h":!0}),d(n)!=="svelte-11lpom8"&&(n.textContent=g),s=i(t),f(a.$$.fragment,t)},m(t,$){x(t,n,$),x(t,s,$),m(a,t,$),y=!0},p:I,i(t){y||(_(a.$$.fragment,t),y=!0)},o(t){b(a.$$.fragment,t),y=!1},d(t){t&&(p(n),p(s)),v(a,t)}}}function lx(w){let n,g="Example usage with the <code>filter</code> argument:",s,a,y;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=r(),h(a.$$.fragment)},l(t){n=c(t,"P",{"data-svelte-h":!0}),d(n)!=="svelte-1lrmw6w"&&(n.innerHTML=g),s=i(t),f(a.$$.fragment,t)},m(t,$){x(t,n,$),x(t,s,$),m(a,t,$),y=!0},p:I,i(t){y||(_(a.$$.fragment,t),y=!0)},o(t){b(a.$$.fragment,t),y=!1},d(t){t&&(p(n),p(s)),v(a,t)}}}function cx(w){let n,g="Example usage with the <code>search</code> argument:",s,a,y;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=r(),h(a.$$.fragment)},l(t){n=c(t,"P",{"data-svelte-h":!0}),d(n)!=="svelte-1oyacuq"&&(n.innerHTML=g),s=i(t),f(a.$$.fragment,t)},m(t,$){x(t,n,$),x(t,s,$),m(a,t,$),y=!0},p:I,i(t){y||(_(a.$$.fragment,t),y=!0)},o(t){b(a.$$.fragment,t),y=!1},d(t){t&&(p(n),p(s)),v(a,t)}}}function px(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){f(n.$$.fragment,s)},m(s,a){m(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 dx(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){f(n.$$.fragment,s)},m(s,a){m(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 gx(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){f(n.$$.fragment,s)},m(s,a){m(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 ux(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){f(n.$$.fragment,s)},m(s,a){m(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 hx(w){let n,g="Example:",s,a,y;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=r(),h(a.$$.fragment)},l(t){n=c(t,"P",{"data-svelte-h":!0}),d(n)!=="svelte-11lpom8"&&(n.textContent=g),s=i(t),f(a.$$.fragment,t)},m(t,$){x(t,n,$),x(t,s,$),m(a,t,$),y=!0},p:I,i(t){y||(_(a.$$.fragment,t),y=!0)},o(t){b(a.$$.fragment,t),y=!1},d(t){t&&(p(n),p(s)),v(a,t)}}}function fx(w){let n,g="Example:",s,a,y;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=r(),h(a.$$.fragment)},l(t){n=c(t,"P",{"data-svelte-h":!0}),d(n)!=="svelte-11lpom8"&&(n.textContent=g),s=i(t),f(a.$$.fragment,t)},m(t,$){x(t,n,$),x(t,s,$),m(a,t,$),y=!0},p:I,i(t){y||(_(a.$$.fragment,t),y=!0)},o(t){b(a.$$.fragment,t),y=!1},d(t){t&&(p(n),p(s)),v(a,t)}}}function mx(w){let n,g="Example usage with the <code>filter</code> argument:",s,a,y,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=r(),h(a.$$.fragment),y=r()},l($){n=c($,"P",{"data-svelte-h":!0}),d(n)!=="svelte-1lrmw6w"&&(n.innerHTML=g),s=i($),f(a.$$.fragment,$),y=i($)},m($,Ua){x($,n,Ua),x($,s,Ua),m(a,$,Ua),x($,y,Ua),t=!0},p:I,i($){t||(_(a.$$.fragment,$),t=!0)},o($){b(a.$$.fragment,$),t=!1},d($){$&&(p(n),p(s),p(y)),v(a,$)}}}function _x(w){let n,g="Example:",s,a,y;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=r(),h(a.$$.fragment)},l(t){n=c(t,"P",{"data-svelte-h":!0}),d(n)!=="svelte-11lpom8"&&(n.textContent=g),s=i(t),f(a.$$.fragment,t)},m(t,$){x(t,n,$),x(t,s,$),m(a,t,$),y=!0},p:I,i(t){y||(_(a.$$.fragment,t),y=!0)},o(t){b(a.$$.fragment,t),y=!1},d(t){t&&(p(n),p(s)),v(a,t)}}}function bx(w){let n,g="Example:",s,a,y;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=r(),h(a.$$.fragment)},l(t){n=c(t,"P",{"data-svelte-h":!0}),d(n)!=="svelte-11lpom8"&&(n.textContent=g),s=i(t),f(a.$$.fragment,t)},m(t,$){x(t,n,$),x(t,s,$),m(a,t,$),y=!0},p:I,i(t){y||(_(a.$$.fragment,t),y=!0)},o(t){b(a.$$.fragment,t),y=!1},d(t){t&&(p(n),p(s)),v(a,t)}}}function vx(w){let n,g="Raises the following errors:",s,a,y=`<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/v0.19.2/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=r(),a=l("ul"),a.innerHTML=y},l(t){n=c(t,"P",{"data-svelte-h":!0}),d(n)!=="svelte-182te9i"&&(n.textContent=g),s=i(t),a=c(t,"UL",{"data-svelte-h":!0}),d(a)!=="svelte-tpn8yp"&&(a.innerHTML=y)},m(t,$){x(t,n,$),x(t,s,$),x(t,a,$)},p:I,d(t){t&&(p(n),p(s),p(a))}}}function yx(w){let n,g="Raises the following errors:",s,a,y=`<li><a href="/docs/huggingface_hub/v0.19.2/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/v0.19.2/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=r(),a=l("ul"),a.innerHTML=y},l(t){n=c(t,"P",{"data-svelte-h":!0}),d(n)!=="svelte-182te9i"&&(n.textContent=g),s=i(t),a=c(t,"UL",{"data-svelte-h":!0}),d(a)!=="svelte-1iub84k"&&(a.innerHTML=y)},m(t,$){x(t,n,$),x(t,s,$),x(t,a,$)},p:I,d(t){t&&(p(n),p(s),p(a))}}}function $x(w){let n,g="Raises the following errors:",s,a,y=`<li><a href="/docs/huggingface_hub/v0.19.2/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=r(),a=l("ul"),a.innerHTML=y},l(t){n=c(t,"P",{"data-svelte-h":!0}),d(n)!=="svelte-182te9i"&&(n.textContent=g),s=i(t),a=c(t,"UL",{"data-svelte-h":!0}),d(a)!=="svelte-13lob88"&&(a.innerHTML=y)},m(t,$){x(t,n,$),x(t,s,$),x(t,a,$)},p:I,d(t){t&&(p(n),p(s),p(a))}}}function xx(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/v0.19.2/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-1hlqk81"&&(n.innerHTML=g)},m(s,a){x(s,n,a)},p:I,d(s){s&&p(n)}}}function wx(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/v0.19.2/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-16ws2ws"&&(n.innerHTML=g)},m(s,a){x(s,n,a)},p:I,d(s){s&&p(n)}}}function Mx(w){let n,g="Example:",s,a,y;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=r(),h(a.$$.fragment)},l(t){n=c(t,"P",{"data-svelte-h":!0}),d(n)!=="svelte-11lpom8"&&(n.textContent=g),s=i(t),f(a.$$.fragment,t)},m(t,$){x(t,n,$),x(t,s,$),m(a,t,$),y=!0},p:I,i(t){y||(_(a.$$.fragment,t),y=!0)},o(t){b(a.$$.fragment,t),y=!1},d(t){t&&(p(n),p(s)),v(a,t)}}}function kx(w){let n,g="Examples:",s,a,y;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=r(),h(a.$$.fragment)},l(t){n=c(t,"P",{"data-svelte-h":!0}),d(n)!=="svelte-kvfsh7"&&(n.textContent=g),s=i(t),f(a.$$.fragment,t)},m(t,$){x(t,n,$),x(t,s,$),m(a,t,$),y=!0},p:I,i(t){y||(_(a.$$.fragment,t),y=!0)},o(t){b(a.$$.fragment,t),y=!1},d(t){t&&(p(n),p(s)),v(a,t)}}}function Tx(w){let n,g="Raises the following errors:",s,a,y=`<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/v0.19.2/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=r(),a=l("ul"),a.innerHTML=y},l(t){n=c(t,"P",{"data-svelte-h":!0}),d(n)!=="svelte-182te9i"&&(n.textContent=g),s=i(t),a=c(t,"UL",{"data-svelte-h":!0}),d(a)!=="svelte-tpn8yp"&&(a.innerHTML=y)},m(t,$){x(t,n,$),x(t,s,$),x(t,a,$)},p:I,d(t){t&&(p(n),p(s),p(a))}}}function jx(w){let n,g="Examples:",s,a,y;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=r(),h(a.$$.fragment)},l(t){n=c(t,"P",{"data-svelte-h":!0}),d(n)!=="svelte-kvfsh7"&&(n.textContent=g),s=i(t),f(a.$$.fragment,t)},m(t,$){x(t,n,$),x(t,s,$),m(a,t,$),y=!0},p:I,i(t){y||(_(a.$$.fragment,t),y=!0)},o(t){b(a.$$.fragment,t),y=!1},d(t){t&&(p(n),p(s)),v(a,t)}}}function Cx(w){let n,g;return n=new U({props:{anchor:"huggingface_hub.HfApi.repo_exists.example",$$slots:{default:[jx]},$$scope:{ctx:w}}}),{c(){h(n.$$.fragment)},l(s){f(n.$$.fragment,s)},m(s,a){m(n,s,a),g=!0},p(s,a){const y={};a&2&&(y.$$scope={dirty:a,ctx:s}),n.$set(y)},i(s){g||(_(n.$$.fragment,s),g=!0)},o(s){b(n.$$.fragment,s),g=!1},d(s){v(n,s)}}}function Ix(w){let n,g="Raises the following errors:",s,a,y=`<li><a href="/docs/huggingface_hub/v0.19.2/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/v0.19.2/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=r(),a=l("ul"),a.innerHTML=y},l(t){n=c(t,"P",{"data-svelte-h":!0}),d(n)!=="svelte-182te9i"&&(n.textContent=g),s=i(t),a=c(t,"UL",{"data-svelte-h":!0}),d(a)!=="svelte-1iub84k"&&(a.innerHTML=y)},m(t,$){x(t,n,$),x(t,s,$),x(t,a,$)},p:I,d(t){t&&(p(n),p(s),p(a))}}}function Hx(w){let n,g='It is also possible to request hardware directly when creating the Space repo! See <a href="/docs/huggingface_hub/v0.19.2/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-b9kx5i"&&(n.innerHTML=g)},m(s,a){x(s,n,a)},p:I,d(s){s&&p(n)}}}function Ux(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/v0.19.2/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-d6j2g7"&&(n.innerHTML=g)},m(s,a){x(s,n,a)},p:I,d(s){s&&p(n)}}}function Jx(w){let n,g="Example:",s,a,y;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=r(),h(a.$$.fragment)},l(t){n=c(t,"P",{"data-svelte-h":!0}),d(n)!=="svelte-11lpom8"&&(n.textContent=g),s=i(t),f(a.$$.fragment,t)},m(t,$){x(t,n,$),x(t,s,$),m(a,t,$),y=!0},p:I,i(t){y||(_(a.$$.fragment,t),y=!0)},o(t){b(a.$$.fragment,t),y=!1},d(t){t&&(p(n),p(s)),v(a,t)}}}function Ax(w){let n,g='It is also possible to set a custom sleep time when requesting hardware with <a href="/docs/huggingface_hub/v0.19.2/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-agbvoh"&&(n.innerHTML=g)},m(s,a){x(s,n,a)},p:I,d(s){s&&p(n)}}}function qx(w){let n,g="Raises the following errors:",s,a,y=`<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=r(),a=l("ul"),a.innerHTML=y},l(t){n=c(t,"P",{"data-svelte-h":!0}),d(n)!=="svelte-182te9i"&&(n.textContent=g),s=i(t),a=c(t,"UL",{"data-svelte-h":!0}),d(a)!=="svelte-1sqbgr0"&&(a.innerHTML=y)},m(t,$){x(t,n,$),x(t,s,$),x(t,a,$)},p:I,d(t){t&&(p(n),p(s),p(a))}}}function Nx(w){let n,g="Raises the following errors:",s,a,y=`<li><a href="/docs/huggingface_hub/v0.19.2/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/v0.19.2/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=r(),a=l("ul"),a.innerHTML=y},l(t){n=c(t,"P",{"data-svelte-h":!0}),d(n)!=="svelte-182te9i"&&(n.textContent=g),s=i(t),a=c(t,"UL",{"data-svelte-h":!0}),d(a)!=="svelte-1iub84k"&&(a.innerHTML=y)},m(t,$){x(t,n,$),x(t,s,$),x(t,a,$)},p:I,d(t){t&&(p(n),p(s),p(a))}}}function Ex(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 Rx(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 Gx(w){let n,g="Example:",s,a,y;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=r(),h(a.$$.fragment)},l(t){n=c(t,"P",{"data-svelte-h":!0}),d(n)!=="svelte-11lpom8"&&(n.textContent=g),s=i(t),f(a.$$.fragment,t)},m(t,$){x(t,n,$),x(t,s,$),m(a,t,$),y=!0},p:I,i(t){y||(_(a.$$.fragment,t),y=!0)},o(t){b(a.$$.fragment,t),y=!1},d(t){t&&(p(n),p(s)),v(a,t)}}}function Dx(w){let n,g="Example:",s,a,y;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=r(),h(a.$$.fragment)},l(t){n=c(t,"P",{"data-svelte-h":!0}),d(n)!=="svelte-11lpom8"&&(n.textContent=g),s=i(t),f(a.$$.fragment,t)},m(t,$){x(t,n,$),x(t,s,$),m(a,t,$),y=!0},p:I,i(t){y||(_(a.$$.fragment,t),y=!0)},o(t){b(a.$$.fragment,t),y=!1},d(t){t&&(p(n),p(s)),v(a,t)}}}function Sx(w){let n,g="Example:",s,a,y;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=r(),h(a.$$.fragment)},l(t){n=c(t,"P",{"data-svelte-h":!0}),d(n)!=="svelte-11lpom8"&&(n.textContent=g),s=i(t),f(a.$$.fragment,t)},m(t,$){x(t,n,$),x(t,s,$),m(a,t,$),y=!0},p:I,i(t){y||(_(a.$$.fragment,t),y=!0)},o(t){b(a.$$.fragment,t),y=!1},d(t){t&&(p(n),p(s)),v(a,t)}}}function Fx(w){let n,g="Example:",s,a,y;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=r(),h(a.$$.fragment)},l(t){n=c(t,"P",{"data-svelte-h":!0}),d(n)!=="svelte-11lpom8"&&(n.textContent=g),s=i(t),f(a.$$.fragment,t)},m(t,$){x(t,n,$),x(t,s,$),m(a,t,$),y=!0},p:I,i(t){y||(_(a.$$.fragment,t),y=!0)},o(t){b(a.$$.fragment,t),y=!1},d(t){t&&(p(n),p(s)),v(a,t)}}}function Zx(w){let n,g="Raises the following errors:",s,a,y=`<li><a href="/docs/huggingface_hub/v0.19.2/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=r(),a=l("ul"),a.innerHTML=y},l(t){n=c(t,"P",{"data-svelte-h":!0}),d(n)!=="svelte-182te9i"&&(n.textContent=g),s=i(t),a=c(t,"UL",{"data-svelte-h":!0}),d(a)!=="svelte-13lob88"&&(a.innerHTML=y)},m(t,$){x(t,n,$),x(t,s,$),x(t,a,$)},p:I,d(t){t&&(p(n),p(s),p(a))}}}function Lx(w){let n,g="Raises the following errors:",s,a,y=`<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/v0.19.2/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/v0.19.2/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=r(),a=l("ul"),a.innerHTML=y},l(t){n=c(t,"P",{"data-svelte-h":!0}),d(n)!=="svelte-182te9i"&&(n.textContent=g),s=i(t),a=c(t,"UL",{"data-svelte-h":!0}),d(a)!=="svelte-1azrsnp"&&(a.innerHTML=y)},m(t,$){x(t,n,$),x(t,s,$),x(t,a,$)},p:I,d(t){t&&(p(n),p(s),p(a))}}}function Bx(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/v0.19.2/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-123wsgo"&&(n.innerHTML=g)},m(s,a){x(s,n,a)},p:I,d(s){s&&p(n)}}}function Wx(w){let n,g="Example:",s,a,y;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=r(),h(a.$$.fragment)},l(t){n=c(t,"P",{"data-svelte-h":!0}),d(n)!=="svelte-11lpom8"&&(n.textContent=g),s=i(t),f(a.$$.fragment,t)},m(t,$){x(t,n,$),x(t,s,$),m(a,t,$),y=!0},p:I,i(t){y||(_(a.$$.fragment,t),y=!0)},o(t){b(a.$$.fragment,t),y=!1},d(t){t&&(p(n),p(s)),v(a,t)}}}function Vx(w){let n,g="Raises the following errors:",s,a,y=`<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=r(),a=l("ul"),a.innerHTML=y},l(t){n=c(t,"P",{"data-svelte-h":!0}),d(n)!=="svelte-182te9i"&&(n.textContent=g),s=i(t),a=c(t,"UL",{"data-svelte-h":!0}),d(a)!=="svelte-1l6tbi1"&&(a.innerHTML=y)},m(t,$){x(t,n,$),x(t,s,$),x(t,a,$)},p:I,d(t){t&&(p(n),p(s),p(a))}}}function Xx(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/v0.19.2/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-1arywis"&&(n.innerHTML=g)},m(s,a){x(s,n,a)},p:I,d(s){s&&p(n)}}}function Yx(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 Px(w){let n,g="Example:",s,a,y;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=r(),h(a.$$.fragment)},l(t){n=c(t,"P",{"data-svelte-h":!0}),d(n)!=="svelte-11lpom8"&&(n.textContent=g),s=i(t),f(a.$$.fragment,t)},m(t,$){x(t,n,$),x(t,s,$),m(a,t,$),y=!0},p:I,i(t){y||(_(a.$$.fragment,t),y=!0)},o(t){b(a.$$.fragment,t),y=!1},d(t){t&&(p(n),p(s)),v(a,t)}}}function Ox(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 zx(w){let n,g="Example:",s,a,y;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=r(),h(a.$$.fragment)},l(t){n=c(t,"P",{"data-svelte-h":!0}),d(n)!=="svelte-11lpom8"&&(n.textContent=g),s=i(t),f(a.$$.fragment,t)},m(t,$){x(t,n,$),x(t,s,$),m(a,t,$),y=!0},p:I,i(t){y||(_(a.$$.fragment,t),y=!0)},o(t){b(a.$$.fragment,t),y=!1},d(t){t&&(p(n),p(s)),v(a,t)}}}function Qx(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 Kx(w){let n,g="Example:",s,a,y;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=r(),h(a.$$.fragment)},l(t){n=c(t,"P",{"data-svelte-h":!0}),d(n)!=="svelte-11lpom8"&&(n.textContent=g),s=i(t),f(a.$$.fragment,t)},m(t,$){x(t,n,$),x(t,s,$),m(a,t,$),y=!0},p:I,i(t){y||(_(a.$$.fragment,t),y=!0)},o(t){b(a.$$.fragment,t),y=!1},d(t){t&&(p(n),p(s)),v(a,t)}}}function e0(w){let n,g="Example:",s,a,y;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=r(),h(a.$$.fragment)},l(t){n=c(t,"P",{"data-svelte-h":!0}),d(n)!=="svelte-11lpom8"&&(n.textContent=g),s=i(t),f(a.$$.fragment,t)},m(t,$){x(t,n,$),x(t,s,$),m(a,t,$),y=!0},p:I,i(t){y||(_(a.$$.fragment,t),y=!0)},o(t){b(a.$$.fragment,t),y=!1},d(t){t&&(p(n),p(s)),v(a,t)}}}function t0(w){let n,g="Example:",s,a,y;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=r(),h(a.$$.fragment)},l(t){n=c(t,"P",{"data-svelte-h":!0}),d(n)!=="svelte-11lpom8"&&(n.textContent=g),s=i(t),f(a.$$.fragment,t)},m(t,$){x(t,n,$),x(t,s,$),m(a,t,$),y=!0},p:I,i(t){y||(_(a.$$.fragment,t),y=!0)},o(t){b(a.$$.fragment,t),y=!1},d(t){t&&(p(n),p(s)),v(a,t)}}}function n0(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 o0(w){let n,g="Examples:",s,a,y;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=r(),h(a.$$.fragment)},l(t){n=c(t,"P",{"data-svelte-h":!0}),d(n)!=="svelte-kvfsh7"&&(n.textContent=g),s=i(t),f(a.$$.fragment,t)},m(t,$){x(t,n,$),x(t,s,$),m(a,t,$),y=!0},p:I,i(t){y||(_(a.$$.fragment,t),y=!0)},o(t){b(a.$$.fragment,t),y=!1},d(t){t&&(p(n),p(s)),v(a,t)}}}function a0(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){f(n.$$.fragment,s)},m(s,a){m(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 s0(w){let n,g,s,a,y,t,$,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/v0.19.2/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/v0.19.2/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,ki,Av="Add an item to a collection on the Hub.",Rg,Ti,qv='Returns: <a href="/docs/huggingface_hub/v0.19.2/en/package_reference/collections#huggingface_hub.Collection">Collection</a>',Gg,Nn,Dg,$t,Ga,Sg,ji,Nv="Adds or updates a secret in a Space.",Fg,Ci,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,Ii,Rv="Adds or updates a variable in a Space.",Bg,Hi,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,ye,Sa,Vg,Ui,Dv="Closes or re-opens a Discussion or Pull Request.",Xg,En,Yg,Rn,Pg,$e,Fa,Og,Ji,Sv="Creates a new comment on the given Discussion.",zg,Gn,Qg,Dn,Kg,Sn,Za,eu,Ai,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/v0.19.2/en/package_reference/hf_api#huggingface_hub.HfApi.list_repo_refs">list_repo_refs()</a> or <a href="/docs/huggingface_hub/v0.19.2/en/package_reference/hf_api#huggingface_hub.HfApi.list_repo_commits">list_repo_commits()</a>.`,tu,xe,La,nu,qi,Zv="Create a new Collection on the Hub.",ou,Ni,Lv='Returns: <a href="/docs/huggingface_hub/v0.19.2/en/package_reference/collections#huggingface_hub.Collection">Collection</a>',au,Fn,su,se,Ba,ru,Ei,Bv="Creates a commit in the given repo, deleting & uploading files as needed.",iu,Zn,lu,Ln,cu,Bn,pu,Z,Wa,du,Ri,Wv="Push changes to the Hub in multiple commits.",gu,Gi,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,Di,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,fu,Vn,mu,Xn,_u,V,Va,bu,Si,Yv="Creates a Discussion or Pull Request.",vu,Fi,Pv="Pull Requests created programmatically will be in <code>&quot;draft&quot;</code> status.",yu,Zi,Ov='Creating a Pull Request with changes can also be done at once with <a href="/docs/huggingface_hub/v0.19.2/en/package_reference/hf_api#huggingface_hub.HfApi.create_commit">HfApi.create_commit()</a>.',$u,Li,zv='Returns: <a href="/docs/huggingface_hub/v0.19.2/en/package_reference/community#huggingface_hub.DiscussionWithDetails">DiscussionWithDetails</a>',xu,Yn,wu,wt,Xa,Mu,Bi,Qv="Create a new Inference Endpoint.",ku,Pn,Tu,X,Ya,ju,Wi,Kv="Creates a Pull Request . Pull Requests created programmatically will be in <code>&quot;draft&quot;</code> status.",Cu,Vi,e2='Creating a Pull Request with changes can also be done at once with <a href="/docs/huggingface_hub/v0.19.2/en/package_reference/hf_api#huggingface_hub.HfApi.create_commit">HfApi.create_commit()</a>;',Iu,Xi,t2='This is a wrapper around <a href="/docs/huggingface_hub/v0.19.2/en/package_reference/hf_api#huggingface_hub.HfApi.create_discussion">HfApi.create_discussion()</a>.',Hu,Yi,n2='Returns: <a href="/docs/huggingface_hub/v0.19.2/en/package_reference/community#huggingface_hub.DiscussionWithDetails">DiscussionWithDetails</a>',Uu,On,Ju,zn,Pa,Au,Pi,o2="Create an empty repo on the HuggingFace Hub.",qu,Qn,Oa,Nu,Oi,a2="Tag a given commit of a repo on the Hub.",Eu,we,za,Ru,zi,s2="Get info on one specific dataset on huggingface.co.",Gu,Qi,r2="Dataset can be private if you pass an acceptable token.",Du,Kn,Su,eo,Qa,Fu,Ki,i2="Delete a branch from a repo on the Hub.",Zu,Me,Ka,Lu,el,l2="Delete a collection on the Hub.",Bu,to,Wu,no,Vu,Mt,es,Xu,tl,c2="Delete an item from a collection.",Yu,oo,Pu,kt,ts,Ou,nl,p2="Deletes a file in the given repo.",zu,ao,Qu,Tt,ns,Ku,ol,d2="Deletes a folder in the given repo.",eh,al,g2='Simple wrapper around <a href="/docs/huggingface_hub/v0.19.2/en/package_reference/hf_api#huggingface_hub.HfApi.create_commit">create_commit()</a> method.',th,ke,os,nh,sl,u2="Delete an Inference Endpoint.",oh,rl,h2=`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/v0.19.2/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/v0.19.2/en/package_reference/hf_api#huggingface_hub.HfApi.scale_to_zero_inference_endpoint">scale_to_zero_inference_endpoint()</a>.`,ah,il,f2='For convenience, you can also delete an Inference Endpoint using <a href="/docs/huggingface_hub/v0.19.2/en/package_reference/inference_endpoints#huggingface_hub.InferenceEndpoint.delete">InferenceEndpoint.delete()</a>.',sh,so,as,rh,ll,m2="Delete a repo from the HuggingFace Hub. CAUTION: this is irreversible.",ih,jt,ss,lh,cl,_2="Deletes a secret from a Space.",ch,pl,b2=`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,ro,rs,dh,dl,v2="Delete persistent storage for a Space.",gh,Ct,is,uh,gl,y2="Deletes a variable from a Space.",hh,ul,$2=`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>`,fh,io,ls,mh,hl,x2="Delete a tag from a repo on the Hub.",_h,Te,cs,bh,fl,w2="Duplicate a Space.",vh,ml,M2=`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.`,yh,lo,$h,It,ps,xh,_l,k2="Edits a comment on a Discussion / Pull Request.",wh,co,Mh,Ht,ds,kh,bl,T2="Checks if a file exists in a repository on the Hugging Face Hub.",Th,po,jh,je,gs,Ch,vl,j2="Gets information about a Collection on the Hub.",Ih,yl,C2='Returns: <a href="/docs/huggingface_hub/v0.19.2/en/package_reference/collections#huggingface_hub.Collection">Collection</a>',Hh,go,Uh,uo,us,Jh,$l,I2="List all valid dataset tags as a nested namespace object.",Ah,Ce,hs,qh,xl,H2="Fetches a Discussion’s / Pull Request ‘s details from the Hub.",Nh,wl,U2='Returns: <a href="/docs/huggingface_hub/v0.19.2/en/package_reference/community#huggingface_hub.DiscussionWithDetails">DiscussionWithDetails</a>',Eh,ho,Rh,fo,fs,Gh,Ml,J2=`Returns the repository name for a given model ID and optional
organization.`,Dh,Ut,ms,Sh,kl,A2="Get information about an Inference Endpoint.",Fh,mo,Zh,_o,_s,Lh,Tl,q2="List all valid model tags as a nested namespace object",Bh,re,bs,Wh,jl,N2="Fetches Discussions and Pull Requests for the given repo.",Vh,Cl,E2="Example:",Xh,bo,Yh,vo,Ph,yo,vs,Oh,Il,R2="Gets runtime information about a Space.",zh,Jt,ys,Qh,Hl,G2="Gets all variables from a Space.",Kh,Ul,D2=`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>`,ef,At,$s,tf,Jl,S2="Check if a given <code>token</code> is valid and return its permissions.",nf,Al,F2='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>.',of,D,xs,af,ql,Z2="Download a given file if it’s not already present in the local cache.",sf,Nl,L2="The new cache file layout looks like this:",rf,El,B2=`<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>`,lf,Rl,W2=`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:`,cf,Gl,V2=`<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>`,pf,$o,df,xo,gf,Ie,ws,uf,Dl,X2="Hides a comment on a Discussion / Pull Request.",hf,wo,ff,Mo,mf,He,Ms,_f,Sl,Y2="Like a given repo on the Hub (e.g. set as favorite).",bf,Fl,P2='See also <a href="/docs/huggingface_hub/v0.19.2/en/package_reference/hf_api#huggingface_hub.HfApi.unlike">unlike()</a> and <a href="/docs/huggingface_hub/v0.19.2/en/package_reference/hf_api#huggingface_hub.HfApi.list_liked_repos">list_liked_repos()</a>.',vf,ko,yf,Ue,ks,$f,Zl,O2="List datasets hosted on the Huggingface Hub, given some filters.",xf,To,wf,jo,Mf,A,Ts,kf,Ll,z2="List files on a repo and get information about them.",Tf,Bl,Q2="Takes as input a list of paths. Those paths can be either files or folders. Two server endpoints are called:",jf,Wl,K2=`<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>`,Cf,Vl,ey="Examples:",If,Xl,ty="Get information about files on a repo.",Hf,Co,Uf,Yl,ny="Get even more information about files on a repo (last commit and security scan results)",Jf,Io,Af,Pl,oy="List LFS files from the “vae/” folder in “stabilityai/stable-diffusion-2” repository.",qf,Ho,Nf,Ol,ay="List all files on a repo.",Ef,Uo,Rf,qt,js,Gf,zl,sy="Lists all inference endpoints for the given namespace.",Df,Jo,Sf,ie,Cs,Ff,Ql,ry="List all public repos liked by a user on huggingface.co.",Zf,Kl,iy=`This list is public so token is optional. If <code>user</code> is not passed, it defaults to
the logged in user.`,Lf,ec,ly='See also <a href="/docs/huggingface_hub/v0.19.2/en/package_reference/hf_api#huggingface_hub.HfApi.like">like()</a> and <a href="/docs/huggingface_hub/v0.19.2/en/package_reference/hf_api#huggingface_hub.HfApi.unlike">unlike()</a>.',Bf,Ao,Wf,qo,Is,Vf,tc,cy="Get the public list of all the metrics on huggingface.co",Xf,Y,Hs,Yf,nc,py="List models hosted on the Huggingface Hub, given some filters.",Pf,No,Of,oc,dy="<blockquote><blockquote><p>api = HfApi()</p></blockquote></blockquote>",zf,bd,vd,Us,Js,Qf,ac,gy="api.list_models(search=“bert”)",Kf,yd,$d,Kt,As,em,sc,uy="api.list_models(search=“bert”, author=“google”)",tm,qs,nm,Je,Ns,om,rc,hy="Get the list of commits of a given revision for a repo on the Hub.",am,ic,fy="Commits are sorted by date (last commit first).",sm,Eo,rm,Ro,Es,im,lc,my="Get the list of files in a given repo.",lm,Nt,Rs,cm,cc,_y="List all users who liked a given repo on the hugging Face Hub.",pm,pc,by='See also <a href="/docs/huggingface_hub/v0.19.2/en/package_reference/hf_api#huggingface_hub.HfApi.like">like()</a> and <a href="/docs/huggingface_hub/v0.19.2/en/package_reference/hf_api#huggingface_hub.HfApi.list_liked_repos">list_liked_repos()</a>.',dm,Et,Gs,gm,dc,vy="Get the list of refs of a given repo (both tags and branches).",um,Go,hm,Do,Ds,fm,gc,yy="List spaces hosted on the Huggingface Hub, given some filters.",mm,Rt,Ss,_m,uc,$y="Merges a Pull Request.",bm,So,vm,Ae,Fs,ym,hc,xy="Get info on one specific model on huggingface.co",$m,fc,wy="Model can be private if you pass an acceptable token or are logged in.",xm,Fo,wm,qe,Zs,Mm,mc,My="Moving a repository from namespace1/repo_name1 to namespace2/repo_name2",km,_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>.`,Tm,Zo,jm,Ne,Ls,Cm,bc,Ty="Pause an Inference Endpoint.",Im,vc,jy=`A paused Inference Endpoint will not be charged. It can be resumed at any time using <a href="/docs/huggingface_hub/v0.19.2/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/v0.19.2/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.`,Hm,yc,Cy='For convenience, you can also pause an Inference Endpoint using <a href="/docs/huggingface_hub/v0.19.2/en/package_reference/hf_api#huggingface_hub.HfApi.pause_inference_endpoint">pause_inference_endpoint()</a>.',Um,Ee,Bs,Jm,$c,Iy="Pause your Space.",Am,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/v0.19.2/en/package_reference/hf_api#huggingface_hub.HfApi.restart_space">restart_space()</a> and go to your Space settings page.`,qm,wc,Uy='For more details, please visit <a href="https://huggingface.co/docs/hub/spaces-gpus#pause" rel="nofollow">the docs</a>.',Nm,P,Ws,Em,Mc,Jy="Pre-upload LFS files to S3 in preparation on a future commit.",Rm,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.`,Gm,Lo,Dm,Bo,Sm,Wo,Fm,Re,Vs,Zm,Tc,qy="Renames a Discussion.",Lm,Vo,Bm,Xo,Wm,Gt,Xs,Vm,jc,Ny="Checks if a repository exists on the Hugging Face Hub.",Xm,Yo,Ym,Dt,Ys,Pm,Cc,Ey="Get the info object for a given repo of a given type.",Om,Po,zm,St,Ps,Qm,Ic,Ry="Request new hardware for a Space.",Km,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/v0.19.2/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.`,r_,Ac,Fy='For more details, please visit <a href="https://huggingface.co/docs/hub/spaces-gpus#pause" rel="nofollow">the docs</a>.',i_,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/v0.19.2/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/v0.19.2/en/package_reference/hf_api#huggingface_hub.HfApi.upload_file">upload_file()</a>, <a href="/docs/huggingface_hub/v0.19.2/en/package_reference/hf_api#huggingface_hub.HfApi.upload_folder">upload_folder()</a> and <a href="/docs/huggingface_hub/v0.19.2/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,f_,De,er,m_,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/v0.19.2/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/v0.19.2/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/v0.19.2/en/package_reference/inference_endpoints#huggingface_hub.InferenceEndpoint.scale_to_zero">InferenceEndpoint.scale_to_zero()</a>.',v_,Se,tr,y_,Zc,Oy="Set a custom sleep time for a Space running on upgraded hardware..",$_,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,nr,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,e$=`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,t$=`<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,n$=`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,or,U_,Pc,o$="Get info on one specific Space on huggingface.co.",J_,Oc,a$="Space can be private if you pass an acceptable token.",A_,ta,q_,O,ar,N_,zc,s$="Squash commit history on a branch for a repo on the Hub.",E_,Qc,r$=`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,sr,F_,Kc,i$="Unlike a given repo on the Hub (e.g. remove from favorite list).",Z_,ep,l$='See also <a href="/docs/huggingface_hub/v0.19.2/en/package_reference/hf_api#huggingface_hub.HfApi.like">like()</a> and <a href="/docs/huggingface_hub/v0.19.2/en/package_reference/hf_api#huggingface_hub.HfApi.list_liked_repos">list_liked_repos()</a>.',L_,sa,B_,Lt,rr,W_,tp,c$="Update an item in a collection.",V_,ra,X_,ce,ir,Y_,np,p$="Update metadata of a collection on the Hub.",P_,op,d$="All arguments are optional. Only provided metadata will be updated.",O_,ap,g$='Returns: <a href="/docs/huggingface_hub/v0.19.2/en/package_reference/collections#huggingface_hub.Collection">Collection</a>',z_,ia,Q_,Le,lr,K_,sp,u$="Update an Inference Endpoint.",eb,rp,h$=`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,ip,f$='For convenience, you can also update an Inference Endpoint using <a href="/docs/huggingface_hub/v0.19.2/en/package_reference/inference_endpoints#huggingface_hub.InferenceEndpoint.update">InferenceEndpoint.update()</a>.',nb,Bt,cr,ob,lp,m$="Update the visibility setting of a repository.",ab,la,sb,pe,pr,rb,cp,_$=`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.`,ib,ca,lb,pa,cb,da,pb,N,dr,db,pp,b$=`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,v$=`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,y$=`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,$$=`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.`,fb,hp,x$=`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.`,mb,fp,w$="Uses <code>HfApi.create_commit</code> under the hood.",_b,ga,bb,ua,vb,ha,yb,fa,$b,ma,gr,xb,mp,M$="Call HF API to know “whoami”.",Jd,G,ur,wb,_p,k$="Split a list of operations in a list of commits to perform.",Mb,bp,T$="Implementation follows a sub-optimal (yet simple) algorithm:",kb,vp,j$=`<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,yp,C$=`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,hr,qd,fr,Nd,Ve,mr,Hb,$p,I$="Data structure containing information about a newly created commit.",Ub,xp,H$='Returned by <a href="/docs/huggingface_hub/v0.19.2/en/package_reference/hf_api#huggingface_hub.HfApi.create_commit">create_commit()</a>.',Ed,_r,Rd,en,br,Jb,wp,U$="Contains information about a dataset on the Hub.",Gd,vr,Dd,tn,yr,Ab,Mp,J$="Contains information about a git reference for a repo on the Hub.",Sd,$r,Fd,nn,xr,qb,kp,A$='Contains information about a git commit for a repo on the Hub. Check out <a href="/docs/huggingface_hub/v0.19.2/en/package_reference/hf_api#huggingface_hub.HfApi.list_repo_commits">list_repo_commits()</a> for more details.',Zd,wr,Ld,Xe,Mr,Nb,Tp,q$="Contains information about all git references for a repo on the Hub.",Eb,jp,N$='Object is returned by <a href="/docs/huggingface_hub/v0.19.2/en/package_reference/hf_api#huggingface_hub.HfApi.list_repo_refs">list_repo_refs()</a>.',Bd,kr,Wd,on,Tr,Rb,Cp,E$="Contains information about a model on the Hub.",Vd,jr,Xd,an,Cr,Gb,Ip,R$="Contains basic information about a repo file inside a repo on the Hub.",Yd,Ir,Pd,sn,Hr,Db,Hp,G$="Contains information about a model on the Hub.",Od,Ur,zd,Q,Jr,Sb,Up,D$="Subclass of <code>str</code> describing a repo URL on the Hub.",Fb,Jp,S$=`<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,F$="<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,ya,Qd,Ar,Kd,rn,qr,Bb,qp,Z$="Contains information about a Space on the Hub.",eg,Nr,tg,ln,Er,Wb,Np,L$="Contains information about a user on the Hub.",ng,Rr,og,cn,Gr,Vb,Ep,B$="Contains information about a user likes on the Hub.",ag,Dr,sg,Sr,W$="Below are the supported values for <code>CommitOperation()</code>:",rg,ge,Fr,Xb,Rp,V$="Data structure holding necessary info to upload a file to a repository on the Hub.",Yb,Wt,Zr,Pb,Gp,X$=`A context manager that yields a file-like object allowing to read the underlying
data behind <code>path_or_fileobj</code>.`,Ob,$a,zb,Vt,Lr,Qb,Dp,Y$="The base64-encoded content of <code>path_or_fileobj</code>",Kb,Sp,P$="Returns: <code>bytes</code>",ig,pn,Br,ev,Fp,O$=`Data structure holding necessary info to delete a file or a folder from a repository
on the Hub.`,lg,K,Wr,tv,Zp,z$="Data structure holding necessary info to copy a file in a repository on the Hub.",nv,Lp,Q$="Limitations:",ov,Bp,K$="<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,e1='Note: you can combine a <a href="/docs/huggingface_hub/v0.19.2/en/package_reference/hf_api#huggingface_hub.CommitOperationCopy">CommitOperationCopy</a> and a <a href="/docs/huggingface_hub/v0.19.2/en/package_reference/hf_api#huggingface_hub.CommitOperationDelete">CommitOperationDelete</a> to rename an LFS file on the Hub.',cg,Vr,pg,S,Xr,sv,Vp,t1="Scheduler to upload a local folder to the Hub at regular intervals (e.g. push to hub every 5 minutes).",rv,Xp,n1=`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.`,iv,xa,lv,Be,Yr,cv,Yp,o1="Push folder to the Hub and return the commit info.",pv,wa,dv,Pp,a1=`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/v0.19.2/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,Pr,uv,Op,s1="Stop the scheduler.",hv,zp,r1="A stopped scheduler cannot be restarted. Mostly for tests purposes.",fv,Yt,Or,mv,Qp,i1="Trigger a <code>push_to_hub</code> and return a future.",_v,Kp,l1=`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,zr,gg,Qr,c1=`<code>huggingface_hub</code> stores the authentication information locally so that it may be re-used in subsequent
methods.`,ug,Kr,p1='It does this using the <a href="/docs/huggingface_hub/v0.19.2/en/package_reference/hf_api#huggingface_hub.HfFolder">HfFolder</a> utility, which saves data at the root of the user.',hg,ue,ei,bv,Ma,ti,vv,ed,d1="Deletes the token from storage. Does not fail if token does not exist.",yv,We,ni,$v,td,g1="Get token or None if not existent.",xv,nd,u1="Note that a token can be also provided using the <code>HF_TOKEN</code> environment variable.",wv,od,h1=`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,oi,kv,ad,f1="Save token, creating folder as needed.",Tv,sd,m1=`Token is saved in the huggingface home folder. You can configure it by setting
the <code>HF_HOME</code> environment variable.`,fg,ai,mg,si,_1="Some helpers to filter repositories on the Hub are available in the <code>huggingface_hub</code> package.",_g,ri,bg,Ye,ii,jv,rd,b1=`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,li,yg,Pe,ci,Iv,id,v1=`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,$g,xd,xg;return y=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/v0.19.2/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/v0.19.2/src/huggingface_hub/hf_api.py#L6759"}}),Nn=new U({props:{anchor:"huggingface_hub.HfApi.add_collection_item.example",$$slots:{default:[C1]},$$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/v0.19.2/src/huggingface_hub/hf_api.py#L5608"}}),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/v0.19.2/src/huggingface_hub/hf_api.py#L5681"}}),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/v0.19.2/src/huggingface_hub/hf_api.py#L5362",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/v0.19.2/en/package_reference/community#huggingface_hub.DiscussionStatusChange"
>DiscussionStatusChange</a></p>
`}}),En=new U({props:{anchor:"huggingface_hub.HfApi.change_discussion_status.example",$$slots:{default:[I1]},$$scope:{ctx:w}}}),Rn=new J({props:{$$slots:{default:[H1]},$$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/v0.19.2/src/huggingface_hub/hf_api.py#L5219",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/v0.19.2/en/package_reference/community#huggingface_hub.DiscussionComment"
>DiscussionComment</a></p>
`}}),Gn=new U({props:{anchor:"huggingface_hub.HfApi.comment_discussion.example",$$slots:{default:[U1]},$$scope:{ctx:w}}}),Dn=new J({props:{$$slots:{default:[J1]},$$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/v0.19.2/src/huggingface_hub/hf_api.py#L4622",raiseDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<ul>
<li><a
  href="/docs/huggingface_hub/v0.19.2/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/v0.19.2/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/v0.19.2/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/v0.19.2/en/package_reference/utilities#huggingface_hub.utils.RepositoryNotFoundError"
>RepositoryNotFoundError</a> or <a
  href="/docs/huggingface_hub/v0.19.2/en/package_reference/utilities#huggingface_hub.utils.BadRequestError"
>BadRequestError</a> or <a
  href="/docs/huggingface_hub/v0.19.2/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/v0.19.2/src/huggingface_hub/hf_api.py#L6591"}}),Fn=new U({props:{anchor:"huggingface_hub.HfApi.create_collection.example",$$slots:{default:[A1]},$$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/v0.19.2/en/package_reference/hf_api#huggingface_hub.CommitOperationAdd">CommitOperationAdd</a> to upload a file</li>
<li><a href="/docs/huggingface_hub/v0.19.2/en/package_reference/hf_api#huggingface_hub.CommitOperationDelete">CommitOperationDelete</a> to delete a file</li>
<li><a href="/docs/huggingface_hub/v0.19.2/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/v0.19.2/src/huggingface_hub/hf_api.py#L3041",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>Instance of <a
  href="/docs/huggingface_hub/v0.19.2/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/v0.19.2/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/v0.19.2/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/v0.19.2/en/package_reference/utilities#huggingface_hub.utils.RepositoryNotFoundError"
>RepositoryNotFoundError</a></p>
`}}),Zn=new J({props:{warning:!0,$$slots:{default:[q1]},$$scope:{ctx:w}}}),Ln=new J({props:{warning:!0,$$slots:{default:[N1]},$$scope:{ctx:w}}}),Bn=new J({props:{warning:!0,$$slots:{default:[E1]},$$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/v0.19.2/en/package_reference/hf_api#huggingface_hub.CommitOperationAdd">CommitOperationAdd</a>) &#x2014;
A list containing lists of <a href="/docs/huggingface_hub/v0.19.2/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/v0.19.2/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/v0.19.2/src/huggingface_hub/hf_api.py#L3262",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:[R1]},$$scope:{ctx:w}}}),Vn=new J({props:{warning:!0,$$slots:{default:[G1]},$$scope:{ctx:w}}}),Xn=new U({props:{anchor:"huggingface_hub.HfApi.create_commits_on_pr.example",$$slots:{default:[D1]},$$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/v0.19.2/src/huggingface_hub/hf_api.py#L5046"}}),Yn=new J({props:{$$slots:{default:[S1]},$$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/v0.19.2/src/huggingface_hub/hf_api.py#L6170",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/v0.19.2/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:[F1]},$$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/v0.19.2/src/huggingface_hub/hf_api.py#L5135"}}),On=new J({props:{$$slots:{default:[Z1]},$$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/v0.19.2/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/v0.19.2/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/v0.19.2/src/huggingface_hub/hf_api.py#L2701",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/v0.19.2/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/v0.19.2/src/huggingface_hub/hf_api.py#L4738",raiseDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<ul>
<li><a
  href="/docs/huggingface_hub/v0.19.2/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/v0.19.2/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/v0.19.2/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/v0.19.2/en/package_reference/utilities#huggingface_hub.utils.RepositoryNotFoundError"
>RepositoryNotFoundError</a> or <a
  href="/docs/huggingface_hub/v0.19.2/en/package_reference/utilities#huggingface_hub.utils.RevisionNotFoundError"
>RevisionNotFoundError</a> or <a
  href="/docs/huggingface_hub/v0.19.2/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/v0.19.2/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/v0.19.2/src/huggingface_hub/hf_api.py#L1926",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/v0.19.2/en/package_reference/hf_api#huggingface_hub.hf_api.DatasetInfo"
>hf_api.DatasetInfo</a></p>
`}}),Kn=new J({props:{$$slots:{default:[L1]},$$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/v0.19.2/src/huggingface_hub/hf_api.py#L4689",raiseDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<ul>
<li><a
  href="/docs/huggingface_hub/v0.19.2/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/v0.19.2/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/v0.19.2/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/v0.19.2/en/package_reference/utilities#huggingface_hub.utils.RepositoryNotFoundError"
>RepositoryNotFoundError</a> or <a
  href="/docs/huggingface_hub/v0.19.2/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/v0.19.2/src/huggingface_hub/hf_api.py#L6721"}}),to=new U({props:{anchor:"huggingface_hub.HfApi.delete_collection.example",$$slots:{default:[B1]},$$scope:{ctx:w}}}),no=new J({props:{warning:!0,$$slots:{default:[W1]},$$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/v0.19.2/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/v0.19.2/src/huggingface_hub/hf_api.py#L6879"}}),oo=new U({props:{anchor:"huggingface_hub.HfApi.delete_collection_item.example",$$slots:{default:[V1]},$$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/v0.19.2/src/huggingface_hub/hf_api.py#L4159"}}),ao=new J({props:{$$slots:{default:[X1]},$$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/v0.19.2/src/huggingface_hub/hf_api.py#L4247"}}),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/v0.19.2/src/huggingface_hub/hf_api.py#L6423"}}),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/v0.19.2/src/huggingface_hub/hf_api.py#L2836",raiseDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<ul>
<li><ul>
<li>— <a
  href="/docs/huggingface_hub/v0.19.2/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/v0.19.2/src/huggingface_hub/hf_api.py#L5639"}}),rs=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/v0.19.2/src/huggingface_hub/hf_api.py#L6083",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/v0.19.2/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>
`}}),is=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/v0.19.2/src/huggingface_hub/hf_api.py#L5713"}}),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/v0.19.2/src/huggingface_hub/hf_api.py#L4809",raiseDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<ul>
<li><a
  href="/docs/huggingface_hub/v0.19.2/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/v0.19.2/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/v0.19.2/en/package_reference/utilities#huggingface_hub.utils.RepositoryNotFoundError"
>RepositoryNotFoundError</a> or <a
  href="/docs/huggingface_hub/v0.19.2/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/v0.19.2/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/v0.19.2/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/v0.19.2/src/huggingface_hub/hf_api.py#L5932",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/v0.19.2/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/v0.19.2/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:[Y1]},$$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/v0.19.2/src/huggingface_hub/hf_api.py#L5490",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/v0.19.2/en/package_reference/community#huggingface_hub.DiscussionComment"
>DiscussionComment</a></p>
`}}),co=new J({props:{$$slots:{default:[P1]},$$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/v0.19.2/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/v0.19.2/src/huggingface_hub/hf_api.py#L2166",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>True if the file exists, False otherwise.</p>
`}}),po=new J({props:{$$slots:{default:[z1]},$$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/v0.19.2/src/huggingface_hub/hf_api.py#L6555"}}),go=new U({props:{anchor:"huggingface_hub.HfApi.get_collection.example",$$slots:{default:[Q1]},$$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/v0.19.2/src/huggingface_hub/hf_api.py#L1186"}}),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/v0.19.2/src/huggingface_hub/hf_api.py#L4970"}}),ho=new J({props:{$$slots:{default:[K1]},$$scope:{ctx:w}}}),fs=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/v0.19.2/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/v0.19.2/src/huggingface_hub/hf_api.py#L4855",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>
`}}),ms=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/v0.19.2/src/huggingface_hub/hf_api.py#L6290",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/v0.19.2/en/package_reference/inference_endpoints#huggingface_hub.InferenceEndpoint"
>InferenceEndpoint</a></p>
`}}),mo=new U({props:{anchor:"huggingface_hub.HfApi.get_inference_endpoint.example",$$slots:{default:[ex]},$$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/v0.19.2/src/huggingface_hub/hf_api.py#L1177"}}),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/v0.19.2/src/huggingface_hub/hf_api.py#L4893",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>An iterator of <a
  href="/docs/huggingface_hub/v0.19.2/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:[tx]},$$scope:{ctx:w}}}),vo=new U({props:{anchor:"huggingface_hub.HfApi.get_repo_discussions.example-2",$$slots:{default:[nx]},$$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/v0.19.2/src/huggingface_hub/hf_api.py#L5738",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/v0.19.2/en/package_reference/space_runtime#huggingface_hub.SpaceRuntime"
>SpaceRuntime</a></p>
`}}),ys=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/v0.19.2/src/huggingface_hub/hf_api.py#L5661"}}),$s=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/v0.19.2/src/huggingface_hub/hf_api.py#L1158",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.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/v0.19.2/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/v0.19.2/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/v0.19.2/src/huggingface_hub/hf_api.py#L4312",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>
`}}),$o=new U({props:{anchor:"huggingface_hub.HfApi.hf_hub_download.example",$$slots:{default:[ox]},$$scope:{ctx:w}}}),xo=new J({props:{$$slots:{default:[ax]},$$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/v0.19.2/src/huggingface_hub/hf_api.py#L5547",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/v0.19.2/en/package_reference/community#huggingface_hub.DiscussionComment"
>DiscussionComment</a></p>
`}}),wo=new J({props:{warning:!0,$$slots:{default:[sx]},$$scope:{ctx:w}}}),Mo=new J({props:{$$slots:{default:[rx]},$$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/v0.19.2/src/huggingface_hub/hf_api.py#L1638",raiseDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<ul>
<li><a
  href="/docs/huggingface_hub/v0.19.2/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/v0.19.2/en/package_reference/utilities#huggingface_hub.utils.RepositoryNotFoundError"
>RepositoryNotFoundError</a></p>
`}}),ko=new U({props:{anchor:"huggingface_hub.HfApi.like.example",$$slots:{default:[ix]},$$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/v0.19.2/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/v0.19.2/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/v0.19.2/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/v0.19.2/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/v0.19.2/src/huggingface_hub/hf_api.py#L1381",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>an iterable of <a
  href="/docs/huggingface_hub/v0.19.2/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:[lx]},$$scope:{ctx:w}}}),jo=new U({props:{anchor:"huggingface_hub.HfApi.list_datasets.example-2",$$slots:{default:[cx]},$$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/v0.19.2/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/v0.19.2/src/huggingface_hub/hf_api.py#L2224",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/v0.19.2/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/v0.19.2/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/v0.19.2/en/package_reference/utilities#huggingface_hub.utils.RepositoryNotFoundError"
>RepositoryNotFoundError</a> or <a
  href="/docs/huggingface_hub/v0.19.2/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:[px]},$$scope:{ctx:w}}}),Io=new U({props:{anchor:"huggingface_hub.HfApi.list_files_info.example-2",$$slots:{default:[dx]},$$scope:{ctx:w}}}),Ho=new U({props:{anchor:"huggingface_hub.HfApi.list_files_info.example-3",$$slots:{default:[gx]},$$scope:{ctx:w}}}),Uo=new U({props:{anchor:"huggingface_hub.HfApi.list_files_info.example-4",$$slots:{default:[ux]},$$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/v0.19.2/src/huggingface_hub/hf_api.py#L6115",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/v0.19.2/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:[hx]},$$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/v0.19.2/src/huggingface_hub/hf_api.py#L1733",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/v0.19.2/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:[fx]},$$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/v0.19.2/src/huggingface_hub/hf_api.py#L1538",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/v0.19.2/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/v0.19.2/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/v0.19.2/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/v0.19.2/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/v0.19.2/src/huggingface_hub/hf_api.py#L1195",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>an iterable of <a
  href="/docs/huggingface_hub/v0.19.2/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:[mx]},$$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/v0.19.2/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/v0.19.2/src/huggingface_hub/hf_api.py#L2530",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/v0.19.2/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/v0.19.2/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/v0.19.2/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/v0.19.2/en/package_reference/utilities#huggingface_hub.utils.RepositoryNotFoundError"
>RepositoryNotFoundError</a> or <a
  href="/docs/huggingface_hub/v0.19.2/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:[_x]},$$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/v0.19.2/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/v0.19.2/src/huggingface_hub/hf_api.py#L2429",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/v0.19.2/src/huggingface_hub/hf_api.py#L1808",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>a list of <a
  href="/docs/huggingface_hub/v0.19.2/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/v0.19.2/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/v0.19.2/src/huggingface_hub/hf_api.py#L2466",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/v0.19.2/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:[bx]},$$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/v0.19.2/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/v0.19.2/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/v0.19.2/src/huggingface_hub/hf_api.py#L1551",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>an iterable of <a
  href="/docs/huggingface_hub/v0.19.2/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/v0.19.2/src/huggingface_hub/hf_api.py#L5437",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/v0.19.2/en/package_reference/community#huggingface_hub.DiscussionStatusChange"
>DiscussionStatusChange</a></p>
`}}),So=new J({props:{$$slots:{default:[vx]},$$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/v0.19.2/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/v0.19.2/src/huggingface_hub/hf_api.py#L1858",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/v0.19.2/en/package_reference/hf_api#huggingface_hub.hf_api.ModelInfo"
>huggingface_hub.hf_api.ModelInfo</a></p>
`}}),Fo=new J({props:{$$slots:{default:[yx]},$$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/v0.19.2/src/huggingface_hub/hf_api.py#L2943"}}),Zo=new J({props:{$$slots:{default:[$x]},$$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/v0.19.2/src/huggingface_hub/hf_api.py#L6448",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/v0.19.2/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/v0.19.2/src/huggingface_hub/hf_api.py#L5853",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/v0.19.2/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/v0.19.2/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/v0.19.2/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/v0.19.2/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/v0.19.2/en/package_reference/utilities#huggingface_hub.utils.RepositoryNotFoundError"
>RepositoryNotFoundError</a> or <a
  href="/docs/huggingface_hub/v0.19.2/en/package_reference/utilities#huggingface_hub.utils.HfHubHTTPError"
>HfHubHTTPError</a> or <a
  href="/docs/huggingface_hub/v0.19.2/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/v0.19.2/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/v0.19.2/src/huggingface_hub/hf_api.py#L3562"}}),Lo=new J({props:{warning:!0,$$slots:{default:[xx]},$$scope:{ctx:w}}}),Bo=new J({props:{warning:!0,$$slots:{default:[wx]},$$scope:{ctx:w}}}),Wo=new U({props:{anchor:"huggingface_hub.HfApi.preupload_lfs_files.example",$$slots:{default:[Mx]},$$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/v0.19.2/src/huggingface_hub/hf_api.py#L5295",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/v0.19.2/en/package_reference/community#huggingface_hub.DiscussionTitleChange"
>DiscussionTitleChange</a></p>
`}}),Vo=new U({props:{anchor:"huggingface_hub.HfApi.rename_discussion.example",$$slots:{default:[kx]},$$scope:{ctx:w}}}),Xo=new J({props:{$$slots:{default:[Tx]},$$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/v0.19.2/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/v0.19.2/src/huggingface_hub/hf_api.py#L2120",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>True if the repository exists, False otherwise.</p>
`}}),Yo=new J({props:{$$slots:{default:[Cx]},$$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/v0.19.2/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/v0.19.2/src/huggingface_hub/hf_api.py#L2052",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>The repository information, as a
<a
  href="/docs/huggingface_hub/v0.19.2/en/package_reference/hf_api#huggingface_hub.hf_api.DatasetInfo"
>huggingface_hub.hf_api.DatasetInfo</a>, <a
  href="/docs/huggingface_hub/v0.19.2/en/package_reference/hf_api#huggingface_hub.hf_api.ModelInfo"
>huggingface_hub.hf_api.ModelInfo</a>
or <a
  href="/docs/huggingface_hub/v0.19.2/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:[Ix]},$$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/v0.19.2/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/v0.19.2/src/huggingface_hub/hf_api.py#L5757",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/v0.19.2/en/package_reference/space_runtime#huggingface_hub.SpaceRuntime"
>SpaceRuntime</a></p>
`}}),Oo=new J({props:{$$slots:{default:[Hx]},$$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/v0.19.2/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/v0.19.2/src/huggingface_hub/hf_api.py#L6047",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/v0.19.2/en/package_reference/space_runtime#huggingface_hub.SpaceRuntime"
>SpaceRuntime</a></p>
`}}),zo=new J({props:{$$slots:{default:[Ux]},$$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/v0.19.2/src/huggingface_hub/hf_api.py#L5889",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/v0.19.2/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/v0.19.2/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/v0.19.2/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/v0.19.2/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/v0.19.2/en/package_reference/utilities#huggingface_hub.utils.RepositoryNotFoundError"
>RepositoryNotFoundError</a> or <a
  href="/docs/huggingface_hub/v0.19.2/en/package_reference/utilities#huggingface_hub.utils.HfHubHTTPError"
>HfHubHTTPError</a> or <a
  href="/docs/huggingface_hub/v0.19.2/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/v0.19.2/src/huggingface_hub/hf_api.py#L6480",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/v0.19.2/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/v0.19.2/src/huggingface_hub/hf_api.py#L1088",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:[Jx]},$$scope:{ctx:w}}}),er=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/v0.19.2/src/huggingface_hub/hf_api.py#L6508",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/v0.19.2/en/package_reference/inference_endpoints#huggingface_hub.InferenceEndpoint"
>InferenceEndpoint</a></p>
`}}),tr=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/v0.19.2/src/huggingface_hub/hf_api.py#L5807",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/v0.19.2/en/package_reference/space_runtime#huggingface_hub.SpaceRuntime"
>SpaceRuntime</a></p>
`}}),Ko=new J({props:{$$slots:{default:[Ax]},$$scope:{ctx:w}}}),nr=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/v0.19.2/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/v0.19.2/src/huggingface_hub/hf_api.py#L4480",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>Local folder path (string) of repo snapshot</p>
`}}),ea=new J({props:{$$slots:{default:[qx]},$$scope:{ctx:w}}}),or=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/v0.19.2/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/v0.19.2/src/huggingface_hub/hf_api.py#L1989",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/v0.19.2/en/package_reference/hf_api#huggingface_hub.hf_api.SpaceInfo"
>SpaceInfo</a></p>
`}}),ta=new J({props:{$$slots:{default:[Nx]},$$scope:{ctx:w}}}),ar=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/v0.19.2/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/v0.19.2/src/huggingface_hub/hf_api.py#L2616",raiseDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<ul>
<li><a
  href="/docs/huggingface_hub/v0.19.2/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/v0.19.2/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/v0.19.2/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/v0.19.2/en/package_reference/utilities#huggingface_hub.utils.RepositoryNotFoundError"
>RepositoryNotFoundError</a> or <a
  href="/docs/huggingface_hub/v0.19.2/en/package_reference/utilities#huggingface_hub.utils.RevisionNotFoundError"
>RevisionNotFoundError</a> or <a
  href="/docs/huggingface_hub/v0.19.2/en/package_reference/utilities#huggingface_hub.utils.BadRequestError"
>BadRequestError</a></p>
`}}),na=new J({props:{warning:!0,$$slots:{default:[Ex]},$$scope:{ctx:w}}}),oa=new J({props:{warning:!0,$$slots:{default:[Rx]},$$scope:{ctx:w}}}),aa=new U({props:{anchor:"huggingface_hub.HfApi.super_squash_history.example",$$slots:{default:[Gx]},$$scope:{ctx:w}}}),sr=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/v0.19.2/src/huggingface_hub/hf_api.py#L1686",raiseDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<ul>
<li><a
  href="/docs/huggingface_hub/v0.19.2/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/v0.19.2/en/package_reference/utilities#huggingface_hub.utils.RepositoryNotFoundError"
>RepositoryNotFoundError</a></p>
`}}),sa=new U({props:{anchor:"huggingface_hub.HfApi.unlike.example",$$slots:{default:[Dx]},$$scope:{ctx:w}}}),rr=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/v0.19.2/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/v0.19.2/src/huggingface_hub/hf_api.py#L6829"}}),ra=new U({props:{anchor:"huggingface_hub.HfApi.update_collection_item.example",$$slots:{default:[Sx]},$$scope:{ctx:w}}}),ir=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/v0.19.2/src/huggingface_hub/hf_api.py#L6656"}}),ia=new U({props:{anchor:"huggingface_hub.HfApi.update_collection_metadata.example",$$slots:{default:[Fx]},$$scope:{ctx:w}}}),lr=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/v0.19.2/src/huggingface_hub/hf_api.py#L6334",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/v0.19.2/en/package_reference/inference_endpoints#huggingface_hub.InferenceEndpoint"
>InferenceEndpoint</a></p>
`}}),cr=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/v0.19.2/src/huggingface_hub/hf_api.py#L2883",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


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