import{s as x1,o as w1,n as I}from"../chunks/scheduler.6062bdaf.js";import{S as M1,i as k1,g as c,s as r,r as h,m as y1,A as T1,h as l,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{T as J}from"../chunks/Tip.b9ac1f03.js";import{D as C}from"../chunks/Docstring.ed07512f.js";import{C as H}from"../chunks/CodeBlock.fa01571c.js";import{E as U}from"../chunks/ExampleCodeBlock.823fb173.js";import{H as E}from"../chunks/Heading.723dceba.js";function j1(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=c("p"),n.textContent=g,s=r(),h(a.$$.fragment)},l(t){n=l(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 C1(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=c("p"),n.textContent=g,s=r(),h(a.$$.fragment)},l(t){n=l(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 I1(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.0.rc0/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=c("p"),n.textContent=g,s=r(),a=c("ul"),a.innerHTML=y},l(t){n=l(t,"P",{"data-svelte-h":!0}),d(n)!=="svelte-182te9i"&&(n.textContent=g),s=i(t),a=l(t,"UL",{"data-svelte-h":!0}),d(a)!=="svelte-o9gbcm"&&(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 H1(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=c("p"),n.textContent=g,s=r(),h(a.$$.fragment)},l(t){n=l(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 U1(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.0.rc0/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=c("p"),n.textContent=g,s=r(),a=c("ul"),a.innerHTML=y},l(t){n=l(t,"P",{"data-svelte-h":!0}),d(n)!=="svelte-182te9i"&&(n.textContent=g),s=i(t),a=l(t,"UL",{"data-svelte-h":!0}),d(a)!=="svelte-o9gbcm"&&(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 J1(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=c("p"),n.textContent=g,s=r(),h(a.$$.fragment)},l(t){n=l(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 A1(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=c("p"),n.innerHTML=g},l(s){n=l(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 q1(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.0.rc0/en/package_reference/hf_api#huggingface_hub.HfApi.create_repo">create_repo()</a>.`;return{c(){n=c("p"),n.innerHTML=g},l(s){n=l(s,"P",{"data-svelte-h":!0}),d(n)!=="svelte-17ixq3v"&&(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> is limited to 25k LFS files and a 1GB payload for regular files.";return{c(){n=c("p"),n.innerHTML=g},l(s){n=l(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 E1(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=c("p"),n.innerHTML=g},l(s){n=l(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 R1(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.0.rc0/en/package_reference/hf_api#huggingface_hub.HfApi.create_repo">create_repo()</a>.`;return{c(){n=c("p"),n.innerHTML=g},l(s){n=l(s,"P",{"data-svelte-h":!0}),d(n)!=="svelte-1kt0gb"&&(n.innerHTML=g)},m(s,a){x(s,n,a)},p:I,d(s){s&&p(n)}}}function G1(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=c("p"),n.textContent=g,s=r(),h(a.$$.fragment)},l(t){n=l(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 D1(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.0.rc0/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=c("p"),n.textContent=g,s=r(),a=c("ul"),a.innerHTML=y},l(t){n=l(t,"P",{"data-svelte-h":!0}),d(n)!=="svelte-182te9i"&&(n.textContent=g),s=i(t),a=l(t,"UL",{"data-svelte-h":!0}),d(a)!=="svelte-o9gbcm"&&(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 S1(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=c("p"),n.textContent=g,s=r(),h(a.$$.fragment)},l(t){n=l(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 F1(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.0.rc0/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=c("p"),n.textContent=g,s=r(),a=c("ul"),a.innerHTML=y},l(t){n=l(t,"P",{"data-svelte-h":!0}),d(n)!=="svelte-182te9i"&&(n.textContent=g),s=i(t),a=l(t,"UL",{"data-svelte-h":!0}),d(a)!=="svelte-o9gbcm"&&(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 Z1(w){let n,g="Raises the following errors:",s,a,y=`<li><a href="/docs/huggingface_hub/v0.19.0.rc0/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.0.rc0/en/package_reference/utilities#huggingface_hub.utils.RevisionNotFoundError">RevisionNotFoundError</a>
If the revision to download from cannot be found.</li>`;return{c(){n=c("p"),n.textContent=g,s=r(),a=c("ul"),a.innerHTML=y},l(t){n=l(t,"P",{"data-svelte-h":!0}),d(n)!=="svelte-182te9i"&&(n.textContent=g),s=i(t),a=l(t,"UL",{"data-svelte-h":!0}),d(a)!=="svelte-1vrmyeo"&&(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="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=c("p"),n.textContent=g,s=r(),h(a.$$.fragment)},l(t){n=l(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 B1(w){let n,g="This is a non-revertible action. A deleted collection cannot be restored.";return{c(){n=c("p"),n.textContent=g},l(s){n=l(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 W1(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=c("p"),n.textContent=g,s=r(),h(a.$$.fragment)},l(t){n=l(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 V1(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.0.rc0/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.0.rc0/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.0.rc0/en/package_reference/utilities#huggingface_hub.utils.EntryNotFoundError">EntryNotFoundError</a>
If the file to download cannot be found.</li>`;return{c(){n=c("p"),n.textContent=g,s=r(),a=c("ul"),a.innerHTML=y},l(t){n=l(t,"P",{"data-svelte-h":!0}),d(n)!=="svelte-182te9i"&&(n.textContent=g),s=i(t),a=l(t,"UL",{"data-svelte-h":!0}),d(a)!=="svelte-138h4yx"&&(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 X1(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=c("p"),n.textContent=g,s=r(),h(a.$$.fragment)},l(t){n=l(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 Y1(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.0.rc0/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=c("p"),n.textContent=g,s=r(),a=c("ul"),a.innerHTML=y},l(t){n=l(t,"P",{"data-svelte-h":!0}),d(n)!=="svelte-182te9i"&&(n.textContent=g),s=i(t),a=l(t,"UL",{"data-svelte-h":!0}),d(a)!=="svelte-o9gbcm"&&(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 P1(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=c("p"),n.textContent=g,s=r(),h(a.$$.fragment)},l(t){n=l(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 O1(w){let n,g;return n=new U({props:{anchor:"huggingface_hub.HfApi.file_exists.example",$$slots:{default:[P1]},$$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 z1(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=c("p"),n.textContent=g,s=r(),h(a.$$.fragment)},l(t){n=l(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="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.0.rc0/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=c("p"),n.textContent=g,s=r(),a=c("ul"),a.innerHTML=y},l(t){n=l(t,"P",{"data-svelte-h":!0}),d(n)!=="svelte-182te9i"&&(n.textContent=g),s=i(t),a=l(t,"UL",{"data-svelte-h":!0}),d(a)!=="svelte-o9gbcm"&&(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 K1(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=c("p"),n.textContent=g,s=r(),h(a.$$.fragment)},l(t){n=l(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 ex(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=c("p"),n.textContent=g,s=r(),h(a.$$.fragment)},l(t){n=l(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 tx(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=c("p"),n.textContent=g,s=r(),h(a.$$.fragment)},l(t){n=l(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 nx(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 ox(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.0.rc0/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.0.rc0/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.0.rc0/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.0.rc0/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=c("p"),n.textContent=g,s=r(),a=c("ul"),a.innerHTML=y},l(t){n=l(t,"P",{"data-svelte-h":!0}),d(n)!=="svelte-182te9i"&&(n.textContent=g),s=i(t),a=l(t,"UL",{"data-svelte-h":!0}),d(a)!=="svelte-1tbftsw"&&(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 ax(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 sx(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.0.rc0/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=c("p"),n.textContent=g,s=r(),a=c("ul"),a.innerHTML=y},l(t){n=l(t,"P",{"data-svelte-h":!0}),d(n)!=="svelte-182te9i"&&(n.textContent=g),s=i(t),a=l(t,"UL",{"data-svelte-h":!0}),d(a)!=="svelte-o9gbcm"&&(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 rx(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=c("p"),n.textContent=g,s=r(),h(a.$$.fragment)},l(t){n=l(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 ix(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=c("p"),n.innerHTML=g,s=r(),h(a.$$.fragment)},l(t){n=l(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=c("p"),n.innerHTML=g,s=r(),h(a.$$.fragment)},l(t){n=l(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 lx(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 px(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 dx(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 gx(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 ux(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=c("p"),n.textContent=g,s=r(),h(a.$$.fragment)},l(t){n=l(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 hx(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=c("p"),n.textContent=g,s=r(),h(a.$$.fragment)},l(t){n=l(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 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=c("p"),n.innerHTML=g,s=r(),h(a.$$.fragment),y=r()},l($){n=l($,"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 mx(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=c("p"),n.textContent=g,s=r(),h(a.$$.fragment)},l(t){n=l(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 _x(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=c("p"),n.textContent=g,s=r(),h(a.$$.fragment)},l(t){n=l(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="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.0.rc0/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=c("p"),n.textContent=g,s=r(),a=c("ul"),a.innerHTML=y},l(t){n=l(t,"P",{"data-svelte-h":!0}),d(n)!=="svelte-182te9i"&&(n.textContent=g),s=i(t),a=l(t,"UL",{"data-svelte-h":!0}),d(a)!=="svelte-o9gbcm"&&(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 vx(w){let n,g="Raises the following errors:",s,a,y=`<li><a href="/docs/huggingface_hub/v0.19.0.rc0/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.0.rc0/en/package_reference/utilities#huggingface_hub.utils.RevisionNotFoundError">RevisionNotFoundError</a>
If the revision to download from cannot be found.</li>`;return{c(){n=c("p"),n.textContent=g,s=r(),a=c("ul"),a.innerHTML=y},l(t){n=l(t,"P",{"data-svelte-h":!0}),d(n)!=="svelte-182te9i"&&(n.textContent=g),s=i(t),a=l(t,"UL",{"data-svelte-h":!0}),d(a)!=="svelte-1vrmyeo"&&(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.0.rc0/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=c("p"),n.textContent=g,s=r(),a=c("ul"),a.innerHTML=y},l(t){n=l(t,"P",{"data-svelte-h":!0}),d(n)!=="svelte-182te9i"&&(n.textContent=g),s=i(t),a=l(t,"UL",{"data-svelte-h":!0}),d(a)!=="svelte-h7bclr"&&(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=`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.0.rc0/en/package_reference/hf_api#huggingface_hub.HfApi.create_commit">create_commit()</a> directly instead.`;return{c(){n=c("p"),n.innerHTML=g},l(s){n=l(s,"P",{"data-svelte-h":!0}),d(n)!=="svelte-p092gw"&&(n.innerHTML=g)},m(s,a){x(s,n,a)},p:I,d(s){s&&p(n)}}}function xx(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.0.rc0/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=c("p"),n.innerHTML=g},l(s){n=l(s,"P",{"data-svelte-h":!0}),d(n)!=="svelte-hif593"&&(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:"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=c("p"),n.textContent=g,s=r(),h(a.$$.fragment)},l(t){n=l(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="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=c("p"),n.textContent=g,s=r(),h(a.$$.fragment)},l(t){n=l(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 kx(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.0.rc0/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=c("p"),n.textContent=g,s=r(),a=c("ul"),a.innerHTML=y},l(t){n=l(t,"P",{"data-svelte-h":!0}),d(n)!=="svelte-182te9i"&&(n.textContent=g),s=i(t),a=l(t,"UL",{"data-svelte-h":!0}),d(a)!=="svelte-o9gbcm"&&(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 Tx(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=c("p"),n.textContent=g,s=r(),h(a.$$.fragment)},l(t){n=l(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 jx(w){let n,g;return n=new U({props:{anchor:"huggingface_hub.HfApi.repo_exists.example",$$slots:{default:[Tx]},$$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 Cx(w){let n,g="Raises the following errors:",s,a,y=`<li><a href="/docs/huggingface_hub/v0.19.0.rc0/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.0.rc0/en/package_reference/utilities#huggingface_hub.utils.RevisionNotFoundError">RevisionNotFoundError</a>
If the revision to download from cannot be found.</li>`;return{c(){n=c("p"),n.textContent=g,s=r(),a=c("ul"),a.innerHTML=y},l(t){n=l(t,"P",{"data-svelte-h":!0}),d(n)!=="svelte-182te9i"&&(n.textContent=g),s=i(t),a=l(t,"UL",{"data-svelte-h":!0}),d(a)!=="svelte-1vrmyeo"&&(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='It is also possible to request hardware directly when creating the Space repo! See <a href="/docs/huggingface_hub/v0.19.0.rc0/en/package_reference/hf_api#huggingface_hub.HfApi.create_repo">create_repo()</a> for details.';return{c(){n=c("p"),n.innerHTML=g},l(s){n=l(s,"P",{"data-svelte-h":!0}),d(n)!=="svelte-m46khn"&&(n.innerHTML=g)},m(s,a){x(s,n,a)},p:I,d(s){s&&p(n)}}}function Hx(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.0.rc0/en/package_reference/hf_api#huggingface_hub.HfApi.delete_space_storage">delete_space_storage()</a>.`;return{c(){n=c("p"),n.innerHTML=g},l(s){n=l(s,"P",{"data-svelte-h":!0}),d(n)!=="svelte-aha0gc"&&(n.innerHTML=g)},m(s,a){x(s,n,a)},p:I,d(s){s&&p(n)}}}function Ux(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=c("p"),n.textContent=g,s=r(),h(a.$$.fragment)},l(t){n=l(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 Jx(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.0.rc0/en/package_reference/hf_api#huggingface_hub.HfApi.request_space_hardware">request_space_hardware()</a>.';return{c(){n=c("p"),n.innerHTML=g},l(s){n=l(s,"P",{"data-svelte-h":!0}),d(n)!=="svelte-o2w0u4"&&(n.innerHTML=g)},m(s,a){x(s,n,a)},p:I,d(s){s&&p(n)}}}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>`;return{c(){n=c("p"),n.textContent=g,s=r(),a=c("ul"),a.innerHTML=y},l(t){n=l(t,"P",{"data-svelte-h":!0}),d(n)!=="svelte-182te9i"&&(n.textContent=g),s=i(t),a=l(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 qx(w){let n,g="Raises the following errors:",s,a,y=`<li><a href="/docs/huggingface_hub/v0.19.0.rc0/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.0.rc0/en/package_reference/utilities#huggingface_hub.utils.RevisionNotFoundError">RevisionNotFoundError</a>
If the revision to download from cannot be found.</li>`;return{c(){n=c("p"),n.textContent=g,s=r(),a=c("ul"),a.innerHTML=y},l(t){n=l(t,"P",{"data-svelte-h":!0}),d(n)!=="svelte-182te9i"&&(n.textContent=g),s=i(t),a=l(t,"UL",{"data-svelte-h":!0}),d(a)!=="svelte-1vrmyeo"&&(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="Once squashed, the commit history cannot be retrieved. This is a non-revertible operation.";return{c(){n=c("p"),n.textContent=g},l(s){n=l(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 Ex(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=c("p"),n.textContent=g},l(s){n=l(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 Rx(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=c("p"),n.textContent=g,s=r(),h(a.$$.fragment)},l(t){n=l(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 Gx(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=c("p"),n.textContent=g,s=r(),h(a.$$.fragment)},l(t){n=l(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:"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=c("p"),n.textContent=g,s=r(),h(a.$$.fragment)},l(t){n=l(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:"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=c("p"),n.textContent=g,s=r(),h(a.$$.fragment)},l(t){n=l(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="Raises the following errors:",s,a,y=`<li><a href="/docs/huggingface_hub/v0.19.0.rc0/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=c("p"),n.textContent=g,s=r(),a=c("ul"),a.innerHTML=y},l(t){n=l(t,"P",{"data-svelte-h":!0}),d(n)!=="svelte-182te9i"&&(n.textContent=g),s=i(t),a=l(t,"UL",{"data-svelte-h":!0}),d(a)!=="svelte-h7bclr"&&(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 Zx(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.0.rc0/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.0.rc0/en/package_reference/utilities#huggingface_hub.utils.RevisionNotFoundError">RevisionNotFoundError</a>
If the revision to download from cannot be found.</li>`;return{c(){n=c("p"),n.textContent=g,s=r(),a=c("ul"),a.innerHTML=y},l(t){n=l(t,"P",{"data-svelte-h":!0}),d(n)!=="svelte-182te9i"&&(n.textContent=g),s=i(t),a=l(t,"UL",{"data-svelte-h":!0}),d(a)!=="svelte-1j0k095"&&(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=`<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.0.rc0/en/package_reference/hf_api#huggingface_hub.HfApi.create_repo">create_repo()</a>.`;return{c(){n=c("p"),n.innerHTML=g},l(s){n=l(s,"P",{"data-svelte-h":!0}),d(n)!=="svelte-10d4nan"&&(n.innerHTML=g)},m(s,a){x(s,n,a)},p:I,d(s){s&&p(n)}}}function Bx(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=c("p"),n.textContent=g,s=r(),h(a.$$.fragment)},l(t){n=l(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 Wx(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=c("p"),n.textContent=g,s=r(),a=c("ul"),a.innerHTML=y},l(t){n=l(t,"P",{"data-svelte-h":!0}),d(n)!=="svelte-182te9i"&&(n.textContent=g),s=i(t),a=l(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 Vx(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.0.rc0/en/package_reference/hf_api#huggingface_hub.HfApi.create_repo">create_repo()</a>.`;return{c(){n=c("p"),n.innerHTML=g},l(s){n=l(s,"P",{"data-svelte-h":!0}),d(n)!=="svelte-hu005z"&&(n.innerHTML=g)},m(s,a){x(s,n,a)},p:I,d(s){s&&p(n)}}}function Xx(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=c("p"),n.innerHTML=g},l(s){n=l(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 Yx(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=c("p"),n.textContent=g,s=r(),h(a.$$.fragment)},l(t){n=l(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 Px(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=c("p"),n.innerHTML=g},l(s){n=l(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 Ox(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=c("p"),n.textContent=g,s=r(),h(a.$$.fragment)},l(t){n=l(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=`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=c("p"),n.textContent=g},l(s){n=l(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 Qx(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=c("p"),n.textContent=g,s=r(),h(a.$$.fragment)},l(t){n=l(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="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=c("p"),n.textContent=g,s=r(),h(a.$$.fragment)},l(t){n=l(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 e2(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=c("p"),n.textContent=g,s=r(),h(a.$$.fragment)},l(t){n=l(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 t2(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=c("p"),n.textContent=g},l(s){n=l(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 n2(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=c("p"),n.textContent=g,s=r(),h(a.$$.fragment)},l(t){n=l(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 o2(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 a2(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.0.rc0/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.0.rc0/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.0.rc0/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.0.rc0/en/package_reference/hf_api#huggingface_hub.HfApi.list_repo_refs">list_repo_refs()</a> or <a href="/docs/huggingface_hub/v0.19.0.rc0/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.0.rc0/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,cu,Ln,lu,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.0.rc0/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.0.rc0/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,e0='Creating a Pull Request with changes can also be done at once with <a href="/docs/huggingface_hub/v0.19.0.rc0/en/package_reference/hf_api#huggingface_hub.HfApi.create_commit">HfApi.create_commit()</a>;',Iu,Xi,t0='This is a wrapper around <a href="/docs/huggingface_hub/v0.19.0.rc0/en/package_reference/hf_api#huggingface_hub.HfApi.create_discussion">HfApi.create_discussion()</a>.',Hu,Yi,n0='Returns: <a href="/docs/huggingface_hub/v0.19.0.rc0/en/package_reference/community#huggingface_hub.DiscussionWithDetails">DiscussionWithDetails</a>',Uu,On,Ju,zn,Pa,Au,Pi,o0="Create an empty repo on the HuggingFace Hub.",qu,Qn,Oa,Nu,Oi,a0="Tag a given commit of a repo on the Hub.",Eu,we,za,Ru,zi,s0="Get info on one specific dataset on huggingface.co.",Gu,Qi,r0="Dataset can be private if you pass an acceptable token.",Du,Kn,Su,eo,Qa,Fu,Ki,i0="Delete a branch from a repo on the Hub.",Zu,Me,Ka,Lu,ec,c0="Delete a collection on the Hub.",Bu,to,Wu,no,Vu,Mt,es,Xu,tc,l0="Delete an item from a collection.",Yu,oo,Pu,kt,ts,Ou,nc,p0="Deletes a file in the given repo.",zu,ao,Qu,Tt,ns,Ku,oc,d0="Deletes a folder in the given repo.",eh,ac,g0='Simple wrapper around <a href="/docs/huggingface_hub/v0.19.0.rc0/en/package_reference/hf_api#huggingface_hub.HfApi.create_commit">create_commit()</a> method.',th,ke,os,nh,sc,u0="Delete an Inference Endpoint.",oh,rc,h0=`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.0.rc0/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.0.rc0/en/package_reference/hf_api#huggingface_hub.HfApi.scale_to_zero_inference_endpoint">scale_to_zero_inference_endpoint()</a>.`,ah,ic,f0='For convenience, you can also delete an Inference Endpoint using <a href="/docs/huggingface_hub/v0.19.0.rc0/en/package_reference/inference_endpoints#huggingface_hub.InferenceEndpoint.delete">InferenceEndpoint.delete()</a>.',sh,so,as,rh,cc,m0="Delete a repo from the HuggingFace Hub. CAUTION: this is irreversible.",ih,jt,ss,ch,lc,_0="Deletes a secret from a Space.",lh,pc,b0=`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,dc,v0="Delete persistent storage for a Space.",gh,Ct,is,uh,gc,y0="Deletes a variable from a Space.",hh,uc,$0=`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,cs,mh,hc,x0="Delete a tag from a repo on the Hub.",_h,Te,ls,bh,fc,w0="Duplicate a Space.",vh,mc,M0=`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,co,$h,It,ps,xh,_c,k0="Edits a comment on a Discussion / Pull Request.",wh,lo,Mh,Ht,ds,kh,bc,T0="Checks if a file exists in a repository on the Hugging Face Hub.",Th,po,jh,je,gs,Ch,vc,j0="Gets information about a Collection on the Hub.",Ih,yc,C0='Returns: <a href="/docs/huggingface_hub/v0.19.0.rc0/en/package_reference/collections#huggingface_hub.Collection">Collection</a>',Hh,go,Uh,uo,us,Jh,$c,I0="List all valid dataset tags as a nested namespace object.",Ah,Ce,hs,qh,xc,H0="Fetches a Discussion’s / Pull Request ‘s details from the Hub.",Nh,wc,U0='Returns: <a href="/docs/huggingface_hub/v0.19.0.rc0/en/package_reference/community#huggingface_hub.DiscussionWithDetails">DiscussionWithDetails</a>',Eh,ho,Rh,fo,fs,Gh,Mc,J0=`Returns the repository name for a given model ID and optional
organization.`,Dh,Ut,ms,Sh,kc,A0="Get information about an Inference Endpoint.",Fh,mo,Zh,_o,_s,Lh,Tc,q0="List all valid model tags as a nested namespace object",Bh,re,bs,Wh,jc,N0="Fetches Discussions and Pull Requests for the given repo.",Vh,Cc,E0="Example:",Xh,bo,Yh,vo,Ph,yo,vs,Oh,Ic,R0="Gets runtime information about a Space.",zh,Jt,ys,Qh,Hc,G0="Gets all variables from a Space.",Kh,Uc,D0=`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,Jc,S0="Check if a given <code>token</code> is valid and return its permissions.",nf,Ac,F0='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,qc,Z0="Download a given file if it’s not already present in the local cache.",sf,Nc,L0="The new cache file layout looks like this:",rf,Ec,B0=`<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>`,cf,Rc,W0=`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:`,lf,Gc,V0=`<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,Dc,X0="Hides a comment on a Discussion / Pull Request.",hf,wo,ff,Mo,mf,He,Ms,_f,Sc,Y0="Like a given repo on the Hub (e.g. set as favorite).",bf,Fc,P0='See also <a href="/docs/huggingface_hub/v0.19.0.rc0/en/package_reference/hf_api#huggingface_hub.HfApi.unlike">unlike()</a> and <a href="/docs/huggingface_hub/v0.19.0.rc0/en/package_reference/hf_api#huggingface_hub.HfApi.list_liked_repos">list_liked_repos()</a>.',vf,ko,yf,Ue,ks,$f,Zc,O0="List datasets hosted on the Huggingface Hub, given some filters.",xf,To,wf,jo,Mf,A,Ts,kf,Lc,z0="List files on a repo and get information about them.",Tf,Bc,Q0="Takes as input a list of paths. Those paths can be either files or folders. Two server endpoints are called:",jf,Wc,K0=`<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,Vc,ey="Examples:",If,Xc,ty="Get information about files on a repo.",Hf,Co,Uf,Yc,ny="Get even more information about files on a repo (last commit and security scan results)",Jf,Io,Af,Pc,oy="List LFS files from the “vae/” folder in “stabilityai/stable-diffusion-2” repository.",qf,Ho,Nf,Oc,ay="List all files on a repo.",Ef,Uo,Rf,qt,js,Gf,zc,sy="Lists all inference endpoints for the given namespace.",Df,Jo,Sf,ie,Cs,Ff,Qc,ry="List all public repos liked by a user on huggingface.co.",Zf,Kc,iy=`This list is public so token is optional. If <code>user</code> is not passed, it defaults to
the logged in user.`,Lf,el,cy='See also <a href="/docs/huggingface_hub/v0.19.0.rc0/en/package_reference/hf_api#huggingface_hub.HfApi.like">like()</a> and <a href="/docs/huggingface_hub/v0.19.0.rc0/en/package_reference/hf_api#huggingface_hub.HfApi.unlike">unlike()</a>.',Bf,Ao,Wf,qo,Is,Vf,tl,ly="Get the public list of all the metrics on huggingface.co",Xf,Y,Hs,Yf,nl,py="List models hosted on the Huggingface Hub, given some filters.",Pf,No,Of,ol,dy="<blockquote><blockquote><p>api = HfApi()</p></blockquote></blockquote>",zf,bd,vd,Us,Js,Qf,al,gy="api.list_models(search=“bert”)",Kf,yd,$d,Kt,As,em,sl,uy="api.list_models(search=“bert”, author=“google”)",tm,qs,nm,Je,Ns,om,rl,hy="Get the list of commits of a given revision for a repo on the Hub.",am,il,fy="Commits are sorted by date (last commit first).",sm,Eo,rm,Ro,Es,im,cl,my="Get the list of files in a given repo.",cm,Nt,Rs,lm,ll,_y="List all users who liked a given repo on the hugging Face Hub.",pm,pl,by='See also <a href="/docs/huggingface_hub/v0.19.0.rc0/en/package_reference/hf_api#huggingface_hub.HfApi.like">like()</a> and <a href="/docs/huggingface_hub/v0.19.0.rc0/en/package_reference/hf_api#huggingface_hub.HfApi.list_liked_repos">list_liked_repos()</a>.',dm,Et,Gs,gm,dl,vy="Get the list of refs of a given repo (both tags and branches).",um,Go,hm,Do,Ds,fm,gl,yy="List spaces hosted on the Huggingface Hub, given some filters.",mm,Rt,Ss,_m,ul,$y="Merges a Pull Request.",bm,So,vm,Ae,Fs,ym,hl,xy="Get info on one specific model on huggingface.co",$m,fl,wy="Model can be private if you pass an acceptable token or are logged in.",xm,Fo,wm,qe,Zs,Mm,ml,My="Moving a repository from namespace1/repo_name1 to namespace2/repo_name2",km,_l,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,bl,Ty="Pause an Inference Endpoint.",Im,vl,jy=`A paused Inference Endpoint will not be charged. It can be resumed at any time using <a href="/docs/huggingface_hub/v0.19.0.rc0/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.0.rc0/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,yl,Cy='For convenience, you can also pause an Inference Endpoint using <a href="/docs/huggingface_hub/v0.19.0.rc0/en/package_reference/hf_api#huggingface_hub.HfApi.pause_inference_endpoint">pause_inference_endpoint()</a>.',Um,Ee,Bs,Jm,$l,Iy="Pause your Space.",Am,xl,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.0.rc0/en/package_reference/hf_api#huggingface_hub.HfApi.restart_space">restart_space()</a> and go to your Space settings page.`,qm,wl,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,Ml,Jy="Pre-upload LFS files to S3 in preparation on a future commit.",Rm,kl,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,Tl,qy="Renames a Discussion.",Lm,Vo,Bm,Xo,Wm,Gt,Xs,Vm,jl,Ny="Checks if a repository exists on the Hugging Face Hub.",Xm,Yo,Ym,Dt,Ys,Pm,Cl,Ey="Get the info object for a given repo of a given type.",Om,Po,zm,St,Ps,Qm,Il,Ry="Request new hardware for a Space.",Km,Oo,e_,Ft,Os,t_,Hl,Gy="Request persistent storage for a Space.",n_,zo,o_,Ge,zs,a_,Ul,Dy="Restart your Space.",s_,Jl,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.0.rc0/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_,Al,Fy='For more details, please visit <a href="https://huggingface.co/docs/hub/spaces-gpus#pause" rel="nofollow">the docs</a>.',i_,Zt,Qs,c_,ql,Zy="Resume an Inference Endpoint.",l_,Nl,Ly='For convenience, you can also resume an Inference Endpoint using <a href="/docs/huggingface_hub/v0.19.0.rc0/en/package_reference/inference_endpoints#huggingface_hub.InferenceEndpoint.resume">InferenceEndpoint.resume()</a>.',p_,ce,Ks,d_,El,By="Run a method in the background and return a Future instance.",g_,Rl,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_,Gl,Vy=`Note: Most-used methods like <a href="/docs/huggingface_hub/v0.19.0.rc0/en/package_reference/hf_api#huggingface_hub.HfApi.upload_file">upload_file()</a>, <a href="/docs/huggingface_hub/v0.19.0.rc0/en/package_reference/hf_api#huggingface_hub.HfApi.upload_folder">upload_folder()</a> and <a href="/docs/huggingface_hub/v0.19.0.rc0/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_,Dl,Xy="Scale Inference Endpoint to zero.",__,Sl,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.0.rc0/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.0.rc0/en/package_reference/hf_api#huggingface_hub.HfApi.resume_inference_endpoint">resume_inference_endpoint()</a>.`,b_,Fl,Py='For convenience, you can also scale an Inference Endpoint to zero using <a href="/docs/huggingface_hub/v0.19.0.rc0/en/package_reference/inference_endpoints#huggingface_hub.InferenceEndpoint.scale_to_zero">InferenceEndpoint.scale_to_zero()</a>.',v_,Se,tr,y_,Zl,Oy="Set a custom sleep time for a Space running on upgraded hardware..",$_,Ll,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_,Bl,Qy="Download repo files.",k_,Wl,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_,Vl,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_,Xl,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_,Yl,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_,Pl,o$="Get info on one specific Space on huggingface.co.",J_,Ol,a$="Space can be private if you pass an acceptable token.",A_,ta,q_,O,ar,N_,zl,s$="Squash commit history on a branch for a repo on the Hub.",E_,Ql,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_,Kl,i$="Unlike a given repo on the Hub (e.g. remove from favorite list).",Z_,ep,c$='See also <a href="/docs/huggingface_hub/v0.19.0.rc0/en/package_reference/hf_api#huggingface_hub.HfApi.like">like()</a> and <a href="/docs/huggingface_hub/v0.19.0.rc0/en/package_reference/hf_api#huggingface_hub.HfApi.list_liked_repos">list_liked_repos()</a>.',L_,sa,B_,Lt,rr,W_,tp,l$="Update an item in a collection.",V_,ra,X_,le,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.0.rc0/en/package_reference/collections#huggingface_hub.Collection">Collection</a>',z_,ia,Q_,Le,cr,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.0.rc0/en/package_reference/inference_endpoints#huggingface_hub.InferenceEndpoint.update">InferenceEndpoint.update()</a>.',nb,Bt,lr,ob,cp,m$="Update the visibility setting of a repository.",ab,ca,sb,pe,pr,rb,lp,_$=`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,la,cb,pa,lb,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.0.rc0/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.0.rc0/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.0.rc0/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,cn,Er,Wb,Np,L$="Contains information about a user on the Hub.",ng,Rr,og,ln,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.`,cg,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.0.rc0/en/package_reference/hf_api#huggingface_hub.CommitOperationCopy">CommitOperationCopy</a> and a <a href="/docs/huggingface_hub/v0.19.0.rc0/en/package_reference/hf_api#huggingface_hub.CommitOperationDelete">CommitOperationDelete</a> to rename an LFS file on the Hub.',lg,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,cv,Be,Yr,lv,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.0.rc0/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,c1=`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,l1=`<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.0.rc0/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,ci,yg,Pe,li,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.0.rc0/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.0.rc0/src/huggingface_hub/hf_api.py#L6759"}}),Nn=new U({props:{anchor:"huggingface_hub.HfApi.add_collection_item.example",$$slots:{default:[j1]},$$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.0.rc0/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.0.rc0/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.0.rc0/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.0.rc0/en/package_reference/community#huggingface_hub.DiscussionStatusChange"
>DiscussionStatusChange</a></p>
`}}),En=new U({props:{anchor:"huggingface_hub.HfApi.change_discussion_status.example",$$slots:{default:[C1]},$$scope:{ctx:w}}}),Rn=new J({props:{$$slots:{default:[I1]},$$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.0.rc0/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.0.rc0/en/package_reference/community#huggingface_hub.DiscussionComment"
>DiscussionComment</a></p>
`}}),Gn=new U({props:{anchor:"huggingface_hub.HfApi.comment_discussion.example",$$slots:{default:[H1]},$$scope:{ctx:w}}}),Dn=new J({props:{$$slots:{default:[U1]},$$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.0.rc0/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.0.rc0/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.0.rc0/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.0.rc0/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.0.rc0/en/package_reference/utilities#huggingface_hub.utils.RepositoryNotFoundError"
>RepositoryNotFoundError</a> or <a
  href="/docs/huggingface_hub/v0.19.0.rc0/en/package_reference/utilities#huggingface_hub.utils.BadRequestError"
>BadRequestError</a> or <a
  href="/docs/huggingface_hub/v0.19.0.rc0/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.0.rc0/src/huggingface_hub/hf_api.py#L6591"}}),Fn=new U({props:{anchor:"huggingface_hub.HfApi.create_collection.example",$$slots:{default:[J1]},$$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.0.rc0/en/package_reference/hf_api#huggingface_hub.CommitOperationAdd">CommitOperationAdd</a> to upload a file</li>
<li><a href="/docs/huggingface_hub/v0.19.0.rc0/en/package_reference/hf_api#huggingface_hub.CommitOperationDelete">CommitOperationDelete</a> to delete a file</li>
<li><a href="/docs/huggingface_hub/v0.19.0.rc0/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.0.rc0/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.0.rc0/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.0.rc0/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.0.rc0/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.0.rc0/en/package_reference/utilities#huggingface_hub.utils.RepositoryNotFoundError"
>RepositoryNotFoundError</a></p>
`}}),Zn=new J({props:{warning:!0,$$slots:{default:[A1]},$$scope:{ctx:w}}}),Ln=new J({props:{warning:!0,$$slots:{default:[q1]},$$scope:{ctx:w}}}),Bn=new J({props:{warning:!0,$$slots:{default:[N1]},$$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.0.rc0/en/package_reference/hf_api#huggingface_hub.CommitOperationAdd">CommitOperationAdd</a>) &#x2014;
A list containing lists of <a href="/docs/huggingface_hub/v0.19.0.rc0/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.0.rc0/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.0.rc0/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:[E1]},$$scope:{ctx:w}}}),Vn=new J({props:{warning:!0,$$slots:{default:[R1]},$$scope:{ctx:w}}}),Xn=new U({props:{anchor:"huggingface_hub.HfApi.create_commits_on_pr.example",$$slots:{default:[G1]},$$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.0.rc0/src/huggingface_hub/hf_api.py#L5046"}}),Yn=new J({props:{$$slots:{default:[D1]},$$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.0.rc0/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.0.rc0/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:[S1]},$$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.0.rc0/src/huggingface_hub/hf_api.py#L5135"}}),On=new J({props:{$$slots:{default:[F1]},$$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.0.rc0/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.0.rc0/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.0.rc0/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.0.rc0/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.0.rc0/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.0.rc0/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.0.rc0/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.0.rc0/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.0.rc0/en/package_reference/utilities#huggingface_hub.utils.RepositoryNotFoundError"
>RepositoryNotFoundError</a> or <a
  href="/docs/huggingface_hub/v0.19.0.rc0/en/package_reference/utilities#huggingface_hub.utils.RevisionNotFoundError"
>RevisionNotFoundError</a> or <a
  href="/docs/huggingface_hub/v0.19.0.rc0/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.0.rc0/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.0.rc0/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.0.rc0/en/package_reference/hf_api#huggingface_hub.hf_api.DatasetInfo"
>hf_api.DatasetInfo</a></p>
`}}),Kn=new J({props:{$$slots:{default:[Z1]},$$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.0.rc0/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.0.rc0/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.0.rc0/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.0.rc0/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.0.rc0/en/package_reference/utilities#huggingface_hub.utils.RepositoryNotFoundError"
>RepositoryNotFoundError</a> or <a
  href="/docs/huggingface_hub/v0.19.0.rc0/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.0.rc0/src/huggingface_hub/hf_api.py#L6721"}}),to=new U({props:{anchor:"huggingface_hub.HfApi.delete_collection.example",$$slots:{default:[L1]},$$scope:{ctx:w}}}),no=new J({props:{warning:!0,$$slots:{default:[B1]},$$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.0.rc0/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.0.rc0/src/huggingface_hub/hf_api.py#L6879"}}),oo=new U({props:{anchor:"huggingface_hub.HfApi.delete_collection_item.example",$$slots:{default:[W1]},$$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.0.rc0/src/huggingface_hub/hf_api.py#L4159"}}),ao=new J({props:{$$slots:{default:[V1]},$$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.0.rc0/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.0.rc0/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.0.rc0/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.0.rc0/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.0.rc0/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.0.rc0/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.0.rc0/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.0.rc0/src/huggingface_hub/hf_api.py#L5713"}}),cs=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.0.rc0/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.0.rc0/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.0.rc0/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.0.rc0/en/package_reference/utilities#huggingface_hub.utils.RepositoryNotFoundError"
>RepositoryNotFoundError</a> or <a
  href="/docs/huggingface_hub/v0.19.0.rc0/en/package_reference/utilities#huggingface_hub.utils.RevisionNotFoundError"
>RevisionNotFoundError</a></p>
`}}),ls=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.0.rc0/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.0.rc0/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.0.rc0/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.0.rc0/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.0.rc0/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>
`}}),co=new U({props:{anchor:"huggingface_hub.HfApi.duplicate_space.example",$$slots:{default:[X1]},$$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.0.rc0/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.0.rc0/en/package_reference/community#huggingface_hub.DiscussionComment"
>DiscussionComment</a></p>
`}}),lo=new J({props:{$$slots:{default:[Y1]},$$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.0.rc0/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.0.rc0/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:[O1]},$$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.0.rc0/src/huggingface_hub/hf_api.py#L6555"}}),go=new U({props:{anchor:"huggingface_hub.HfApi.get_collection.example",$$slots:{default:[z1]},$$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.0.rc0/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.0.rc0/src/huggingface_hub/hf_api.py#L4970"}}),ho=new J({props:{$$slots:{default:[Q1]},$$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.0.rc0/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.0.rc0/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.0.rc0/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.0.rc0/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:[K1]},$$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.0.rc0/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.0.rc0/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.0.rc0/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:[ex]},$$scope:{ctx:w}}}),vo=new U({props:{anchor:"huggingface_hub.HfApi.get_repo_discussions.example-2",$$slots:{default:[tx]},$$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.0.rc0/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.0.rc0/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.0.rc0/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.0.rc0/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.0.rc0/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.0.rc0/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.0.rc0/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:[nx]},$$scope:{ctx:w}}}),xo=new J({props:{$$slots:{default:[ox]},$$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.0.rc0/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.0.rc0/en/package_reference/community#huggingface_hub.DiscussionComment"
>DiscussionComment</a></p>
`}}),wo=new J({props:{warning:!0,$$slots:{default:[ax]},$$scope:{ctx:w}}}),Mo=new J({props:{$$slots:{default:[sx]},$$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.0.rc0/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.0.rc0/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.0.rc0/en/package_reference/utilities#huggingface_hub.utils.RepositoryNotFoundError"
>RepositoryNotFoundError</a></p>
`}}),ko=new U({props:{anchor:"huggingface_hub.HfApi.like.example",$$slots:{default:[rx]},$$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.0.rc0/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.0.rc0/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.0.rc0/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.0.rc0/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.0.rc0/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.0.rc0/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:[ix]},$$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.0.rc0/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.0.rc0/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.0.rc0/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.0.rc0/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.0.rc0/en/package_reference/utilities#huggingface_hub.utils.RepositoryNotFoundError"
>RepositoryNotFoundError</a> or <a
  href="/docs/huggingface_hub/v0.19.0.rc0/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:[lx]},$$scope:{ctx:w}}}),Io=new U({props:{anchor:"huggingface_hub.HfApi.list_files_info.example-2",$$slots:{default:[px]},$$scope:{ctx:w}}}),Ho=new U({props:{anchor:"huggingface_hub.HfApi.list_files_info.example-3",$$slots:{default:[dx]},$$scope:{ctx:w}}}),Uo=new U({props:{anchor:"huggingface_hub.HfApi.list_files_info.example-4",$$slots:{default:[gx]},$$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.0.rc0/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.0.rc0/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:[ux]},$$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.0.rc0/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.0.rc0/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:[hx]},$$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.0.rc0/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.0.rc0/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.0.rc0/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.0.rc0/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.0.rc0/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.0.rc0/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.0.rc0/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:[fx]},$$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.0.rc0/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.0.rc0/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.0.rc0/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.0.rc0/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.0.rc0/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.0.rc0/en/package_reference/utilities#huggingface_hub.utils.RepositoryNotFoundError"
>RepositoryNotFoundError</a> or <a
  href="/docs/huggingface_hub/v0.19.0.rc0/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:[mx]},$$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.0.rc0/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.0.rc0/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.0.rc0/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.0.rc0/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.0.rc0/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.0.rc0/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.0.rc0/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:[_x]},$$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.0.rc0/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.0.rc0/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.0.rc0/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.0.rc0/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.0.rc0/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.0.rc0/en/package_reference/community#huggingface_hub.DiscussionStatusChange"
>DiscussionStatusChange</a></p>
`}}),So=new J({props:{$$slots:{default:[bx]},$$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.0.rc0/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.0.rc0/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.0.rc0/en/package_reference/hf_api#huggingface_hub.hf_api.ModelInfo"
>huggingface_hub.hf_api.ModelInfo</a></p>
`}}),Fo=new J({props:{$$slots:{default:[vx]},$$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.0.rc0/src/huggingface_hub/hf_api.py#L2943"}}),Zo=new J({props:{$$slots:{default:[yx]},$$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.0.rc0/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.0.rc0/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.0.rc0/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.0.rc0/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.0.rc0/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.0.rc0/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.0.rc0/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.0.rc0/en/package_reference/utilities#huggingface_hub.utils.RepositoryNotFoundError"
>RepositoryNotFoundError</a> or <a
  href="/docs/huggingface_hub/v0.19.0.rc0/en/package_reference/utilities#huggingface_hub.utils.HfHubHTTPError"
>HfHubHTTPError</a> or <a
  href="/docs/huggingface_hub/v0.19.0.rc0/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.0.rc0/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.0.rc0/src/huggingface_hub/hf_api.py#L3562"}}),Lo=new J({props:{warning:!0,$$slots:{default:[$x]},$$scope:{ctx:w}}}),Bo=new J({props:{warning:!0,$$slots:{default:[xx]},$$scope:{ctx:w}}}),Wo=new U({props:{anchor:"huggingface_hub.HfApi.preupload_lfs_files.example",$$slots:{default:[wx]},$$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.0.rc0/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.0.rc0/en/package_reference/community#huggingface_hub.DiscussionTitleChange"
>DiscussionTitleChange</a></p>
`}}),Vo=new U({props:{anchor:"huggingface_hub.HfApi.rename_discussion.example",$$slots:{default:[Mx]},$$scope:{ctx:w}}}),Xo=new J({props:{$$slots:{default:[kx]},$$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.0.rc0/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.0.rc0/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:[jx]},$$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.0.rc0/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.0.rc0/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.0.rc0/en/package_reference/hf_api#huggingface_hub.hf_api.DatasetInfo"
>huggingface_hub.hf_api.DatasetInfo</a>, <a
  href="/docs/huggingface_hub/v0.19.0.rc0/en/package_reference/hf_api#huggingface_hub.hf_api.ModelInfo"
>huggingface_hub.hf_api.ModelInfo</a>
or <a
  href="/docs/huggingface_hub/v0.19.0.rc0/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:[Cx]},$$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.0.rc0/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.0.rc0/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.0.rc0/en/package_reference/space_runtime#huggingface_hub.SpaceRuntime"
>SpaceRuntime</a></p>
`}}),Oo=new J({props:{$$slots:{default:[Ix]},$$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.0.rc0/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.0.rc0/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.0.rc0/en/package_reference/space_runtime#huggingface_hub.SpaceRuntime"
>SpaceRuntime</a></p>
`}}),zo=new J({props:{$$slots:{default:[Hx]},$$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.0.rc0/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.0.rc0/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.0.rc0/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.0.rc0/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.0.rc0/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.0.rc0/en/package_reference/utilities#huggingface_hub.utils.RepositoryNotFoundError"
>RepositoryNotFoundError</a> or <a
  href="/docs/huggingface_hub/v0.19.0.rc0/en/package_reference/utilities#huggingface_hub.utils.HfHubHTTPError"
>HfHubHTTPError</a> or <a
  href="/docs/huggingface_hub/v0.19.0.rc0/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.0.rc0/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.0.rc0/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.0.rc0/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:[Ux]},$$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.0.rc0/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.0.rc0/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.0.rc0/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.0.rc0/en/package_reference/space_runtime#huggingface_hub.SpaceRuntime"
>SpaceRuntime</a></p>
`}}),Ko=new J({props:{$$slots:{default:[Jx]},$$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.0.rc0/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.0.rc0/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:[Ax]},$$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.0.rc0/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.0.rc0/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.0.rc0/en/package_reference/hf_api#huggingface_hub.hf_api.SpaceInfo"
>SpaceInfo</a></p>
`}}),ta=new J({props:{$$slots:{default:[qx]},$$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.0.rc0/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.0.rc0/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.0.rc0/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.0.rc0/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.0.rc0/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.0.rc0/en/package_reference/utilities#huggingface_hub.utils.RepositoryNotFoundError"
>RepositoryNotFoundError</a> or <a
  href="/docs/huggingface_hub/v0.19.0.rc0/en/package_reference/utilities#huggingface_hub.utils.RevisionNotFoundError"
>RevisionNotFoundError</a> or <a
  href="/docs/huggingface_hub/v0.19.0.rc0/en/package_reference/utilities#huggingface_hub.utils.BadRequestError"
>BadRequestError</a></p>
`}}),na=new J({props:{warning:!0,$$slots:{default:[Nx]},$$scope:{ctx:w}}}),oa=new J({props:{warning:!0,$$slots:{default:[Ex]},$$scope:{ctx:w}}}),aa=new U({props:{anchor:"huggingface_hub.HfApi.super_squash_history.example",$$slots:{default:[Rx]},$$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.0.rc0/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.0.rc0/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.0.rc0/en/package_reference/utilities#huggingface_hub.utils.RepositoryNotFoundError"
>RepositoryNotFoundError</a></p>
`}}),sa=new U({props:{anchor:"huggingface_hub.HfApi.unlike.example",$$slots:{default:[Gx]},$$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.0.rc0/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.0.rc0/src/huggingface_hub/hf_api.py#L6829"}}),ra=new U({props:{anchor:"huggingface_hub.HfApi.update_collection_item.example",$$slots:{default:[Dx]},$$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.0.rc0/src/huggingface_hub/hf_api.py#L6656"}}),ia=new U({props:{anchor:"huggingface_hub.HfApi.update_collection_metadata.example",$$slots:{default:[Sx]},$$scope:{ctx:w}}}),cr=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.0.rc0/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.0.rc0/en/package_reference/inference_endpoints#huggingface_hub.InferenceEndpoint"
>InferenceEndpoint</a></p>
`}}),lr=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.0.rc0/src/huggingface_hub/hf_api.py#L2883",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


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