import{s as qM,o as JM,n as C}from"../chunks/scheduler.6062bdaf.js";import{S as NM,i as EM,g as c,s,r as h,A as RM,h as l,f as p,c as r,j as k,u as m,x as d,k as j,y as o,a as $,v as f,d as _,t as b,w as y,m as DM,n as GM}from"../chunks/index.4bca734e.js";import{T as A}from"../chunks/Tip.b9ac1f03.js";import{D as H}from"../chunks/Docstring.ed07512f.js";import{C as I}from"../chunks/CodeBlock.fa01571c.js";import{E as U}from"../chunks/ExampleCodeBlock.823fb173.js";import{H as J}from"../chunks/Heading.723dceba.js";function FM(T){let n,u="Example:",i,a,x;return a=new I({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=u,i=s(),h(a.$$.fragment)},l(e){n=l(e,"P",{"data-svelte-h":!0}),d(n)!=="svelte-11lpom8"&&(n.textContent=u),i=r(e),m(a.$$.fragment,e)},m(e,v){$(e,n,v),$(e,i,v),f(a,e,v),x=!0},p:C,i(e){x||(_(a.$$.fragment,e),x=!0)},o(e){b(a.$$.fragment,e),x=!1},d(e){e&&(p(n),p(i)),y(a,e)}}}function SM(T){let n,u="Examples:",i,a,x;return a=new I({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=u,i=s(),h(a.$$.fragment)},l(e){n=l(e,"P",{"data-svelte-h":!0}),d(n)!=="svelte-kvfsh7"&&(n.textContent=u),i=r(e),m(a.$$.fragment,e)},m(e,v){$(e,n,v),$(e,i,v),f(a,e,v),x=!0},p:C,i(e){x||(_(a.$$.fragment,e),x=!0)},o(e){b(a.$$.fragment,e),x=!1},d(e){e&&(p(n),p(i)),y(a,e)}}}function LM(T){let n,u="Raises the following errors:",i,a,x=`<li><a href="https://requests.readthedocs.io/en/latest/api/#requests.HTTPError" rel="nofollow"><code>HTTPError</code></a>
if the HuggingFace API returned an error</li> <li><a href="https://docs.python.org/3/library/exceptions.html#ValueError" rel="nofollow"><code>ValueError</code></a>
if some parameter value is invalid</li> <li><a href="/docs/huggingface_hub/main/en/package_reference/utilities#huggingface_hub.utils.RepositoryNotFoundError">RepositoryNotFoundError</a>
If the repository to download from cannot be found. This may be because it doesn’t exist,
or because it is set to <code>private</code> and you do not have access.</li>`;return{c(){n=c("p"),n.textContent=u,i=s(),a=c("ul"),a.innerHTML=x},l(e){n=l(e,"P",{"data-svelte-h":!0}),d(n)!=="svelte-182te9i"&&(n.textContent=u),i=r(e),a=l(e,"UL",{"data-svelte-h":!0}),d(a)!=="svelte-12f410c"&&(a.innerHTML=x)},m(e,v){$(e,n,v),$(e,i,v),$(e,a,v)},p:C,d(e){e&&(p(n),p(i),p(a))}}}function ZM(T){let n,u="Examples:",i,a,x;return a=new I({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=u,i=s(),h(a.$$.fragment)},l(e){n=l(e,"P",{"data-svelte-h":!0}),d(n)!=="svelte-kvfsh7"&&(n.textContent=u),i=r(e),m(a.$$.fragment,e)},m(e,v){$(e,n,v),$(e,i,v),f(a,e,v),x=!0},p:C,i(e){x||(_(a.$$.fragment,e),x=!0)},o(e){b(a.$$.fragment,e),x=!1},d(e){e&&(p(n),p(i)),y(a,e)}}}function BM(T){let n,u="Raises the following errors:",i,a,x=`<li><a href="https://requests.readthedocs.io/en/latest/api/#requests.HTTPError" rel="nofollow"><code>HTTPError</code></a>
if the HuggingFace API returned an error</li> <li><a href="https://docs.python.org/3/library/exceptions.html#ValueError" rel="nofollow"><code>ValueError</code></a>
if some parameter value is invalid</li> <li><a href="/docs/huggingface_hub/main/en/package_reference/utilities#huggingface_hub.utils.RepositoryNotFoundError">RepositoryNotFoundError</a>
If the repository to download from cannot be found. This may be because it doesn’t exist,
or because it is set to <code>private</code> and you do not have access.</li>`;return{c(){n=c("p"),n.textContent=u,i=s(),a=c("ul"),a.innerHTML=x},l(e){n=l(e,"P",{"data-svelte-h":!0}),d(n)!=="svelte-182te9i"&&(n.textContent=u),i=r(e),a=l(e,"UL",{"data-svelte-h":!0}),d(a)!=="svelte-12f410c"&&(a.innerHTML=x)},m(e,v){$(e,n,v),$(e,i,v),$(e,a,v)},p:C,d(e){e&&(p(n),p(i),p(a))}}}function WM(T){let n,u="Example:",i,a,x;return a=new I({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=u,i=s(),h(a.$$.fragment)},l(e){n=l(e,"P",{"data-svelte-h":!0}),d(n)!=="svelte-11lpom8"&&(n.textContent=u),i=r(e),m(a.$$.fragment,e)},m(e,v){$(e,n,v),$(e,i,v),f(a,e,v),x=!0},p:C,i(e){x||(_(a.$$.fragment,e),x=!0)},o(e){b(a.$$.fragment,e),x=!1},d(e){e&&(p(n),p(i)),y(a,e)}}}function VM(T){let n,u=`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=u},l(i){n=l(i,"P",{"data-svelte-h":!0}),d(n)!=="svelte-1i3qk8u"&&(n.innerHTML=u)},m(i,a){$(i,n,a)},p:C,d(i){i&&p(n)}}}function PM(T){let n,u=`<code>create_commit</code> assumes that the repo already exists on the Hub. If you get a
Client error 404, please make sure you are authenticated and that <code>repo_id</code> and
<code>repo_type</code> are set correctly. If repo does not exist, create it first using
<a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.HfApi.create_repo">create_repo()</a>.`;return{c(){n=c("p"),n.innerHTML=u},l(i){n=l(i,"P",{"data-svelte-h":!0}),d(n)!=="svelte-hn9ry1"&&(n.innerHTML=u)},m(i,a){$(i,n,a)},p:C,d(i){i&&p(n)}}}function XM(T){let n,u="<code>create_commit</code> is limited to 25k LFS files and a 1GB payload for regular files.";return{c(){n=c("p"),n.innerHTML=u},l(i){n=l(i,"P",{"data-svelte-h":!0}),d(n)!=="svelte-yun5lq"&&(n.innerHTML=u)},m(i,a){$(i,n,a)},p:C,d(i){i&&p(n)}}}function YM(T){let n,u="<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=u},l(i){n=l(i,"P",{"data-svelte-h":!0}),d(n)!=="svelte-1ryas9o"&&(n.innerHTML=u)},m(i,a){$(i,n,a)},p:C,d(i){i&&p(n)}}}function zM(T){let n,u=`<code>create_commits_on_pr</code> assumes that the repo already exists on the Hub. If you get a Client error 404, please
make sure you are authenticated and that <code>repo_id</code> and <code>repo_type</code> are set correctly. If repo does not exist,
create it first using <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.HfApi.create_repo">create_repo()</a>.`;return{c(){n=c("p"),n.innerHTML=u},l(i){n=l(i,"P",{"data-svelte-h":!0}),d(n)!=="svelte-1aayk81"&&(n.innerHTML=u)},m(i,a){$(i,n,a)},p:C,d(i){i&&p(n)}}}function OM(T){let n,u="Example:",i,a,x;return a=new I({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=u,i=s(),h(a.$$.fragment)},l(e){n=l(e,"P",{"data-svelte-h":!0}),d(n)!=="svelte-11lpom8"&&(n.textContent=u),i=r(e),m(a.$$.fragment,e)},m(e,v){$(e,n,v),$(e,i,v),f(a,e,v),x=!0},p:C,i(e){x||(_(a.$$.fragment,e),x=!0)},o(e){b(a.$$.fragment,e),x=!1},d(e){e&&(p(n),p(i)),y(a,e)}}}function QM(T){let n,u="Raises the following errors:",i,a,x=`<li><a href="https://requests.readthedocs.io/en/latest/api/#requests.HTTPError" rel="nofollow"><code>HTTPError</code></a>
if the HuggingFace API returned an error</li> <li><a href="https://docs.python.org/3/library/exceptions.html#ValueError" rel="nofollow"><code>ValueError</code></a>
if some parameter value is invalid</li> <li><a href="/docs/huggingface_hub/main/en/package_reference/utilities#huggingface_hub.utils.RepositoryNotFoundError">RepositoryNotFoundError</a>
If the repository to download from cannot be found. This may be because it doesn’t exist,
or because it is set to <code>private</code> and you do not have access.</li>`;return{c(){n=c("p"),n.textContent=u,i=s(),a=c("ul"),a.innerHTML=x},l(e){n=l(e,"P",{"data-svelte-h":!0}),d(n)!=="svelte-182te9i"&&(n.textContent=u),i=r(e),a=l(e,"UL",{"data-svelte-h":!0}),d(a)!=="svelte-12f410c"&&(a.innerHTML=x)},m(e,v){$(e,n,v),$(e,i,v),$(e,a,v)},p:C,d(e){e&&(p(n),p(i),p(a))}}}function KM(T){let n,u="Example:",i,a,x;return a=new I({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMEhmQXBpJTBBYXBpJTIwJTNEJTIwSGZBcGkoKSUwQWNyZWF0ZV9pbmZlcmVuY2VfZW5kcG9pbnQoJTBBJTIwJTIwJTIwJTIwJTIybXktZW5kcG9pbnQtbmFtZSUyMiUyQyUwQSUyMCUyMCUyMCUyMHJlcG9zaXRvcnklM0QlMjJncHQyJTIyJTJDJTBBJTIwJTIwJTIwJTIwZnJhbWV3b3JrJTNEJTIycHl0b3JjaCUyMiUyQyUwQSUyMCUyMCUyMCUyMHRhc2slM0QlMjJ0ZXh0LWdlbmVyYXRpb24lMjIlMkMlMEElMjAlMjAlMjAlMjBhY2NlbGVyYXRvciUzRCUyMmNwdSUyMiUyQyUwQSUyMCUyMCUyMCUyMHZlbmRvciUzRCUyMmF3cyUyMiUyQyUwQSUyMCUyMCUyMCUyMHJlZ2lvbiUzRCUyMnVzLWVhc3QtMSUyMiUyQyUwQSUyMCUyMCUyMCUyMHR5cGUlM0QlMjJwcm90ZWN0ZWQlMjIlMkMlMEElMjAlMjAlMjAlMjBpbnN0YW5jZV9zaXplJTNEJTIybWVkaXVtJTIyJTJDJTBBJTIwJTIwJTIwJTIwaW5zdGFuY2VfdHlwZSUzRCUyMmM2aSUyMiUyQyUwQSklMEFlbmRwb2ludCUwQSUwQWVuZHBvaW50LmNsaWVudC50ZXh0X2dlbmVyYXRpb24oLi4uKQ==",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=u,i=s(),h(a.$$.fragment)},l(e){n=l(e,"P",{"data-svelte-h":!0}),d(n)!=="svelte-11lpom8"&&(n.textContent=u),i=r(e),m(a.$$.fragment,e)},m(e,v){$(e,n,v),$(e,i,v),f(a,e,v),x=!0},p:C,i(e){x||(_(a.$$.fragment,e),x=!0)},o(e){b(a.$$.fragment,e),x=!1},d(e){e&&(p(n),p(i)),y(a,e)}}}function eT(T){let n,u;return n=new I({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMEhmQXBpJTBBYXBpJTIwJTNEJTIwSGZBcGkoKSUwQWNyZWF0ZV9pbmZlcmVuY2VfZW5kcG9pbnQoJTBBJTIwJTIwJTIwJTIwJTIyYXdzLXplcGh5ci03Yi1iZXRhLTA0ODYlMjIlMkMlMEElMjAlMjAlMjAlMjByZXBvc2l0b3J5JTNEJTIySHVnZ2luZ0ZhY2VINCUyRnplcGh5ci03Yi1iZXRhJTIyJTJDJTBBJTIwJTIwJTIwJTIwZnJhbWV3b3JrJTNEJTIycHl0b3JjaCUyMiUyQyUwQSUyMCUyMCUyMCUyMHRhc2slM0QlMjJ0ZXh0LWdlbmVyYXRpb24lMjIlMkMlMEElMjAlMjAlMjAlMjBhY2NlbGVyYXRvciUzRCUyMmdwdSUyMiUyQyUwQSUyMCUyMCUyMCUyMHZlbmRvciUzRCUyMmF3cyUyMiUyQyUwQSUyMCUyMCUyMCUyMHJlZ2lvbiUzRCUyMnVzLWVhc3QtMSUyMiUyQyUwQSUyMCUyMCUyMCUyMHR5cGUlM0QlMjJwcm90ZWN0ZWQlMjIlMkMlMEElMjAlMjAlMjAlMjBpbnN0YW5jZV9zaXplJTNEJTIybWVkaXVtJTIyJTJDJTBBJTIwJTIwJTIwJTIwaW5zdGFuY2VfdHlwZSUzRCUyMmc1LjJ4bGFyZ2UlMjIlMkMlMEElMjAlMjAlMjAlMjBjdXN0b21faW1hZ2UlM0QlN0IlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjJoZWFsdGhfcm91dGUlMjIlM0ElMjAlMjIlMkZoZWFsdGglMjIlMkMlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjJlbnYlMjIlM0ElMjAlN0IlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjJNQVhfQkFUQ0hfUFJFRklMTF9UT0tFTlMlMjIlM0ElMjAlMjIyMDQ4JTIyJTJDJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIyTUFYX0lOUFVUX0xFTkdUSCUyMiUzQSUyMCUyMjEwMjQlMjIlMkMlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjJNQVhfVE9UQUxfVE9LRU5TJTIyJTNBJTIwJTIyMTUxMiUyMiUyQyUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMk1PREVMX0lEJTIyJTNBJTIwJTIyJTJGcmVwb3NpdG9yeSUyMiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCU3RCUyQyUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMnVybCUyMiUzQSUyMCUyMmdoY3IuaW8lMkZodWdnaW5nZmFjZSUyRnRleHQtZ2VuZXJhdGlvbi1pbmZlcmVuY2UlM0ExLjEuMCUyMiUyQyUwQSUyMCUyMCUyMCUyMCU3RCUyQyUwQSklMEE=",highlighted:`<span class="hljs-comment"># Start an Inference Endpoint running Zephyr-7b-beta on TGI</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-meta">&gt;&gt;&gt; </span>create_inference_endpoint(
<span class="hljs-meta">... </span>    <span class="hljs-string">&quot;aws-zephyr-7b-beta-0486&quot;</span>,
<span class="hljs-meta">... </span>    repository=<span class="hljs-string">&quot;HuggingFaceH4/zephyr-7b-beta&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;gpu&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;g5.2xlarge&quot;</span>,
<span class="hljs-meta">... </span>    custom_image={
<span class="hljs-meta">... </span>        <span class="hljs-string">&quot;health_route&quot;</span>: <span class="hljs-string">&quot;/health&quot;</span>,
<span class="hljs-meta">... </span>        <span class="hljs-string">&quot;env&quot;</span>: {
<span class="hljs-meta">... </span>            <span class="hljs-string">&quot;MAX_BATCH_PREFILL_TOKENS&quot;</span>: <span class="hljs-string">&quot;2048&quot;</span>,
<span class="hljs-meta">... </span>            <span class="hljs-string">&quot;MAX_INPUT_LENGTH&quot;</span>: <span class="hljs-string">&quot;1024&quot;</span>,
<span class="hljs-meta">... </span>            <span class="hljs-string">&quot;MAX_TOTAL_TOKENS&quot;</span>: <span class="hljs-string">&quot;1512&quot;</span>,
<span class="hljs-meta">... </span>            <span class="hljs-string">&quot;MODEL_ID&quot;</span>: <span class="hljs-string">&quot;/repository&quot;</span>
<span class="hljs-meta">... </span>        },
<span class="hljs-meta">... </span>        <span class="hljs-string">&quot;url&quot;</span>: <span class="hljs-string">&quot;ghcr.io/huggingface/text-generation-inference:1.1.0&quot;</span>,
<span class="hljs-meta">... </span>    },
<span class="hljs-meta">... </span>)
`,wrap:!1}}),{c(){h(n.$$.fragment)},l(i){m(n.$$.fragment,i)},m(i,a){f(n,i,a),u=!0},p:C,i(i){u||(_(n.$$.fragment,i),u=!0)},o(i){b(n.$$.fragment,i),u=!1},d(i){y(n,i)}}}function tT(T){let n,u="Raises the following errors:",i,a,x=`<li><a href="https://requests.readthedocs.io/en/latest/api/#requests.HTTPError" rel="nofollow"><code>HTTPError</code></a>
if the HuggingFace API returned an error</li> <li><a href="https://docs.python.org/3/library/exceptions.html#ValueError" rel="nofollow"><code>ValueError</code></a>
if some parameter value is invalid</li> <li><a href="/docs/huggingface_hub/main/en/package_reference/utilities#huggingface_hub.utils.RepositoryNotFoundError">RepositoryNotFoundError</a>
If the repository to download from cannot be found. This may be because it doesn’t exist,
or because it is set to <code>private</code> and you do not have access.</li>`;return{c(){n=c("p"),n.textContent=u,i=s(),a=c("ul"),a.innerHTML=x},l(e){n=l(e,"P",{"data-svelte-h":!0}),d(n)!=="svelte-182te9i"&&(n.textContent=u),i=r(e),a=l(e,"UL",{"data-svelte-h":!0}),d(a)!=="svelte-12f410c"&&(a.innerHTML=x)},m(e,v){$(e,n,v),$(e,i,v),$(e,a,v)},p:C,d(e){e&&(p(n),p(i),p(a))}}}function nT(T){let n,u="Raises the following errors:",i,a,x=`<li><a href="/docs/huggingface_hub/main/en/package_reference/utilities#huggingface_hub.utils.RepositoryNotFoundError">RepositoryNotFoundError</a>
If the repository to download from cannot be found. This may be because it doesn’t exist,
or because it is set to <code>private</code> and you do not have access.</li> <li><a href="/docs/huggingface_hub/main/en/package_reference/utilities#huggingface_hub.utils.RevisionNotFoundError">RevisionNotFoundError</a>
If the revision to download from cannot be found.</li>`;return{c(){n=c("p"),n.textContent=u,i=s(),a=c("ul"),a.innerHTML=x},l(e){n=l(e,"P",{"data-svelte-h":!0}),d(n)!=="svelte-182te9i"&&(n.textContent=u),i=r(e),a=l(e,"UL",{"data-svelte-h":!0}),d(a)!=="svelte-1mt8eeu"&&(a.innerHTML=x)},m(e,v){$(e,n,v),$(e,i,v),$(e,a,v)},p:C,d(e){e&&(p(n),p(i),p(a))}}}function oT(T){let n,u="Example:",i,a,x;return a=new I({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=u,i=s(),h(a.$$.fragment)},l(e){n=l(e,"P",{"data-svelte-h":!0}),d(n)!=="svelte-11lpom8"&&(n.textContent=u),i=r(e),m(a.$$.fragment,e)},m(e,v){$(e,n,v),$(e,i,v),f(a,e,v),x=!0},p:C,i(e){x||(_(a.$$.fragment,e),x=!0)},o(e){b(a.$$.fragment,e),x=!1},d(e){e&&(p(n),p(i)),y(a,e)}}}function aT(T){let n,u="This is a non-revertible action. A deleted collection cannot be restored.";return{c(){n=c("p"),n.textContent=u},l(i){n=l(i,"P",{"data-svelte-h":!0}),d(n)!=="svelte-1k7dttx"&&(n.textContent=u)},m(i,a){$(i,n,a)},p:C,d(i){i&&p(n)}}}function sT(T){let n,u="Example:",i,a,x;return a=new I({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=u,i=s(),h(a.$$.fragment)},l(e){n=l(e,"P",{"data-svelte-h":!0}),d(n)!=="svelte-11lpom8"&&(n.textContent=u),i=r(e),m(a.$$.fragment,e)},m(e,v){$(e,n,v),$(e,i,v),f(a,e,v),x=!0},p:C,i(e){x||(_(a.$$.fragment,e),x=!0)},o(e){b(a.$$.fragment,e),x=!1},d(e){e&&(p(n),p(i)),y(a,e)}}}function rT(T){let n,u="Raises the following errors:",i,a,x=`<li><a href="https://requests.readthedocs.io/en/latest/api/#requests.HTTPError" rel="nofollow"><code>HTTPError</code></a>
if the HuggingFace API returned an error</li> <li><a href="https://docs.python.org/3/library/exceptions.html#ValueError" rel="nofollow"><code>ValueError</code></a>
if some parameter value is invalid</li> <li><a href="/docs/huggingface_hub/main/en/package_reference/utilities#huggingface_hub.utils.RepositoryNotFoundError">RepositoryNotFoundError</a>
If the repository to download from cannot be found. This may be because it doesn’t exist,
or because it is set to <code>private</code> and you do not have access.</li> <li><a href="/docs/huggingface_hub/main/en/package_reference/utilities#huggingface_hub.utils.RevisionNotFoundError">RevisionNotFoundError</a>
If the revision to download from cannot be found.</li> <li><a href="/docs/huggingface_hub/main/en/package_reference/utilities#huggingface_hub.utils.EntryNotFoundError">EntryNotFoundError</a>
If the file to download cannot be found.</li>`;return{c(){n=c("p"),n.textContent=u,i=s(),a=c("ul"),a.innerHTML=x},l(e){n=l(e,"P",{"data-svelte-h":!0}),d(n)!=="svelte-182te9i"&&(n.textContent=u),i=r(e),a=l(e,"UL",{"data-svelte-h":!0}),d(a)!=="svelte-i4chuz"&&(a.innerHTML=x)},m(e,v){$(e,n,v),$(e,i,v),$(e,a,v)},p:C,d(e){e&&(p(n),p(i),p(a))}}}function iT(T){let n,u="Example:",i,a,x;return a=new I({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=u,i=s(),h(a.$$.fragment)},l(e){n=l(e,"P",{"data-svelte-h":!0}),d(n)!=="svelte-11lpom8"&&(n.textContent=u),i=r(e),m(a.$$.fragment,e)},m(e,v){$(e,n,v),$(e,i,v),f(a,e,v),x=!0},p:C,i(e){x||(_(a.$$.fragment,e),x=!0)},o(e){b(a.$$.fragment,e),x=!1},d(e){e&&(p(n),p(i)),y(a,e)}}}function cT(T){let n,u="Raises the following errors:",i,a,x=`<li><a href="https://requests.readthedocs.io/en/latest/api/#requests.HTTPError" rel="nofollow"><code>HTTPError</code></a>
if the HuggingFace API returned an error</li> <li><a href="https://docs.python.org/3/library/exceptions.html#ValueError" rel="nofollow"><code>ValueError</code></a>
if some parameter value is invalid</li> <li><a href="/docs/huggingface_hub/main/en/package_reference/utilities#huggingface_hub.utils.RepositoryNotFoundError">RepositoryNotFoundError</a>
If the repository to download from cannot be found. This may be because it doesn’t exist,
or because it is set to <code>private</code> and you do not have access.</li>`;return{c(){n=c("p"),n.textContent=u,i=s(),a=c("ul"),a.innerHTML=x},l(e){n=l(e,"P",{"data-svelte-h":!0}),d(n)!=="svelte-182te9i"&&(n.textContent=u),i=r(e),a=l(e,"UL",{"data-svelte-h":!0}),d(a)!=="svelte-12f410c"&&(a.innerHTML=x)},m(e,v){$(e,n,v),$(e,i,v),$(e,a,v)},p:C,d(e){e&&(p(n),p(i),p(a))}}}function lT(T){let n,u="Examples:",i,a,x;return a=new I({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=u,i=s(),h(a.$$.fragment)},l(e){n=l(e,"P",{"data-svelte-h":!0}),d(n)!=="svelte-kvfsh7"&&(n.textContent=u),i=r(e),m(a.$$.fragment,e)},m(e,v){$(e,n,v),$(e,i,v),f(a,e,v),x=!0},p:C,i(e){x||(_(a.$$.fragment,e),x=!0)},o(e){b(a.$$.fragment,e),x=!1},d(e){e&&(p(n),p(i)),y(a,e)}}}function pT(T){let n,u="Example:",i,a,x;return a=new I({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=u,i=s(),h(a.$$.fragment)},l(e){n=l(e,"P",{"data-svelte-h":!0}),d(n)!=="svelte-11lpom8"&&(n.textContent=u),i=r(e),m(a.$$.fragment,e)},m(e,v){$(e,n,v),$(e,i,v),f(a,e,v),x=!0},p:C,i(e){x||(_(a.$$.fragment,e),x=!0)},o(e){b(a.$$.fragment,e),x=!1},d(e){e&&(p(n),p(i)),y(a,e)}}}function dT(T){let n,u="Raises the following errors:",i,a,x=`<li><a href="https://requests.readthedocs.io/en/latest/api/#requests.HTTPError" rel="nofollow"><code>HTTPError</code></a>
if the HuggingFace API returned an error</li> <li><a href="https://docs.python.org/3/library/exceptions.html#ValueError" rel="nofollow"><code>ValueError</code></a>
if some parameter value is invalid</li> <li><a href="/docs/huggingface_hub/main/en/package_reference/utilities#huggingface_hub.utils.RepositoryNotFoundError">RepositoryNotFoundError</a>
If the repository to download from cannot be found. This may be because it doesn’t exist,
or because it is set to <code>private</code> and you do not have access.</li>`;return{c(){n=c("p"),n.textContent=u,i=s(),a=c("ul"),a.innerHTML=x},l(e){n=l(e,"P",{"data-svelte-h":!0}),d(n)!=="svelte-182te9i"&&(n.textContent=u),i=r(e),a=l(e,"UL",{"data-svelte-h":!0}),d(a)!=="svelte-12f410c"&&(a.innerHTML=x)},m(e,v){$(e,n,v),$(e,i,v),$(e,a,v)},p:C,d(e){e&&(p(n),p(i),p(a))}}}function gT(T){let n,u="Example:",i,a,x;return a=new I({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=u,i=s(),h(a.$$.fragment)},l(e){n=l(e,"P",{"data-svelte-h":!0}),d(n)!=="svelte-11lpom8"&&(n.textContent=u),i=r(e),m(a.$$.fragment,e)},m(e,v){$(e,n,v),$(e,i,v),f(a,e,v),x=!0},p:C,i(e){x||(_(a.$$.fragment,e),x=!0)},o(e){b(a.$$.fragment,e),x=!1},d(e){e&&(p(n),p(i)),y(a,e)}}}function uT(T){let n,u="Example:",i,a,x;return a=new I({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMGdldF9wYXRoc19pbmZvJTBBcGF0aHNfaW5mbyUyMCUzRCUyMGdldF9wYXRoc19pbmZvKCUyMmFsbGVuYWklMkZjNCUyMiUyQyUyMCU1QiUyMlJFQURNRS5tZCUyMiUyQyUyMCUyMmVuJTIyJTVEJTJDJTIwcmVwb190eXBlJTNEJTIyZGF0YXNldCUyMiklMEFwYXRoc19pbmZv",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> get_paths_info
<span class="hljs-meta">&gt;&gt;&gt; </span>paths_info = get_paths_info(<span class="hljs-string">&quot;allenai/c4&quot;</span>, [<span class="hljs-string">&quot;README.md&quot;</span>, <span class="hljs-string">&quot;en&quot;</span>], repo_type=<span class="hljs-string">&quot;dataset&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>paths_info
[
    RepoFile(path=<span class="hljs-string">&#x27;README.md&#x27;</span>, size=<span class="hljs-number">2379</span>, blob_id=<span class="hljs-string">&#x27;f84cb4c97182890fc1dbdeaf1a6a468fd27b4fff&#x27;</span>, lfs=<span class="hljs-literal">None</span>, last_commit=<span class="hljs-literal">None</span>, security=<span class="hljs-literal">None</span>),
    RepoFolder(path=<span class="hljs-string">&#x27;en&#x27;</span>, tree_id=<span class="hljs-string">&#x27;dc943c4c40f53d02b31ced1defa7e5f438d5862e&#x27;</span>, last_commit=<span class="hljs-literal">None</span>)
]`,wrap:!1}}),{c(){n=c("p"),n.textContent=u,i=s(),h(a.$$.fragment)},l(e){n=l(e,"P",{"data-svelte-h":!0}),d(n)!=="svelte-11lpom8"&&(n.textContent=u),i=r(e),m(a.$$.fragment,e)},m(e,v){$(e,n,v),$(e,i,v),f(a,e,v),x=!0},p:C,i(e){x||(_(a.$$.fragment,e),x=!0)},o(e){b(a.$$.fragment,e),x=!1},d(e){e&&(p(n),p(i)),y(a,e)}}}function hT(T){let n,u="Collecting all discussions of a repo in a list:",i,a,x;return a=new I({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=u,i=s(),h(a.$$.fragment)},l(e){n=l(e,"P",{"data-svelte-h":!0}),d(n)!=="svelte-1p6axsk"&&(n.textContent=u),i=r(e),m(a.$$.fragment,e)},m(e,v){$(e,n,v),$(e,i,v),f(a,e,v),x=!0},p:C,i(e){x||(_(a.$$.fragment,e),x=!0)},o(e){b(a.$$.fragment,e),x=!1},d(e){e&&(p(n),p(i)),y(a,e)}}}function mT(T){let n,u="Iterating over discussions of a repo:",i,a,x;return a=new I({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=u,i=s(),h(a.$$.fragment)},l(e){n=l(e,"P",{"data-svelte-h":!0}),d(n)!=="svelte-121l6g4"&&(n.textContent=u),i=r(e),m(a.$$.fragment,e)},m(e,v){$(e,n,v),$(e,i,v),f(a,e,v),x=!0},p:C,i(e){x||(_(a.$$.fragment,e),x=!0)},o(e){b(a.$$.fragment,e),x=!1},d(e){e&&(p(n),p(i)),y(a,e)}}}function fT(T){let n,u="Example:",i,a,x;return a=new I({props:{code:"bWV0YWRhdGElMjAlM0QlMjBnZXRfc2FmZXRlbnNvcnNfbWV0YWRhdGEoJTIyYmlnc2NpZW5jZSUyRmJsb29tei01NjBtJTIyKSUwQW1ldGFkYXRhJTBBbWV0YWRhdGEuZmlsZXNfbWV0YWRhdGElNUIlMjJtb2RlbC5zYWZldGVuc29ycyUyMiU1RC5tZXRhZGF0YSUwQSUwQW1ldGFkYXRhJTIwJTNEJTIwZ2V0X3NhZmV0ZW5zb3JzX21ldGFkYXRhKCUyMmJpZ3NjaWVuY2UlMkZibG9vbSUyMiklMEFtZXRhZGF0YSUwQWxlbihtZXRhZGF0YS5maWxlc19tZXRhZGF0YSklMEElMEFnZXRfc2FmZXRlbnNvcnNfbWV0YWRhdGEoJTIycnVud2F5bWwlMkZzdGFibGUtZGlmZnVzaW9uLXYxLTUlMjIp",highlighted:`<span class="hljs-comment"># Parse repo with single weights file</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>metadata = get_safetensors_metadata(<span class="hljs-string">&quot;bigscience/bloomz-560m&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>metadata
SafetensorsRepoMetadata(
    metadata=<span class="hljs-literal">None</span>,
    sharded=<span class="hljs-literal">False</span>,
    weight_map={<span class="hljs-string">&#x27;h.0.input_layernorm.bias&#x27;</span>: <span class="hljs-string">&#x27;model.safetensors&#x27;</span>, ...},
    files_metadata={<span class="hljs-string">&#x27;model.safetensors&#x27;</span>: SafetensorsFileMetadata(...)}
)
<span class="hljs-meta">&gt;&gt;&gt; </span>metadata.files_metadata[<span class="hljs-string">&quot;model.safetensors&quot;</span>].metadata
{<span class="hljs-string">&#x27;format&#x27;</span>: <span class="hljs-string">&#x27;pt&#x27;</span>}

<span class="hljs-comment"># Parse repo with sharded model</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>metadata = get_safetensors_metadata(<span class="hljs-string">&quot;bigscience/bloom&quot;</span>)
Parse safetensors files: <span class="hljs-number">100</span>%|██████████████████████████████████████████| <span class="hljs-number">72</span>/<span class="hljs-number">72</span> [<span class="hljs-number">00</span>:<span class="hljs-number">12</span>&lt;<span class="hljs-number">00</span>:<span class="hljs-number">00</span>,  <span class="hljs-number">5.78</span>it/s]
<span class="hljs-meta">&gt;&gt;&gt; </span>metadata
SafetensorsRepoMetadata(metadata={<span class="hljs-string">&#x27;total_size&#x27;</span>: <span class="hljs-number">352494542848</span>}, sharded=<span class="hljs-literal">True</span>, weight_map={...}, files_metadata={...})
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-built_in">len</span>(metadata.files_metadata)
<span class="hljs-number">72</span>  <span class="hljs-comment"># All safetensors files have been fetched</span>

<span class="hljs-comment"># Parse repo with sharded model</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>get_safetensors_metadata(<span class="hljs-string">&quot;runwayml/stable-diffusion-v1-5&quot;</span>)
NotASafetensorsRepoError: <span class="hljs-string">&#x27;runwayml/stable-diffusion-v1-5&#x27;</span> <span class="hljs-keyword">is</span> <span class="hljs-keyword">not</span> a safetensors repo. Couldn<span class="hljs-string">&#x27;t find &#x27;</span>model.safetensors.index.json<span class="hljs-string">&#x27; or &#x27;</span>model.safetensors<span class="hljs-string">&#x27; files.</span>`,wrap:!1}}),{c(){n=c("p"),n.textContent=u,i=s(),h(a.$$.fragment)},l(e){n=l(e,"P",{"data-svelte-h":!0}),d(n)!=="svelte-11lpom8"&&(n.textContent=u),i=r(e),m(a.$$.fragment,e)},m(e,v){$(e,n,v),$(e,i,v),f(a,e,v),x=!0},p:C,i(e){x||(_(a.$$.fragment,e),x=!0)},o(e){b(a.$$.fragment,e),x=!1},d(e){e&&(p(n),p(i)),y(a,e)}}}function _T(T){let n,u;return n=new I({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(i){m(n.$$.fragment,i)},m(i,a){f(n,i,a),u=!0},p:C,i(i){u||(_(n.$$.fragment,i),u=!0)},o(i){b(n.$$.fragment,i),u=!1},d(i){y(n,i)}}}function bT(T){let n,u="Raises the following errors:",i,a,x=`<li><a href="https://docs.python.org/3/library/exceptions.html#EnvironmentError" rel="nofollow"><code>EnvironmentError</code></a>
if <code>token=True</code> and the token cannot be found.</li> <li><a href="https://docs.python.org/3/library/exceptions.html#OSError" rel="nofollow"><code>OSError</code></a>
if ETag cannot be determined.</li> <li><a href="https://docs.python.org/3/library/exceptions.html#ValueError" rel="nofollow"><code>ValueError</code></a>
if some parameter value is invalid</li> <li><a href="/docs/huggingface_hub/main/en/package_reference/utilities#huggingface_hub.utils.RepositoryNotFoundError">RepositoryNotFoundError</a>
If the repository to download from cannot be found. This may be because it doesn’t exist,
or because it is set to <code>private</code> and you do not have access.</li> <li><a href="/docs/huggingface_hub/main/en/package_reference/utilities#huggingface_hub.utils.RevisionNotFoundError">RevisionNotFoundError</a>
If the revision to download from cannot be found.</li> <li><a href="/docs/huggingface_hub/main/en/package_reference/utilities#huggingface_hub.utils.EntryNotFoundError">EntryNotFoundError</a>
If the file to download cannot be found.</li> <li><a href="/docs/huggingface_hub/main/en/package_reference/utilities#huggingface_hub.utils.LocalEntryNotFoundError">LocalEntryNotFoundError</a>
If network is disabled or unavailable and file is not found in cache.</li>`;return{c(){n=c("p"),n.textContent=u,i=s(),a=c("ul"),a.innerHTML=x},l(e){n=l(e,"P",{"data-svelte-h":!0}),d(n)!=="svelte-182te9i"&&(n.textContent=u),i=r(e),a=l(e,"UL",{"data-svelte-h":!0}),d(a)!=="svelte-1d66y2i"&&(a.innerHTML=x)},m(e,v){$(e,n,v),$(e,i,v),$(e,a,v)},p:C,d(e){e&&(p(n),p(i),p(a))}}}function yT(T){let n;return{c(){n=DM("Hidden comments' content cannot be retrieved anymore. Hiding a comment is irreversible.")},l(u){n=GM(u,"Hidden comments' content cannot be retrieved anymore. Hiding a comment is irreversible.")},m(u,i){$(u,n,i)},d(u){u&&p(n)}}}function xT(T){let n,u="Raises the following errors:",i,a,x=`<li><a href="https://requests.readthedocs.io/en/latest/api/#requests.HTTPError" rel="nofollow"><code>HTTPError</code></a>
if the HuggingFace API returned an error</li> <li><a href="https://docs.python.org/3/library/exceptions.html#ValueError" rel="nofollow"><code>ValueError</code></a>
if some parameter value is invalid</li> <li><a href="/docs/huggingface_hub/main/en/package_reference/utilities#huggingface_hub.utils.RepositoryNotFoundError">RepositoryNotFoundError</a>
If the repository to download from cannot be found. This may be because it doesn’t exist,
or because it is set to <code>private</code> and you do not have access.</li>`;return{c(){n=c("p"),n.textContent=u,i=s(),a=c("ul"),a.innerHTML=x},l(e){n=l(e,"P",{"data-svelte-h":!0}),d(n)!=="svelte-182te9i"&&(n.textContent=u),i=r(e),a=l(e,"UL",{"data-svelte-h":!0}),d(a)!=="svelte-12f410c"&&(a.innerHTML=x)},m(e,v){$(e,n,v),$(e,i,v),$(e,a,v)},p:C,d(e){e&&(p(n),p(i),p(a))}}}function vT(T){let n,u="Example:",i,a,x;return a=new I({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=u,i=s(),h(a.$$.fragment)},l(e){n=l(e,"P",{"data-svelte-h":!0}),d(n)!=="svelte-11lpom8"&&(n.textContent=u),i=r(e),m(a.$$.fragment,e)},m(e,v){$(e,n,v),$(e,i,v),f(a,e,v),x=!0},p:C,i(e){x||(_(a.$$.fragment,e),x=!0)},o(e){b(a.$$.fragment,e),x=!1},d(e){e&&(p(n),p(i)),y(a,e)}}}function $T(T){let n,u="Example:",i,a,x;return a=new I({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMGxpc3RfYWNjZXB0ZWRfYWNjZXNzX3JlcXVlc3RzJTBBJTBBcmVxdWVzdHMlMjAlM0QlMjBsaXN0X2FjY2VwdGVkX2FjY2Vzc19yZXF1ZXN0cyglMjJtZXRhLWxsYW1hJTJGTGxhbWEtMi03YiUyMiklMEFsZW4ocmVxdWVzdHMpJTBBcmVxdWVzdHMlNUIwJTVE",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> list_accepted_access_requests

<span class="hljs-meta">&gt;&gt;&gt; </span>requests = list_accepted_access_requests(<span class="hljs-string">&quot;meta-llama/Llama-2-7b&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-built_in">len</span>(requests)
<span class="hljs-number">411</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>requests[<span class="hljs-number">0</span>]
[
    AccessRequest(
        username=<span class="hljs-string">&#x27;clem&#x27;</span>,
        fullname=<span class="hljs-string">&#x27;Clem 🤗&#x27;</span>,
        email=<span class="hljs-string">&#x27;***&#x27;</span>,
        timestamp=datetime.datetime(<span class="hljs-number">2023</span>, <span class="hljs-number">11</span>, <span class="hljs-number">23</span>, <span class="hljs-number">18</span>, <span class="hljs-number">4</span>, <span class="hljs-number">53</span>, <span class="hljs-number">828000</span>, tzinfo=datetime.timezone.utc),
        status=<span class="hljs-string">&#x27;accepted&#x27;</span>,
        fields=<span class="hljs-literal">None</span>,
    ),
    ...
]`,wrap:!1}}),{c(){n=c("p"),n.textContent=u,i=s(),h(a.$$.fragment)},l(e){n=l(e,"P",{"data-svelte-h":!0}),d(n)!=="svelte-11lpom8"&&(n.textContent=u),i=r(e),m(a.$$.fragment,e)},m(e,v){$(e,n,v),$(e,i,v),f(a,e,v),x=!0},p:C,i(e){x||(_(a.$$.fragment,e),x=!0)},o(e){b(a.$$.fragment,e),x=!1},d(e){e&&(p(n),p(i)),y(a,e)}}}function wT(T){let n,u=`When listing collections, the item list per collection is truncated to 4 items maximum. To retrieve all items
from a collection, you must use <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.HfApi.get_collection">get_collection()</a>.`;return{c(){n=c("p"),n.innerHTML=u},l(i){n=l(i,"P",{"data-svelte-h":!0}),d(n)!=="svelte-1azfyye"&&(n.innerHTML=u)},m(i,a){$(i,n,a)},p:C,d(i){i&&p(n)}}}function MT(T){let n,u="Example usage with the <code>filter</code> argument:",i,a,x;return a=new I({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMEhmQXBpJTBBJTBBYXBpJTIwJTNEJTIwSGZBcGkoKSUwQSUwQSUyMyUyMExpc3QlMjBhbGwlMjBkYXRhc2V0cyUwQWFwaS5saXN0X2RhdGFzZXRzKCklMEElMEElMEElMjMlMjBMaXN0JTIwb25seSUyMHRoZSUyMHRleHQlMjBjbGFzc2lmaWNhdGlvbiUyMGRhdGFzZXRzJTBBYXBpLmxpc3RfZGF0YXNldHMoZmlsdGVyJTNEJTIydGFza19jYXRlZ29yaWVzJTNBdGV4dC1jbGFzc2lmaWNhdGlvbiUyMiklMEElMEElMEElMjMlMjBMaXN0JTIwb25seSUyMHRoZSUyMGRhdGFzZXRzJTIwaW4lMjBydXNzaWFuJTIwZm9yJTIwbGFuZ3VhZ2UlMjBtb2RlbGluZyUwQWFwaS5saXN0X2RhdGFzZXRzKCUwQSUyMCUyMCUyMCUyMGZpbHRlciUzRCglMjJsYW5ndWFnZSUzQXJ1JTIyJTJDJTIwJTIydGFza19pZHMlM0FsYW5ndWFnZS1tb2RlbGluZyUyMiklMEEpJTBBJTBBYXBpLmxpc3RfZGF0YXNldHMoZmlsdGVyJTNEZmlsdCk=",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"># 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>api.list_datasets(<span class="hljs-built_in">filter</span>=filt)`,wrap:!1}}),{c(){n=c("p"),n.innerHTML=u,i=s(),h(a.$$.fragment)},l(e){n=l(e,"P",{"data-svelte-h":!0}),d(n)!=="svelte-1lrmw6w"&&(n.innerHTML=u),i=r(e),m(a.$$.fragment,e)},m(e,v){$(e,n,v),$(e,i,v),f(a,e,v),x=!0},p:C,i(e){x||(_(a.$$.fragment,e),x=!0)},o(e){b(a.$$.fragment,e),x=!1},d(e){e&&(p(n),p(i)),y(a,e)}}}function TT(T){let n,u="Example usage with the <code>search</code> argument:",i,a,x;return a=new I({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=u,i=s(),h(a.$$.fragment)},l(e){n=l(e,"P",{"data-svelte-h":!0}),d(n)!=="svelte-1oyacuq"&&(n.innerHTML=u),i=r(e),m(a.$$.fragment,e)},m(e,v){$(e,n,v),$(e,i,v),f(a,e,v),x=!0},p:C,i(e){x||(_(a.$$.fragment,e),x=!0)},o(e){b(a.$$.fragment,e),x=!1},d(e){e&&(p(n),p(i)),y(a,e)}}}function kT(T){let n,u="Example:",i,a,x;return a=new I({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=u,i=s(),h(a.$$.fragment)},l(e){n=l(e,"P",{"data-svelte-h":!0}),d(n)!=="svelte-11lpom8"&&(n.textContent=u),i=r(e),m(a.$$.fragment,e)},m(e,v){$(e,n,v),$(e,i,v),f(a,e,v),x=!0},p:C,i(e){x||(_(a.$$.fragment,e),x=!0)},o(e){b(a.$$.fragment,e),x=!1},d(e){e&&(p(n),p(i)),y(a,e)}}}function jT(T){let n,u="Example:",i,a,x;return a=new I({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=u,i=s(),h(a.$$.fragment)},l(e){n=l(e,"P",{"data-svelte-h":!0}),d(n)!=="svelte-11lpom8"&&(n.textContent=u),i=r(e),m(a.$$.fragment,e)},m(e,v){$(e,n,v),$(e,i,v),f(a,e,v),x=!0},p:C,i(e){x||(_(a.$$.fragment,e),x=!0)},o(e){b(a.$$.fragment,e),x=!1},d(e){e&&(p(n),p(i)),y(a,e)}}}function HT(T){let n,u="Example usage with the <code>filter</code> argument:",i,a,x;return a=new I({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMEhmQXBpJTBBJTBBYXBpJTIwJTNEJTIwSGZBcGkoKSUwQSUwQSUyMyUyMExpc3QlMjBhbGwlMjBtb2RlbHMlMEFhcGkubGlzdF9tb2RlbHMoKSUwQSUwQSUyMyUyMExpc3QlMjBvbmx5JTIwdGhlJTIwdGV4dCUyMGNsYXNzaWZpY2F0aW9uJTIwbW9kZWxzJTBBYXBpLmxpc3RfbW9kZWxzKGZpbHRlciUzRCUyMnRleHQtY2xhc3NpZmljYXRpb24lMjIpJTBBJTBBJTIzJTIwTGlzdCUyMG9ubHklMjBtb2RlbHMlMjBmcm9tJTIwdGhlJTIwQWxsZW5OTFAlMjBsaWJyYXJ5JTBBYXBpLmxpc3RfbW9kZWxzKGZpbHRlciUzRCUyMmFsbGVubmxwJTIyKQ==",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"># 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>)`,wrap:!1}}),{c(){n=c("p"),n.innerHTML=u,i=s(),h(a.$$.fragment)},l(e){n=l(e,"P",{"data-svelte-h":!0}),d(n)!=="svelte-1lrmw6w"&&(n.innerHTML=u),i=r(e),m(a.$$.fragment,e)},m(e,v){$(e,n,v),$(e,i,v),f(a,e,v),x=!0},p:C,i(e){x||(_(a.$$.fragment,e),x=!0)},o(e){b(a.$$.fragment,e),x=!1},d(e){e&&(p(n),p(i)),y(a,e)}}}function CT(T){let n,u="Example usage with the <code>search</code> argument:",i,a,x;return a=new I({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMEhmQXBpJTBBJTBBYXBpJTIwJTNEJTIwSGZBcGkoKSUwQSUwQSUyMyUyMExpc3QlMjBhbGwlMjBtb2RlbHMlMjB3aXRoJTIwJTIyYmVydCUyMiUyMGluJTIwdGhlaXIlMjBuYW1lJTBBYXBpLmxpc3RfbW9kZWxzKHNlYXJjaCUzRCUyMmJlcnQlMjIpJTBBJTBBJTIzJTIwTGlzdCUyMGFsbCUyMG1vZGVscyUyMHdpdGglMjAlMjJiZXJ0JTIyJTIwaW4lMjB0aGVpciUyMG5hbWUlMjBtYWRlJTIwYnklMjBnb29nbGUlMEFhcGkubGlzdF9tb2RlbHMoc2VhcmNoJTNEJTIyYmVydCUyMiUyQyUyMGF1dGhvciUzRCUyMmdvb2dsZSUyMik=",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 with &quot;bert&quot; in their name</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>api.list_models(search=<span class="hljs-string">&quot;bert&quot;</span>)

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># List all models with &quot;bert&quot; in their name made by google</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>api.list_models(search=<span class="hljs-string">&quot;bert&quot;</span>, author=<span class="hljs-string">&quot;google&quot;</span>)`,wrap:!1}}),{c(){n=c("p"),n.innerHTML=u,i=s(),h(a.$$.fragment)},l(e){n=l(e,"P",{"data-svelte-h":!0}),d(n)!=="svelte-1oyacuq"&&(n.innerHTML=u),i=r(e),m(a.$$.fragment,e)},m(e,v){$(e,n,v),$(e,i,v),f(a,e,v),x=!0},p:C,i(e){x||(_(a.$$.fragment,e),x=!0)},o(e){b(a.$$.fragment,e),x=!1},d(e){e&&(p(n),p(i)),y(a,e)}}}function IT(T){let n,u="Example:",i,a,x;return a=new I({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMGxpc3RfcGVuZGluZ19hY2Nlc3NfcmVxdWVzdHMlMkMlMjBhY2NlcHRfYWNjZXNzX3JlcXVlc3QlMEElMEFyZXF1ZXN0cyUyMCUzRCUyMGxpc3RfcGVuZGluZ19hY2Nlc3NfcmVxdWVzdHMoJTIybWV0YS1sbGFtYSUyRkxsYW1hLTItN2IlMjIpJTBBbGVuKHJlcXVlc3RzKSUwQXJlcXVlc3RzJTVCMCU1RCUwQSUwQWFjY2VwdF9hY2Nlc3NfcmVxdWVzdCglMjJtZXRhLWxsYW1hJTJGTGxhbWEtMi03YiUyMiUyQyUyMCUyMmNsZW0lMjIp",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> list_pending_access_requests, accept_access_request

<span class="hljs-comment"># List pending requests</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>requests = list_pending_access_requests(<span class="hljs-string">&quot;meta-llama/Llama-2-7b&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-built_in">len</span>(requests)
<span class="hljs-number">411</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>requests[<span class="hljs-number">0</span>]
[
    AccessRequest(
        username=<span class="hljs-string">&#x27;clem&#x27;</span>,
        fullname=<span class="hljs-string">&#x27;Clem 🤗&#x27;</span>,
        email=<span class="hljs-string">&#x27;***&#x27;</span>,
        timestamp=datetime.datetime(<span class="hljs-number">2023</span>, <span class="hljs-number">11</span>, <span class="hljs-number">23</span>, <span class="hljs-number">18</span>, <span class="hljs-number">4</span>, <span class="hljs-number">53</span>, <span class="hljs-number">828000</span>, tzinfo=datetime.timezone.utc),
        status=<span class="hljs-string">&#x27;pending&#x27;</span>,
        fields=<span class="hljs-literal">None</span>,
    ),
    ...
]

<span class="hljs-comment"># Accept Clem&#x27;s request</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>accept_access_request(<span class="hljs-string">&quot;meta-llama/Llama-2-7b&quot;</span>, <span class="hljs-string">&quot;clem&quot;</span>)`,wrap:!1}}),{c(){n=c("p"),n.textContent=u,i=s(),h(a.$$.fragment)},l(e){n=l(e,"P",{"data-svelte-h":!0}),d(n)!=="svelte-11lpom8"&&(n.textContent=u),i=r(e),m(a.$$.fragment,e)},m(e,v){$(e,n,v),$(e,i,v),f(a,e,v),x=!0},p:C,i(e){x||(_(a.$$.fragment,e),x=!0)},o(e){b(a.$$.fragment,e),x=!1},d(e){e&&(p(n),p(i)),y(a,e)}}}function UT(T){let n,u="Example:",i,a,x;return a=new I({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMGxpc3RfcmVqZWN0ZWRfYWNjZXNzX3JlcXVlc3RzJTBBJTBBcmVxdWVzdHMlMjAlM0QlMjBsaXN0X3JlamVjdGVkX2FjY2Vzc19yZXF1ZXN0cyglMjJtZXRhLWxsYW1hJTJGTGxhbWEtMi03YiUyMiklMEFsZW4ocmVxdWVzdHMpJTBBcmVxdWVzdHMlNUIwJTVE",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> list_rejected_access_requests

<span class="hljs-meta">&gt;&gt;&gt; </span>requests = list_rejected_access_requests(<span class="hljs-string">&quot;meta-llama/Llama-2-7b&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-built_in">len</span>(requests)
<span class="hljs-number">411</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>requests[<span class="hljs-number">0</span>]
[
    AccessRequest(
        username=<span class="hljs-string">&#x27;clem&#x27;</span>,
        fullname=<span class="hljs-string">&#x27;Clem 🤗&#x27;</span>,
        email=<span class="hljs-string">&#x27;***&#x27;</span>,
        timestamp=datetime.datetime(<span class="hljs-number">2023</span>, <span class="hljs-number">11</span>, <span class="hljs-number">23</span>, <span class="hljs-number">18</span>, <span class="hljs-number">4</span>, <span class="hljs-number">53</span>, <span class="hljs-number">828000</span>, tzinfo=datetime.timezone.utc),
        status=<span class="hljs-string">&#x27;rejected&#x27;</span>,
        fields=<span class="hljs-literal">None</span>,
    ),
    ...
]`,wrap:!1}}),{c(){n=c("p"),n.textContent=u,i=s(),h(a.$$.fragment)},l(e){n=l(e,"P",{"data-svelte-h":!0}),d(n)!=="svelte-11lpom8"&&(n.textContent=u),i=r(e),m(a.$$.fragment,e)},m(e,v){$(e,n,v),$(e,i,v),f(a,e,v),x=!0},p:C,i(e){x||(_(a.$$.fragment,e),x=!0)},o(e){b(a.$$.fragment,e),x=!1},d(e){e&&(p(n),p(i)),y(a,e)}}}function AT(T){let n,u="Example:",i,a,x;return a=new I({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=u,i=s(),h(a.$$.fragment)},l(e){n=l(e,"P",{"data-svelte-h":!0}),d(n)!=="svelte-11lpom8"&&(n.textContent=u),i=r(e),m(a.$$.fragment,e)},m(e,v){$(e,n,v),$(e,i,v),f(a,e,v),x=!0},p:C,i(e){x||(_(a.$$.fragment,e),x=!0)},o(e){b(a.$$.fragment,e),x=!1},d(e){e&&(p(n),p(i)),y(a,e)}}}function qT(T){let n,u="Example:",i,a,x;return a=new I({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=u,i=s(),h(a.$$.fragment)},l(e){n=l(e,"P",{"data-svelte-h":!0}),d(n)!=="svelte-11lpom8"&&(n.textContent=u),i=r(e),m(a.$$.fragment,e)},m(e,v){$(e,n,v),$(e,i,v),f(a,e,v),x=!0},p:C,i(e){x||(_(a.$$.fragment,e),x=!0)},o(e){b(a.$$.fragment,e),x=!1},d(e){e&&(p(n),p(i)),y(a,e)}}}function JT(T){let n,u;return n=new I({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMGxpc3RfcmVwb190cmVlJTBBcmVwb190cmVlJTIwJTNEJTIwbGlzdF9yZXBvX3RyZWUoJTIybHlzYW5kcmUlMkZhcnhpdi1ubHAlMjIpJTBBcmVwb190cmVlJTBBbGlzdChyZXBvX3RyZWUp",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> list_repo_tree
<span class="hljs-meta">&gt;&gt;&gt; </span>repo_tree = list_repo_tree(<span class="hljs-string">&quot;lysandre/arxiv-nlp&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>repo_tree
&lt;generator <span class="hljs-built_in">object</span> HfApi.list_repo_tree at <span class="hljs-number">0x7fa4088e1ac0</span>&gt;
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-built_in">list</span>(repo_tree)
[
    RepoFile(path=<span class="hljs-string">&#x27;.gitattributes&#x27;</span>, size=<span class="hljs-number">391</span>, blob_id=<span class="hljs-string">&#x27;ae8c63daedbd4206d7d40126955d4e6ab1c80f8f&#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;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>),
    RepoFile(
        path=<span class="hljs-string">&#x27;flax_model.msgpack&#x27;</span>, size=<span class="hljs-number">497764107</span>, blob_id=<span class="hljs-string">&#x27;8095a62ccb4d806da7666fcda07467e2d150218e&#x27;</span>,
        lfs={<span class="hljs-string">&#x27;size&#x27;</span>: <span class="hljs-number">497764107</span>, <span class="hljs-string">&#x27;sha256&#x27;</span>: <span class="hljs-string">&#x27;d88b0d6a6ff9c3f8151f9d3228f57092aaea997f09af009eefd7373a77b5abb9&#x27;</span>, <span class="hljs-string">&#x27;pointer_size&#x27;</span>: <span class="hljs-number">134</span>}, last_commit=<span class="hljs-literal">None</span>, security=<span class="hljs-literal">None</span>
    ),
    RepoFile(path=<span class="hljs-string">&#x27;merges.txt&#x27;</span>, size=<span class="hljs-number">456318</span>, blob_id=<span class="hljs-string">&#x27;226b0752cac7789c48f0cb3ec53eda48b7be36cc&#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;pytorch_model.bin&#x27;</span>, size=<span class="hljs-number">548123560</span>, blob_id=<span class="hljs-string">&#x27;64eaa9c526867e404b68f2c5d66fd78e27026523&#x27;</span>,
        lfs={<span class="hljs-string">&#x27;size&#x27;</span>: <span class="hljs-number">548123560</span>, <span class="hljs-string">&#x27;sha256&#x27;</span>: <span class="hljs-string">&#x27;9be78edb5b928eba33aa88f431551348f7466ba9f5ef3daf1d552398722a5436&#x27;</span>, <span class="hljs-string">&#x27;pointer_size&#x27;</span>: <span class="hljs-number">134</span>}, last_commit=<span class="hljs-literal">None</span>, security=<span class="hljs-literal">None</span>
    ),
    RepoFile(path=<span class="hljs-string">&#x27;vocab.json&#x27;</span>, size=<span class="hljs-number">898669</span>, blob_id=<span class="hljs-string">&#x27;b00361fece0387ca34b4b8b8539ed830d644dbeb&#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(i){m(n.$$.fragment,i)},m(i,a){f(n,i,a),u=!0},p:C,i(i){u||(_(n.$$.fragment,i),u=!0)},o(i){b(n.$$.fragment,i),u=!1},d(i){y(n,i)}}}function NT(T){let n,u;return n=new I({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMGxpc3RfcmVwb190cmVlJTBBcmVwb190cmVlJTIwJTNEJTIwbGlzdF9yZXBvX3RyZWUoJTIycHJvbXB0aGVybyUyRm9wZW5qb3VybmV5LXY0JTIyJTJDJTIwZXhwYW5kJTNEVHJ1ZSklMEFsaXN0KHJlcG9fdHJlZSk=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> list_repo_tree
<span class="hljs-meta">&gt;&gt;&gt; </span>repo_tree = list_repo_tree(<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>(repo_tree)
[
    RepoFolder(
        path=<span class="hljs-string">&#x27;feature_extractor&#x27;</span>,
        tree_id=<span class="hljs-string">&#x27;aa536c4ea18073388b5b0bc791057a7296a00398&#x27;</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">9</span>, <span class="hljs-number">5</span>, <span class="hljs-number">27</span>, tzinfo=datetime.timezone.utc)
        }
    ),
    RepoFolder(
        path=<span class="hljs-string">&#x27;safety_checker&#x27;</span>,
        tree_id=<span class="hljs-string">&#x27;65aef9d787e5557373fdf714d6c34d4fcdd70440&#x27;</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">9</span>, <span class="hljs-number">5</span>, <span class="hljs-number">27</span>, tzinfo=datetime.timezone.utc)
        }
    ),
    RepoFile(
        path=<span class="hljs-string">&#x27;model_index.json&#x27;</span>,
        size=<span class="hljs-number">582</span>,
        blob_id=<span class="hljs-string">&#x27;d3d7c1e8c3e78eeb1640b8e2041ee256e24c9ee1&#x27;</span>,
        lfs=<span class="hljs-literal">None</span>,
        last_commit={
            <span class="hljs-string">&#x27;oid&#x27;</span>: <span class="hljs-string">&#x27;b195ed2d503f3eb29637050a886d77bd81d35f0e&#x27;</span>,
            <span class="hljs-string">&#x27;title&#x27;</span>: <span class="hljs-string">&#x27;Fix deprecation warning by changing \`CLIPFeatureExtractor\` to \`CLIPImageProcessor\`. (#54)&#x27;</span>,
            <span class="hljs-string">&#x27;date&#x27;</span>: datetime.datetime(<span class="hljs-number">2023</span>, <span class="hljs-number">5</span>, <span class="hljs-number">15</span>, <span class="hljs-number">21</span>, <span class="hljs-number">41</span>, <span class="hljs-number">59</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(i){m(n.$$.fragment,i)},m(i,a){f(n,i,a),u=!0},p:C,i(i){u||(_(n.$$.fragment,i),u=!0)},o(i){b(n.$$.fragment,i),u=!1},d(i){y(n,i)}}}function ET(T){let n,u="Raises the following errors:",i,a,x=`<li><a href="https://requests.readthedocs.io/en/latest/api/#requests.HTTPError" rel="nofollow"><code>HTTPError</code></a>
if the HuggingFace API returned an error</li> <li><a href="https://docs.python.org/3/library/exceptions.html#ValueError" rel="nofollow"><code>ValueError</code></a>
if some parameter value is invalid</li> <li><a href="/docs/huggingface_hub/main/en/package_reference/utilities#huggingface_hub.utils.RepositoryNotFoundError">RepositoryNotFoundError</a>
If the repository to download from cannot be found. This may be because it doesn’t exist,
or because it is set to <code>private</code> and you do not have access.</li>`;return{c(){n=c("p"),n.textContent=u,i=s(),a=c("ul"),a.innerHTML=x},l(e){n=l(e,"P",{"data-svelte-h":!0}),d(n)!=="svelte-182te9i"&&(n.textContent=u),i=r(e),a=l(e,"UL",{"data-svelte-h":!0}),d(a)!=="svelte-12f410c"&&(a.innerHTML=x)},m(e,v){$(e,n,v),$(e,i,v),$(e,a,v)},p:C,d(e){e&&(p(n),p(i),p(a))}}}function RT(T){let n,u="Raises the following errors:",i,a,x=`<li><a href="/docs/huggingface_hub/main/en/package_reference/utilities#huggingface_hub.utils.RepositoryNotFoundError">RepositoryNotFoundError</a>
If the repository to download from cannot be found. This may be because it doesn’t exist,
or because it is set to <code>private</code> and you do not have access.</li> <li><a href="/docs/huggingface_hub/main/en/package_reference/utilities#huggingface_hub.utils.RevisionNotFoundError">RevisionNotFoundError</a>
If the revision to download from cannot be found.</li>`;return{c(){n=c("p"),n.textContent=u,i=s(),a=c("ul"),a.innerHTML=x},l(e){n=l(e,"P",{"data-svelte-h":!0}),d(n)!=="svelte-182te9i"&&(n.textContent=u),i=r(e),a=l(e,"UL",{"data-svelte-h":!0}),d(a)!=="svelte-1mt8eeu"&&(a.innerHTML=x)},m(e,v){$(e,n,v),$(e,i,v),$(e,a,v)},p:C,d(e){e&&(p(n),p(i),p(a))}}}function DT(T){let n,u="Raises the following errors:",i,a,x=`<li><a href="/docs/huggingface_hub/main/en/package_reference/utilities#huggingface_hub.utils.RepositoryNotFoundError">RepositoryNotFoundError</a>
If the repository to download from cannot be found. This may be because it doesn’t exist,
or because it is set to <code>private</code> and you do not have access.</li>`;return{c(){n=c("p"),n.textContent=u,i=s(),a=c("ul"),a.innerHTML=x},l(e){n=l(e,"P",{"data-svelte-h":!0}),d(n)!=="svelte-182te9i"&&(n.textContent=u),i=r(e),a=l(e,"UL",{"data-svelte-h":!0}),d(a)!=="svelte-ey6ivx"&&(a.innerHTML=x)},m(e,v){$(e,n,v),$(e,i,v),$(e,a,v)},p:C,d(e){e&&(p(n),p(i),p(a))}}}function GT(T){let n,u=`This is a power-user method. You shouldn’t need to call it directly to make a normal commit.
Use <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.HfApi.create_commit">create_commit()</a> directly instead.`;return{c(){n=c("p"),n.innerHTML=u},l(i){n=l(i,"P",{"data-svelte-h":!0}),d(n)!=="svelte-1p5fkuq"&&(n.innerHTML=u)},m(i,a){$(i,n,a)},p:C,d(i){i&&p(n)}}}function FT(T){let n,u=`Commit operations will be mutated during the process. In particular, the attached <code>path_or_fileobj</code> will be
removed after the upload to save memory (and replaced by an empty <code>bytes</code> object). Do not reuse the same
objects except to pass them to <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.HfApi.create_commit">create_commit()</a>. If you don’t want to remove the attached content from the
commit operation object, pass <code>free_memory=False</code>.`;return{c(){n=c("p"),n.innerHTML=u},l(i){n=l(i,"P",{"data-svelte-h":!0}),d(n)!=="svelte-3d3emz"&&(n.innerHTML=u)},m(i,a){$(i,n,a)},p:C,d(i){i&&p(n)}}}function ST(T){let n,u="Example:",i,a,x;return a=new I({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=u,i=s(),h(a.$$.fragment)},l(e){n=l(e,"P",{"data-svelte-h":!0}),d(n)!=="svelte-11lpom8"&&(n.textContent=u),i=r(e),m(a.$$.fragment,e)},m(e,v){$(e,n,v),$(e,i,v),f(a,e,v),x=!0},p:C,i(e){x||(_(a.$$.fragment,e),x=!0)},o(e){b(a.$$.fragment,e),x=!1},d(e){e&&(p(n),p(i)),y(a,e)}}}function LT(T){let n,u="Examples:",i,a,x;return a=new I({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=u,i=s(),h(a.$$.fragment)},l(e){n=l(e,"P",{"data-svelte-h":!0}),d(n)!=="svelte-kvfsh7"&&(n.textContent=u),i=r(e),m(a.$$.fragment,e)},m(e,v){$(e,n,v),$(e,i,v),f(a,e,v),x=!0},p:C,i(e){x||(_(a.$$.fragment,e),x=!0)},o(e){b(a.$$.fragment,e),x=!1},d(e){e&&(p(n),p(i)),y(a,e)}}}function ZT(T){let n,u="Raises the following errors:",i,a,x=`<li><a href="https://requests.readthedocs.io/en/latest/api/#requests.HTTPError" rel="nofollow"><code>HTTPError</code></a>
if the HuggingFace API returned an error</li> <li><a href="https://docs.python.org/3/library/exceptions.html#ValueError" rel="nofollow"><code>ValueError</code></a>
if some parameter value is invalid</li> <li><a href="/docs/huggingface_hub/main/en/package_reference/utilities#huggingface_hub.utils.RepositoryNotFoundError">RepositoryNotFoundError</a>
If the repository to download from cannot be found. This may be because it doesn’t exist,
or because it is set to <code>private</code> and you do not have access.</li>`;return{c(){n=c("p"),n.textContent=u,i=s(),a=c("ul"),a.innerHTML=x},l(e){n=l(e,"P",{"data-svelte-h":!0}),d(n)!=="svelte-182te9i"&&(n.textContent=u),i=r(e),a=l(e,"UL",{"data-svelte-h":!0}),d(a)!=="svelte-12f410c"&&(a.innerHTML=x)},m(e,v){$(e,n,v),$(e,i,v),$(e,a,v)},p:C,d(e){e&&(p(n),p(i),p(a))}}}function BT(T){let n,u="Examples:",i,a,x;return a=new I({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMHJlcG9fZXhpc3RzJTBBcmVwb19leGlzdHMoJTIyZ29vZ2xlJTJGZ2VtbWEtN2IlMjIpJTBBcmVwb19leGlzdHMoJTIyZ29vZ2xlJTJGbm90LWEtcmVwbyUyMik=",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;google/gemma-7b&quot;</span>)
<span class="hljs-literal">True</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>repo_exists(<span class="hljs-string">&quot;google/not-a-repo&quot;</span>)
<span class="hljs-literal">False</span>`,wrap:!1}}),{c(){n=c("p"),n.textContent=u,i=s(),h(a.$$.fragment)},l(e){n=l(e,"P",{"data-svelte-h":!0}),d(n)!=="svelte-kvfsh7"&&(n.textContent=u),i=r(e),m(a.$$.fragment,e)},m(e,v){$(e,n,v),$(e,i,v),f(a,e,v),x=!0},p:C,i(e){x||(_(a.$$.fragment,e),x=!0)},o(e){b(a.$$.fragment,e),x=!1},d(e){e&&(p(n),p(i)),y(a,e)}}}function WT(T){let n,u="Raises the following errors:",i,a,x=`<li><a href="/docs/huggingface_hub/main/en/package_reference/utilities#huggingface_hub.utils.RepositoryNotFoundError">RepositoryNotFoundError</a>
If the repository to download from cannot be found. This may be because it doesn’t exist,
or because it is set to <code>private</code> and you do not have access.</li> <li><a href="/docs/huggingface_hub/main/en/package_reference/utilities#huggingface_hub.utils.RevisionNotFoundError">RevisionNotFoundError</a>
If the revision to download from cannot be found.</li>`;return{c(){n=c("p"),n.textContent=u,i=s(),a=c("ul"),a.innerHTML=x},l(e){n=l(e,"P",{"data-svelte-h":!0}),d(n)!=="svelte-182te9i"&&(n.textContent=u),i=r(e),a=l(e,"UL",{"data-svelte-h":!0}),d(a)!=="svelte-1mt8eeu"&&(a.innerHTML=x)},m(e,v){$(e,n,v),$(e,i,v),$(e,a,v)},p:C,d(e){e&&(p(n),p(i),p(a))}}}function VT(T){let n,u='It is also possible to request hardware directly when creating the Space repo! See <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.HfApi.create_repo">create_repo()</a> for details.';return{c(){n=c("p"),n.innerHTML=u},l(i){n=l(i,"P",{"data-svelte-h":!0}),d(n)!=="svelte-s3mdaf"&&(n.innerHTML=u)},m(i,a){$(i,n,a)},p:C,d(i){i&&p(n)}}}function PT(T){let n,u=`It is not possible to decrease persistent storage after its granted. To do so, you must delete it
via <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.HfApi.delete_space_storage">delete_space_storage()</a>.`;return{c(){n=c("p"),n.innerHTML=u},l(i){n=l(i,"P",{"data-svelte-h":!0}),d(n)!=="svelte-n1vlsa"&&(n.innerHTML=u)},m(i,a){$(i,n,a)},p:C,d(i){i&&p(n)}}}function XT(T){let n,u="Examples:",i,a,x;return a=new I({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMHJldmlzaW9uX2V4aXN0cyUwQXJldmlzaW9uX2V4aXN0cyglMjJnb29nbGUlMkZnZW1tYS03YiUyMiUyQyUyMCUyMmZsb2F0MTYlMjIpJTBBcmV2aXNpb25fZXhpc3RzKCUyMmdvb2dsZSUyRmdlbW1hLTdiJTIyJTJDJTIwJTIybm90LWEtcmV2aXNpb24lMjIp",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> revision_exists
<span class="hljs-meta">&gt;&gt;&gt; </span>revision_exists(<span class="hljs-string">&quot;google/gemma-7b&quot;</span>, <span class="hljs-string">&quot;float16&quot;</span>)
<span class="hljs-literal">True</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>revision_exists(<span class="hljs-string">&quot;google/gemma-7b&quot;</span>, <span class="hljs-string">&quot;not-a-revision&quot;</span>)
<span class="hljs-literal">False</span>`,wrap:!1}}),{c(){n=c("p"),n.textContent=u,i=s(),h(a.$$.fragment)},l(e){n=l(e,"P",{"data-svelte-h":!0}),d(n)!=="svelte-kvfsh7"&&(n.textContent=u),i=r(e),m(a.$$.fragment,e)},m(e,v){$(e,n,v),$(e,i,v),f(a,e,v),x=!0},p:C,i(e){x||(_(a.$$.fragment,e),x=!0)},o(e){b(a.$$.fragment,e),x=!1},d(e){e&&(p(n),p(i)),y(a,e)}}}function YT(T){let n,u="Example:",i,a,x;return a=new I({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=u,i=s(),h(a.$$.fragment)},l(e){n=l(e,"P",{"data-svelte-h":!0}),d(n)!=="svelte-11lpom8"&&(n.textContent=u),i=r(e),m(a.$$.fragment,e)},m(e,v){$(e,n,v),$(e,i,v),f(a,e,v),x=!0},p:C,i(e){x||(_(a.$$.fragment,e),x=!0)},o(e){b(a.$$.fragment,e),x=!1},d(e){e&&(p(n),p(i)),y(a,e)}}}function zT(T){let n,u='It is also possible to set a custom sleep time when requesting hardware with <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.HfApi.request_space_hardware">request_space_hardware()</a>.';return{c(){n=c("p"),n.innerHTML=u},l(i){n=l(i,"P",{"data-svelte-h":!0}),d(n)!=="svelte-1kki46i"&&(n.innerHTML=u)},m(i,a){$(i,n,a)},p:C,d(i){i&&p(n)}}}function OT(T){let n,u="Raises the following errors:",i,a,x=`<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=u,i=s(),a=c("ul"),a.innerHTML=x},l(e){n=l(e,"P",{"data-svelte-h":!0}),d(n)!=="svelte-182te9i"&&(n.textContent=u),i=r(e),a=l(e,"UL",{"data-svelte-h":!0}),d(a)!=="svelte-1sqbgr0"&&(a.innerHTML=x)},m(e,v){$(e,n,v),$(e,i,v),$(e,a,v)},p:C,d(e){e&&(p(n),p(i),p(a))}}}function QT(T){let n,u="Raises the following errors:",i,a,x=`<li><a href="/docs/huggingface_hub/main/en/package_reference/utilities#huggingface_hub.utils.RepositoryNotFoundError">RepositoryNotFoundError</a>
If the repository to download from cannot be found. This may be because it doesn’t exist,
or because it is set to <code>private</code> and you do not have access.</li> <li><a href="/docs/huggingface_hub/main/en/package_reference/utilities#huggingface_hub.utils.RevisionNotFoundError">RevisionNotFoundError</a>
If the revision to download from cannot be found.</li>`;return{c(){n=c("p"),n.textContent=u,i=s(),a=c("ul"),a.innerHTML=x},l(e){n=l(e,"P",{"data-svelte-h":!0}),d(n)!=="svelte-182te9i"&&(n.textContent=u),i=r(e),a=l(e,"UL",{"data-svelte-h":!0}),d(a)!=="svelte-1mt8eeu"&&(a.innerHTML=x)},m(e,v){$(e,n,v),$(e,i,v),$(e,a,v)},p:C,d(e){e&&(p(n),p(i),p(a))}}}function KT(T){let n,u="Once squashed, the commit history cannot be retrieved. This is a non-revertible operation.";return{c(){n=c("p"),n.textContent=u},l(i){n=l(i,"P",{"data-svelte-h":!0}),d(n)!=="svelte-16nd2e3"&&(n.textContent=u)},m(i,a){$(i,n,a)},p:C,d(i){i&&p(n)}}}function e0(T){let n,u=`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=u},l(i){n=l(i,"P",{"data-svelte-h":!0}),d(n)!=="svelte-qbmppr"&&(n.textContent=u)},m(i,a){$(i,n,a)},p:C,d(i){i&&p(n)}}}function t0(T){let n,u="Example:",i,a,x;return a=new I({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=u,i=s(),h(a.$$.fragment)},l(e){n=l(e,"P",{"data-svelte-h":!0}),d(n)!=="svelte-11lpom8"&&(n.textContent=u),i=r(e),m(a.$$.fragment,e)},m(e,v){$(e,n,v),$(e,i,v),f(a,e,v),x=!0},p:C,i(e){x||(_(a.$$.fragment,e),x=!0)},o(e){b(a.$$.fragment,e),x=!1},d(e){e&&(p(n),p(i)),y(a,e)}}}function n0(T){let n,u="Example:",i,a,x;return a=new I({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=u,i=s(),h(a.$$.fragment)},l(e){n=l(e,"P",{"data-svelte-h":!0}),d(n)!=="svelte-11lpom8"&&(n.textContent=u),i=r(e),m(a.$$.fragment,e)},m(e,v){$(e,n,v),$(e,i,v),f(a,e,v),x=!0},p:C,i(e){x||(_(a.$$.fragment,e),x=!0)},o(e){b(a.$$.fragment,e),x=!1},d(e){e&&(p(n),p(i)),y(a,e)}}}function o0(T){let n,u="Example:",i,a,x;return a=new I({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=u,i=s(),h(a.$$.fragment)},l(e){n=l(e,"P",{"data-svelte-h":!0}),d(n)!=="svelte-11lpom8"&&(n.textContent=u),i=r(e),m(a.$$.fragment,e)},m(e,v){$(e,n,v),$(e,i,v),f(a,e,v),x=!0},p:C,i(e){x||(_(a.$$.fragment,e),x=!0)},o(e){b(a.$$.fragment,e),x=!1},d(e){e&&(p(n),p(i)),y(a,e)}}}function a0(T){let n,u="Example:",i,a,x;return a=new I({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=u,i=s(),h(a.$$.fragment)},l(e){n=l(e,"P",{"data-svelte-h":!0}),d(n)!=="svelte-11lpom8"&&(n.textContent=u),i=r(e),m(a.$$.fragment,e)},m(e,v){$(e,n,v),$(e,i,v),f(a,e,v),x=!0},p:C,i(e){x||(_(a.$$.fragment,e),x=!0)},o(e){b(a.$$.fragment,e),x=!1},d(e){e&&(p(n),p(i)),y(a,e)}}}function s0(T){let n,u="Raises the following errors:",i,a,x=`<li><a href="/docs/huggingface_hub/main/en/package_reference/utilities#huggingface_hub.utils.RepositoryNotFoundError">RepositoryNotFoundError</a>
If the repository to download from cannot be found. This may be because it doesn’t exist,
or because it is set to <code>private</code> and you do not have access.</li>`;return{c(){n=c("p"),n.textContent=u,i=s(),a=c("ul"),a.innerHTML=x},l(e){n=l(e,"P",{"data-svelte-h":!0}),d(n)!=="svelte-182te9i"&&(n.textContent=u),i=r(e),a=l(e,"UL",{"data-svelte-h":!0}),d(a)!=="svelte-ey6ivx"&&(a.innerHTML=x)},m(e,v){$(e,n,v),$(e,i,v),$(e,a,v)},p:C,d(e){e&&(p(n),p(i),p(a))}}}function r0(T){let n,u="Raises the following errors:",i,a,x=`<li><a href="https://requests.readthedocs.io/en/latest/api/#requests.HTTPError" rel="nofollow"><code>HTTPError</code></a>
if the HuggingFace API returned an error</li> <li><a href="https://docs.python.org/3/library/exceptions.html#ValueError" rel="nofollow"><code>ValueError</code></a>
if some parameter value is invalid</li> <li><a href="/docs/huggingface_hub/main/en/package_reference/utilities#huggingface_hub.utils.RepositoryNotFoundError">RepositoryNotFoundError</a>
If the repository to download from cannot be found. This may be because it doesn’t exist,
or because it is set to <code>private</code> and you do not have access.</li> <li><a href="/docs/huggingface_hub/main/en/package_reference/utilities#huggingface_hub.utils.RevisionNotFoundError">RevisionNotFoundError</a>
If the revision to download from cannot be found.</li>`;return{c(){n=c("p"),n.textContent=u,i=s(),a=c("ul"),a.innerHTML=x},l(e){n=l(e,"P",{"data-svelte-h":!0}),d(n)!=="svelte-182te9i"&&(n.textContent=u),i=r(e),a=l(e,"UL",{"data-svelte-h":!0}),d(a)!=="svelte-18y3l3r"&&(a.innerHTML=x)},m(e,v){$(e,n,v),$(e,i,v),$(e,a,v)},p:C,d(e){e&&(p(n),p(i),p(a))}}}function i0(T){let n,u=`<code>upload_file</code> assumes that the repo already exists on the Hub. If you get a
Client error 404, please make sure you are authenticated and that <code>repo_id</code> and
<code>repo_type</code> are set correctly. If repo does not exist, create it first using
<a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.HfApi.create_repo">create_repo()</a>.`;return{c(){n=c("p"),n.innerHTML=u},l(i){n=l(i,"P",{"data-svelte-h":!0}),d(n)!=="svelte-14jkuxx"&&(n.innerHTML=u)},m(i,a){$(i,n,a)},p:C,d(i){i&&p(n)}}}function c0(T){let n,u="Example:",i,a,x;return a=new I({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=u,i=s(),h(a.$$.fragment)},l(e){n=l(e,"P",{"data-svelte-h":!0}),d(n)!=="svelte-11lpom8"&&(n.textContent=u),i=r(e),m(a.$$.fragment,e)},m(e,v){$(e,n,v),$(e,i,v),f(a,e,v),x=!0},p:C,i(e){x||(_(a.$$.fragment,e),x=!0)},o(e){b(a.$$.fragment,e),x=!1},d(e){e&&(p(n),p(i)),y(a,e)}}}function l0(T){let n,u="Raises the following errors:",i,a,x=`<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=u,i=s(),a=c("ul"),a.innerHTML=x},l(e){n=l(e,"P",{"data-svelte-h":!0}),d(n)!=="svelte-182te9i"&&(n.textContent=u),i=r(e),a=l(e,"UL",{"data-svelte-h":!0}),d(a)!=="svelte-1l6tbi1"&&(a.innerHTML=x)},m(e,v){$(e,n,v),$(e,i,v),$(e,a,v)},p:C,d(e){e&&(p(n),p(i),p(a))}}}function p0(T){let n,u=`<code>upload_folder</code> assumes that the repo already exists on the Hub. If you get a Client error 404, please make
sure you are authenticated and that <code>repo_id</code> and <code>repo_type</code> are set correctly. If repo does not exist, create
it first using <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.HfApi.create_repo">create_repo()</a>.`;return{c(){n=c("p"),n.innerHTML=u},l(i){n=l(i,"P",{"data-svelte-h":!0}),d(n)!=="svelte-1ji36op"&&(n.innerHTML=u)},m(i,a){$(i,n,a)},p:C,d(i){i&&p(n)}}}function d0(T){let n,u="<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=u},l(i){n=l(i,"P",{"data-svelte-h":!0}),d(n)!=="svelte-1x7nnyi"&&(n.innerHTML=u)},m(i,a){$(i,n,a)},p:C,d(i){i&&p(n)}}}function g0(T){let n,u="Example:",i,a,x;return a=new I({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=u,i=s(),h(a.$$.fragment)},l(e){n=l(e,"P",{"data-svelte-h":!0}),d(n)!=="svelte-11lpom8"&&(n.textContent=u),i=r(e),m(a.$$.fragment,e)},m(e,v){$(e,n,v),$(e,i,v),f(a,e,v),x=!0},p:C,i(e){x||(_(a.$$.fragment,e),x=!0)},o(e){b(a.$$.fragment,e),x=!1},d(e){e&&(p(n),p(i)),y(a,e)}}}function u0(T){let n,u="<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=u},l(i){n=l(i,"P",{"data-svelte-h":!0}),d(n)!=="svelte-ptumhw"&&(n.innerHTML=u)},m(i,a){$(i,n,a)},p:C,d(i){i&&p(n)}}}function h0(T){let n,u="Example:",i,a,x;return a=new I({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=u,i=s(),h(a.$$.fragment)},l(e){n=l(e,"P",{"data-svelte-h":!0}),d(n)!=="svelte-11lpom8"&&(n.textContent=u),i=r(e),m(a.$$.fragment,e)},m(e,v){$(e,n,v),$(e,i,v),f(a,e,v),x=!0},p:C,i(e){x||(_(a.$$.fragment,e),x=!0)},o(e){b(a.$$.fragment,e),x=!1},d(e){e&&(p(n),p(i)),y(a,e)}}}function m0(T){let n,u=`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=u},l(i){n=l(i,"P",{"data-svelte-h":!0}),d(n)!=="svelte-sg17jf"&&(n.textContent=u)},m(i,a){$(i,n,a)},p:C,d(i){i&&p(n)}}}function f0(T){let n,u=`Most attributes of this class are optional. This is because the data returned by the Hub depends on the query made.
In general, the more specific the query, the more information is returned. On the contrary, when listing datasets
using <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.HfApi.list_datasets">list_datasets()</a> only a subset of the attributes are returned.`;return{c(){n=c("p"),n.innerHTML=u},l(i){n=l(i,"P",{"data-svelte-h":!0}),d(n)!=="svelte-5rfhi2"&&(n.innerHTML=u)},m(i,a){$(i,n,a)},p:C,d(i){i&&p(n)}}}function _0(T){let n,u=`Most attributes of this class are optional. This is because the data returned by the Hub depends on the query made.
In general, the more specific the query, the more information is returned. On the contrary, when listing models
using <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.HfApi.list_models">list_models()</a> only a subset of the attributes are returned.`;return{c(){n=c("p"),n.innerHTML=u},l(i){n=l(i,"P",{"data-svelte-h":!0}),d(n)!=="svelte-15v1iox"&&(n.innerHTML=u)},m(i,a){$(i,n,a)},p:C,d(i){i&&p(n)}}}function b0(T){let n,u=`All attributes of this class are optional except <code>rfilename</code>. This is because only the file names are returned when
listing repositories on the Hub (with <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.HfApi.list_models">list_models()</a>, <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.HfApi.list_datasets">list_datasets()</a> or <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.HfApi.list_spaces">list_spaces()</a>). If you need more
information like file size, blob id or lfs details, you must request them specifically from one repo at a time
(using <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.HfApi.model_info">model_info()</a>, <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.HfApi.dataset_info">dataset_info()</a> or <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.HfApi.space_info">space_info()</a>) as it adds more constraints on the backend server to
retrieve these.`;return{c(){n=c("p"),n.innerHTML=u},l(i){n=l(i,"P",{"data-svelte-h":!0}),d(n)!=="svelte-6ldscx"&&(n.innerHTML=u)},m(i,a){$(i,n,a)},p:C,d(i){i&&p(n)}}}function y0(T){let n,u="Example:",i,a,x;return a=new I({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=u,i=s(),h(a.$$.fragment)},l(e){n=l(e,"P",{"data-svelte-h":!0}),d(n)!=="svelte-11lpom8"&&(n.textContent=u),i=r(e),m(a.$$.fragment,e)},m(e,v){$(e,n,v),$(e,i,v),f(a,e,v),x=!0},p:C,i(e){x||(_(a.$$.fragment,e),x=!0)},o(e){b(a.$$.fragment,e),x=!1},d(e){e&&(p(n),p(i)),y(a,e)}}}function x0(T){let n,u=`Most attributes of this class are optional. This is because the data returned by the Hub depends on the query made.
In general, the more specific the query, the more information is returned. On the contrary, when listing spaces
using <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.HfApi.list_spaces">list_spaces()</a> only a subset of the attributes are returned.`;return{c(){n=c("p"),n.innerHTML=u},l(i){n=l(i,"P",{"data-svelte-h":!0}),d(n)!=="svelte-hrpd0g"&&(n.innerHTML=u)},m(i,a){$(i,n,a)},p:C,d(i){i&&p(n)}}}function v0(T){let n,u="Example:",i,a,x;return a=new I({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=u,i=s(),h(a.$$.fragment)},l(e){n=l(e,"P",{"data-svelte-h":!0}),d(n)!=="svelte-11lpom8"&&(n.textContent=u),i=r(e),m(a.$$.fragment,e)},m(e,v){$(e,n,v),$(e,i,v),f(a,e,v),x=!0},p:C,i(e){x||(_(a.$$.fragment,e),x=!0)},o(e){b(a.$$.fragment,e),x=!1},d(e){e&&(p(n),p(i)),y(a,e)}}}function $0(T){let n,u="Example:",i,a,x;return a=new I({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=u,i=s(),h(a.$$.fragment)},l(e){n=l(e,"P",{"data-svelte-h":!0}),d(n)!=="svelte-11lpom8"&&(n.textContent=u),i=r(e),m(a.$$.fragment,e)},m(e,v){$(e,n,v),$(e,i,v),f(a,e,v),x=!0},p:C,i(e){x||(_(a.$$.fragment,e),x=!0)},o(e){b(a.$$.fragment,e),x=!1},d(e){e&&(p(n),p(i)),y(a,e)}}}function w0(T){let n,u=`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=u},l(i){n=l(i,"P",{"data-svelte-h":!0}),d(n)!=="svelte-1oh5a50"&&(n.textContent=u)},m(i,a){$(i,n,a)},p:C,d(i){i&&p(n)}}}function M0(T){let n,u='The <code>DatasetFilter</code> class is deprecated and will be removed in huggingface_hub&gt;=0.24. Please pass the filter parameters as keyword arguments directly to <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.HfApi.list_datasets">list_datasets()</a>.';return{c(){n=c("p"),n.innerHTML=u},l(i){n=l(i,"P",{"data-svelte-h":!0}),d(n)!=="svelte-wvdcno"&&(n.innerHTML=u)},m(i,a){$(i,n,a)},p:C,d(i){i&&p(n)}}}function T0(T){let n,u="Examples:",i,a,x;return a=new I({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=u,i=s(),h(a.$$.fragment)},l(e){n=l(e,"P",{"data-svelte-h":!0}),d(n)!=="svelte-kvfsh7"&&(n.textContent=u),i=r(e),m(a.$$.fragment,e)},m(e,v){$(e,n,v),$(e,i,v),f(a,e,v),x=!0},p:C,i(e){x||(_(a.$$.fragment,e),x=!0)},o(e){b(a.$$.fragment,e),x=!1},d(e){e&&(p(n),p(i)),y(a,e)}}}function k0(T){let n,u='The <code>ModelFilter</code> class is deprecated and will be removed in huggingface_hub&gt;=0.24. Please pass the filter parameters as keyword arguments directly to <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.HfApi.list_models">list_models()</a>.';return{c(){n=c("p"),n.innerHTML=u},l(i){n=l(i,"P",{"data-svelte-h":!0}),d(n)!=="svelte-53qygl"&&(n.innerHTML=u)},m(i,a){$(i,n,a)},p:C,d(i){i&&p(n)}}}function j0(T){let n,u="Examples:",i,a,x;return a=new I({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(){n=c("p"),n.textContent=u,i=s(),h(a.$$.fragment)},l(e){n=l(e,"P",{"data-svelte-h":!0}),d(n)!=="svelte-kvfsh7"&&(n.textContent=u),i=r(e),m(a.$$.fragment,e)},m(e,v){$(e,n,v),$(e,i,v),f(a,e,v),x=!0},p:C,i(e){x||(_(a.$$.fragment,e),x=!0)},o(e){b(a.$$.fragment,e),x=!1},d(e){e&&(p(n),p(i)),y(a,e)}}}function H0(T){let n,u,i,a,x,e,v,g$="Below is the documentation for the <code>HfApi</code> class, which serves as a Python wrapper for the Hugging Face Hub’s API.",su,xs,u$="All methods from the <code>HfApi</code> are also accessible from the package’s root directly. Both approaches are detailed below.",ru,vs,h$=`Using the root method is more straightforward but the <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.HfApi">HfApi</a> class gives you more flexibility.
In particular, you can pass a token that will be reused in all HTTP calls. This is different
than <code>huggingface-cli login</code> or <a href="/docs/huggingface_hub/main/en/package_reference/login#huggingface_hub.login">login()</a> as the token is not persisted on the machine.
It is also possible to provide a different endpoint or configure a custom user-agent.`,iu,$s,cu,ws,lu,w,Ms,uh,Ce,Ts,hh,Uc,m$="Accept an access request from a user for a given gated repo.",mh,Ac,f$=`Once the request is accepted, the user will be able to download any file of the repo and access the community
tab. If the approval mode is automatic, you don’t have to accept requests manually. An accepted request can be
cancelled or rejected at any time using <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.HfApi.cancel_access_request">cancel_access_request()</a> and <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.HfApi.reject_access_request">reject_access_request()</a>.`,fh,qc,_$='For more info about gated repos, see <a href="https://huggingface.co/docs/hub/models-gated" rel="nofollow">https://huggingface.co/docs/hub/models-gated</a>.',_h,Ie,ks,bh,Jc,b$="Add an item to a collection on the Hub.",yh,Nc,y$='Returns: <a href="/docs/huggingface_hub/main/en/package_reference/collections#huggingface_hub.Collection">Collection</a>',xh,ro,vh,Pt,js,$h,Ec,x$="Adds or updates a secret in a Space.",wh,Rc,v$=`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>.`,Mh,Xt,Hs,Th,Dc,$$="Adds or updates a variable in a Space.",kh,Gc,w$=`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>`,jh,Ue,Cs,Hh,Fc,M$="Cancel an access request from a user for a given gated repo.",Ch,Sc,T$="A cancelled request will go back to the pending list and the user will lose access to the repo.",Ih,Lc,k$='For more info about gated repos, see <a href="https://huggingface.co/docs/hub/models-gated" rel="nofollow">https://huggingface.co/docs/hub/models-gated</a>.',Uh,Ae,Is,Ah,Zc,j$="Closes or re-opens a Discussion or Pull Request.",qh,io,Jh,co,Nh,qe,Us,Eh,Bc,H$="Creates a new comment on the given Discussion.",Rh,lo,Dh,po,Gh,go,As,Fh,Wc,C$=`Create a new branch for a repo on the Hub, starting from the specified revision (defaults to <code>main</code>).
To find a revision suiting your needs, you can use <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.HfApi.list_repo_refs">list_repo_refs()</a> or <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.HfApi.list_repo_commits">list_repo_commits()</a>.`,Sh,Je,qs,Lh,Vc,I$="Create a new Collection on the Hub.",Zh,Pc,U$='Returns: <a href="/docs/huggingface_hub/main/en/package_reference/collections#huggingface_hub.Collection">Collection</a>',Bh,uo,Wh,re,Js,Vh,Xc,A$="Creates a commit in the given repo, deleting & uploading files as needed.",Ph,ho,Xh,mo,Yh,fo,zh,F,Ns,Oh,Yc,q$="Push changes to the Hub in multiple commits.",Qh,zc,J$=`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.`,Kh,Oc,N$=`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.`,em,_o,tm,bo,nm,yo,om,V,Es,am,Qc,E$="Creates a Discussion or Pull Request.",sm,Kc,R$="Pull Requests created programmatically will be in <code>&quot;draft&quot;</code> status.",rm,el,D$='Creating a Pull Request with changes can also be done at once with <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.HfApi.create_commit">HfApi.create_commit()</a>.',im,tl,G$='Returns: <a href="/docs/huggingface_hub/main/en/package_reference/community#huggingface_hub.DiscussionWithDetails">DiscussionWithDetails</a>',cm,xo,lm,Ne,Rs,pm,nl,F$="Create a new Inference Endpoint.",dm,vo,gm,$o,um,P,Ds,hm,ol,S$="Creates a Pull Request . Pull Requests created programmatically will be in <code>&quot;draft&quot;</code> status.",mm,al,L$='Creating a Pull Request with changes can also be done at once with <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.HfApi.create_commit">HfApi.create_commit()</a>;',fm,sl,Z$='This is a wrapper around <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.HfApi.create_discussion">HfApi.create_discussion()</a>.',_m,rl,B$='Returns: <a href="/docs/huggingface_hub/main/en/package_reference/community#huggingface_hub.DiscussionWithDetails">DiscussionWithDetails</a>',bm,wo,ym,Mo,Gs,xm,il,W$="Create an empty repo on the HuggingFace Hub.",vm,To,Fs,$m,cl,V$="Tag a given commit of a repo on the Hub.",wm,Ee,Ss,Mm,ll,P$="Get info on one specific dataset on huggingface.co.",Tm,pl,X$="Dataset can be private if you pass an acceptable token.",km,ko,jm,jo,Ls,Hm,dl,Y$="Delete a branch from a repo on the Hub.",Cm,Re,Zs,Im,gl,z$="Delete a collection on the Hub.",Um,Ho,Am,Co,qm,Yt,Bs,Jm,ul,O$="Delete an item from a collection.",Nm,Io,Em,zt,Ws,Rm,hl,Q$="Deletes a file in the given repo.",Dm,Uo,Gm,Ot,Vs,Fm,ml,K$="Deletes a folder in the given repo.",Sm,fl,e2='Simple wrapper around <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.HfApi.create_commit">create_commit()</a> method.',Lm,De,Ps,Zm,_l,t2="Delete an Inference Endpoint.",Bm,bl,n2=`This operation is not reversible. If you don’t want to be charged for an Inference Endpoint, it is preferable
to pause it with <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.HfApi.pause_inference_endpoint">pause_inference_endpoint()</a> or scale it to zero with <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.HfApi.scale_to_zero_inference_endpoint">scale_to_zero_inference_endpoint()</a>.`,Wm,yl,o2='For convenience, you can also delete an Inference Endpoint using <a href="/docs/huggingface_hub/main/en/package_reference/inference_endpoints#huggingface_hub.InferenceEndpoint.delete">InferenceEndpoint.delete()</a>.',Vm,Ao,Xs,Pm,xl,a2="Delete a repo from the HuggingFace Hub. CAUTION: this is irreversible.",Xm,Qt,Ys,Ym,vl,s2="Deletes a secret from a Space.",zm,$l,r2=`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>.`,Om,qo,zs,Qm,wl,i2="Delete persistent storage for a Space.",Km,Kt,Os,ef,Ml,c2="Deletes a variable from a Space.",tf,Tl,l2=`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>`,nf,Jo,Qs,of,kl,p2="Delete a tag from a repo on the Hub.",af,Ge,Ks,sf,jl,d2="Duplicate a Space.",rf,Hl,g2=`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.`,cf,No,lf,en,er,pf,Cl,u2="Edits a comment on a Discussion / Pull Request.",df,Eo,gf,tn,tr,uf,Il,h2="Checks if a file exists in a repository on the Hugging Face Hub.",hf,Ro,mf,Fe,nr,ff,Ul,m2="Gets information about a Collection on the Hub.",_f,Al,f2='Returns: <a href="/docs/huggingface_hub/main/en/package_reference/collections#huggingface_hub.Collection">Collection</a>',bf,Do,yf,Go,or,xf,ql,_2="List all valid dataset tags as a nested namespace object.",vf,Se,ar,$f,Jl,b2="Fetches a Discussion’s / Pull Request ‘s details from the Hub.",wf,Nl,y2='Returns: <a href="/docs/huggingface_hub/main/en/package_reference/community#huggingface_hub.DiscussionWithDetails">DiscussionWithDetails</a>',Mf,Fo,Tf,So,sr,kf,El,x2=`Returns the repository name for a given model ID and optional
organization.`,jf,Lo,rr,Hf,Rl,v2="Fetch metadata of a file versioned on the Hub for a given url.",Cf,nn,ir,If,Dl,$2="Get information about an Inference Endpoint.",Uf,Zo,Af,Bo,cr,qf,Gl,w2="List all valid model tags as a nested namespace object",Jf,on,lr,Nf,Fl,M2="Get information about a repo’s paths.",Ef,Wo,Rf,ie,pr,Df,Sl,T2="Fetches Discussions and Pull Requests for the given repo.",Gf,Ll,k2="Example:",Ff,Vo,Sf,Po,Lf,X,dr,Zf,Zl,j2="Parse metadata for a safetensors repo on the Hub.",Bf,Bl,H2=`We first check if the repo has a single safetensors file or a sharded safetensors repo. If it’s a single
safetensors file, we parse the metadata from this file. If it’s a sharded safetensors repo, we parse the
metadata from the index file and then parse the metadata from each shard.`,Wf,Wl,C2='To parse metadata from a single safetensors file, use <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.HfApi.parse_safetensors_file_metadata">parse_safetensors_file_metadata()</a>.',Vf,Vl,I2='For more details regarding the safetensors format, check out <a href="https://huggingface.co/docs/safetensors/index#format" rel="nofollow">https://huggingface.co/docs/safetensors/index#format</a>.',Pf,Xo,Xf,Yo,gr,Yf,Pl,U2="Gets runtime information about a Space.",zf,an,ur,Of,Xl,A2="Gets all variables from a Space.",Qf,Yl,q2=`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>`,Kf,sn,hr,e_,zl,J2="Check if a given <code>token</code> is valid and return its permissions.",t_,Ol,N2='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>.',n_,zo,mr,o_,Ql,E2="Get an overview of a user on the Hub.",a_,Le,fr,s_,Kl,R2="Grant access to a user for a given gated repo.",r_,ep,D2=`Granting access don’t require for the user to send an access request by themselves. The user is automatically
added to the accepted list meaning they can download the files You can revoke the granted access at any time
using <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.HfApi.cancel_access_request">cancel_access_request()</a> or <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.HfApi.reject_access_request">reject_access_request()</a>.`,i_,tp,G2='For more info about gated repos, see <a href="https://huggingface.co/docs/hub/models-gated" rel="nofollow">https://huggingface.co/docs/hub/models-gated</a>.',c_,R,_r,l_,np,F2="Download a given file if it’s not already present in the local cache.",p_,op,S2="The new cache file layout looks like this:",d_,ap,L2=`<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>`,g_,sp,Z2=`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:`,u_,rp,B2=`<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>`,h_,Oo,m_,Qo,f_,Ze,br,__,ip,W2="Hides a comment on a Discussion / Pull Request.",b_,Ko,y_,ea,x_,Be,yr,v_,cp,V2="Like a given repo on the Hub (e.g. set as favorite).",$_,lp,P2='See also <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.HfApi.unlike">unlike()</a> and <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.HfApi.list_liked_repos">list_liked_repos()</a>.',w_,ta,M_,ce,xr,T_,pp,X2="Get accepted access requests for a given gated repo.",k_,dp,Y2=`An accepted request means the user has requested access to the repo and the request has been accepted. The user
can download any file of the repo. If the approval mode is automatic, this list should contains by default all
requests. Accepted requests can be cancelled or rejected at any time using <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.HfApi.cancel_access_request">cancel_access_request()</a> and
<a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.HfApi.reject_access_request">reject_access_request()</a>. A cancelled request will go back to the pending list while a rejected request will
go to the rejected list. In both cases, the user will lose access to the repo.`,j_,gp,z2='For more info about gated repos, see <a href="https://huggingface.co/docs/hub/models-gated" rel="nofollow">https://huggingface.co/docs/hub/models-gated</a>.',H_,na,C_,rn,vr,I_,up,O2="List collections on the Huggingface Hub, given some filters.",U_,oa,A_,We,$r,q_,hp,Q2="List datasets hosted on the Huggingface Hub, given some filters.",J_,aa,N_,sa,E_,cn,wr,R_,mp,K2="Lists all inference endpoints for the given namespace.",D_,ra,G_,le,Mr,F_,fp,e1="List all public repos liked by a user on huggingface.co.",S_,_p,t1=`This list is public so token is optional. If <code>user</code> is not passed, it defaults to
the logged in user.`,L_,bp,n1='See also <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.HfApi.like">like()</a> and <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.HfApi.unlike">unlike()</a>.',Z_,ia,B_,ca,Tr,W_,yp,o1="Get the public list of all the metrics on huggingface.co",V_,Ve,kr,P_,xp,a1="List models hosted on the Huggingface Hub, given some filters.",X_,la,Y_,pa,z_,da,jr,O_,vp,s1="List of members of an organization on the Hub.",Q_,pe,Hr,K_,$p,r1="Get pending access requests for a given gated repo.",eb,wp,i1=`A pending request means the user has requested access to the repo but the request has not been processed yet.
If the approval mode is automatic, this list should be empty. Pending requests can be accepted or rejected
using <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.HfApi.accept_access_request">accept_access_request()</a> and <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.HfApi.reject_access_request">reject_access_request()</a>.`,tb,Mp,c1='For more info about gated repos, see <a href="https://huggingface.co/docs/hub/models-gated" rel="nofollow">https://huggingface.co/docs/hub/models-gated</a>.',nb,ga,ob,de,Cr,ab,Tp,l1="Get rejected access requests for a given gated repo.",sb,kp,p1=`A rejected request means the user has requested access to the repo and the request has been explicitly rejected
by a repo owner (either you or another user from your organization). The user cannot download any file of the
repo. Rejected requests can be accepted or cancelled at any time using <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.HfApi.accept_access_request">accept_access_request()</a> and
<a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.HfApi.cancel_access_request">cancel_access_request()</a>. A cancelled request will go back to the pending list while an accepted request will
go to the accepted list.`,rb,jp,d1='For more info about gated repos, see <a href="https://huggingface.co/docs/hub/models-gated" rel="nofollow">https://huggingface.co/docs/hub/models-gated</a>.',ib,ua,cb,Pe,Ir,lb,Hp,g1="Get the list of commits of a given revision for a repo on the Hub.",pb,Cp,u1="Commits are sorted by date (last commit first).",db,ha,gb,ma,Ur,ub,Ip,h1="Get the list of files in a given repo.",hb,ln,Ar,mb,Up,m1="List all users who liked a given repo on the hugging Face Hub.",fb,Ap,f1='See also <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.HfApi.like">like()</a> and <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.HfApi.list_liked_repos">list_liked_repos()</a>.',_b,pn,qr,bb,qp,_1="Get the list of refs of a given repo (both tags and branches).",yb,fa,xb,S,Jr,vb,Jp,b1="List a repo tree’s files and folders and get information about them.",$b,Np,y1="Examples:",wb,Ep,x1="Get information about a repo’s tree.",Mb,_a,Tb,Rp,v1="Get even more information about a repo’s tree (last commit and files’ security scan results)",kb,ba,jb,ya,Nr,Hb,Dp,$1="List spaces hosted on the Huggingface Hub, given some filters.",Cb,xa,Er,Ib,Gp,w1="Get the list of followers of a user on the Hub.",Ub,va,Rr,Ab,Fp,M1="Get the list of users followed by a user on the Hub.",qb,dn,Dr,Jb,Sp,T1="Merges a Pull Request.",Nb,$a,Eb,Xe,Gr,Rb,Lp,k1="Get info on one specific model on huggingface.co",Db,Zp,j1="Model can be private if you pass an acceptable token or are logged in.",Gb,wa,Fb,Ye,Fr,Sb,Bp,H1="Moving a repository from namespace1/repo_name1 to namespace2/repo_name2",Lb,Wp,C1=`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>.`,Zb,Ma,Bb,ze,Sr,Wb,Vp,I1="Parse metadata from a safetensors file on the Hub.",Vb,Pp,U1='To parse metadata from all safetensors files in a repo at once, use <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.HfApi.get_safetensors_metadata">get_safetensors_metadata()</a>.',Pb,Xp,A1='For more details regarding the safetensors format, check out <a href="https://huggingface.co/docs/safetensors/index#format" rel="nofollow">https://huggingface.co/docs/safetensors/index#format</a>.',Xb,Oe,Lr,Yb,Yp,q1="Pause an Inference Endpoint.",zb,zp,J1=`A paused Inference Endpoint will not be charged. It can be resumed at any time using <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.HfApi.resume_inference_endpoint">resume_inference_endpoint()</a>.
This is different than scaling the Inference Endpoint to zero with <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.HfApi.scale_to_zero_inference_endpoint">scale_to_zero_inference_endpoint()</a>, which
would be automatically restarted when a request is made to it.`,Ob,Op,N1='For convenience, you can also pause an Inference Endpoint using <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.HfApi.pause_inference_endpoint">pause_inference_endpoint()</a>.',Qb,Qe,Zr,Kb,Qp,E1="Pause your Space.",ey,Kp,R1=`A paused Space stops executing until manually restarted by its owner. This is different from the sleeping
state in which free Spaces go after 48h of inactivity. Paused time is not billed to your account, no matter the
hardware you’ve selected. To restart your Space, use <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.HfApi.restart_space">restart_space()</a> and go to your Space settings page.`,ty,ed,D1='For more details, please visit <a href="https://huggingface.co/docs/hub/spaces-gpus#pause" rel="nofollow">the docs</a>.',ny,Y,Br,oy,td,G1="Pre-upload LFS files to S3 in preparation on a future commit.",ay,nd,F1=`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.`,sy,Ta,ry,ka,iy,ja,cy,Ke,Wr,ly,od,S1="Reject an access request from a user for a given gated repo.",py,ad,L1=`A rejected request will go to the rejected list. The user cannot download any file of the repo. Rejected
requests can be accepted or cancelled at any time using <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.HfApi.accept_access_request">accept_access_request()</a> and <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.HfApi.cancel_access_request">cancel_access_request()</a>.
A cancelled request will go back to the pending list while an accepted request will go to the accepted list.`,dy,sd,Z1='For more info about gated repos, see <a href="https://huggingface.co/docs/hub/models-gated" rel="nofollow">https://huggingface.co/docs/hub/models-gated</a>.',gy,et,Vr,uy,rd,B1="Renames a Discussion.",hy,Ha,my,Ca,fy,gn,Pr,_y,id,W1="Checks if a repository exists on the Hugging Face Hub.",by,Ia,yy,un,Xr,xy,cd,V1="Get the info object for a given repo of a given type.",vy,Ua,$y,hn,Yr,wy,ld,P1="Request new hardware for a Space.",My,Aa,Ty,mn,zr,ky,pd,X1="Request persistent storage for a Space.",jy,qa,Hy,tt,Or,Cy,dd,Y1="Restart your Space.",Iy,gd,z1=`This is the only way to programmatically restart a Space if you’ve put it on Pause (see <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.HfApi.pause_space">pause_space()</a>). You
must be the owner of the Space to restart it. If you are using an upgraded hardware, your account will be
billed as soon as the Space is restarted. You can trigger a restart no matter the current state of a Space.`,Uy,ud,O1='For more details, please visit <a href="https://huggingface.co/docs/hub/spaces-gpus#pause" rel="nofollow">the docs</a>.',Ay,fn,Qr,qy,hd,Q1="Resume an Inference Endpoint.",Jy,md,K1='For convenience, you can also resume an Inference Endpoint using <a href="/docs/huggingface_hub/main/en/package_reference/inference_endpoints#huggingface_hub.InferenceEndpoint.resume">InferenceEndpoint.resume()</a>.',Ny,_n,Kr,Ey,fd,ew="Checks if a specific revision exists on a repo on the Hugging Face Hub.",Ry,Ja,Dy,ge,ei,Gy,_d,tw="Run a method in the background and return a Future instance.",Fy,bd,nw=`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>.`,Sy,yd,ow=`Note: Most-used methods like <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.HfApi.upload_file">upload_file()</a>, <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.HfApi.upload_folder">upload_folder()</a> and <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.HfApi.create_commit">create_commit()</a> have a <code>run_as_future: bool</code>
argument to directly call them in the background. This is equivalent to calling <code>api.run_as_future(...)</code> on them
but less verbose.`,Ly,Na,Zy,nt,ti,By,xd,aw="Scale Inference Endpoint to zero.",Wy,vd,sw=`An Inference Endpoint scaled to zero will not be charged. It will be resume on the next request to it, with a
cold start delay. This is different than pausing the Inference Endpoint with <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.HfApi.pause_inference_endpoint">pause_inference_endpoint()</a>, which
would require a manual resume with <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.HfApi.resume_inference_endpoint">resume_inference_endpoint()</a>.`,Vy,$d,rw='For convenience, you can also scale an Inference Endpoint to zero using <a href="/docs/huggingface_hub/main/en/package_reference/inference_endpoints#huggingface_hub.InferenceEndpoint.scale_to_zero">InferenceEndpoint.scale_to_zero()</a>.',Py,ot,ni,Xy,wd,iw="Set a custom sleep time for a Space running on upgraded hardware..",Yy,Md,cw=`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>.`,zy,Ea,Oy,L,oi,Qy,Td,lw="Download repo files.",Ky,kd,pw=`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>.`,ex,jd,dw=`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:`,tx,Hd,gw=`<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>`,nx,Cd,uw=`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.`,ox,Ra,ax,at,ai,sx,Id,hw="Get info on one specific Space on huggingface.co.",rx,Ud,mw="Space can be private if you pass an acceptable token.",ix,Da,cx,z,si,lx,Ad,fw="Squash commit history on a branch for a repo on the Hub.",px,qd,_w=`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.`,dx,Ga,gx,Fa,ux,Sa,hx,st,ri,mx,Jd,bw="Unlike a given repo on the Hub (e.g. remove from favorite list).",fx,Nd,yw='See also <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.HfApi.like">like()</a> and <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.HfApi.list_liked_repos">list_liked_repos()</a>.',_x,La,bx,bn,ii,yx,Ed,xw="Update an item in a collection.",xx,Za,vx,ue,ci,$x,Rd,vw="Update metadata of a collection on the Hub.",wx,Dd,$w="All arguments are optional. Only provided metadata will be updated.",Mx,Gd,ww='Returns: <a href="/docs/huggingface_hub/main/en/package_reference/collections#huggingface_hub.Collection">Collection</a>',Tx,Ba,kx,rt,li,jx,Fd,Mw="Update an Inference Endpoint.",Hx,Sd,Tw=`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.`,Cx,Ld,kw='For convenience, you can also update an Inference Endpoint using <a href="/docs/huggingface_hub/main/en/package_reference/inference_endpoints#huggingface_hub.InferenceEndpoint.update">InferenceEndpoint.update()</a>.',Ix,yn,pi,Ux,Zd,jw="Update the visibility setting of a repository.",Ax,Wa,qx,he,di,Jx,Bd,Hw=`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.`,Nx,Va,Ex,Pa,Rx,Xa,Dx,q,gi,Gx,Wd,Cw=`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.`,Fx,Vd,Iw=`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.`,Sx,Pd,Uw=`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.`,Lx,Xd,Aw=`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.`,Zx,Yd,qw=`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.`,Bx,zd,Jw="Uses <code>HfApi.create_commit</code> under the hood.",Wx,Ya,Vx,za,Px,Oa,Xx,Qa,Yx,Ka,ui,zx,Od,Nw="Call HF API to know “whoami”.",pu,E,hi,Ox,Qd,Ew="Split a list of operations in a list of commits to perform.",Qx,Kd,Rw="Implementation follows a sub-optimal (yet simple) algorithm:",Kx,eg,Dw=`<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>`,ev,tg,Gw=`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.`,tv,es,nv,ts,ov,ns,du,mi,gu,fi,uu,jn,_i,av,ng,Fw="Data structure containing information about a user access request.",hu,bi,mu,ct,yi,sv,og,Sw="Data structure containing information about a newly created commit.",rv,ag,Lw=`Returned by any method that creates a commit on the Hub: <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.HfApi.create_commit">create_commit()</a>, <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.HfApi.upload_file">upload_file()</a>, <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.HfApi.upload_folder">upload_folder()</a>,
<a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.HfApi.delete_file">delete_file()</a>, <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.HfApi.delete_folder">delete_folder()</a>. It inherits from <code>str</code> for backward compatibility but using methods specific
to <code>str</code> is deprecated.`,fu,xi,_u,lt,vi,iv,sg,Zw="Contains information about a dataset on the Hub.",cv,os,bu,$i,yu,Hn,wi,lv,rg,Bw="Contains information about a git reference for a repo on the Hub.",xu,Mi,vu,Cn,Ti,pv,ig,Ww='Contains information about a git commit for a repo on the Hub. Check out <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.HfApi.list_repo_commits">list_repo_commits()</a> for more details.',$u,ki,wu,pt,ji,dv,cg,Vw="Contains information about all git references for a repo on the Hub.",gv,lg,Pw='Object is returned by <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.HfApi.list_repo_refs">list_repo_refs()</a>.',Mu,Hi,Tu,dt,Ci,uv,pg,Xw="Contains information about a model on the Hub.",hv,as,ku,Ii,ju,gt,Ui,mv,dg,Yw="Contains basic information about a repo file inside a repo on the Hub.",fv,ss,Hu,Ai,Cu,In,qi,_v,gg,zw="Contains information about a file on the Hub.",Iu,Ji,Uu,Q,Ni,bv,ug,Ow="Subclass of <code>str</code> describing a repo URL on the Hub.",yv,hg,Qw=`<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:`,xv,mg,Kw="<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>",vv,rs,Au,Ei,qu,K,Ri,$v,fg,eM="Metadata for a Safetensors repo.",wv,_g,tM=`A repo is considered to be a Safetensors repo if it contains either a ‘model.safetensors’ weight file (non-shared
model) or a ‘model.safetensors.index.json’ index file (sharded model) at its root.`,Mv,bg,nM='This class is returned by <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.HfApi.get_safetensors_metadata">get_safetensors_metadata()</a>.',Tv,yg,oM='For more details regarding the safetensors format, check out <a href="https://huggingface.co/docs/safetensors/index#format" rel="nofollow">https://huggingface.co/docs/safetensors/index#format</a>.',Ju,Di,Nu,fe,Gi,kv,xg,aM="Metadata for a Safetensors file hosted on the Hub.",jv,vg,sM='This class is returned by <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.HfApi.parse_safetensors_file_metadata">parse_safetensors_file_metadata()</a>.',Hv,$g,rM='For more details regarding the safetensors format, check out <a href="https://huggingface.co/docs/safetensors/index#format" rel="nofollow">https://huggingface.co/docs/safetensors/index#format</a>.',Eu,Fi,Ru,ut,Si,Cv,wg,iM="Contains information about a Space on the Hub.",Iv,is,Du,Li,Gu,ht,Zi,Uv,Mg,cM="Information about a tensor.",Av,Tg,lM='For more details regarding the safetensors format, check out <a href="https://huggingface.co/docs/safetensors/index#format" rel="nofollow">https://huggingface.co/docs/safetensors/index#format</a>.',Fu,Bi,Su,Un,Wi,qv,kg,pM="Contains information about a user on the Hub.",Lu,Vi,Zu,An,Pi,Jv,jg,dM="Contains information about a user likes on the Hub.",Bu,Xi,Wu,Yi,gM="Below are the supported values for <code>CommitOperation()</code>:",Vu,_e,zi,Nv,Hg,uM="Data structure holding necessary info to upload a file to a repository on the Hub.",Ev,xn,Oi,Rv,Cg,hM=`A context manager that yields a file-like object allowing to read the underlying
data behind <code>path_or_fileobj</code>.`,Dv,cs,Gv,vn,Qi,Fv,Ig,mM="The base64-encoded content of <code>path_or_fileobj</code>",Sv,Ug,fM="Returns: <code>bytes</code>",Pu,qn,Ki,Lv,Ag,_M=`Data structure holding necessary info to delete a file or a folder from a repository
on the Hub.`,Xu,ee,ec,Zv,qg,bM="Data structure holding necessary info to copy a file in a repository on the Hub.",Bv,Jg,yM="Limitations:",Wv,Ng,xM="<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>",Vv,Eg,vM='Note: you can combine a <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.CommitOperationCopy">CommitOperationCopy</a> and a <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.CommitOperationDelete">CommitOperationDelete</a> to rename an LFS file on the Hub.',Yu,tc,zu,D,nc,Pv,Rg,$M="Scheduler to upload a local folder to the Hub at regular intervals (e.g. push to hub every 5 minutes).",Xv,Dg,wM=`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.`,Yv,ls,zv,it,oc,Ov,Gg,MM="Push folder to the Hub and return the commit info.",Qv,ps,Kv,Fg,TM=`The default behavior of <code>push_to_hub</code> is to assume an append-only folder. It lists all files in the folder and
uploads only changed files. If no changes are found, the method returns without committing anything. If you want
to change this behavior, you can inherit from <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.CommitScheduler">CommitScheduler</a> and override this method. This can be useful
for example to compress data together in a single file before committing. For more details and examples, check
out our <a href="https://huggingface.co/docs/huggingface_hub/main/en/guides/upload#scheduled-uploads" rel="nofollow">integration guide</a>.`,e$,$n,ac,t$,Sg,kM="Stop the scheduler.",n$,Lg,jM="A stopped scheduler cannot be restarted. Mostly for tests purposes.",o$,wn,sc,a$,Zg,HM="Trigger a <code>push_to_hub</code> and return a future.",s$,Bg,CM=`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.`,Ou,rc,Qu,ic,IM="Some helpers to filter repositories on the Hub are available in the <code>huggingface_hub</code> package.",Ku,cc,eh,be,lc,r$,Wg,UM=`A class that converts human-readable dataset search parameters into ones
compatible with the REST API. For all parameters capitalization does not
matter.`,i$,ds,c$,gs,th,pc,nh,ye,dc,l$,Vg,AM=`A class that converts human-readable model search parameters into ones
compatible with the REST API. For all parameters capitalization does not
matter.`,p$,us,d$,hs,oh,au,ah;return x=new J({props:{title:"HfApi Client",local:"hfapi-client",headingTag:"h1"}}),$s=new I({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}}),ws=new J({props:{title:"HfApi",local:"huggingface_hub.HfApi",headingTag:"h2"}}),Ms=new H({props:{name:"class huggingface_hub.HfApi",anchor:"huggingface_hub.HfApi",parameters:[{name:"endpoint",val:": Optional[str] = None"},{name:"token",val:": Union[str, bool, None] = None"},{name:"library_name",val:": Optional[str] = None"},{name:"library_version",val:": Optional[str] = None"},{name:"user_agent",val:": Union[Dict, str, None] = None"},{name:"headers",val:": Optional[Dict[str, str]] = None"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/hf_api.py#L1292"}}),Ts=new H({props:{name:"accept_access_request",anchor:"huggingface_hub.HfApi.accept_access_request",parameters:[{name:"repo_id",val:": str"},{name:"user",val:": str"},{name:"repo_type",val:": Optional[str] = None"},{name:"token",val:": Optional[str] = None"}],parametersDescription:[{anchor:"huggingface_hub.HfApi.accept_access_request.repo_id",description:`<strong>repo_id</strong> (<code>str</code>) &#x2014;
The id of the repo to accept access request for.`,name:"repo_id"},{anchor:"huggingface_hub.HfApi.accept_access_request.user",description:`<strong>user</strong> (<code>str</code>) &#x2014;
The username of the user which access request should be accepted.`,name:"user"},{anchor:"huggingface_hub.HfApi.accept_access_request.repo_type",description:`<strong>repo_type</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The type of the repo to accept access request for. Must be one of <code>model</code>, <code>dataset</code> or <code>space</code>.
Defaults to <code>model</code>.`,name:"repo_type"},{anchor:"huggingface_hub.HfApi.accept_access_request.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>).`,name:"token"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/hf_api.py#L8117",raiseDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<ul>
<li><code>HTTPError</code> —
HTTP 400 if the repo is not gated.</li>
<li><code>HTTPError</code> —
HTTP 403 if you only have read-only access to the repo. This can be the case if you don’t have <code>write</code>
or <code>admin</code> role in the organization the repo belongs to or if you passed a <code>read</code> token.</li>
<li><code>HTTPError</code> —
HTTP 404 if the user does not exist on the Hub.</li>
<li><code>HTTPError</code> —
HTTP 404 if the user access request cannot be found.</li>
<li><code>HTTPError</code> —
HTTP 404 if the user access request is already in the accepted list.</li>
</ul>
`,raiseType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>HTTPError</code></p>
`}}),ks=new H({props:{name:"add_collection_item",anchor:"huggingface_hub.HfApi.add_collection_item",parameters:[{name:"collection_slug",val:": str"},{name:"item_id",val:": str"},{name:"item_type",val:": CollectionItemType_T"},{name:"note",val:": Optional[str] = None"},{name:"exists_ok",val:": bool = False"},{name:"token",val:": Optional[str] = None"}],parametersDescription:[{anchor:"huggingface_hub.HfApi.add_collection_item.collection_slug",description:`<strong>collection_slug</strong> (<code>str</code>) &#x2014;
Slug of the collection to update. Example: <code>&quot;TheBloke/recent-models-64f9a55bb3115b4f513ec026&quot;</code>.`,name:"collection_slug"},{anchor:"huggingface_hub.HfApi.add_collection_item.item_id",description:`<strong>item_id</strong> (<code>str</code>) &#x2014;
ID of the item to add to the collection. It can be the ID of a repo on the Hub (e.g. <code>&quot;facebook/bart-large-mnli&quot;</code>)
or a paper id (e.g. <code>&quot;2307.09288&quot;</code>).`,name:"item_id"},{anchor:"huggingface_hub.HfApi.add_collection_item.item_type",description:`<strong>item_type</strong> (<code>str</code>) &#x2014;
Type of the item to add. Can be one of <code>&quot;model&quot;</code>, <code>&quot;dataset&quot;</code>, <code>&quot;space&quot;</code> or <code>&quot;paper&quot;</code>.`,name:"item_type"},{anchor:"huggingface_hub.HfApi.add_collection_item.note",description:`<strong>note</strong> (<code>str</code>, <em>optional</em>) &#x2014;
A note to attach to the item in the collection. The maximum size for a note is 500 characters.`,name:"note"},{anchor:"huggingface_hub.HfApi.add_collection_item.exists_ok",description:`<strong>exists_ok</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
If <code>True</code>, do not raise an error if item already exists.`,name:"exists_ok"},{anchor:"huggingface_hub.HfApi.add_collection_item.token",description:`<strong>token</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Hugging Face token. Will default to the locally saved token if not provided.`,name:"token"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/hf_api.py#L7690",raiseDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<ul>
<li><code>HTTPError</code> —
HTTP 403 if you only have read-only access to the repo. This can be the case if you don’t have <code>write</code>
or <code>admin</code> role in the organization the repo belongs to or if you passed a <code>read</code> token.</li>
<li><code>HTTPError</code> —
HTTP 404 if the item you try to add to the collection does not exist on the Hub.</li>
<li><code>HTTPError</code> —
HTTP 409 if the item you try to add to the collection is already in the collection (and exists_ok=False)</li>
</ul>
`,raiseType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>HTTPError</code></p>
`}}),ro=new U({props:{anchor:"huggingface_hub.HfApi.add_collection_item.example",$$slots:{default:[FM]},$$scope:{ctx:T}}}),js=new H({props:{name:"add_space_secret",anchor:"huggingface_hub.HfApi.add_space_secret",parameters:[{name:"repo_id",val:": str"},{name:"key",val:": str"},{name:"value",val:": str"},{name:"description",val:": Optional[str] = None"},{name:"token",val:": Optional[str] = None"}],parametersDescription:[{anchor:"huggingface_hub.HfApi.add_space_secret.repo_id",description:`<strong>repo_id</strong> (<code>str</code>) &#x2014;
ID of the repo to update. Example: <code>&quot;bigcode/in-the-stack&quot;</code>.`,name:"repo_id"},{anchor:"huggingface_hub.HfApi.add_space_secret.key",description:`<strong>key</strong> (<code>str</code>) &#x2014;
Secret key. Example: <code>&quot;GITHUB_API_KEY&quot;</code>`,name:"key"},{anchor:"huggingface_hub.HfApi.add_space_secret.value",description:`<strong>value</strong> (<code>str</code>) &#x2014;
Secret value. Example: <code>&quot;your_github_api_key&quot;</code>.`,name:"value"},{anchor:"huggingface_hub.HfApi.add_space_secret.description",description:`<strong>description</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Secret description. Example: <code>&quot;Github API key to access the Github API&quot;</code>.`,name:"description"},{anchor:"huggingface_hub.HfApi.add_space_secret.token",description:`<strong>token</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Hugging Face token. Will default to the locally saved token if not provided.`,name:"token"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/hf_api.py#L6450"}}),Hs=new H({props:{name:"add_space_variable",anchor:"huggingface_hub.HfApi.add_space_variable",parameters:[{name:"repo_id",val:": str"},{name:"key",val:": str"},{name:"value",val:": str"},{name:"description",val:": Optional[str] = None"},{name:"token",val:": Optional[str] = None"}],parametersDescription:[{anchor:"huggingface_hub.HfApi.add_space_variable.repo_id",description:`<strong>repo_id</strong> (<code>str</code>) &#x2014;
ID of the repo to update. Example: <code>&quot;bigcode/in-the-stack&quot;</code>.`,name:"repo_id"},{anchor:"huggingface_hub.HfApi.add_space_variable.key",description:`<strong>key</strong> (<code>str</code>) &#x2014;
Variable key. Example: <code>&quot;MODEL_REPO_ID&quot;</code>`,name:"key"},{anchor:"huggingface_hub.HfApi.add_space_variable.value",description:`<strong>value</strong> (<code>str</code>) &#x2014;
Variable value. Example: <code>&quot;the_model_repo_id&quot;</code>.`,name:"value"},{anchor:"huggingface_hub.HfApi.add_space_variable.description",description:`<strong>description</strong> (<code>str</code>) &#x2014;
Description of the variable. Example: <code>&quot;Model Repo ID of the implemented model&quot;</code>.`,name:"description"},{anchor:"huggingface_hub.HfApi.add_space_variable.token",description:`<strong>token</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Hugging Face token. Will default to the locally saved token if not provided.`,name:"token"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/hf_api.py#L6523"}}),Cs=new H({props:{name:"cancel_access_request",anchor:"huggingface_hub.HfApi.cancel_access_request",parameters:[{name:"repo_id",val:": str"},{name:"user",val:": str"},{name:"repo_type",val:": Optional[str] = None"},{name:"token",val:": Optional[str] = None"}],parametersDescription:[{anchor:"huggingface_hub.HfApi.cancel_access_request.repo_id",description:`<strong>repo_id</strong> (<code>str</code>) &#x2014;
The id of the repo to cancel access request for.`,name:"repo_id"},{anchor:"huggingface_hub.HfApi.cancel_access_request.user",description:`<strong>user</strong> (<code>str</code>) &#x2014;
The username of the user which access request should be cancelled.`,name:"user"},{anchor:"huggingface_hub.HfApi.cancel_access_request.repo_type",description:`<strong>repo_type</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The type of the repo to cancel access request for. Must be one of <code>model</code>, <code>dataset</code> or <code>space</code>.
Defaults to <code>model</code>.`,name:"repo_type"},{anchor:"huggingface_hub.HfApi.cancel_access_request.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>).`,name:"token"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/hf_api.py#L8080",raiseDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<ul>
<li><code>HTTPError</code> —
HTTP 400 if the repo is not gated.</li>
<li><code>HTTPError</code> —
HTTP 403 if you only have read-only access to the repo. This can be the case if you don’t have <code>write</code>
or <code>admin</code> role in the organization the repo belongs to or if you passed a <code>read</code> token.</li>
<li><code>HTTPError</code> —
HTTP 404 if the user does not exist on the Hub.</li>
<li><code>HTTPError</code> —
HTTP 404 if the user access request cannot be found.</li>
<li><code>HTTPError</code> —
HTTP 404 if the user access request is already in the pending list.</li>
</ul>
`,raiseType:`<script context="module">export const metadata = 'undefined';<\/script>


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


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


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


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


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


<ul>
<li><a
  href="/docs/huggingface_hub/main/en/package_reference/utilities#huggingface_hub.utils.RepositoryNotFoundError"
>RepositoryNotFoundError</a> —
If repository is not found (error 404): wrong repo_id/repo_type, private
but not authenticated or repo does not exist.</li>
<li><a
  href="/docs/huggingface_hub/main/en/package_reference/utilities#huggingface_hub.utils.BadRequestError"
>BadRequestError</a> —
If invalid reference for a branch. Ex: <code>refs/pr/5</code> or ‘refs/foo/bar’.</li>
<li><a
  href="/docs/huggingface_hub/main/en/package_reference/utilities#huggingface_hub.utils.HfHubHTTPError"
>HfHubHTTPError</a> —
If the branch already exists on the repo (error 409) and <code>exist_ok</code> is
set to <code>False</code>.</li>
</ul>
`,raiseType:`<script context="module">export const metadata = 'undefined';<\/script>


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


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


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


<ul>
<li><a
  href="https://docs.python.org/3/library/exceptions.html#ValueError"
  rel="nofollow"
><code>ValueError</code></a> —
If commit message is empty.</li>
<li><a
  href="https://docs.python.org/3/library/exceptions.html#ValueError"
  rel="nofollow"
><code>ValueError</code></a> —
If parent commit is not a valid commit OID.</li>
<li><a
  href="https://docs.python.org/3/library/exceptions.html#ValueError"
  rel="nofollow"
><code>ValueError</code></a> —
If a README.md file with an invalid metadata section is committed. In this case, the commit will fail
early, before trying to upload any file.</li>
<li><a
  href="https://docs.python.org/3/library/exceptions.html#ValueError"
  rel="nofollow"
><code>ValueError</code></a> —
If <code>create_pr</code> is <code>True</code> and revision is neither <code>None</code> nor <code>"main"</code>.</li>
<li><a
  href="/docs/huggingface_hub/main/en/package_reference/utilities#huggingface_hub.utils.RepositoryNotFoundError"
>RepositoryNotFoundError</a> —
If repository is not found (error 404): wrong repo_id/repo_type, private
but not authenticated or repo does not exist.</li>
</ul>
`,raiseType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>ValueError</code> or <a
  href="/docs/huggingface_hub/main/en/package_reference/utilities#huggingface_hub.utils.RepositoryNotFoundError"
>RepositoryNotFoundError</a></p>
`}}),ho=new A({props:{warning:!0,$$slots:{default:[VM]},$$scope:{ctx:T}}}),mo=new A({props:{warning:!0,$$slots:{default:[PM]},$$scope:{ctx:T}}}),fo=new A({props:{warning:!0,$$slots:{default:[XM]},$$scope:{ctx:T}}}),Ns=new H({props:{name:"create_commits_on_pr",anchor:"huggingface_hub.HfApi.create_commits_on_pr",parameters:[{name:"repo_id",val:": str"},{name:"addition_commits",val:": List[List[CommitOperationAdd]]"},{name:"deletion_commits",val:": List[List[CommitOperationDelete]]"},{name:"commit_message",val:": str"},{name:"commit_description",val:": Optional[str] = None"},{name:"token",val:": Optional[str] = None"},{name:"repo_type",val:": Optional[str] = None"},{name:"merge_pr",val:": bool = True"},{name:"num_threads",val:": int = 5"},{name:"verbose",val:": bool = False"}],parametersDescription:[{anchor:"huggingface_hub.HfApi.create_commits_on_pr.repo_id",description:`<strong>repo_id</strong> (<code>str</code>) &#x2014;
The repository in which the commits will be pushed. Example: <code>&quot;username/my-cool-model&quot;</code>.`,name:"repo_id"},{anchor:"huggingface_hub.HfApi.create_commits_on_pr.addition_commits",description:`<strong>addition_commits</strong> (<code>List</code> of <code>List</code> of <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.CommitOperationAdd">CommitOperationAdd</a>) &#x2014;
A list containing lists of <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.CommitOperationAdd">CommitOperationAdd</a>. Each sublist will result in a commit on the
PR.</p>
<p>deletion_commits &#x2014;
A list containing lists of <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.CommitOperationDelete">CommitOperationDelete</a>. Each sublist will result in a commit on
the PR. Deletion commits are pushed before addition commits.`,name:"addition_commits"},{anchor:"huggingface_hub.HfApi.create_commits_on_pr.commit_message",description:`<strong>commit_message</strong> (<code>str</code>) &#x2014;
The summary (first line) of the commit that will be created. Will also be the title of the PR.`,name:"commit_message"},{anchor:"huggingface_hub.HfApi.create_commits_on_pr.commit_description",description:`<strong>commit_description</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The description of the commit that will be created. The description will be added to the PR.`,name:"commit_description"},{anchor:"huggingface_hub.HfApi.create_commits_on_pr.token",description:`<strong>token</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Authentication token, obtained with <code>HfApi.login</code> method. Will default to the stored token.`,name:"token"},{anchor:"huggingface_hub.HfApi.create_commits_on_pr.repo_type",description:`<strong>repo_type</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Set to <code>&quot;dataset&quot;</code> or <code>&quot;space&quot;</code> if uploading to a dataset or space, <code>None</code> or <code>&quot;model&quot;</code> if uploading to
a model. Default is <code>None</code>.`,name:"repo_type"},{anchor:"huggingface_hub.HfApi.create_commits_on_pr.merge_pr",description:`<strong>merge_pr</strong> (<code>bool</code>) &#x2014;
If set to <code>True</code>, the Pull Request is merged at the end of the process. Defaults to <code>True</code>.`,name:"merge_pr"},{anchor:"huggingface_hub.HfApi.create_commits_on_pr.num_threads",description:`<strong>num_threads</strong> (<code>int</code>, <em>optional</em>) &#x2014;
Number of concurrent threads for uploading files. Defaults to 5.`,name:"num_threads"},{anchor:"huggingface_hub.HfApi.create_commits_on_pr.verbose",description:`<strong>verbose</strong> (<code>bool</code>) &#x2014;
If set to <code>True</code>, process will run on verbose mode i.e. print information about the ongoing tasks.
Defaults to <code>False</code>.`,name:"verbose"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/hf_api.py#L3709",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>
`}}),_o=new A({props:{warning:!0,$$slots:{default:[YM]},$$scope:{ctx:T}}}),bo=new A({props:{warning:!0,$$slots:{default:[zM]},$$scope:{ctx:T}}}),yo=new U({props:{anchor:"huggingface_hub.HfApi.create_commits_on_pr.example",$$slots:{default:[OM]},$$scope:{ctx:T}}}),Es=new H({props:{name:"create_discussion",anchor:"huggingface_hub.HfApi.create_discussion",parameters:[{name:"repo_id",val:": str"},{name:"title",val:": str"},{name:"token",val:": Optional[str] = None"},{name:"description",val:": Optional[str] = None"},{name:"repo_type",val:": Optional[str] = None"},{name:"pull_request",val:": bool = False"}],parametersDescription:[{anchor:"huggingface_hub.HfApi.create_discussion.repo_id",description:`<strong>repo_id</strong> (<code>str</code>) &#x2014;
A namespace (user or an organization) and a repo name separated
by a <code>/</code>.`,name:"repo_id"},{anchor:"huggingface_hub.HfApi.create_discussion.title",description:`<strong>title</strong> (<code>str</code>) &#x2014;
The title of the discussion. It can be up to 200 characters long,
and must be at least 3 characters long. Leading and trailing whitespaces
will be stripped.`,name:"title"},{anchor:"huggingface_hub.HfApi.create_discussion.token",description:`<strong>token</strong> (<code>str</code>, <em>optional</em>) &#x2014;
An authentication token (See <a href="https://huggingface.co/settings/token" rel="nofollow">https://huggingface.co/settings/token</a>)`,name:"token"},{anchor:"huggingface_hub.HfApi.create_discussion.description",description:`<strong>description</strong> (<code>str</code>, <em>optional</em>) &#x2014;
An optional description for the Pull Request.
Defaults to <code>&quot;Discussion opened with the huggingface_hub Python library&quot;</code>`,name:"description"},{anchor:"huggingface_hub.HfApi.create_discussion.pull_request",description:`<strong>pull_request</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether to create a Pull Request or discussion. If <code>True</code>, creates a Pull Request.
If <code>False</code>, creates a discussion. Defaults to <code>False</code>.`,name:"pull_request"},{anchor:"huggingface_hub.HfApi.create_discussion.repo_type",description:`<strong>repo_type</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Set to <code>&quot;dataset&quot;</code> or <code>&quot;space&quot;</code> if uploading to a dataset or
space, <code>None</code> or <code>&quot;model&quot;</code> if uploading to a model. Default is
<code>None</code>.`,name:"repo_type"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/hf_api.py#L5888"}}),xo=new A({props:{$$slots:{default:[QM]},$$scope:{ctx:T}}}),Rs=new H({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:"custom_image",val:": Optional[Dict] = 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.custom_image",description:`<strong>custom_image</strong> (<code>Dict</code>, <em>optional</em>) &#x2014;
A custom Docker image to use for the Inference Endpoint. This is useful if you want to deploy an
Inference Endpoint running on the <code>text-generation-inference</code> (TGI) framework (see examples).`,name:"custom_image"},{anchor:"huggingface_hub.HfApi.create_inference_endpoint.type",description:"<strong>type</strong> ([`InferenceEndpointType]<code>, *optional*) -- The type of the Inference Endpoint, which can be </code>&#x201C;protected&#x201D;<code>(default),</code>&#x201C;public&#x201D;<code>or</code>&#x201C;private&#x201D;`.",name:"type"},{anchor:"huggingface_hub.HfApi.create_inference_endpoint.namespace",description:`<strong>namespace</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The namespace where the Inference Endpoint will be created. Defaults to the current user&#x2019;s namespace.`,name:"namespace"},{anchor:"huggingface_hub.HfApi.create_inference_endpoint.token",description:`<strong>token</strong> (<code>str</code>, <em>optional</em>) &#x2014;
An authentication token (See <a href="https://huggingface.co/settings/token" rel="nofollow">https://huggingface.co/settings/token</a>).`,name:"token"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/hf_api.py#L7012",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


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


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


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


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


<ul>
<li><a
  href="/docs/huggingface_hub/main/en/package_reference/utilities#huggingface_hub.utils.RepositoryNotFoundError"
>RepositoryNotFoundError</a> —
If repository is not found (error 404): wrong repo_id/repo_type, private
but not authenticated or repo does not exist.</li>
<li><a
  href="/docs/huggingface_hub/main/en/package_reference/utilities#huggingface_hub.utils.RevisionNotFoundError"
>RevisionNotFoundError</a> —
If revision is not found (error 404) on the repo.</li>
<li><a
  href="/docs/huggingface_hub/main/en/package_reference/utilities#huggingface_hub.utils.HfHubHTTPError"
>HfHubHTTPError</a> —
If the branch already exists on the repo (error 409) and <code>exist_ok</code> is
set to <code>False</code>.</li>
</ul>
`,raiseType:`<script context="module">export const metadata = 'undefined';<\/script>


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


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


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


<ul>
<li><a
  href="/docs/huggingface_hub/main/en/package_reference/utilities#huggingface_hub.utils.RepositoryNotFoundError"
>RepositoryNotFoundError</a> —
If repository is not found (error 404): wrong repo_id/repo_type, private
but not authenticated or repo does not exist.</li>
<li><a
  href="/docs/huggingface_hub/main/en/package_reference/utilities#huggingface_hub.utils.HfHubHTTPError"
>HfHubHTTPError</a> —
If trying to delete a protected branch. Ex: <code>main</code> cannot be deleted.</li>
<li><a
  href="/docs/huggingface_hub/main/en/package_reference/utilities#huggingface_hub.utils.HfHubHTTPError"
>HfHubHTTPError</a> —
If trying to delete a branch that does not exist.</li>
</ul>
`,raiseType:`<script context="module">export const metadata = 'undefined';<\/script>


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


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


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


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


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


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


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


<ul>
<li><a
  href="/docs/huggingface_hub/main/en/package_reference/utilities#huggingface_hub.utils.RepositoryNotFoundError"
>RepositoryNotFoundError</a> —
If repository is not found (error 404): wrong repo_id/repo_type, private
but not authenticated or repo does not exist.</li>
<li><a
  href="/docs/huggingface_hub/main/en/package_reference/utilities#huggingface_hub.utils.RevisionNotFoundError"
>RevisionNotFoundError</a> —
If tag is not found.</li>
</ul>
`,raiseType:`<script context="module">export const metadata = 'undefined';<\/script>


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


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


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


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


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


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


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


<p>True if the file exists, False otherwise.</p>
`}}),Ro=new U({props:{anchor:"huggingface_hub.HfApi.file_exists.example",$$slots:{default:[lT]},$$scope:{ctx:T}}}),nr=new H({props:{name:"get_collection",anchor:"huggingface_hub.HfApi.get_collection",parameters:[{name:"collection_slug",val:": str"},{name:"token",val:": Optional[str] = None"}],parametersDescription:[{anchor:"huggingface_hub.HfApi.get_collection.collection_slug",description:`<strong>collection_slug</strong> (<code>str</code>) &#x2014;
Slug of the collection of the Hub. Example: <code>&quot;TheBloke/recent-models-64f9a55bb3115b4f513ec026&quot;</code>.`,name:"collection_slug"},{anchor:"huggingface_hub.HfApi.get_collection.token",description:`<strong>token</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Hugging Face token. Will default to the locally saved token if not provided.`,name:"token"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/hf_api.py#L7486"}}),Do=new U({props:{anchor:"huggingface_hub.HfApi.get_collection.example",$$slots:{default:[pT]},$$scope:{ctx:T}}}),or=new H({props:{name:"get_dataset_tags",anchor:"huggingface_hub.HfApi.get_dataset_tags",parameters:[],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/hf_api.py#L1432"}}),ar=new H({props:{name:"get_discussion_details",anchor:"huggingface_hub.HfApi.get_discussion_details",parameters:[{name:"repo_id",val:": str"},{name:"discussion_num",val:": int"},{name:"repo_type",val:": Optional[str] = None"},{name:"token",val:": Optional[str] = None"}],parametersDescription:[{anchor:"huggingface_hub.HfApi.get_discussion_details.repo_id",description:`<strong>repo_id</strong> (<code>str</code>) &#x2014;
A namespace (user or an organization) and a repo name separated
by a <code>/</code>.`,name:"repo_id"},{anchor:"huggingface_hub.HfApi.get_discussion_details.discussion_num",description:`<strong>discussion_num</strong> (<code>int</code>) &#x2014;
The number of the Discussion or Pull Request . Must be a strictly positive integer.`,name:"discussion_num"},{anchor:"huggingface_hub.HfApi.get_discussion_details.repo_type",description:`<strong>repo_type</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Set to <code>&quot;dataset&quot;</code> or <code>&quot;space&quot;</code> if uploading to a dataset or
space, <code>None</code> or <code>&quot;model&quot;</code> if uploading to a model. Default is
<code>None</code>.`,name:"repo_type"},{anchor:"huggingface_hub.HfApi.get_discussion_details.token",description:`<strong>token</strong> (<code>str</code>, <em>optional</em>) &#x2014;
An authentication token (See <a href="https://huggingface.co/settings/token" rel="nofollow">https://huggingface.co/settings/token</a>)`,name:"token"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/hf_api.py#L5812"}}),Fo=new A({props:{$$slots:{default:[dT]},$$scope:{ctx:T}}}),sr=new H({props:{name:"get_full_repo_name",anchor:"huggingface_hub.HfApi.get_full_repo_name",parameters:[{name:"model_id",val:": str"},{name:"organization",val:": Optional[str] = None"},{name:"token",val:": Optional[Union[bool, str]] = None"}],parametersDescription:[{anchor:"huggingface_hub.HfApi.get_full_repo_name.model_id",description:`<strong>model_id</strong> (<code>str</code>) &#x2014;
The name of the model.`,name:"model_id"},{anchor:"huggingface_hub.HfApi.get_full_repo_name.organization",description:`<strong>organization</strong> (<code>str</code>, <em>optional</em>) &#x2014;
If passed, the repository name will be in the organization
namespace instead of the user namespace.`,name:"organization"},{anchor:"huggingface_hub.HfApi.get_full_repo_name.token",description:`<strong>token</strong> (<code>bool</code> or <code>str</code>, <em>optional</em>) &#x2014;
A valid authentication token (see <a href="https://huggingface.co/settings/token" rel="nofollow">https://huggingface.co/settings/token</a>).
If <code>None</code> or <code>True</code> and machine is logged in (through <code>huggingface-cli login</code>
or <a href="/docs/huggingface_hub/main/en/package_reference/login#huggingface_hub.login">login()</a>), token will be retrieved from the cache.
If <code>False</code>, token is not sent in the request header.`,name:"token"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/hf_api.py#L5669",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>
`}}),rr=new H({props:{name:"get_hf_file_metadata",anchor:"huggingface_hub.HfApi.get_hf_file_metadata",parameters:[{name:"url",val:": str"},{name:"token",val:": Union[bool, str, None] = None"},{name:"proxies",val:": Optional[Dict] = None"},{name:"timeout",val:": Optional[float] = 10"}],parametersDescription:[{anchor:"huggingface_hub.HfApi.get_hf_file_metadata.url",description:`<strong>url</strong> (<code>str</code>) &#x2014;
File url, for example returned by <a href="/docs/huggingface_hub/main/en/package_reference/file_download#huggingface_hub.hf_hub_url">hf_hub_url()</a>.`,name:"url"},{anchor:"huggingface_hub.HfApi.get_hf_file_metadata.token",description:`<strong>token</strong> (<code>str</code> or <code>bool</code>, <em>optional</em>) &#x2014;
A token to be used for the download.<ul>
<li>If <code>True</code>, the token is read from the HuggingFace config
folder.</li>
<li>If <code>False</code> or <code>None</code>, no token is provided.</li>
<li>If a string, it&#x2019;s used as the authentication token.</li>
</ul>`,name:"token"},{anchor:"huggingface_hub.HfApi.get_hf_file_metadata.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.get_hf_file_metadata.timeout",description:`<strong>timeout</strong> (<code>float</code>, <em>optional</em>, defaults to 10) &#x2014;
How many seconds to wait for the server to send metadata before giving up.`,name:"timeout"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/hf_api.py#L4862",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


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


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


<p><a
  href="/docs/huggingface_hub/main/en/package_reference/inference_endpoints#huggingface_hub.InferenceEndpoint"
>InferenceEndpoint</a></p>
`}}),Zo=new U({props:{anchor:"huggingface_hub.HfApi.get_inference_endpoint.example",$$slots:{default:[gT]},$$scope:{ctx:T}}}),cr=new H({props:{name:"get_model_tags",anchor:"huggingface_hub.HfApi.get_model_tags",parameters:[],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/hf_api.py#L1423"}}),lr=new H({props:{name:"get_paths_info",anchor:"huggingface_hub.HfApi.get_paths_info",parameters:[{name:"repo_id",val:": str"},{name:"paths",val:": Union[List[str], str]"},{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.get_paths_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.get_paths_info.paths",description:`<strong>paths</strong> (<code>Union[List[str], str]</code>, <em>optional</em>) &#x2014;
The paths to get information about. If a path do not exist, it is ignored without raising
an exception.`,name:"paths"},{anchor:"huggingface_hub.HfApi.get_paths_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 paths (e.g. last commit and files&#x2019; 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.get_paths_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.get_paths_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.get_paths_info.token",description:`<strong>token</strong> (<code>bool</code> or <code>str</code>, <em>optional</em>) &#x2014;
A valid authentication token (see <a href="https://huggingface.co/settings/token" rel="nofollow">https://huggingface.co/settings/token</a>). If <code>None</code> or <code>True</code> and
machine is logged in (through <code>huggingface-cli login</code> or <a href="/docs/huggingface_hub/main/en/package_reference/login#huggingface_hub.login">login()</a>), token will be
retrieved from the cache. If <code>False</code>, token is not sent in the request header.`,name:"token"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/hf_api.py#L2956",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>The information about the paths, as a list of <code>RepoFile</code> and <code>RepoFolder</code> objects.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


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


<ul>
<li><a
  href="/docs/huggingface_hub/main/en/package_reference/utilities#huggingface_hub.utils.RepositoryNotFoundError"
>RepositoryNotFoundError</a> —
If repository is not found (error 404): wrong repo_id/repo_type, private but not authenticated or repo
does not exist.</li>
<li><a
  href="/docs/huggingface_hub/main/en/package_reference/utilities#huggingface_hub.utils.RevisionNotFoundError"
>RevisionNotFoundError</a> —
If revision is not found (error 404) on the repo.</li>
</ul>
`,raiseType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/huggingface_hub/main/en/package_reference/utilities#huggingface_hub.utils.RepositoryNotFoundError"
>RepositoryNotFoundError</a> or <a
  href="/docs/huggingface_hub/main/en/package_reference/utilities#huggingface_hub.utils.RevisionNotFoundError"
>RevisionNotFoundError</a></p>
`}}),Wo=new U({props:{anchor:"huggingface_hub.HfApi.get_paths_info.example",$$slots:{default:[uT]},$$scope:{ctx:T}}}),pr=new H({props:{name:"get_repo_discussions",anchor:"huggingface_hub.HfApi.get_repo_discussions",parameters:[{name:"repo_id",val:": str"},{name:"author",val:": Optional[str] = None"},{name:"discussion_type",val:": Optional[DiscussionTypeFilter] = None"},{name:"discussion_status",val:": Optional[DiscussionStatusFilter] = None"},{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.author",description:`<strong>author</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Pass a value to filter by discussion author. <code>None</code> means no filter.
Default is <code>None</code>.`,name:"author"},{anchor:"huggingface_hub.HfApi.get_repo_discussions.discussion_type",description:`<strong>discussion_type</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Set to <code>&quot;pull_request&quot;</code> to fetch only pull requests, <code>&quot;discussion&quot;</code>
to fetch only discussions. Set to <code>&quot;all&quot;</code> or <code>None</code> to fetch both.
Default is <code>None</code>.`,name:"discussion_type"},{anchor:"huggingface_hub.HfApi.get_repo_discussions.discussion_status",description:`<strong>discussion_status</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Set to <code>&quot;open&quot;</code> (respectively <code>&quot;closed&quot;</code>) to fetch only open
(respectively closed) discussions. Set to <code>&quot;all&quot;</code> or <code>None</code>
to fetch both.
Default is <code>None</code>.`,name:"discussion_status"},{anchor:"huggingface_hub.HfApi.get_repo_discussions.repo_type",description:`<strong>repo_type</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Set to <code>&quot;dataset&quot;</code> or <code>&quot;space&quot;</code> if fetching from a dataset or
space, <code>None</code> or <code>&quot;model&quot;</code> if fetching from a model. Default is
<code>None</code>.`,name:"repo_type"},{anchor:"huggingface_hub.HfApi.get_repo_discussions.token",description:`<strong>token</strong> (<code>str</code>, <em>optional</em>) &#x2014;
An authentication token (See <a href="https://huggingface.co/settings/token" rel="nofollow">https://huggingface.co/settings/token</a>).`,name:"token"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/hf_api.py#L5707",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


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


<p><code>Iterator[Discussion]</code></p>
`}}),Vo=new U({props:{anchor:"huggingface_hub.HfApi.get_repo_discussions.example",$$slots:{default:[hT]},$$scope:{ctx:T}}}),Po=new U({props:{anchor:"huggingface_hub.HfApi.get_repo_discussions.example-2",$$slots:{default:[mT]},$$scope:{ctx:T}}}),dr=new H({props:{name:"get_safetensors_metadata",anchor:"huggingface_hub.HfApi.get_safetensors_metadata",parameters:[{name:"repo_id",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.get_safetensors_metadata.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.get_safetensors_metadata.filename",description:`<strong>filename</strong> (<code>str</code>) &#x2014;
The name of the file in the repo.`,name:"filename"},{anchor:"huggingface_hub.HfApi.get_safetensors_metadata.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.get_safetensors_metadata.revision",description:`<strong>revision</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The git revision to fetch the file from. Can be a branch name, a tag, or a commit hash. Defaults to the
head of the <code>&quot;main&quot;</code> branch.`,name:"revision"},{anchor:"huggingface_hub.HfApi.get_safetensors_metadata.token",description:`<strong>token</strong> (<code>bool</code> or <code>str</code>, <em>optional</em>) &#x2014;
A valid authentication token (see <a href="https://huggingface.co/settings/token" rel="nofollow">https://huggingface.co/settings/token</a>). If <code>None</code> or <code>True</code> and
machine is logged in (through <code>huggingface-cli login</code> or <a href="/docs/huggingface_hub/main/en/package_reference/login#huggingface_hub.login">login()</a>), token will be
retrieved from the cache. If <code>False</code>, token is not sent in the request header.`,name:"token"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/hf_api.py#L5215",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>information related to safetensors repo.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


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


<ul>
<li><ul>
<li>— <code>NotASafetensorsRepoError</code>: if the repo is not a safetensors repo i.e. doesn’t have either a
<code>model.safetensors</code> or a <code>model.safetensors.index.json</code> file.</li>
</ul></li>
<li><ul>
<li>— <code>SafetensorsParsingError</code>: if a safetensors file header couldn’t be parsed correctly.</li>
</ul></li>
</ul>
`,raiseType:`<script context="module">export const metadata = 'undefined';<\/script>


<ul>
<li></li>
</ul>
`}}),Xo=new U({props:{anchor:"huggingface_hub.HfApi.get_safetensors_metadata.example",$$slots:{default:[fT]},$$scope:{ctx:T}}}),gr=new H({props:{name:"get_space_runtime",anchor:"huggingface_hub.HfApi.get_space_runtime",parameters:[{name:"repo_id",val:": str"},{name:"token",val:": Optional[str] = None"}],parametersDescription:[{anchor:"huggingface_hub.HfApi.get_space_runtime.repo_id",description:`<strong>repo_id</strong> (<code>str</code>) &#x2014;
ID of the repo to update. Example: <code>&quot;bigcode/in-the-stack&quot;</code>.`,name:"repo_id"},{anchor:"huggingface_hub.HfApi.get_space_runtime.token",description:`<strong>token</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Hugging Face token. Will default to the locally saved token if
not provided.`,name:"token"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/hf_api.py#L6580",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


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


<p><a
  href="/docs/huggingface_hub/main/en/package_reference/space_runtime#huggingface_hub.SpaceRuntime"
>SpaceRuntime</a></p>
`}}),ur=new H({props:{name:"get_space_variables",anchor:"huggingface_hub.HfApi.get_space_variables",parameters:[{name:"repo_id",val:": str"},{name:"token",val:": Optional[str] = None"}],parametersDescription:[{anchor:"huggingface_hub.HfApi.get_space_variables.repo_id",description:`<strong>repo_id</strong> (<code>str</code>) &#x2014;
ID of the repo to query. Example: <code>&quot;bigcode/in-the-stack&quot;</code>.`,name:"repo_id"},{anchor:"huggingface_hub.HfApi.get_space_variables.token",description:`<strong>token</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Hugging Face token. Will default to the locally saved token if not provided.`,name:"token"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/hf_api.py#L6503"}}),hr=new H({props:{name:"get_token_permission",anchor:"huggingface_hub.HfApi.get_token_permission",parameters:[{name:"token",val:": Optional[str] = None"}],parametersDescription:[{anchor:"huggingface_hub.HfApi.get_token_permission.token",description:`<strong>token</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The token to check for validity. Defaults to the one saved locally.`,name:"token"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/hf_api.py#L1404",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>
`}}),mr=new H({props:{name:"get_user_overview",anchor:"huggingface_hub.HfApi.get_user_overview",parameters:[{name:"username",val:": str"}],parametersDescription:[{anchor:"huggingface_hub.HfApi.get_user_overview.username",description:`<strong>username</strong> (<code>str</code>) &#x2014;
Username of the user to get an overview of.`,name:"username"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/hf_api.py#L8332",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>A <a
  href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.User"
>User</a> object with the user’s overview.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


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


<ul>
<li><code>HTTPError</code> —
HTTP 404 If the user does not exist on the Hub.</li>
</ul>
`,raiseType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>HTTPError</code></p>
`}}),fr=new H({props:{name:"grant_access",anchor:"huggingface_hub.HfApi.grant_access",parameters:[{name:"repo_id",val:": str"},{name:"user",val:": str"},{name:"repo_type",val:": Optional[str] = None"},{name:"token",val:": Optional[str] = None"}],parametersDescription:[{anchor:"huggingface_hub.HfApi.grant_access.repo_id",description:`<strong>repo_id</strong> (<code>str</code>) &#x2014;
The id of the repo to grant access to.`,name:"repo_id"},{anchor:"huggingface_hub.HfApi.grant_access.user",description:`<strong>user</strong> (<code>str</code>) &#x2014;
The username of the user to grant access.`,name:"user"},{anchor:"huggingface_hub.HfApi.grant_access.repo_type",description:`<strong>repo_type</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The type of the repo to grant access to. Must be one of <code>model</code>, <code>dataset</code> or <code>space</code>.
Defaults to <code>model</code>.`,name:"repo_type"},{anchor:"huggingface_hub.HfApi.grant_access.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>).`,name:"token"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/hf_api.py#L8216",raiseDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<ul>
<li><code>HTTPError</code> —
HTTP 400 if the repo is not gated.</li>
<li><code>HTTPError</code> —
HTTP 400 if the user already has access to the repo.</li>
<li><code>HTTPError</code> —
HTTP 403 if you only have read-only access to the repo. This can be the case if you don’t have <code>write</code>
or <code>admin</code> role in the organization the repo belongs to or if you passed a <code>read</code> token.</li>
<li><code>HTTPError</code> —
HTTP 404 if the user does not exist on the Hub.</li>
</ul>
`,raiseType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>HTTPError</code></p>
`}}),_r=new H({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/main/en/package_reference/login#huggingface_hub.login">login()</a>), token will be retrieved from the cache.
If <code>False</code>, token is not sent in the request header.`,name:"token"},{anchor:"huggingface_hub.HfApi.hf_hub_download.local_files_only",description:`<strong>local_files_only</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
If <code>True</code>, avoid downloading the file and return the path to the
local cached file if it exists.`,name:"local_files_only"},{anchor:"huggingface_hub.HfApi.hf_hub_download.legacy_cache_layout",description:`<strong>legacy_cache_layout</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
If <code>True</code>, uses the legacy file cache layout i.e. just call <a href="/docs/huggingface_hub/main/en/package_reference/file_download#huggingface_hub.hf_hub_url">hf_hub_url()</a>
then <code>cached_download</code>. This is deprecated as the new cache layout is
more powerful.`,name:"legacy_cache_layout"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/hf_api.py#L4904",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>
`}}),Oo=new U({props:{anchor:"huggingface_hub.HfApi.hf_hub_download.example",$$slots:{default:[_T]},$$scope:{ctx:T}}}),Qo=new A({props:{$$slots:{default:[bT]},$$scope:{ctx:T}}}),br=new H({props:{name:"hide_discussion_comment",anchor:"huggingface_hub.HfApi.hide_discussion_comment",parameters:[{name:"repo_id",val:": str"},{name:"discussion_num",val:": int"},{name:"comment_id",val:": str"},{name:"token",val:": Optional[str] = None"},{name:"repo_type",val:": Optional[str] = None"}],parametersDescription:[{anchor:"huggingface_hub.HfApi.hide_discussion_comment.repo_id",description:`<strong>repo_id</strong> (<code>str</code>) &#x2014;
A namespace (user or an organization) and a repo name separated
by a <code>/</code>.`,name:"repo_id"},{anchor:"huggingface_hub.HfApi.hide_discussion_comment.discussion_num",description:`<strong>discussion_num</strong> (<code>int</code>) &#x2014;
The number of the Discussion or Pull Request . Must be a strictly positive integer.`,name:"discussion_num"},{anchor:"huggingface_hub.HfApi.hide_discussion_comment.comment_id",description:`<strong>comment_id</strong> (<code>str</code>) &#x2014;
The ID of the comment to edit.`,name:"comment_id"},{anchor:"huggingface_hub.HfApi.hide_discussion_comment.repo_type",description:`<strong>repo_type</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Set to <code>&quot;dataset&quot;</code> or <code>&quot;space&quot;</code> if uploading to a dataset or
space, <code>None</code> or <code>&quot;model&quot;</code> if uploading to a model. Default is
<code>None</code>.`,name:"repo_type"},{anchor:"huggingface_hub.HfApi.hide_discussion_comment.token",description:`<strong>token</strong> (<code>str</code>, <em>optional</em>) &#x2014;
An authentication token (See <a href="https://huggingface.co/settings/token" rel="nofollow">https://huggingface.co/settings/token</a>)`,name:"token"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/hf_api.py#L6389",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


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


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


<ul>
<li><a
  href="/docs/huggingface_hub/main/en/package_reference/utilities#huggingface_hub.utils.RepositoryNotFoundError"
>RepositoryNotFoundError</a> —
If repository is not found (error 404): wrong repo_id/repo_type, private
but not authenticated or repo does not exist.</li>
</ul>
`,raiseType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/huggingface_hub/main/en/package_reference/utilities#huggingface_hub.utils.RepositoryNotFoundError"
>RepositoryNotFoundError</a></p>
`}}),ta=new U({props:{anchor:"huggingface_hub.HfApi.like.example",$$slots:{default:[vT]},$$scope:{ctx:T}}}),xr=new H({props:{name:"list_accepted_access_requests",anchor:"huggingface_hub.HfApi.list_accepted_access_requests",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_accepted_access_requests.repo_id",description:`<strong>repo_id</strong> (<code>str</code>) &#x2014;
The id of the repo to get access requests for.`,name:"repo_id"},{anchor:"huggingface_hub.HfApi.list_accepted_access_requests.repo_type",description:`<strong>repo_type</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The type of the repo to get access requests for. Must be one of <code>model</code>, <code>dataset</code> or <code>space</code>.
Defaults to <code>model</code>.`,name:"repo_type"},{anchor:"huggingface_hub.HfApi.list_accepted_access_requests.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>).`,name:"token"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/hf_api.py#L7933",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>A list of <code>AccessRequest</code> objects. Each time contains a <code>username</code>, <code>email</code>,
<code>status</code> and <code>timestamp</code> attribute. If the gated repo has a custom form, the <code>fields</code> attribute will
be populated with user’s answers.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


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


<ul>
<li><code>HTTPError</code> —
HTTP 400 if the repo is not gated.</li>
<li><code>HTTPError</code> —
HTTP 403 if you only have read-only access to the repo. This can be the case if you don’t have <code>write</code>
or <code>admin</code> role in the organization the repo belongs to or if you passed a <code>read</code> token.</li>
</ul>
`,raiseType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>HTTPError</code></p>
`}}),na=new U({props:{anchor:"huggingface_hub.HfApi.list_accepted_access_requests.example",$$slots:{default:[$T]},$$scope:{ctx:T}}}),vr=new H({props:{name:"list_collections",anchor:"huggingface_hub.HfApi.list_collections",parameters:[{name:"owner",val:": Union[List[str], str, None] = None"},{name:"item",val:": Union[List[str], str, None] = None"},{name:"sort",val:": Optional[Literal['lastModified', 'trending', 'upvotes']] = None"},{name:"limit",val:": Optional[int] = None"},{name:"token",val:": Optional[Union[bool, str]] = None"}],parametersDescription:[{anchor:"huggingface_hub.HfApi.list_collections.owner",description:`<strong>owner</strong> (<code>List[str]</code> or <code>str</code>, <em>optional</em>) &#x2014;
Filter by owner&#x2019;s username.`,name:"owner"},{anchor:"huggingface_hub.HfApi.list_collections.item",description:`<strong>item</strong> (<code>List[str]</code> or <code>str</code>, <em>optional</em>) &#x2014;
Filter collections containing a particular items. Example: <code>&quot;models/teknium/OpenHermes-2.5-Mistral-7B&quot;</code>, <code>&quot;datasets/squad&quot;</code> or <code>&quot;papers/2311.12983&quot;</code>.`,name:"item"},{anchor:"huggingface_hub.HfApi.list_collections.sort",description:`<strong>sort</strong> (<code>Literal[&quot;lastModified&quot;, &quot;trending&quot;, &quot;upvotes&quot;]</code>, <em>optional</em>) &#x2014;
Sort collections by last modified, trending or upvotes.`,name:"sort"},{anchor:"huggingface_hub.HfApi.list_collections.limit",description:`<strong>limit</strong> (<code>int</code>, <em>optional</em>) &#x2014;
Maximum number of collections to be returned.`,name:"limit"},{anchor:"huggingface_hub.HfApi.list_collections.token",description:`<strong>token</strong> (<code>bool</code> or <code>str</code>, <em>optional</em>) &#x2014;
An authentication token (see <a href="https://huggingface.co/settings/token" rel="nofollow">https://huggingface.co/settings/token</a>).`,name:"token"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/hf_api.py#L7430",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


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


<p><code>Iterable[Collection]</code></p>
`}}),oa=new A({props:{warning:!0,$$slots:{default:[wT]},$$scope:{ctx:T}}}),$r=new H({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:"benchmark",val:": Optional[Union[str, List[str]]] = None"},{name:"dataset_name",val:": Optional[str] = None"},{name:"language_creators",val:": Optional[Union[str, List[str]]] = None"},{name:"language",val:": Optional[Union[str, List[str]]] = None"},{name:"multilinguality",val:": Optional[Union[str, List[str]]] = None"},{name:"size_categories",val:": Optional[Union[str, List[str]]] = None"},{name:"task_categories",val:": Optional[Union[str, List[str]]] = None"},{name:"task_ids",val:": Optional[Union[str, List[str]]] = None"},{name:"search",val:": Optional[str] = None"},{name:"sort",val:": Optional[Union[Literal['last_modified'], str]] = None"},{name:"direction",val:": Optional[Literal[-1]] = None"},{name:"limit",val:": Optional[int] = None"},{name:"full",val:": Optional[bool] = None"},{name:"token",val:": Optional[str] = None"}],parametersDescription:[{anchor:"huggingface_hub.HfApi.list_datasets.filter",description:`<strong>filter</strong> (<a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.DatasetFilter">DatasetFilter</a> or <code>str</code> or <code>Iterable</code>, <em>optional</em>) &#x2014;
A string or <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.DatasetFilter">DatasetFilter</a> which can be used to identify
datasets on the hub.`,name:"filter"},{anchor:"huggingface_hub.HfApi.list_datasets.author",description:`<strong>author</strong> (<code>str</code>, <em>optional</em>) &#x2014;
A string which identify the author of the returned datasets.`,name:"author"},{anchor:"huggingface_hub.HfApi.list_datasets.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.HfApi.list_datasets.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.HfApi.list_datasets.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.HfApi.list_datasets.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.HfApi.list_datasets.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.HfApi.list_datasets.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.HfApi.list_datasets.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.HfApi.list_datasets.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"},{anchor:"huggingface_hub.HfApi.list_datasets.search",description:`<strong>search</strong> (<code>str</code>, <em>optional</em>) &#x2014;
A string that will be contained in the returned datasets.`,name:"search"},{anchor:"huggingface_hub.HfApi.list_datasets.sort",description:`<strong>sort</strong> (<code>Literal[&quot;last_modified&quot;]</code> or <code>str</code>, <em>optional</em>) &#x2014;
The key with which to sort the resulting datasets. Possible
values are the properties of the <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.hf_api.DatasetInfo">huggingface_hub.hf_api.DatasetInfo</a> class.`,name:"sort"},{anchor:"huggingface_hub.HfApi.list_datasets.direction",description:`<strong>direction</strong> (<code>Literal[-1]</code> or <code>int</code>, <em>optional</em>) &#x2014;
Direction in which to sort. The value <code>-1</code> sorts by descending
order while all other values sort by ascending order.`,name:"direction"},{anchor:"huggingface_hub.HfApi.list_datasets.limit",description:`<strong>limit</strong> (<code>int</code>, <em>optional</em>) &#x2014;
The limit on the number of datasets fetched. Leaving this option
to <code>None</code> fetches all datasets.`,name:"limit"},{anchor:"huggingface_hub.HfApi.list_datasets.full",description:`<strong>full</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether to fetch all dataset data, including the <code>last_modified</code>,
the <code>card_data</code> and  the files. Can contain useful information such as the
PapersWithCode ID.`,name:"full"},{anchor:"huggingface_hub.HfApi.list_datasets.token",description:`<strong>token</strong> (<code>bool</code> or <code>str</code>, <em>optional</em>) &#x2014;
A valid authentication token (see <a href="https://huggingface.co/settings/token" rel="nofollow">https://huggingface.co/settings/token</a>).
If <code>None</code> or <code>True</code> and machine is logged in (through <code>huggingface-cli login</code>
or <a href="/docs/huggingface_hub/main/en/package_reference/login#huggingface_hub.login">login()</a>), token will be retrieved from the cache.
If <code>False</code>, token is not sent in the request header.`,name:"token"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/hf_api.py#L1682",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


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


<p><code>Iterable[DatasetInfo]</code></p>
`}}),aa=new U({props:{anchor:"huggingface_hub.HfApi.list_datasets.example",$$slots:{default:[MT]},$$scope:{ctx:T}}}),sa=new U({props:{anchor:"huggingface_hub.HfApi.list_datasets.example-2",$$slots:{default:[TT]},$$scope:{ctx:T}}}),wr=new H({props:{name:"list_inference_endpoints",anchor:"huggingface_hub.HfApi.list_inference_endpoints",parameters:[{name:"namespace",val:": Optional[str] = None"},{name:"token",val:": Optional[str] = None"}],parametersDescription:[{anchor:"huggingface_hub.HfApi.list_inference_endpoints.namespace",description:`<strong>namespace</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The namespace to list endpoints for. Defaults to the current user. Set to <code>&quot;*&quot;</code> to list all endpoints
from all namespaces (i.e. personal namespace and all orgs the user belongs to).`,name:"namespace"},{anchor:"huggingface_hub.HfApi.list_inference_endpoints.token",description:`<strong>token</strong> (<code>str</code>, <em>optional</em>) &#x2014;
An authentication token (See <a href="https://huggingface.co/settings/token" rel="nofollow">https://huggingface.co/settings/token</a>).`,name:"token"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/hf_api.py#L6957",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


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


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


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


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


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


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


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


<p><code>Iterable[ModelInfo]</code></p>
`}}),la=new U({props:{anchor:"huggingface_hub.HfApi.list_models.example",$$slots:{default:[HT]},$$scope:{ctx:T}}}),pa=new U({props:{anchor:"huggingface_hub.HfApi.list_models.example-2",$$slots:{default:[CT]},$$scope:{ctx:T}}}),jr=new H({props:{name:"list_organization_members",anchor:"huggingface_hub.HfApi.list_organization_members",parameters:[{name:"organization",val:": str"}],parametersDescription:[{anchor:"huggingface_hub.HfApi.list_organization_members.organization",description:`<strong>organization</strong> (<code>str</code>) &#x2014;
Name of the organization to get the members of.`,name:"organization"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/hf_api.py#L8352",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


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


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


<ul>
<li><code>HTTPError</code> —
HTTP 404 If the organization does not exist on the Hub.</li>
</ul>
`,raiseType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>HTTPError</code></p>
`}}),Hr=new H({props:{name:"list_pending_access_requests",anchor:"huggingface_hub.HfApi.list_pending_access_requests",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_pending_access_requests.repo_id",description:`<strong>repo_id</strong> (<code>str</code>) &#x2014;
The id of the repo to get access requests for.`,name:"repo_id"},{anchor:"huggingface_hub.HfApi.list_pending_access_requests.repo_type",description:`<strong>repo_type</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The type of the repo to get access requests for. Must be one of <code>model</code>, <code>dataset</code> or <code>space</code>.
Defaults to <code>model</code>.`,name:"repo_type"},{anchor:"huggingface_hub.HfApi.list_pending_access_requests.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>).`,name:"token"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/hf_api.py#L7872",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>A list of <code>AccessRequest</code> objects. Each time contains a <code>username</code>, <code>email</code>,
<code>status</code> and <code>timestamp</code> attribute. If the gated repo has a custom form, the <code>fields</code> attribute will
be populated with user’s answers.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


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


<ul>
<li><code>HTTPError</code> —
HTTP 400 if the repo is not gated.</li>
<li><code>HTTPError</code> —
HTTP 403 if you only have read-only access to the repo. This can be the case if you don’t have <code>write</code>
or <code>admin</code> role in the organization the repo belongs to or if you passed a <code>read</code> token.</li>
</ul>
`,raiseType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>HTTPError</code></p>
`}}),ga=new U({props:{anchor:"huggingface_hub.HfApi.list_pending_access_requests.example",$$slots:{default:[IT]},$$scope:{ctx:T}}}),Cr=new H({props:{name:"list_rejected_access_requests",anchor:"huggingface_hub.HfApi.list_rejected_access_requests",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_rejected_access_requests.repo_id",description:`<strong>repo_id</strong> (<code>str</code>) &#x2014;
The id of the repo to get access requests for.`,name:"repo_id"},{anchor:"huggingface_hub.HfApi.list_rejected_access_requests.repo_type",description:`<strong>repo_type</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The type of the repo to get access requests for. Must be one of <code>model</code>, <code>dataset</code> or <code>space</code>.
Defaults to <code>model</code>.`,name:"repo_type"},{anchor:"huggingface_hub.HfApi.list_rejected_access_requests.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>).`,name:"token"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/hf_api.py#L7992",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>A list of <code>AccessRequest</code> objects. Each time contains a <code>username</code>, <code>email</code>,
<code>status</code> and <code>timestamp</code> attribute. If the gated repo has a custom form, the <code>fields</code> attribute will
be populated with user’s answers.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


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


<ul>
<li><code>HTTPError</code> —
HTTP 400 if the repo is not gated.</li>
<li><code>HTTPError</code> —
HTTP 403 if you only have read-only access to the repo. This can be the case if you don’t have <code>write</code>
or <code>admin</code> role in the organization the repo belongs to or if you passed a <code>read</code> token.</li>
</ul>
`,raiseType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>HTTPError</code></p>
`}}),ua=new U({props:{anchor:"huggingface_hub.HfApi.list_rejected_access_requests.example",$$slots:{default:[UT]},$$scope:{ctx:T}}}),Ir=new H({props:{name:"list_repo_commits",anchor:"huggingface_hub.HfApi.list_repo_commits",parameters:[{name:"repo_id",val:": str"},{name:"repo_type",val:": Optional[str] = None"},{name:"token",val:": Optional[Union[bool, str]] = None"},{name:"revision",val:": Optional[str] = None"},{name:"formatted",val:": bool = False"}],parametersDescription:[{anchor:"huggingface_hub.HfApi.list_repo_commits.repo_id",description:`<strong>repo_id</strong> (<code>str</code>) &#x2014;
A namespace (user or an organization) and a repo name separated by a <code>/</code>.`,name:"repo_id"},{anchor:"huggingface_hub.HfApi.list_repo_commits.repo_type",description:`<strong>repo_type</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Set to <code>&quot;dataset&quot;</code> or <code>&quot;space&quot;</code> if listing commits from a dataset or a Space, <code>None</code> or <code>&quot;model&quot;</code> if
listing from a model. Default is <code>None</code>.`,name:"repo_type"},{anchor:"huggingface_hub.HfApi.list_repo_commits.token",description:`<strong>token</strong> (<code>bool</code> or <code>str</code>, <em>optional</em>) &#x2014;
A valid authentication token (see <a href="https://huggingface.co/settings/token" rel="nofollow">https://huggingface.co/settings/token</a>).
If <code>None</code> or <code>True</code> and machine is logged in (through <code>huggingface-cli login</code>
or <a href="/docs/huggingface_hub/main/en/package_reference/login#huggingface_hub.login">login()</a>), token will be retrieved from the cache.
If <code>False</code>, token is not sent in the request header.`,name:"token"},{anchor:"huggingface_hub.HfApi.list_repo_commits.revision",description:`<strong>revision</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The git revision to commit from. Defaults to the head of the <code>&quot;main&quot;</code> branch.`,name:"revision"},{anchor:"huggingface_hub.HfApi.list_repo_commits.formatted",description:`<strong>formatted</strong> (<code>bool</code>) &#x2014;
Whether to return the HTML-formatted title and description of the commits. Defaults to False.`,name:"formatted"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/hf_api.py#L2870",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


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


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


<ul>
<li><a
  href="/docs/huggingface_hub/main/en/package_reference/utilities#huggingface_hub.utils.RepositoryNotFoundError"
>RepositoryNotFoundError</a> —
If repository is not found (error 404): wrong repo_id/repo_type, private but not authenticated or repo
does not exist.</li>
<li><a
  href="/docs/huggingface_hub/main/en/package_reference/utilities#huggingface_hub.utils.RevisionNotFoundError"
>RevisionNotFoundError</a> —
If revision is not found (error 404) on the repo.</li>
</ul>
`,raiseType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/huggingface_hub/main/en/package_reference/utilities#huggingface_hub.utils.RepositoryNotFoundError"
>RepositoryNotFoundError</a> or <a
  href="/docs/huggingface_hub/main/en/package_reference/utilities#huggingface_hub.utils.RevisionNotFoundError"
>RevisionNotFoundError</a></p>
`}}),ha=new U({props:{anchor:"huggingface_hub.HfApi.list_repo_commits.example",$$slots:{default:[AT]},$$scope:{ctx:T}}}),Ur=new H({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:"token",val:": Optional[Union[bool, str]] = None"}],parametersDescription:[{anchor:"huggingface_hub.HfApi.list_repo_files.repo_id",description:`<strong>repo_id</strong> (<code>str</code>) &#x2014;
A namespace (user or an organization) and a repo name separated by a <code>/</code>.`,name:"repo_id"},{anchor:"huggingface_hub.HfApi.list_repo_files.revision",description:`<strong>revision</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The revision of the model repository from which to get the information.`,name:"revision"},{anchor:"huggingface_hub.HfApi.list_repo_files.repo_type",description:`<strong>repo_type</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Set to <code>&quot;dataset&quot;</code> or <code>&quot;space&quot;</code> if uploading to a dataset or space, <code>None</code> or <code>&quot;model&quot;</code> if uploading to
a model. Default is <code>None</code>.`,name:"repo_type"},{anchor:"huggingface_hub.HfApi.list_repo_files.token",description:`<strong>token</strong> (<code>bool</code> or <code>str</code>, <em>optional</em>) &#x2014;
A valid authentication token (see <a href="https://huggingface.co/settings/token" rel="nofollow">https://huggingface.co/settings/token</a>). If <code>None</code> or <code>True</code> and
machine is logged in (through <code>huggingface-cli login</code> or <a href="/docs/huggingface_hub/main/en/package_reference/login#huggingface_hub.login">login()</a>), token will be
retrieved from the cache. If <code>False</code>, token is not sent in the request header.`,name:"token"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/hf_api.py#L2631",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>
`}}),Ar=new H({props:{name:"list_repo_likers",anchor:"huggingface_hub.HfApi.list_repo_likers",parameters:[{name:"repo_id",val:": str"},{name:"repo_type",val:": Optional[str] = None"},{name:"token",val:": Optional[str] = None"}],parametersDescription:[{anchor:"huggingface_hub.HfApi.list_repo_likers.repo_id",description:`<strong>repo_id</strong> (<code>str</code>) &#x2014;
The repository to retrieve . Example: <code>&quot;user/my-cool-model&quot;</code>.`,name:"repo_id"},{anchor:"huggingface_hub.HfApi.list_repo_likers.token",description:`<strong>token</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Authentication token. Will default to the stored token.`,name:"token"},{anchor:"huggingface_hub.HfApi.list_repo_likers.repo_type",description:`<strong>repo_type</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Set to <code>&quot;dataset&quot;</code> or <code>&quot;space&quot;</code> if uploading to a dataset or
space, <code>None</code> or <code>&quot;model&quot;</code> if uploading to a model. Default is
<code>None</code>.`,name:"repo_type"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/hf_api.py#L2170",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


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


<p><code>List[User]</code></p>
`}}),qr=new H({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:"include_pull_requests",val:": bool = False"},{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.include_pull_requests",description:`<strong>include_pull_requests</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether to include refs from pull requests in the list. Defaults to <code>False</code>.`,name:"include_pull_requests"},{anchor:"huggingface_hub.HfApi.list_repo_refs.token",description:`<strong>token</strong> (<code>bool</code> or <code>str</code>, <em>optional</em>) &#x2014;
A valid authentication token (see <a href="https://huggingface.co/settings/token" rel="nofollow">https://huggingface.co/settings/token</a>).
If <code>None</code> or <code>True</code> and machine is logged in (through <code>huggingface-cli login</code>
or <a href="/docs/huggingface_hub/main/en/package_reference/login#huggingface_hub.login">login()</a>), token will be retrieved from the cache.
If <code>False</code>, token is not sent in the request header.`,name:"token"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/hf_api.py#L2798",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


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


<p><a
  href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.GitRefs"
>GitRefs</a></p>
`}}),fa=new U({props:{anchor:"huggingface_hub.HfApi.list_repo_refs.example",$$slots:{default:[qT]},$$scope:{ctx:T}}}),Jr=new H({props:{name:"list_repo_tree",anchor:"huggingface_hub.HfApi.list_repo_tree",parameters:[{name:"repo_id",val:": str"},{name:"path_in_repo",val:": Optional[str] = None"},{name:"recursive",val:": bool = False"},{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_repo_tree.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_tree.path_in_repo",description:`<strong>path_in_repo</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Relative path of the tree (folder) in the repo, for example:
<code>&quot;checkpoints/1fec34a/results&quot;</code>. Will default to the root tree (folder) of the repository.`,name:"path_in_repo"},{anchor:"huggingface_hub.HfApi.list_repo_tree.recursive",description:`<strong>recursive</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether to list tree&#x2019;s files and folders recursively.`,name:"recursive"},{anchor:"huggingface_hub.HfApi.list_repo_tree.expand",description:`<strong>expand</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether to fetch more information about the tree&#x2019;s files and folders (e.g. last commit and files&#x2019; 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_repo_tree.revision",description:`<strong>revision</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The revision of the repository from which to get the tree. Defaults to <code>&quot;main&quot;</code> branch.`,name:"revision"},{anchor:"huggingface_hub.HfApi.list_repo_tree.repo_type",description:`<strong>repo_type</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The type of the repository from which to get the tree (<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_repo_tree.token",description:`<strong>token</strong> (<code>bool</code> or <code>str</code>, <em>optional</em>) &#x2014;
A valid authentication token (see <a href="https://huggingface.co/settings/token" rel="nofollow">https://huggingface.co/settings/token</a>). If <code>None</code> or <code>True</code> and
machine is logged in (through <code>huggingface-cli login</code> or <a href="/docs/huggingface_hub/main/en/package_reference/login#huggingface_hub.login">login()</a>), token will be
retrieved from the cache. If <code>False</code>, token is not sent in the request header.`,name:"token"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/hf_api.py#L2667",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


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


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


<ul>
<li><a
  href="/docs/huggingface_hub/main/en/package_reference/utilities#huggingface_hub.utils.RepositoryNotFoundError"
>RepositoryNotFoundError</a> —
If repository is not found (error 404): wrong repo_id/repo_type, private but not authenticated or repo
does not exist.</li>
<li><a
  href="/docs/huggingface_hub/main/en/package_reference/utilities#huggingface_hub.utils.RevisionNotFoundError"
>RevisionNotFoundError</a> —
If revision is not found (error 404) on the repo.</li>
<li><a
  href="/docs/huggingface_hub/main/en/package_reference/utilities#huggingface_hub.utils.EntryNotFoundError"
>EntryNotFoundError</a> —
If the tree (folder) does not exist (error 404) on the repo.</li>
</ul>
`,raiseType:`<script context="module">export const metadata = 'undefined';<\/script>


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


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


<p><code>Iterable[SpaceInfo]</code></p>
`}}),Er=new H({props:{name:"list_user_followers",anchor:"huggingface_hub.HfApi.list_user_followers",parameters:[{name:"username",val:": str"}],parametersDescription:[{anchor:"huggingface_hub.HfApi.list_user_followers.username",description:`<strong>username</strong> (<code>str</code>) &#x2014;
Username of the user to get the followers of.`,name:"username"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/hf_api.py#L8376",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


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


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


<ul>
<li><code>HTTPError</code> —
HTTP 404 If the user does not exist on the Hub.</li>
</ul>
`,raiseType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>HTTPError</code></p>
`}}),Rr=new H({props:{name:"list_user_following",anchor:"huggingface_hub.HfApi.list_user_following",parameters:[{name:"username",val:": str"}],parametersDescription:[{anchor:"huggingface_hub.HfApi.list_user_following.username",description:`<strong>username</strong> (<code>str</code>) &#x2014;
Username of the user to get the users followed by.`,name:"username"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/hf_api.py#L8400",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


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


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


<ul>
<li><code>HTTPError</code> —
HTTP 404 If the user does not exist on the Hub.</li>
</ul>
`,raiseType:`<script context="module">export const metadata = 'undefined';<\/script>


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


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


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


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


<p><a
  href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.hf_api.ModelInfo"
>huggingface_hub.hf_api.ModelInfo</a></p>
`}}),wa=new A({props:{$$slots:{default:[RT]},$$scope:{ctx:T}}}),Fr=new H({props:{name:"move_repo",anchor:"huggingface_hub.HfApi.move_repo",parameters:[{name:"from_id",val:": str"},{name:"to_id",val:": str"},{name:"repo_type",val:": Optional[str] = None"},{name:"token",val:": Optional[str] = None"}],parametersDescription:[{anchor:"huggingface_hub.HfApi.move_repo.from_id",description:`<strong>from_id</strong> (<code>str</code>) &#x2014;
A namespace (user or an organization) and a repo name separated
by a <code>/</code>. Original repository identifier.`,name:"from_id"},{anchor:"huggingface_hub.HfApi.move_repo.to_id",description:`<strong>to_id</strong> (<code>str</code>) &#x2014;
A namespace (user or an organization) and a repo name separated
by a <code>/</code>. Final repository identifier.`,name:"to_id"},{anchor:"huggingface_hub.HfApi.move_repo.repo_type",description:`<strong>repo_type</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Set to <code>&quot;dataset&quot;</code> or <code>&quot;space&quot;</code> if uploading to a dataset or
space, <code>None</code> or <code>&quot;model&quot;</code> if uploading to a model. Default is
<code>None</code>.`,name:"repo_type"},{anchor:"huggingface_hub.HfApi.move_repo.token",description:`<strong>token</strong> (<code>str</code>, <em>optional</em>) &#x2014;
An authentication token (See <a href="https://huggingface.co/settings/token" rel="nofollow">https://huggingface.co/settings/token</a>)`,name:"token"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/hf_api.py#L3362"}}),Ma=new A({props:{$$slots:{default:[DT]},$$scope:{ctx:T}}}),Sr=new H({props:{name:"parse_safetensors_file_metadata",anchor:"huggingface_hub.HfApi.parse_safetensors_file_metadata",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.parse_safetensors_file_metadata.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.parse_safetensors_file_metadata.filename",description:`<strong>filename</strong> (<code>str</code>) &#x2014;
The name of the file in the repo.`,name:"filename"},{anchor:"huggingface_hub.HfApi.parse_safetensors_file_metadata.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.parse_safetensors_file_metadata.revision",description:`<strong>revision</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The git revision to fetch the file from. Can be a branch name, a tag, or a commit hash. Defaults to the
head of the <code>&quot;main&quot;</code> branch.`,name:"revision"},{anchor:"huggingface_hub.HfApi.parse_safetensors_file_metadata.token",description:`<strong>token</strong> (<code>bool</code> or <code>str</code>, <em>optional</em>) &#x2014;
A valid authentication token (see <a href="https://huggingface.co/settings/token" rel="nofollow">https://huggingface.co/settings/token</a>). If <code>None</code> or <code>True</code> and
machine is logged in (through <code>huggingface-cli login</code> or <a href="/docs/huggingface_hub/main/en/package_reference/login#huggingface_hub.login">login()</a>), token will be
retrieved from the cache. If <code>False</code>, token is not sent in the request header.`,name:"token"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/hf_api.py#L5336",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>information related to a safetensors file.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


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


<ul>
<li><ul>
<li>— <code>NotASafetensorsRepoError</code>: if the repo is not a safetensors repo i.e. doesn’t have either a
<code>model.safetensors</code> or a <code>model.safetensors.index.json</code> file.</li>
</ul></li>
<li><ul>
<li>— <code>SafetensorsParsingError</code>: if a safetensors file header couldn’t be parsed correctly.</li>
</ul></li>
</ul>
`,raiseType:`<script context="module">export const metadata = 'undefined';<\/script>


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


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


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


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


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


<ul>
<li><a
  href="/docs/huggingface_hub/main/en/package_reference/utilities#huggingface_hub.utils.RepositoryNotFoundError"
>RepositoryNotFoundError</a> —
If your Space is not found (error 404). Most probably wrong repo_id or your space is private but you
are not authenticated.</li>
<li><a
  href="/docs/huggingface_hub/main/en/package_reference/utilities#huggingface_hub.utils.HfHubHTTPError"
>HfHubHTTPError</a> —
403 Forbidden: only the owner of a Space can pause it. If you want to manage a Space that you don’t
own, either ask the owner by opening a Discussion or duplicate the Space.</li>
<li><a
  href="/docs/huggingface_hub/main/en/package_reference/utilities#huggingface_hub.utils.BadRequestError"
>BadRequestError</a> —
If your Space is a static Space. Static Spaces are always running and never billed. If you want to hide
a static Space, you can set it to private.</li>
</ul>
`,raiseType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/huggingface_hub/main/en/package_reference/utilities#huggingface_hub.utils.RepositoryNotFoundError"
>RepositoryNotFoundError</a> or <a
  href="/docs/huggingface_hub/main/en/package_reference/utilities#huggingface_hub.utils.HfHubHTTPError"
>HfHubHTTPError</a> or <a
  href="/docs/huggingface_hub/main/en/package_reference/utilities#huggingface_hub.utils.BadRequestError"
>BadRequestError</a></p>
`}}),Br=new H({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"},{name:"gitignore_content",val:": Optional[str] = None"}],parametersDescription:[{anchor:"huggingface_hub.HfApi.preupload_lfs_files.repo_id",description:`<strong>repo_id</strong> (<code>str</code>) &#x2014;
The repository in which you will commit the files, for example: <code>&quot;username/custom_transformers&quot;</code>.`,name:"repo_id"},{anchor:"huggingface_hub.HfApi.preupload_lfs_files.operations",description:`<strong>operations</strong> (<code>Iterable</code> of <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.CommitOperationAdd">CommitOperationAdd</a>) &#x2014;
The list of files to upload. Warning: the objects in this list will be mutated to include information
relative to the upload. Do not reuse the same objects for multiple commits.`,name:"operations"},{anchor:"huggingface_hub.HfApi.preupload_lfs_files.token",description:`<strong>token</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Authentication token. Will default to the stored token.`,name:"token"},{anchor:"huggingface_hub.HfApi.preupload_lfs_files.repo_type",description:`<strong>repo_type</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The type of repository to upload to (e.g. <code>&quot;model&quot;</code> -default-, <code>&quot;dataset&quot;</code> or <code>&quot;space&quot;</code>).`,name:"repo_type"},{anchor:"huggingface_hub.HfApi.preupload_lfs_files.revision",description:`<strong>revision</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The git revision to commit from. Defaults to the head of the <code>&quot;main&quot;</code> branch.`,name:"revision"},{anchor:"huggingface_hub.HfApi.preupload_lfs_files.create_pr",description:`<strong>create_pr</strong> (<code>boolean</code>, <em>optional</em>) &#x2014;
Whether or not you plan to create a Pull Request with that commit. Defaults to <code>False</code>.`,name:"create_pr"},{anchor:"huggingface_hub.HfApi.preupload_lfs_files.num_threads",description:`<strong>num_threads</strong> (<code>int</code>, <em>optional</em>) &#x2014;
Number of concurrent threads for uploading files. Defaults to 5.
Setting it to 2 means at most 2 files will be uploaded concurrently.`,name:"num_threads"},{anchor:"huggingface_hub.HfApi.preupload_lfs_files.gitignore_content",description:`<strong>gitignore_content</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The content of the <code>.gitignore</code> file to know which files should be ignored. The order of priority
is to first check if <code>gitignore_content</code> is passed, then check if the <code>.gitignore</code> file is present
in the list of files to commit and finally default to the <code>.gitignore</code> file already hosted on the Hub
(if any).`,name:"gitignore_content"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/hf_api.py#L4009"}}),Ta=new A({props:{warning:!0,$$slots:{default:[GT]},$$scope:{ctx:T}}}),ka=new A({props:{warning:!0,$$slots:{default:[FT]},$$scope:{ctx:T}}}),ja=new U({props:{anchor:"huggingface_hub.HfApi.preupload_lfs_files.example",$$slots:{default:[ST]},$$scope:{ctx:T}}}),Wr=new H({props:{name:"reject_access_request",anchor:"huggingface_hub.HfApi.reject_access_request",parameters:[{name:"repo_id",val:": str"},{name:"user",val:": str"},{name:"repo_type",val:": Optional[str] = None"},{name:"token",val:": Optional[str] = None"}],parametersDescription:[{anchor:"huggingface_hub.HfApi.reject_access_request.repo_id",description:`<strong>repo_id</strong> (<code>str</code>) &#x2014;
The id of the repo to reject access request for.`,name:"repo_id"},{anchor:"huggingface_hub.HfApi.reject_access_request.user",description:`<strong>user</strong> (<code>str</code>) &#x2014;
The username of the user which access request should be rejected.`,name:"user"},{anchor:"huggingface_hub.HfApi.reject_access_request.repo_type",description:`<strong>repo_type</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The type of the repo to reject access request for. Must be one of <code>model</code>, <code>dataset</code> or <code>space</code>.
Defaults to <code>model</code>.`,name:"repo_type"},{anchor:"huggingface_hub.HfApi.reject_access_request.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>).`,name:"token"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/hf_api.py#L8156",raiseDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<ul>
<li><code>HTTPError</code> —
HTTP 400 if the repo is not gated.</li>
<li><code>HTTPError</code> —
HTTP 403 if you only have read-only access to the repo. This can be the case if you don’t have <code>write</code>
or <code>admin</code> role in the organization the repo belongs to or if you passed a <code>read</code> token.</li>
<li><code>HTTPError</code> —
HTTP 404 if the user does not exist on the Hub.</li>
<li><code>HTTPError</code> —
HTTP 404 if the user access request cannot be found.</li>
<li><code>HTTPError</code> —
HTTP 404 if the user access request is already in the rejected list.</li>
</ul>
`,raiseType:`<script context="module">export const metadata = 'undefined';<\/script>


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


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


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


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


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


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


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


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


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


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


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


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


<ul>
<li><a
  href="/docs/huggingface_hub/main/en/package_reference/utilities#huggingface_hub.utils.RepositoryNotFoundError"
>RepositoryNotFoundError</a> —
If your Space is not found (error 404). Most probably wrong repo_id or your space is private but you
are not authenticated.</li>
<li><a
  href="/docs/huggingface_hub/main/en/package_reference/utilities#huggingface_hub.utils.HfHubHTTPError"
>HfHubHTTPError</a> —
403 Forbidden: only the owner of a Space can restart it. If you want to restart a Space that you don’t
own, either ask the owner by opening a Discussion or duplicate the Space.</li>
<li><a
  href="/docs/huggingface_hub/main/en/package_reference/utilities#huggingface_hub.utils.BadRequestError"
>BadRequestError</a> —
If your Space is a static Space. Static Spaces are always running and never billed. If you want to hide
a static Space, you can set it to private.</li>
</ul>
`,raiseType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/huggingface_hub/main/en/package_reference/utilities#huggingface_hub.utils.RepositoryNotFoundError"
>RepositoryNotFoundError</a> or <a
  href="/docs/huggingface_hub/main/en/package_reference/utilities#huggingface_hub.utils.HfHubHTTPError"
>HfHubHTTPError</a> or <a
  href="/docs/huggingface_hub/main/en/package_reference/utilities#huggingface_hub.utils.BadRequestError"
>BadRequestError</a></p>
`}}),Qr=new H({props:{name:"resume_inference_endpoint",anchor:"huggingface_hub.HfApi.resume_inference_endpoint",parameters:[{name:"name",val:": str"},{name:"namespace",val:": Optional[str] = None"},{name:"token",val:": Optional[str] = None"}],parametersDescription:[{anchor:"huggingface_hub.HfApi.resume_inference_endpoint.name",description:`<strong>name</strong> (<code>str</code>) &#x2014;
The name of the Inference Endpoint to resume.`,name:"name"},{anchor:"huggingface_hub.HfApi.resume_inference_endpoint.namespace",description:`<strong>namespace</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The namespace in which the Inference Endpoint is located. Defaults to the current user.`,name:"namespace"},{anchor:"huggingface_hub.HfApi.resume_inference_endpoint.token",description:`<strong>token</strong> (<code>str</code>, <em>optional</em>) &#x2014;
An authentication token (See <a href="https://huggingface.co/settings/token" rel="nofollow">https://huggingface.co/settings/token</a>).`,name:"token"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/hf_api.py#L7356",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


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


<p><a
  href="/docs/huggingface_hub/main/en/package_reference/inference_endpoints#huggingface_hub.InferenceEndpoint"
>InferenceEndpoint</a></p>
`}}),Kr=new H({props:{name:"revision_exists",anchor:"huggingface_hub.HfApi.revision_exists",parameters:[{name:"repo_id",val:": str"},{name:"revision",val:": str"},{name:"repo_type",val:": Optional[str] = None"},{name:"token",val:": Optional[str] = None"}],parametersDescription:[{anchor:"huggingface_hub.HfApi.revision_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.revision_exists.revision",description:`<strong>revision</strong> (<code>str</code>) &#x2014;
The revision of the repository to check.`,name:"revision"},{anchor:"huggingface_hub.HfApi.revision_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.revision_exists.token",description:`<strong>token</strong> (<code>bool</code> or <code>str</code>, <em>optional</em>) &#x2014;
A valid authentication token (see <a href="https://huggingface.co/settings/token" rel="nofollow">https://huggingface.co/settings/token</a>).
If <code>None</code> or <code>True</code> and machine is logged in (through <code>huggingface-cli login</code>
or <a href="/docs/huggingface_hub/main/en/package_reference/login#huggingface_hub.login">login()</a>), token will be retrieved from the cache.
If <code>False</code>, token is not sent in the request header.`,name:"token"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/hf_api.py#L2526",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>True if the repository and the revision exists, False otherwise.</p>
`}}),Ja=new U({props:{anchor:"huggingface_hub.HfApi.revision_exists.example",$$slots:{default:[XT]},$$scope:{ctx:T}}}),ei=new H({props:{name:"run_as_future",anchor:"huggingface_hub.HfApi.run_as_future",parameters:[{name:"fn",val:": Callable[..., R]"},{name:"*args",val:""},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"huggingface_hub.HfApi.run_as_future.fn",description:`<strong>fn</strong> (<code>Callable</code>) &#x2014;
The method to run in the background.`,name:"fn"},{anchor:"huggingface_hub.HfApi.run_as_future.*args,",description:`<strong>*args,</strong> **kwargs &#x2014;
Arguments with which the method will be called.`,name:"*args,"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/hf_api.py#L1334",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>
`}}),Na=new U({props:{anchor:"huggingface_hub.HfApi.run_as_future.example",$$slots:{default:[YT]},$$scope:{ctx:T}}}),ti=new H({props:{name:"scale_to_zero_inference_endpoint",anchor:"huggingface_hub.HfApi.scale_to_zero_inference_endpoint",parameters:[{name:"name",val:": str"},{name:"namespace",val:": Optional[str] = None"},{name:"token",val:": Optional[str] = None"}],parametersDescription:[{anchor:"huggingface_hub.HfApi.scale_to_zero_inference_endpoint.name",description:`<strong>name</strong> (<code>str</code>) &#x2014;
The name of the Inference Endpoint to scale to zero.`,name:"name"},{anchor:"huggingface_hub.HfApi.scale_to_zero_inference_endpoint.namespace",description:`<strong>namespace</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The namespace in which the Inference Endpoint is located. Defaults to the current user.`,name:"namespace"},{anchor:"huggingface_hub.HfApi.scale_to_zero_inference_endpoint.token",description:`<strong>token</strong> (<code>str</code>, <em>optional</em>) &#x2014;
An authentication token (See <a href="https://huggingface.co/settings/token" rel="nofollow">https://huggingface.co/settings/token</a>).`,name:"token"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/hf_api.py#L7384",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


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


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


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


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


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


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


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


<ul>
<li><a
  href="/docs/huggingface_hub/main/en/package_reference/utilities#huggingface_hub.utils.RepositoryNotFoundError"
>RepositoryNotFoundError</a> —
If repository is not found (error 404): wrong repo_id/repo_type, private but not authenticated or repo
does not exist.</li>
<li><a
  href="/docs/huggingface_hub/main/en/package_reference/utilities#huggingface_hub.utils.RevisionNotFoundError"
>RevisionNotFoundError</a> —
If the branch to squash cannot be found.</li>
<li><a
  href="/docs/huggingface_hub/main/en/package_reference/utilities#huggingface_hub.utils.BadRequestError"
>BadRequestError</a> —
If invalid reference for a branch. You cannot squash history on tags.</li>
</ul>
`,raiseType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/huggingface_hub/main/en/package_reference/utilities#huggingface_hub.utils.RepositoryNotFoundError"
>RepositoryNotFoundError</a> or <a
  href="/docs/huggingface_hub/main/en/package_reference/utilities#huggingface_hub.utils.RevisionNotFoundError"
>RevisionNotFoundError</a> or <a
  href="/docs/huggingface_hub/main/en/package_reference/utilities#huggingface_hub.utils.BadRequestError"
>BadRequestError</a></p>
`}}),Ga=new A({props:{warning:!0,$$slots:{default:[KT]},$$scope:{ctx:T}}}),Fa=new A({props:{warning:!0,$$slots:{default:[e0]},$$scope:{ctx:T}}}),Sa=new U({props:{anchor:"huggingface_hub.HfApi.super_squash_history.example",$$slots:{default:[t0]},$$scope:{ctx:T}}}),ri=new H({props:{name:"unlike",anchor:"huggingface_hub.HfApi.unlike",parameters:[{name:"repo_id",val:": str"},{name:"token",val:": Optional[str] = None"},{name:"repo_type",val:": Optional[str] = None"}],parametersDescription:[{anchor:"huggingface_hub.HfApi.unlike.repo_id",description:`<strong>repo_id</strong> (<code>str</code>) &#x2014;
The repository to unlike. Example: <code>&quot;user/my-cool-model&quot;</code>.`,name:"repo_id"},{anchor:"huggingface_hub.HfApi.unlike.token",description:`<strong>token</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Authentication token. Will default to the stored token.`,name:"token"},{anchor:"huggingface_hub.HfApi.unlike.repo_type",description:`<strong>repo_type</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Set to <code>&quot;dataset&quot;</code> or <code>&quot;space&quot;</code> if unliking a dataset or space, <code>None</code> or
<code>&quot;model&quot;</code> if unliking a model. Default is <code>None</code>.`,name:"repo_type"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/hf_api.py#L2048",raiseDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<ul>
<li><a
  href="/docs/huggingface_hub/main/en/package_reference/utilities#huggingface_hub.utils.RepositoryNotFoundError"
>RepositoryNotFoundError</a> —
If repository is not found (error 404): wrong repo_id/repo_type, private
but not authenticated or repo does not exist.</li>
</ul>
`,raiseType:`<script context="module">export const metadata = 'undefined';<\/script>


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


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


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


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


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


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


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


<p><a
  href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.CommitInfo"
>CommitInfo</a> or <code>Future</code></p>
`}}),Ya=new A({props:{$$slots:{default:[l0]},$$scope:{ctx:T}}}),za=new A({props:{warning:!0,$$slots:{default:[p0]},$$scope:{ctx:T}}}),Oa=new A({props:{warning:!0,$$slots:{default:[d0]},$$scope:{ctx:T}}}),Qa=new U({props:{anchor:"huggingface_hub.HfApi.upload_folder.example",$$slots:{default:[g0]},$$scope:{ctx:T}}}),ui=new H({props:{name:"whoami",anchor:"huggingface_hub.HfApi.whoami",parameters:[{name:"token",val:": Optional[str] = None"}],parametersDescription:[{anchor:"huggingface_hub.HfApi.whoami.token",description:`<strong>token</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Hugging Face token. Will default to the locally saved token if
not provided.`,name:"token"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/hf_api.py#L1374"}}),hi=new H({props:{name:"huggingface_hub.plan_multi_commits",anchor:"huggingface_hub.plan_multi_commits",parameters:[{name:"operations",val:": Iterable"},{name:"max_operations_per_commit",val:": int = 50"},{name:"max_upload_size_per_commit",val:": int = 2147483648"}],parametersDescription:[{anchor:"huggingface_hub.plan_multi_commits.operations",description:`<strong>operations</strong> (<code>List</code> of <code>CommitOperation()</code>) &#x2014;
The list of operations to split into commits.`,name:"operations"},{anchor:"huggingface_hub.plan_multi_commits.max_operations_per_commit",description:`<strong>max_operations_per_commit</strong> (<code>int</code>) &#x2014;
Maximum number of operations in a single commit. Defaults to 50.`,name:"max_operations_per_commit"},{anchor:"huggingface_hub.plan_multi_commits.max_upload_size_per_commit",description:`<strong>max_upload_size_per_commit</strong> (<code>int</code>) &#x2014;
Maximum size to upload (in bytes) in a single commit. Defaults to 2GB. Files bigger than this limit are
uploaded, 1 per commit.`,name:"max_upload_size_per_commit"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/_multi_commits.py#L78",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


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


<p><code>Tuple[List[List[CommitOperationAdd]], List[List[CommitOperationDelete]]]</code></p>
`}}),es=new A({props:{warning:!0,$$slots:{default:[u0]},$$scope:{ctx:T}}}),ts=new U({props:{anchor:"huggingface_hub.plan_multi_commits.example",$$slots:{default:[h0]},$$scope:{ctx:T}}}),ns=new A({props:{warning:!0,$$slots:{default:[m0]},$$scope:{ctx:T}}}),mi=new J({props:{title:"API Dataclasses",local:"api-dataclasses",headingTag:"h2"}}),fi=new J({props:{title:"AccessRequest",local:"huggingface_hub.hf_api.AccessRequest",headingTag:"h3"}}),_i=new H({props:{name:"class huggingface_hub.hf_api.AccessRequest",anchor:"huggingface_hub.hf_api.AccessRequest",parameters:[{name:"username",val:": str"},{name:"fullname",val:": str"},{name:"email",val:": str"},{name:"timestamp",val:": datetime"},{name:"status",val:": Literal['pending', 'accepted', 'rejected']"},{name:"fields",val:": Optional[Dict[str, Any]] = None"}],parametersDescription:[{anchor:"huggingface_hub.hf_api.AccessRequest.username",description:`<strong>username</strong> (<code>str</code>) &#x2014;
Username of the user who requested access.`,name:"username"},{anchor:"huggingface_hub.hf_api.AccessRequest.fullname",description:`<strong>fullname</strong> (<code>str</code>) &#x2014;
Fullname of the user who requested access.`,name:"fullname"},{anchor:"huggingface_hub.hf_api.AccessRequest.email",description:`<strong>email</strong> (<code>str</code>) &#x2014;
Email of the user who requested access.`,name:"email"},{anchor:"huggingface_hub.hf_api.AccessRequest.timestamp",description:`<strong>timestamp</strong> (<code>datetime</code>) &#x2014;
Timestamp of the request.`,name:"timestamp"},{anchor:"huggingface_hub.hf_api.AccessRequest.status",description:`<strong>status</strong> (<code>Literal[&quot;pending&quot;, &quot;accepted&quot;, &quot;rejected&quot;]</code>) &#x2014;
Status of the request. Can be one of <code>[&quot;pending&quot;, &quot;accepted&quot;, &quot;rejected&quot;]</code>.`,name:"status"},{anchor:"huggingface_hub.hf_api.AccessRequest.fields",description:`<strong>fields</strong> (<code>Dict[str, Any]</code>, <em>optional</em>) &#x2014;
Additional fields filled by the user in the gate form.`,name:"fields"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/hf_api.py#L363"}}),bi=new J({props:{title:"CommitInfo",local:"huggingface_hub.CommitInfo",headingTag:"h3"}}),yi=new H({props:{name:"class huggingface_hub.CommitInfo",anchor:"huggingface_hub.CommitInfo",parameters:[{name:"*args",val:""},{name:"commit_url",val:": str"},{name:"_url",val:": Optional[str] = None"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"huggingface_hub.CommitInfo.commit_url",description:`<strong>commit_url</strong> (<code>str</code>) &#x2014;
Url where to find the commit.`,name:"commit_url"},{anchor:"huggingface_hub.CommitInfo.commit_message",description:`<strong>commit_message</strong> (<code>str</code>) &#x2014;
The summary (first line) of the commit that has been created.`,name:"commit_message"},{anchor:"huggingface_hub.CommitInfo.commit_description",description:`<strong>commit_description</strong> (<code>str</code>) &#x2014;
Description of the commit that has been created. Can be empty.`,name:"commit_description"},{anchor:"huggingface_hub.CommitInfo.oid",description:`<strong>oid</strong> (<code>str</code>) &#x2014;
Commit hash id. Example: <code>&quot;91c54ad1727ee830252e457677f467be0bfd8a57&quot;</code>.`,name:"oid"},{anchor:"huggingface_hub.CommitInfo.pr_url",description:`<strong>pr_url</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Url to the PR that has been created, if any. Populated when <code>create_pr=True</code>
is passed.`,name:"pr_url"},{anchor:"huggingface_hub.CommitInfo.pr_revision",description:`<strong>pr_revision</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Revision of the PR that has been created, if any. Populated when
<code>create_pr=True</code> is passed. Example: <code>&quot;refs/pr/1&quot;</code>.`,name:"pr_revision"},{anchor:"huggingface_hub.CommitInfo.pr_num",description:`<strong>pr_num</strong> (<code>int</code>, <em>optional</em>) &#x2014;
Number of the PR discussion that has been created, if any. Populated when
<code>create_pr=True</code> is passed. Can be passed as <code>discussion_num</code> in
<a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.HfApi.get_discussion_details">get_discussion_details()</a>. Example: <code>1</code>.`,name:"pr_num"},{anchor:"huggingface_hub.CommitInfo._url",description:`<strong>_url</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Legacy url for <code>str</code> compatibility. Can be the url to the uploaded file on the Hub (if returned by
<a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.HfApi.upload_file">upload_file()</a>), to the uploaded folder on the Hub (if returned by <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.HfApi.upload_folder">upload_folder()</a>) or to the commit on
the Hub (if returned by <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.HfApi.create_commit">create_commit()</a>). Defaults to <code>commit_url</code>. It is deprecated to use this
attribute. Please use <code>commit_url</code> instead.`,name:"_url"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/hf_api.py#L293"}}),xi=new J({props:{title:"DatasetInfo",local:"huggingface_hub.hf_api.DatasetInfo",headingTag:"h3"}}),vi=new H({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.created_at",description:`<strong>created_at</strong> (<code>datetime</code>, <em>optional</em>) &#x2014;
Date of creation of the repo on the Hub. Note that the lowest value is <code>2022-03-02T23:29:04.000Z</code>,
corresponding to the date when we began to store creation dates.`,name:"created_at"},{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>Literal[&quot;auto&quot;, &quot;manual&quot;, False]</code>, <em>optional</em>) &#x2014;
Is the repo gated.
If so, whether there is manual or automatic approval.`,name:"gated"},{anchor:"huggingface_hub.hf_api.DatasetInfo.downloads",description:`<strong>downloads</strong> (<code>int</code>) &#x2014;
Number of downloads of the dataset.`,name:"downloads"},{anchor:"huggingface_hub.hf_api.DatasetInfo.likes",description:`<strong>likes</strong> (<code>int</code>) &#x2014;
Number of likes of the dataset.`,name:"likes"},{anchor:"huggingface_hub.hf_api.DatasetInfo.tags",description:`<strong>tags</strong> (<code>List[str]</code>) &#x2014;
List of tags of the dataset.`,name:"tags"},{anchor:"huggingface_hub.hf_api.DatasetInfo.card_data",description:`<strong>card_data</strong> (<code>DatasetCardData</code>, <em>optional</em>) &#x2014;
Model Card Metadata  as a <a href="/docs/huggingface_hub/main/en/package_reference/cards#huggingface_hub.DatasetCardData">huggingface_hub.repocard_data.DatasetCardData</a> object.`,name:"card_data"},{anchor:"huggingface_hub.hf_api.DatasetInfo.siblings",description:`<strong>siblings</strong> (<code>List[RepoSibling]</code>) &#x2014;
List of <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.hf_api.RepoSibling">huggingface_hub.hf_api.RepoSibling</a> objects that constitute the dataset.`,name:"siblings"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/hf_api.py#L726"}}),os=new A({props:{$$slots:{default:[f0]},$$scope:{ctx:T}}}),$i=new J({props:{title:"GitRefInfo",local:"huggingface_hub.GitRefInfo",headingTag:"h3"}}),wi=new H({props:{name:"class huggingface_hub.GitRefInfo",anchor:"huggingface_hub.GitRefInfo",parameters:[{name:"name",val:": str"},{name:"ref",val:": str"},{name:"target_commit",val:": str"}],parametersDescription:[{anchor:"huggingface_hub.GitRefInfo.name",description:`<strong>name</strong> (<code>str</code>) &#x2014;
Name of the reference (e.g. tag name or branch name).`,name:"name"},{anchor:"huggingface_hub.GitRefInfo.ref",description:`<strong>ref</strong> (<code>str</code>) &#x2014;
Full git ref on the Hub (e.g. <code>&quot;refs/heads/main&quot;</code> or <code>&quot;refs/tags/v1.0&quot;</code>).`,name:"ref"},{anchor:"huggingface_hub.GitRefInfo.target_commit",description:`<strong>target_commit</strong> (<code>str</code>) &#x2014;
OID of the target commit for the ref (e.g. <code>&quot;e7da7f221d5bf496a48136c0cd264e630fe9fcc8&quot;</code>)`,name:"target_commit"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/hf_api.py#L1084"}}),Mi=new J({props:{title:"GitCommitInfo",local:"huggingface_hub.GitCommitInfo",headingTag:"h3"}}),Ti=new H({props:{name:"class huggingface_hub.GitCommitInfo",anchor:"huggingface_hub.GitCommitInfo",parameters:[{name:"commit_id",val:": str"},{name:"authors",val:": List[str]"},{name:"created_at",val:": datetime"},{name:"title",val:": str"},{name:"message",val:": str"},{name:"formatted_title",val:": Optional[str]"},{name:"formatted_message",val:": Optional[str]"}],parametersDescription:[{anchor:"huggingface_hub.GitCommitInfo.commit_id",description:`<strong>commit_id</strong> (<code>str</code>) &#x2014;
OID of the commit (e.g. <code>&quot;e7da7f221d5bf496a48136c0cd264e630fe9fcc8&quot;</code>)`,name:"commit_id"},{anchor:"huggingface_hub.GitCommitInfo.authors",description:`<strong>authors</strong> (<code>List[str]</code>) &#x2014;
List of authors of the commit.`,name:"authors"},{anchor:"huggingface_hub.GitCommitInfo.created_at",description:`<strong>created_at</strong> (<code>datetime</code>) &#x2014;
Datetime when the commit was created.`,name:"created_at"},{anchor:"huggingface_hub.GitCommitInfo.title",description:`<strong>title</strong> (<code>str</code>) &#x2014;
Title of the commit. This is a free-text value entered by the authors.`,name:"title"},{anchor:"huggingface_hub.GitCommitInfo.message",description:`<strong>message</strong> (<code>str</code>) &#x2014;
Description of the commit. This is a free-text value entered by the authors.`,name:"message"},{anchor:"huggingface_hub.GitCommitInfo.formatted_title",description:`<strong>formatted_title</strong> (<code>str</code>) &#x2014;
Title of the commit formatted as HTML. Only returned if <code>formatted=True</code> is set.`,name:"formatted_title"},{anchor:"huggingface_hub.GitCommitInfo.formatted_message",description:`<strong>formatted_message</strong> (<code>str</code>) &#x2014;
Description of the commit formatted as HTML. Only returned if <code>formatted=True</code> is set.`,name:"formatted_message"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/hf_api.py#L1129"}}),ki=new J({props:{title:"GitRefs",local:"huggingface_hub.GitRefs",headingTag:"h3"}}),ji=new H({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]"},{name:"pull_requests",val:": Optional[List[GitRefInfo]] = None"}],parametersDescription:[{anchor:"huggingface_hub.GitRefs.branches",description:`<strong>branches</strong> (<code>List[GitRefInfo]</code>) &#x2014;
A list of <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.GitRefInfo">GitRefInfo</a> containing information about branches on the repo.`,name:"branches"},{anchor:"huggingface_hub.GitRefs.converts",description:`<strong>converts</strong> (<code>List[GitRefInfo]</code>) &#x2014;
A list of <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.GitRefInfo">GitRefInfo</a> containing information about &#x201C;convert&#x201D; refs on the repo.
Converts are refs used (internally) to push preprocessed data in Dataset repos.`,name:"converts"},{anchor:"huggingface_hub.GitRefs.tags",description:`<strong>tags</strong> (<code>List[GitRefInfo]</code>) &#x2014;
A list of <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.GitRefInfo">GitRefInfo</a> containing information about tags on the repo.`,name:"tags"},{anchor:"huggingface_hub.GitRefs.pull_requests",description:`<strong>pull_requests</strong> (<code>List[GitRefInfo]</code>, <em>optional</em>) &#x2014;
A list of <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.GitRefInfo">GitRefInfo</a> containing information about pull requests on the repo.
Only returned if <code>include_prs=True</code> is set.`,name:"pull_requests"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/hf_api.py#L1103"}}),Hi=new J({props:{title:"ModelInfo",local:"huggingface_hub.hf_api.ModelInfo",headingTag:"h3"}}),Ci=new H({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 model.`,name:"id"},{anchor:"huggingface_hub.hf_api.ModelInfo.author",description:`<strong>author</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Author of the model.`,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.created_at",description:`<strong>created_at</strong> (<code>datetime</code>, <em>optional</em>) &#x2014;
Date of creation of the repo on the Hub. Note that the lowest value is <code>2022-03-02T23:29:04.000Z</code>,
corresponding to the date when we began to store creation dates.`,name:"created_at"},{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>Literal[&quot;auto&quot;, &quot;manual&quot;, False]</code>, <em>optional</em>) &#x2014;
Is the repo gated.
If so, whether there is manual or automatic approval.`,name:"gated"},{anchor:"huggingface_hub.hf_api.ModelInfo.downloads",description:`<strong>downloads</strong> (<code>int</code>) &#x2014;
Number of downloads of the model.`,name:"downloads"},{anchor:"huggingface_hub.hf_api.ModelInfo.likes",description:`<strong>likes</strong> (<code>int</code>) &#x2014;
Number of likes of the model.`,name:"likes"},{anchor:"huggingface_hub.hf_api.ModelInfo.library_name",description:`<strong>library_name</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Library associated with the model.`,name:"library_name"},{anchor:"huggingface_hub.hf_api.ModelInfo.tags",description:`<strong>tags</strong> (<code>List[str]</code>) &#x2014;
List of tags of the model. Compared to <code>card_data.tags</code>, contains extra tags computed by the Hub
(e.g. supported libraries, model&#x2019;s arXiv).`,name:"tags"},{anchor:"huggingface_hub.hf_api.ModelInfo.pipeline_tag",description:`<strong>pipeline_tag</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Pipeline tag associated with the model.`,name:"pipeline_tag"},{anchor:"huggingface_hub.hf_api.ModelInfo.mask_token",description:`<strong>mask_token</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Mask token used by the model.`,name:"mask_token"},{anchor:"huggingface_hub.hf_api.ModelInfo.widget_data",description:`<strong>widget_data</strong> (<code>Any</code>, <em>optional</em>) &#x2014;
Widget data associated with the model.`,name:"widget_data"},{anchor:"huggingface_hub.hf_api.ModelInfo.model_index",description:`<strong>model_index</strong> (<code>Dict</code>, <em>optional</em>) &#x2014;
Model index for evaluation.`,name:"model_index"},{anchor:"huggingface_hub.hf_api.ModelInfo.config",description:`<strong>config</strong> (<code>Dict</code>, <em>optional</em>) &#x2014;
Model configuration.`,name:"config"},{anchor:"huggingface_hub.hf_api.ModelInfo.transformers_info",description:`<strong>transformers_info</strong> (<code>TransformersInfo</code>, <em>optional</em>) &#x2014;
Transformers-specific info (auto class, processor, etc.) associated with the model.`,name:"transformers_info"},{anchor:"huggingface_hub.hf_api.ModelInfo.card_data",description:`<strong>card_data</strong> (<code>ModelCardData</code>, <em>optional</em>) &#x2014;
Model Card Metadata  as a <a href="/docs/huggingface_hub/main/en/package_reference/cards#huggingface_hub.ModelCardData">huggingface_hub.repocard_data.ModelCardData</a> object.`,name:"card_data"},{anchor:"huggingface_hub.hf_api.ModelInfo.siblings",description:`<strong>siblings</strong> (<code>List[RepoSibling]</code>) &#x2014;
List of <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.hf_api.RepoSibling">huggingface_hub.hf_api.RepoSibling</a> objects that constitute the model.`,name:"siblings"},{anchor:"huggingface_hub.hf_api.ModelInfo.spaces",description:`<strong>spaces</strong> (<code>List[str]</code>, <em>optional</em>) &#x2014;
List of spaces using the model.`,name:"spaces"},{anchor:"huggingface_hub.hf_api.ModelInfo.safetensors",description:`<strong>safetensors</strong> (<code>SafeTensorsInfo</code>, <em>optional</em>) &#x2014;
Model&#x2019;s safetensors information.`,name:"safetensors"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/hf_api.py#L573"}}),as=new A({props:{$$slots:{default:[_0]},$$scope:{ctx:T}}}),Ii=new J({props:{title:"RepoSibling",local:"huggingface_hub.hf_api.RepoSibling",headingTag:"h3"}}),Ui=new H({props:{name:"class huggingface_hub.hf_api.RepoSibling",anchor:"huggingface_hub.hf_api.RepoSibling",parameters:[{name:"rfilename",val:": str"},{name:"size",val:": Optional[int] = None"},{name:"blob_id",val:": Optional[str] = None"},{name:"lfs",val:": Optional[BlobLfsInfo] = None"}],parametersDescription:[{anchor:"huggingface_hub.hf_api.RepoSibling.rfilename",description:`<strong>rfilename</strong> (str) &#x2014;
file name, relative to the repo root.`,name:"rfilename"},{anchor:"huggingface_hub.hf_api.RepoSibling.size",description:`<strong>size</strong> (<code>int</code>, <em>optional</em>) &#x2014;
The file&#x2019;s size, in bytes. This attribute is defined when <code>files_metadata</code> argument of <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.HfApi.repo_info">repo_info()</a> is set
to <code>True</code>. It&#x2019;s <code>None</code> otherwise.`,name:"size"},{anchor:"huggingface_hub.hf_api.RepoSibling.blob_id",description:`<strong>blob_id</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The file&#x2019;s git OID. This attribute is defined when <code>files_metadata</code> argument of <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.HfApi.repo_info">repo_info()</a> is set to
<code>True</code>. It&#x2019;s <code>None</code> otherwise.`,name:"blob_id"},{anchor:"huggingface_hub.hf_api.RepoSibling.lfs",description:`<strong>lfs</strong> (<code>BlobLfsInfo</code>, <em>optional</em>) &#x2014;
The file&#x2019;s LFS metadata. This attribute is defined when<code>files_metadata</code> argument of <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.HfApi.repo_info">repo_info()</a> is set to
<code>True</code> and the file is stored with Git LFS. It&#x2019;s <code>None</code> otherwise.`,name:"lfs"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/hf_api.py#L453"}}),ss=new A({props:{$$slots:{default:[b0]},$$scope:{ctx:T}}}),Ai=new J({props:{title:"RepoFile",local:"huggingface_hub.hf_api.RepoFile",headingTag:"h3"}}),qi=new H({props:{name:"class huggingface_hub.hf_api.RepoFile",anchor:"huggingface_hub.hf_api.RepoFile",parameters:[{name:"**kwargs",val:""}],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>LastCommitInfo</code>, <em>optional</em>) &#x2014;
The file&#x2019;s last commit metadata. Only defined if <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.HfApi.list_repo_tree">list_repo_tree()</a> and <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.HfApi.get_paths_info">get_paths_info()</a>
are called with <code>expand=True</code>.`,name:"last_commit"},{anchor:"huggingface_hub.hf_api.RepoFile.security",description:`<strong>security</strong> (<code>BlobSecurityInfo</code>, <em>optional</em>) &#x2014;
The file&#x2019;s security scan metadata. Only defined if <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.HfApi.list_repo_tree">list_repo_tree()</a> and <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.HfApi.get_paths_info">get_paths_info()</a>
are called with <code>expand=True</code>.`,name:"security"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/hf_api.py#L488"}}),Ji=new J({props:{title:"RepoUrl",local:"huggingface_hub.RepoUrl",headingTag:"h3"}}),Ni=new H({props:{name:"class huggingface_hub.RepoUrl",anchor:"huggingface_hub.RepoUrl",parameters:[{name:"url",val:": Any"},{name:"endpoint",val:": Optional[str] = None"}],parametersDescription:[{anchor:"huggingface_hub.RepoUrl.url",description:`<strong>url</strong> (<code>Any</code>) &#x2014;
String value of the repo url.`,name:"url"},{anchor:"huggingface_hub.RepoUrl.endpoint",description:`<strong>endpoint</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Endpoint of the Hub. Defaults to <a href="https://huggingface.co" rel="nofollow">https://huggingface.co</a>.`,name:"endpoint"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/hf_api.py#L392",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>
`}}),rs=new U({props:{anchor:"huggingface_hub.RepoUrl.example",$$slots:{default:[y0]},$$scope:{ctx:T}}}),Ei=new J({props:{title:"SafetensorsRepoMetadata",local:"huggingface_hub.utils.SafetensorsRepoMetadata",headingTag:"h3"}}),Ri=new H({props:{name:"class huggingface_hub.utils.SafetensorsRepoMetadata",anchor:"huggingface_hub.utils.SafetensorsRepoMetadata",parameters:[{name:"metadata",val:": Optional"},{name:"sharded",val:": bool"},{name:"weight_map",val:": Dict"},{name:"files_metadata",val:": Dict"}],parametersDescription:[{anchor:"huggingface_hub.utils.SafetensorsRepoMetadata.metadata",description:`<strong>metadata</strong> (<code>Dict</code>, <em>optional</em>) &#x2014;
The metadata contained in the &#x2018;model.safetensors.index.json&#x2019; file, if it exists. Only populated for sharded
models.`,name:"metadata"},{anchor:"huggingface_hub.utils.SafetensorsRepoMetadata.sharded",description:`<strong>sharded</strong> (<code>bool</code>) &#x2014;
Whether the repo contains a sharded model or not.`,name:"sharded"},{anchor:"huggingface_hub.utils.SafetensorsRepoMetadata.weight_map",description:`<strong>weight_map</strong> (<code>Dict[str, str]</code>) &#x2014;
A map of all weights. Keys are tensor names and values are filenames of the files containing the tensors.`,name:"weight_map"},{anchor:"huggingface_hub.utils.SafetensorsRepoMetadata.files_metadata",description:`<strong>files_metadata</strong> (<code>Dict[str, SafetensorsFileMetadata]</code>) &#x2014;
A map of all files metadata. Keys are filenames and values are the metadata of the corresponding file, as
a <code>SafetensorsFileMetadata</code> object.`,name:"files_metadata"},{anchor:"huggingface_hub.utils.SafetensorsRepoMetadata.parameter_count",description:`<strong>parameter_count</strong> (<code>Dict[str, int]</code>) &#x2014;
A map of the number of parameters per data type. Keys are data types and values are the number of parameters
of that data type.`,name:"parameter_count"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/utils/_safetensors.py#L73"}}),Di=new J({props:{title:"SafetensorsFileMetadata",local:"huggingface_hub.utils.SafetensorsFileMetadata",headingTag:"h3"}}),Gi=new H({props:{name:"class huggingface_hub.utils.SafetensorsFileMetadata",anchor:"huggingface_hub.utils.SafetensorsFileMetadata",parameters:[{name:"metadata",val:": Dict"},{name:"tensors",val:": Dict"}],parametersDescription:[{anchor:"huggingface_hub.utils.SafetensorsFileMetadata.metadata",description:`<strong>metadata</strong> (<code>Dict</code>) &#x2014;
The metadata contained in the file.`,name:"metadata"},{anchor:"huggingface_hub.utils.SafetensorsFileMetadata.tensors",description:`<strong>tensors</strong> (<code>Dict[str, TensorInfo]</code>) &#x2014;
A map of all tensors. Keys are tensor names and values are information about the corresponding tensor, as a
<code>TensorInfo</code> object.`,name:"tensors"},{anchor:"huggingface_hub.utils.SafetensorsFileMetadata.parameter_count",description:`<strong>parameter_count</strong> (<code>Dict[str, int]</code>) &#x2014;
A map of the number of parameters per data type. Keys are data types and values are the number of parameters
of that data type.`,name:"parameter_count"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/utils/_safetensors.py#L43"}}),Fi=new J({props:{title:"SpaceInfo",local:"huggingface_hub.hf_api.SpaceInfo",headingTag:"h3"}}),Si=new H({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.created_at",description:`<strong>created_at</strong> (<code>datetime</code>, <em>optional</em>) &#x2014;
Date of creation of the repo on the Hub. Note that the lowest value is <code>2022-03-02T23:29:04.000Z</code>,
corresponding to the date when we began to store creation dates.`,name:"created_at"},{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>Literal[&quot;auto&quot;, &quot;manual&quot;, False]</code>, <em>optional</em>) &#x2014;
Is the repo gated.
If so, whether there is manual or automatic approval.`,name:"gated"},{anchor:"huggingface_hub.hf_api.SpaceInfo.disabled",description:`<strong>disabled</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Is the Space disabled.`,name:"disabled"},{anchor:"huggingface_hub.hf_api.SpaceInfo.host",description:`<strong>host</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Host URL of the Space.`,name:"host"},{anchor:"huggingface_hub.hf_api.SpaceInfo.subdomain",description:`<strong>subdomain</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Subdomain of the Space.`,name:"subdomain"},{anchor:"huggingface_hub.hf_api.SpaceInfo.likes",description:`<strong>likes</strong> (<code>int</code>) &#x2014;
Number of likes of the Space.`,name:"likes"},{anchor:"huggingface_hub.hf_api.SpaceInfo.tags",description:`<strong>tags</strong> (<code>List[str]</code>) &#x2014;
List of tags of the Space.`,name:"tags"},{anchor:"huggingface_hub.hf_api.SpaceInfo.siblings",description:`<strong>siblings</strong> (<code>List[RepoSibling]</code>) &#x2014;
List of <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.hf_api.RepoSibling">huggingface_hub.hf_api.RepoSibling</a> objects that constitute the Space.`,name:"siblings"},{anchor:"huggingface_hub.hf_api.SpaceInfo.card_data",description:`<strong>card_data</strong> (<code>SpaceCardData</code>, <em>optional</em>) &#x2014;
Space Card Metadata  as a <a href="/docs/huggingface_hub/main/en/package_reference/cards#huggingface_hub.SpaceCardData">huggingface_hub.repocard_data.SpaceCardData</a> object.`,name:"card_data"},{anchor:"huggingface_hub.hf_api.SpaceInfo.runtime",description:`<strong>runtime</strong> (<code>SpaceRuntime</code>, <em>optional</em>) &#x2014;
Space runtime information as a <a href="/docs/huggingface_hub/main/en/package_reference/space_runtime#huggingface_hub.SpaceRuntime">huggingface_hub.hf_api.SpaceRuntime</a> object.`,name:"runtime"},{anchor:"huggingface_hub.hf_api.SpaceInfo.sdk",description:`<strong>sdk</strong> (<code>str</code>, <em>optional</em>) &#x2014;
SDK used by the Space.`,name:"sdk"},{anchor:"huggingface_hub.hf_api.SpaceInfo.models",description:`<strong>models</strong> (<code>List[str]</code>, <em>optional</em>) &#x2014;
List of models used by the Space.`,name:"models"},{anchor:"huggingface_hub.hf_api.SpaceInfo.datasets",description:`<strong>datasets</strong> (<code>List[str]</code>, <em>optional</em>) &#x2014;
List of datasets used by the Space.`,name:"datasets"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/hf_api.py#L833"}}),is=new A({props:{$$slots:{default:[x0]},$$scope:{ctx:T}}}),Li=new J({props:{title:"TensorInfo",local:"huggingface_hub.utils.TensorInfo",headingTag:"h3"}}),Zi=new H({props:{name:"class huggingface_hub.utils.TensorInfo",anchor:"huggingface_hub.utils.TensorInfo",parameters:[{name:"dtype",val:": Literal"},{name:"shape",val:": List"},{name:"data_offsets",val:": Tuple"}],parametersDescription:[{anchor:"huggingface_hub.utils.TensorInfo.dtype",description:`<strong>dtype</strong> (<code>str</code>) &#x2014;
The data type of the tensor (&#x201C;F64&#x201D;, &#x201C;F32&#x201D;, &#x201C;F16&#x201D;, &#x201C;BF16&#x201D;, &#x201C;I64&#x201D;, &#x201C;I32&#x201D;, &#x201C;I16&#x201D;, &#x201C;I8&#x201D;, &#x201C;U8&#x201D;, &#x201C;BOOL&#x201D;).`,name:"dtype"},{anchor:"huggingface_hub.utils.TensorInfo.shape",description:`<strong>shape</strong> (<code>List[int]</code>) &#x2014;
The shape of the tensor.`,name:"shape"},{anchor:"huggingface_hub.utils.TensorInfo.data_offsets",description:`<strong>data_offsets</strong> (<code>Tuple[int, int]</code>) &#x2014;
The offsets of the data in the file as a tuple <code>[BEGIN, END]</code>.`,name:"data_offsets"},{anchor:"huggingface_hub.utils.TensorInfo.parameter_count",description:`<strong>parameter_count</strong> (<code>int</code>) &#x2014;
The number of parameters in the tensor.`,name:"parameter_count"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/utils/_safetensors.py#L13"}}),Bi=new J({props:{title:"User",local:"huggingface_hub.User",headingTag:"h3"}}),Wi=new H({props:{name:"class huggingface_hub.User",anchor:"huggingface_hub.User",parameters:[{name:"**kwargs",val:""}],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"},{anchor:"huggingface_hub.User.is_pro",description:`<strong>is_pro</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether the user is a pro user.`,name:"is_pro"},{anchor:"huggingface_hub.User.num_models",description:`<strong>num_models</strong> (<code>int</code>, <em>optional</em>) &#x2014;
Number of models created by the user.`,name:"num_models"},{anchor:"huggingface_hub.User.num_datasets",description:`<strong>num_datasets</strong> (<code>int</code>, <em>optional</em>) &#x2014;
Number of datasets created by the user.`,name:"num_datasets"},{anchor:"huggingface_hub.User.num_spaces",description:`<strong>num_spaces</strong> (<code>int</code>, <em>optional</em>) &#x2014;
Number of spaces created by the user.`,name:"num_spaces"},{anchor:"huggingface_hub.User.num_discussions",description:`<strong>num_discussions</strong> (<code>int</code>, <em>optional</em>) &#x2014;
Number of discussions initiated by the user.`,name:"num_discussions"},{anchor:"huggingface_hub.User.num_papers",description:`<strong>num_papers</strong> (<code>int</code>, <em>optional</em>) &#x2014;
Number of papers authored by the user.`,name:"num_papers"},{anchor:"huggingface_hub.User.num_upvotes",description:`<strong>num_upvotes</strong> (<code>int</code>, <em>optional</em>) &#x2014;
Number of upvotes received by the user.`,name:"num_upvotes"},{anchor:"huggingface_hub.User.num_likes",description:`<strong>num_likes</strong> (<code>int</code>, <em>optional</em>) &#x2014;
Number of likes given by the user.`,name:"num_likes"},{anchor:"huggingface_hub.User.is_following",description:`<strong>is_following</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether the authenticated user is following this user.`,name:"is_following"},{anchor:"huggingface_hub.User.details",description:`<strong>details</strong> (<code>str</code>, <em>optional</em>) &#x2014;
User&#x2019;s details.`,name:"details"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/hf_api.py#L1190"}}),Vi=new J({props:{title:"UserLikes",local:"huggingface_hub.UserLikes",headingTag:"h3"}}),Pi=new H({props:{name:"class huggingface_hub.UserLikes",anchor:"huggingface_hub.UserLikes",parameters:[{name:"user",val:": str"},{name:"total",val:": int"},{name:"datasets",val:": List[str]"},{name:"models",val:": List[str]"},{name:"spaces",val:": List[str]"}],parametersDescription:[{anchor:"huggingface_hub.UserLikes.user",description:`<strong>user</strong> (<code>str</code>) &#x2014;
Name of the user for which we fetched the likes.`,name:"user"},{anchor:"huggingface_hub.UserLikes.total",description:`<strong>total</strong> (<code>int</code>) &#x2014;
Total number of likes.`,name:"total"},{anchor:"huggingface_hub.UserLikes.datasets",description:`<strong>datasets</strong> (<code>List[str]</code>) &#x2014;
List of datasets liked by the user (as repo_ids).`,name:"datasets"},{anchor:"huggingface_hub.UserLikes.models",description:`<strong>models</strong> (<code>List[str]</code>) &#x2014;
List of models liked by the user (as repo_ids).`,name:"models"},{anchor:"huggingface_hub.UserLikes.spaces",description:`<strong>spaces</strong> (<code>List[str]</code>) &#x2014;
List of spaces liked by the user (as repo_ids).`,name:"spaces"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/hf_api.py#L1162"}}),Xi=new J({props:{title:"CommitOperation",local:"huggingface_hub.CommitOperationAdd",headingTag:"h2"}}),zi=new H({props:{name:"class huggingface_hub.CommitOperationAdd",anchor:"huggingface_hub.CommitOperationAdd",parameters:[{name:"path_in_repo",val:": str"},{name:"path_or_fileobj",val:": Union"}],parametersDescription:[{anchor:"huggingface_hub.CommitOperationAdd.path_in_repo",description:`<strong>path_in_repo</strong> (<code>str</code>) &#x2014;
Relative filepath in the repo, for example: <code>&quot;checkpoints/1fec34a/weights.bin&quot;</code>`,name:"path_in_repo"},{anchor:"huggingface_hub.CommitOperationAdd.path_or_fileobj",description:`<strong>path_or_fileobj</strong> (<code>str</code>, <code>Path</code>, <code>bytes</code>, or <code>BinaryIO</code>) &#x2014;
Either:<ul>
<li>a path to a local file (as <code>str</code> or <code>pathlib.Path</code>) to upload</li>
<li>a buffer of bytes (<code>bytes</code>) holding the content of the file to upload</li>
<li>a &#x201C;file object&#x201D; (subclass of <code>io.BufferedIOBase</code>), typically obtained
with <code>open(path, &quot;rb&quot;)</code>. It must support <code>seek()</code> and <code>tell()</code> methods.</li>
</ul>`,name:"path_or_fileobj"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/_commit_api.py#L110",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>
`}}),Oi=new H({props:{name:"as_file",anchor:"huggingface_hub.CommitOperationAdd.as_file",parameters:[{name:"with_tqdm",val:": bool = False"}],parametersDescription:[{anchor:"huggingface_hub.CommitOperationAdd.as_file.with_tqdm",description:`<strong>with_tqdm</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
If True, iterating over the file object will display a progress bar. Only
works if the file-like object is a path to a file. Pure bytes and buffers
are not supported.`,name:"with_tqdm"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/_commit_api.py#L189"}}),cs=new U({props:{anchor:"huggingface_hub.CommitOperationAdd.as_file.example",$$slots:{default:[v0]},$$scope:{ctx:T}}}),Qi=new H({props:{name:"b64content",anchor:"huggingface_hub.CommitOperationAdd.b64content",parameters:[],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/_commit_api.py#L239"}}),Ki=new H({props:{name:"class huggingface_hub.CommitOperationDelete",anchor:"huggingface_hub.CommitOperationDelete",parameters:[{name:"path_in_repo",val:": str"},{name:"is_folder",val:": Union = 'auto'"}],parametersDescription:[{anchor:"huggingface_hub.CommitOperationDelete.path_in_repo",description:`<strong>path_in_repo</strong> (<code>str</code>) &#x2014;
Relative filepath in the repo, for example: <code>&quot;checkpoints/1fec34a/weights.bin&quot;</code>
for a file or <code>&quot;checkpoints/1fec34a/&quot;</code> for a folder.`,name:"path_in_repo"},{anchor:"huggingface_hub.CommitOperationDelete.is_folder",description:`<strong>is_folder</strong> (<code>bool</code> or <code>Literal[&quot;auto&quot;]</code>, <em>optional</em>) &#x2014;
Whether the Delete Operation applies to a folder or not. If &#x201C;auto&#x201D;, the path
type (file or folder) is guessed automatically by looking if path ends with
a &#x201D;/&#x201D; (folder) or not (file). To explicitly set the path type, you can set
<code>is_folder=True</code> or <code>is_folder=False</code>.`,name:"is_folder"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/_commit_api.py#L49"}}),ec=new H({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:": Optional = None"}],parametersDescription:[{anchor:"huggingface_hub.CommitOperationCopy.src_path_in_repo",description:`<strong>src_path_in_repo</strong> (<code>str</code>) &#x2014;
Relative filepath in the repo of the file to be copied, e.g. <code>&quot;checkpoints/1fec34a/weights.bin&quot;</code>.`,name:"src_path_in_repo"},{anchor:"huggingface_hub.CommitOperationCopy.path_in_repo",description:`<strong>path_in_repo</strong> (<code>str</code>) &#x2014;
Relative filepath in the repo where to copy the file, e.g. <code>&quot;checkpoints/1fec34a/weights_copy.bin&quot;</code>.`,name:"path_in_repo"},{anchor:"huggingface_hub.CommitOperationCopy.src_revision",description:`<strong>src_revision</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The git revision of the file to be copied. Can be any valid git revision.
Default to the target commit revision.`,name:"src_revision"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/_commit_api.py#L80"}}),tc=new J({props:{title:"CommitScheduler",local:"huggingface_hub.CommitScheduler",headingTag:"h2"}}),nc=new H({props:{name:"class huggingface_hub.CommitScheduler",anchor:"huggingface_hub.CommitScheduler",parameters:[{name:"repo_id",val:": str"},{name:"folder_path",val:": Union"},{name:"every",val:": Union = 5"},{name:"path_in_repo",val:": Optional = None"},{name:"repo_type",val:": Optional = None"},{name:"revision",val:": Optional = None"},{name:"private",val:": bool = False"},{name:"token",val:": Optional = None"},{name:"allow_patterns",val:": Union = None"},{name:"ignore_patterns",val:": Union = None"},{name:"squash_history",val:": bool = False"},{name:"hf_api",val:": Optional = None"}],parametersDescription:[{anchor:"huggingface_hub.CommitScheduler.repo_id",description:`<strong>repo_id</strong> (<code>str</code>) &#x2014;
The id of the repo to commit to.`,name:"repo_id"},{anchor:"huggingface_hub.CommitScheduler.folder_path",description:`<strong>folder_path</strong> (<code>str</code> or <code>Path</code>) &#x2014;
Path to the local folder to upload regularly.`,name:"folder_path"},{anchor:"huggingface_hub.CommitScheduler.every",description:`<strong>every</strong> (<code>int</code> or <code>float</code>, <em>optional</em>) &#x2014;
The number of minutes between each commit. Defaults to 5 minutes.`,name:"every"},{anchor:"huggingface_hub.CommitScheduler.path_in_repo",description:`<strong>path_in_repo</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Relative path of the directory in the repo, for example: <code>&quot;checkpoints/&quot;</code>. Defaults to the root folder
of the repository.`,name:"path_in_repo"},{anchor:"huggingface_hub.CommitScheduler.repo_type",description:`<strong>repo_type</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The type of the repo to commit to. Defaults to <code>model</code>.`,name:"repo_type"},{anchor:"huggingface_hub.CommitScheduler.revision",description:`<strong>revision</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The revision of the repo to commit to. Defaults to <code>main</code>.`,name:"revision"},{anchor:"huggingface_hub.CommitScheduler.private",description:`<strong>private</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether to make the repo private. Defaults to <code>False</code>. This value is ignored if the repo already exist.`,name:"private"},{anchor:"huggingface_hub.CommitScheduler.token",description:`<strong>token</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The token to use to commit to the repo. Defaults to the token saved on the machine.`,name:"token"},{anchor:"huggingface_hub.CommitScheduler.allow_patterns",description:`<strong>allow_patterns</strong> (<code>List[str]</code> or <code>str</code>, <em>optional</em>) &#x2014;
If provided, only files matching at least one pattern are uploaded.`,name:"allow_patterns"},{anchor:"huggingface_hub.CommitScheduler.ignore_patterns",description:`<strong>ignore_patterns</strong> (<code>List[str]</code> or <code>str</code>, <em>optional</em>) &#x2014;
If provided, files matching any of the patterns are not uploaded.`,name:"ignore_patterns"},{anchor:"huggingface_hub.CommitScheduler.squash_history",description:`<strong>squash_history</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether to squash the history of the repo after each commit. Defaults to <code>False</code>. Squashing commits is
useful to avoid degraded performances on the repo when it grows too large.`,name:"squash_history"},{anchor:"huggingface_hub.CommitScheduler.hf_api",description:`<strong>hf_api</strong> (<code>HfApi</code>, <em>optional</em>) &#x2014;
The <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.HfApi">HfApi</a> client to use to commit to the Hub. Can be set with custom settings (user agent, token,&#x2026;).`,name:"hf_api"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/_commit_scheduler.py#L29"}}),ls=new U({props:{anchor:"huggingface_hub.CommitScheduler.example",$$slots:{default:[$0]},$$scope:{ctx:T}}}),oc=new H({props:{name:"push_to_hub",anchor:"huggingface_hub.CommitScheduler.push_to_hub",parameters:[],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/_commit_scheduler.py#L178"}}),ps=new A({props:{warning:!0,$$slots:{default:[w0]},$$scope:{ctx:T}}}),ac=new H({props:{name:"stop",anchor:"huggingface_hub.CommitScheduler.stop",parameters:[],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/_commit_scheduler.py#L140"}}),sc=new H({props:{name:"trigger",anchor:"huggingface_hub.CommitScheduler.trigger",parameters:[],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/_commit_scheduler.py#L155"}}),rc=new J({props:{title:"Search helpers",local:"search-helpers",headingTag:"h2"}}),cc=new J({props:{title:"DatasetFilter",local:"huggingface_hub.DatasetFilter",headingTag:"h3"}}),lc=new H({props:{name:"class huggingface_hub.DatasetFilter",anchor:"huggingface_hub.DatasetFilter",parameters:[{name:"author",val:": Optional = None"},{name:"benchmark",val:": Union = None"},{name:"dataset_name",val:": Optional = None"},{name:"language_creators",val:": Union = None"},{name:"language",val:": Union = None"},{name:"multilinguality",val:": Union = None"},{name:"size_categories",val:": Union = None"},{name:"task_categories",val:": Union = None"},{name:"task_ids",val:": Union = None"}],parametersDescription:[{anchor:"huggingface_hub.DatasetFilter.author",description:`<strong>author</strong> (<code>str</code>, <em>optional</em>) &#x2014;
A string that can be used to identify datasets on
the Hub by the original uploader (author or organization), such as
<code>facebook</code> or <code>huggingface</code>.`,name:"author"},{anchor:"huggingface_hub.DatasetFilter.benchmark",description:`<strong>benchmark</strong> (<code>str</code> or <code>List</code>, <em>optional</em>) &#x2014;
A string or list of strings that can be used to identify datasets on
the Hub by their official benchmark.`,name:"benchmark"},{anchor:"huggingface_hub.DatasetFilter.dataset_name",description:`<strong>dataset_name</strong> (<code>str</code>, <em>optional</em>) &#x2014;
A string or list of strings that can be used to identify datasets on
the Hub by its name, such as <code>SQAC</code> or <code>wikineural</code>`,name:"dataset_name"},{anchor:"huggingface_hub.DatasetFilter.language_creators",description:`<strong>language_creators</strong> (<code>str</code> or <code>List</code>, <em>optional</em>) &#x2014;
A string or list of strings that can be used to identify datasets on
the Hub with how the data was curated, such as <code>crowdsourced</code> or
<code>machine_generated</code>.`,name:"language_creators"},{anchor:"huggingface_hub.DatasetFilter.language",description:`<strong>language</strong> (<code>str</code> or <code>List</code>, <em>optional</em>) &#x2014;
A string or list of strings representing a two-character language to
filter datasets by on the Hub.`,name:"language"},{anchor:"huggingface_hub.DatasetFilter.multilinguality",description:`<strong>multilinguality</strong> (<code>str</code> or <code>List</code>, <em>optional</em>) &#x2014;
A string or list of strings representing a filter for datasets that
contain multiple languages.`,name:"multilinguality"},{anchor:"huggingface_hub.DatasetFilter.size_categories",description:`<strong>size_categories</strong> (<code>str</code> or <code>List</code>, <em>optional</em>) &#x2014;
A string or list of strings that can be used to identify datasets on
the Hub by the size of the dataset such as <code>100K&lt;n&lt;1M</code> or
<code>1M&lt;n&lt;10M</code>.`,name:"size_categories"},{anchor:"huggingface_hub.DatasetFilter.task_categories",description:`<strong>task_categories</strong> (<code>str</code> or <code>List</code>, <em>optional</em>) &#x2014;
A string or list of strings that can be used to identify datasets on
the Hub by the designed task, such as <code>audio_classification</code> or
<code>named_entity_recognition</code>.`,name:"task_categories"},{anchor:"huggingface_hub.DatasetFilter.task_ids",description:`<strong>task_ids</strong> (<code>str</code> or <code>List</code>, <em>optional</em>) &#x2014;
A string or list of strings that can be used to identify datasets on
the Hub by the specific task such as <code>speech_emotion_recognition</code> or
<code>paraphrase</code>.`,name:"task_ids"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/utils/endpoint_helpers.py#L71"}}),ds=new A({props:{warning:!0,$$slots:{default:[M0]},$$scope:{ctx:T}}}),gs=new U({props:{anchor:"huggingface_hub.DatasetFilter.example",$$slots:{default:[T0]},$$scope:{ctx:T}}}),pc=new J({props:{title:"ModelFilter",local:"huggingface_hub.ModelFilter",headingTag:"h3"}}),dc=new H({props:{name:"class huggingface_hub.ModelFilter",anchor:"huggingface_hub.ModelFilter",parameters:[{name:"author",val:": Optional = None"},{name:"library",val:": Union = None"},{name:"language",val:": Union = None"},{name:"model_name",val:": Optional = None"},{name:"task",val:": Union = None"},{name:"trained_dataset",val:": Union = None"},{name:"tags",val:": Union = None"}],parametersDescription:[{anchor:"huggingface_hub.ModelFilter.author",description:`<strong>author</strong> (<code>str</code>, <em>optional</em>) &#x2014;
A string that can be used to identify models on the Hub by the
original uploader (author or organization), such as <code>facebook</code> or
<code>huggingface</code>.`,name:"author"},{anchor:"huggingface_hub.ModelFilter.library",description:`<strong>library</strong> (<code>str</code> or <code>List</code>, <em>optional</em>) &#x2014;
A string or list of strings of foundational libraries models were
originally trained from, such as pytorch, tensorflow, or allennlp.`,name:"library"},{anchor:"huggingface_hub.ModelFilter.language",description:`<strong>language</strong> (<code>str</code> or <code>List</code>, <em>optional</em>) &#x2014;
A string or list of strings of languages, both by name and country
code, such as &#x201C;en&#x201D; or &#x201C;English&#x201D;`,name:"language"},{anchor:"huggingface_hub.ModelFilter.model_name",description:`<strong>model_name</strong> (<code>str</code>, <em>optional</em>) &#x2014;
A string that contain complete or partial names for models on the
Hub, such as &#x201C;bert&#x201D; or &#x201C;bert-base-cased&#x201D;`,name:"model_name"},{anchor:"huggingface_hub.ModelFilter.task",description:`<strong>task</strong> (<code>str</code> or <code>List</code>, <em>optional</em>) &#x2014;
A string or list of strings of tasks models were designed for, such
as: &#x201C;fill-mask&#x201D; or &#x201C;automatic-speech-recognition&#x201D;`,name:"task"},{anchor:"huggingface_hub.ModelFilter.tags",description:`<strong>tags</strong> (<code>str</code> or <code>List</code>, <em>optional</em>) &#x2014;
A string tag or a list of tags to filter models on the Hub by, such
as <code>text-generation</code> or <code>spacy</code>.`,name:"tags"},{anchor:"huggingface_hub.ModelFilter.trained_dataset",description:`<strong>trained_dataset</strong> (<code>str</code> or <code>List</code>, <em>optional</em>) &#x2014;
A string tag or a list of string tags of the trained dataset for a
model on the Hub.`,name:"trained_dataset"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/utils/endpoint_helpers.py#L169"}}),us=new A({props:{warning:!0,$$slots:{default:[k0]},$$scope:{ctx:T}}}),hs=new U({props:{anchor:"huggingface_hub.ModelFilter.example",$$slots:{default:[j0]},$$scope:{ctx:T}}}),{c(){n=c("meta"),u=s(),i=c("p"),a=s(),h(x.$$.fragment),e=s(),v=c("p"),v.innerHTML=g$,su=s(),xs=c("p"),xs.innerHTML=u$,ru=s(),vs=c("p"),vs.innerHTML=h$,iu=s(),h($s.$$.fragment),cu=s(),h(ws.$$.fragment),lu=s(),w=c("div"),h(Ms.$$.fragment),uh=s(),Ce=c("div"),h(Ts.$$.fragment),hh=s(),Uc=c("p"),Uc.textContent=m$,mh=s(),Ac=c("p"),Ac.innerHTML=f$,fh=s(),qc=c("p"),qc.innerHTML=_$,_h=s(),Ie=c("div"),h(ks.$$.fragment),bh=s(),Jc=c("p"),Jc.textContent=b$,yh=s(),Nc=c("p"),Nc.innerHTML=y$,xh=s(),h(ro.$$.fragment),vh=s(),Pt=c("div"),h(js.$$.fragment),$h=s(),Ec=c("p"),Ec.textContent=x$,wh=s(),Rc=c("p"),Rc.innerHTML=v$,Mh=s(),Xt=c("div"),h(Hs.$$.fragment),Th=s(),Dc=c("p"),Dc.textContent=$$,kh=s(),Gc=c("p"),Gc.innerHTML=w$,jh=s(),Ue=c("div"),h(Cs.$$.fragment),Hh=s(),Fc=c("p"),Fc.textContent=M$,Ch=s(),Sc=c("p"),Sc.textContent=T$,Ih=s(),Lc=c("p"),Lc.innerHTML=k$,Uh=s(),Ae=c("div"),h(Is.$$.fragment),Ah=s(),Zc=c("p"),Zc.textContent=j$,qh=s(),h(io.$$.fragment),Jh=s(),h(co.$$.fragment),Nh=s(),qe=c("div"),h(Us.$$.fragment),Eh=s(),Bc=c("p"),Bc.textContent=H$,Rh=s(),h(lo.$$.fragment),Dh=s(),h(po.$$.fragment),Gh=s(),go=c("div"),h(As.$$.fragment),Fh=s(),Wc=c("p"),Wc.innerHTML=C$,Sh=s(),Je=c("div"),h(qs.$$.fragment),Lh=s(),Vc=c("p"),Vc.textContent=I$,Zh=s(),Pc=c("p"),Pc.innerHTML=U$,Bh=s(),h(uo.$$.fragment),Wh=s(),re=c("div"),h(Js.$$.fragment),Vh=s(),Xc=c("p"),Xc.textContent=A$,Ph=s(),h(ho.$$.fragment),Xh=s(),h(mo.$$.fragment),Yh=s(),h(fo.$$.fragment),zh=s(),F=c("div"),h(Ns.$$.fragment),Oh=s(),Yc=c("p"),Yc.textContent=q$,Qh=s(),zc=c("p"),zc.innerHTML=J$,Kh=s(),Oc=c("p"),Oc.textContent=N$,em=s(),h(_o.$$.fragment),tm=s(),h(bo.$$.fragment),nm=s(),h(yo.$$.fragment),om=s(),V=c("div"),h(Es.$$.fragment),am=s(),Qc=c("p"),Qc.textContent=E$,sm=s(),Kc=c("p"),Kc.innerHTML=R$,rm=s(),el=c("p"),el.innerHTML=D$,im=s(),tl=c("p"),tl.innerHTML=G$,cm=s(),h(xo.$$.fragment),lm=s(),Ne=c("div"),h(Rs.$$.fragment),pm=s(),nl=c("p"),nl.textContent=F$,dm=s(),h(vo.$$.fragment),gm=s(),h($o.$$.fragment),um=s(),P=c("div"),h(Ds.$$.fragment),hm=s(),ol=c("p"),ol.innerHTML=S$,mm=s(),al=c("p"),al.innerHTML=L$,fm=s(),sl=c("p"),sl.innerHTML=Z$,_m=s(),rl=c("p"),rl.innerHTML=B$,bm=s(),h(wo.$$.fragment),ym=s(),Mo=c("div"),h(Gs.$$.fragment),xm=s(),il=c("p"),il.textContent=W$,vm=s(),To=c("div"),h(Fs.$$.fragment),$m=s(),cl=c("p"),cl.textContent=V$,wm=s(),Ee=c("div"),h(Ss.$$.fragment),Mm=s(),ll=c("p"),ll.textContent=P$,Tm=s(),pl=c("p"),pl.textContent=X$,km=s(),h(ko.$$.fragment),jm=s(),jo=c("div"),h(Ls.$$.fragment),Hm=s(),dl=c("p"),dl.textContent=Y$,Cm=s(),Re=c("div"),h(Zs.$$.fragment),Im=s(),gl=c("p"),gl.textContent=z$,Um=s(),h(Ho.$$.fragment),Am=s(),h(Co.$$.fragment),qm=s(),Yt=c("div"),h(Bs.$$.fragment),Jm=s(),ul=c("p"),ul.textContent=O$,Nm=s(),h(Io.$$.fragment),Em=s(),zt=c("div"),h(Ws.$$.fragment),Rm=s(),hl=c("p"),hl.textContent=Q$,Dm=s(),h(Uo.$$.fragment),Gm=s(),Ot=c("div"),h(Vs.$$.fragment),Fm=s(),ml=c("p"),ml.textContent=K$,Sm=s(),fl=c("p"),fl.innerHTML=e2,Lm=s(),De=c("div"),h(Ps.$$.fragment),Zm=s(),_l=c("p"),_l.textContent=t2,Bm=s(),bl=c("p"),bl.innerHTML=n2,Wm=s(),yl=c("p"),yl.innerHTML=o2,Vm=s(),Ao=c("div"),h(Xs.$$.fragment),Pm=s(),xl=c("p"),xl.textContent=a2,Xm=s(),Qt=c("div"),h(Ys.$$.fragment),Ym=s(),vl=c("p"),vl.textContent=s2,zm=s(),$l=c("p"),$l.innerHTML=r2,Om=s(),qo=c("div"),h(zs.$$.fragment),Qm=s(),wl=c("p"),wl.textContent=i2,Km=s(),Kt=c("div"),h(Os.$$.fragment),ef=s(),Ml=c("p"),Ml.textContent=c2,tf=s(),Tl=c("p"),Tl.innerHTML=l2,nf=s(),Jo=c("div"),h(Qs.$$.fragment),of=s(),kl=c("p"),kl.textContent=p2,af=s(),Ge=c("div"),h(Ks.$$.fragment),sf=s(),jl=c("p"),jl.textContent=d2,rf=s(),Hl=c("p"),Hl.textContent=g2,cf=s(),h(No.$$.fragment),lf=s(),en=c("div"),h(er.$$.fragment),pf=s(),Cl=c("p"),Cl.textContent=u2,df=s(),h(Eo.$$.fragment),gf=s(),tn=c("div"),h(tr.$$.fragment),uf=s(),Il=c("p"),Il.textContent=h2,hf=s(),h(Ro.$$.fragment),mf=s(),Fe=c("div"),h(nr.$$.fragment),ff=s(),Ul=c("p"),Ul.textContent=m2,_f=s(),Al=c("p"),Al.innerHTML=f2,bf=s(),h(Do.$$.fragment),yf=s(),Go=c("div"),h(or.$$.fragment),xf=s(),ql=c("p"),ql.textContent=_2,vf=s(),Se=c("div"),h(ar.$$.fragment),$f=s(),Jl=c("p"),Jl.textContent=b2,wf=s(),Nl=c("p"),Nl.innerHTML=y2,Mf=s(),h(Fo.$$.fragment),Tf=s(),So=c("div"),h(sr.$$.fragment),kf=s(),El=c("p"),El.textContent=x2,jf=s(),Lo=c("div"),h(rr.$$.fragment),Hf=s(),Rl=c("p"),Rl.textContent=v2,Cf=s(),nn=c("div"),h(ir.$$.fragment),If=s(),Dl=c("p"),Dl.textContent=$2,Uf=s(),h(Zo.$$.fragment),Af=s(),Bo=c("div"),h(cr.$$.fragment),qf=s(),Gl=c("p"),Gl.textContent=w2,Jf=s(),on=c("div"),h(lr.$$.fragment),Nf=s(),Fl=c("p"),Fl.textContent=M2,Ef=s(),h(Wo.$$.fragment),Rf=s(),ie=c("div"),h(pr.$$.fragment),Df=s(),Sl=c("p"),Sl.textContent=T2,Gf=s(),Ll=c("p"),Ll.textContent=k2,Ff=s(),h(Vo.$$.fragment),Sf=s(),h(Po.$$.fragment),Lf=s(),X=c("div"),h(dr.$$.fragment),Zf=s(),Zl=c("p"),Zl.textContent=j2,Bf=s(),Bl=c("p"),Bl.textContent=H2,Wf=s(),Wl=c("p"),Wl.innerHTML=C2,Vf=s(),Vl=c("p"),Vl.innerHTML=I2,Pf=s(),h(Xo.$$.fragment),Xf=s(),Yo=c("div"),h(gr.$$.fragment),Yf=s(),Pl=c("p"),Pl.textContent=U2,zf=s(),an=c("div"),h(ur.$$.fragment),Of=s(),Xl=c("p"),Xl.textContent=A2,Qf=s(),Yl=c("p"),Yl.innerHTML=q2,Kf=s(),sn=c("div"),h(hr.$$.fragment),e_=s(),zl=c("p"),zl.innerHTML=J2,t_=s(),Ol=c("p"),Ol.innerHTML=N2,n_=s(),zo=c("div"),h(mr.$$.fragment),o_=s(),Ql=c("p"),Ql.textContent=E2,a_=s(),Le=c("div"),h(fr.$$.fragment),s_=s(),Kl=c("p"),Kl.textContent=R2,r_=s(),ep=c("p"),ep.innerHTML=D2,i_=s(),tp=c("p"),tp.innerHTML=G2,c_=s(),R=c("div"),h(_r.$$.fragment),l_=s(),np=c("p"),np.textContent=F2,p_=s(),op=c("p"),op.textContent=S2,d_=s(),ap=c("ul"),ap.innerHTML=L2,g_=s(),sp=c("p"),sp.innerHTML=Z2,u_=s(),rp=c("ul"),rp.innerHTML=B2,h_=s(),h(Oo.$$.fragment),m_=s(),h(Qo.$$.fragment),f_=s(),Ze=c("div"),h(br.$$.fragment),__=s(),ip=c("p"),ip.textContent=W2,b_=s(),h(Ko.$$.fragment),y_=s(),h(ea.$$.fragment),x_=s(),Be=c("div"),h(yr.$$.fragment),v_=s(),cp=c("p"),cp.textContent=V2,$_=s(),lp=c("p"),lp.innerHTML=P2,w_=s(),h(ta.$$.fragment),M_=s(),ce=c("div"),h(xr.$$.fragment),T_=s(),pp=c("p"),pp.textContent=X2,k_=s(),dp=c("p"),dp.innerHTML=Y2,j_=s(),gp=c("p"),gp.innerHTML=z2,H_=s(),h(na.$$.fragment),C_=s(),rn=c("div"),h(vr.$$.fragment),I_=s(),up=c("p"),up.textContent=O2,U_=s(),h(oa.$$.fragment),A_=s(),We=c("div"),h($r.$$.fragment),q_=s(),hp=c("p"),hp.textContent=Q2,J_=s(),h(aa.$$.fragment),N_=s(),h(sa.$$.fragment),E_=s(),cn=c("div"),h(wr.$$.fragment),R_=s(),mp=c("p"),mp.textContent=K2,D_=s(),h(ra.$$.fragment),G_=s(),le=c("div"),h(Mr.$$.fragment),F_=s(),fp=c("p"),fp.textContent=e1,S_=s(),_p=c("p"),_p.innerHTML=t1,L_=s(),bp=c("p"),bp.innerHTML=n1,Z_=s(),h(ia.$$.fragment),B_=s(),ca=c("div"),h(Tr.$$.fragment),W_=s(),yp=c("p"),yp.textContent=o1,V_=s(),Ve=c("div"),h(kr.$$.fragment),P_=s(),xp=c("p"),xp.textContent=a1,X_=s(),h(la.$$.fragment),Y_=s(),h(pa.$$.fragment),z_=s(),da=c("div"),h(jr.$$.fragment),O_=s(),vp=c("p"),vp.textContent=s1,Q_=s(),pe=c("div"),h(Hr.$$.fragment),K_=s(),$p=c("p"),$p.textContent=r1,eb=s(),wp=c("p"),wp.innerHTML=i1,tb=s(),Mp=c("p"),Mp.innerHTML=c1,nb=s(),h(ga.$$.fragment),ob=s(),de=c("div"),h(Cr.$$.fragment),ab=s(),Tp=c("p"),Tp.textContent=l1,sb=s(),kp=c("p"),kp.innerHTML=p1,rb=s(),jp=c("p"),jp.innerHTML=d1,ib=s(),h(ua.$$.fragment),cb=s(),Pe=c("div"),h(Ir.$$.fragment),lb=s(),Hp=c("p"),Hp.textContent=g1,pb=s(),Cp=c("p"),Cp.textContent=u1,db=s(),h(ha.$$.fragment),gb=s(),ma=c("div"),h(Ur.$$.fragment),ub=s(),Ip=c("p"),Ip.textContent=h1,hb=s(),ln=c("div"),h(Ar.$$.fragment),mb=s(),Up=c("p"),Up.textContent=m1,fb=s(),Ap=c("p"),Ap.innerHTML=f1,_b=s(),pn=c("div"),h(qr.$$.fragment),bb=s(),qp=c("p"),qp.textContent=_1,yb=s(),h(fa.$$.fragment),xb=s(),S=c("div"),h(Jr.$$.fragment),vb=s(),Jp=c("p"),Jp.textContent=b1,$b=s(),Np=c("p"),Np.textContent=y1,wb=s(),Ep=c("p"),Ep.textContent=x1,Mb=s(),h(_a.$$.fragment),Tb=s(),Rp=c("p"),Rp.textContent=v1,kb=s(),h(ba.$$.fragment),jb=s(),ya=c("div"),h(Nr.$$.fragment),Hb=s(),Dp=c("p"),Dp.textContent=$1,Cb=s(),xa=c("div"),h(Er.$$.fragment),Ib=s(),Gp=c("p"),Gp.textContent=w1,Ub=s(),va=c("div"),h(Rr.$$.fragment),Ab=s(),Fp=c("p"),Fp.textContent=M1,qb=s(),dn=c("div"),h(Dr.$$.fragment),Jb=s(),Sp=c("p"),Sp.textContent=T1,Nb=s(),h($a.$$.fragment),Eb=s(),Xe=c("div"),h(Gr.$$.fragment),Rb=s(),Lp=c("p"),Lp.textContent=k1,Db=s(),Zp=c("p"),Zp.textContent=j1,Gb=s(),h(wa.$$.fragment),Fb=s(),Ye=c("div"),h(Fr.$$.fragment),Sb=s(),Bp=c("p"),Bp.textContent=H1,Lb=s(),Wp=c("p"),Wp.innerHTML=C1,Zb=s(),h(Ma.$$.fragment),Bb=s(),ze=c("div"),h(Sr.$$.fragment),Wb=s(),Vp=c("p"),Vp.textContent=I1,Vb=s(),Pp=c("p"),Pp.innerHTML=U1,Pb=s(),Xp=c("p"),Xp.innerHTML=A1,Xb=s(),Oe=c("div"),h(Lr.$$.fragment),Yb=s(),Yp=c("p"),Yp.textContent=q1,zb=s(),zp=c("p"),zp.innerHTML=J1,Ob=s(),Op=c("p"),Op.innerHTML=N1,Qb=s(),Qe=c("div"),h(Zr.$$.fragment),Kb=s(),Qp=c("p"),Qp.textContent=E1,ey=s(),Kp=c("p"),Kp.innerHTML=R1,ty=s(),ed=c("p"),ed.innerHTML=D1,ny=s(),Y=c("div"),h(Br.$$.fragment),oy=s(),td=c("p"),td.textContent=G1,ay=s(),nd=c("p"),nd.textContent=F1,sy=s(),h(Ta.$$.fragment),ry=s(),h(ka.$$.fragment),iy=s(),h(ja.$$.fragment),cy=s(),Ke=c("div"),h(Wr.$$.fragment),ly=s(),od=c("p"),od.textContent=S1,py=s(),ad=c("p"),ad.innerHTML=L1,dy=s(),sd=c("p"),sd.innerHTML=Z1,gy=s(),et=c("div"),h(Vr.$$.fragment),uy=s(),rd=c("p"),rd.textContent=B1,hy=s(),h(Ha.$$.fragment),my=s(),h(Ca.$$.fragment),fy=s(),gn=c("div"),h(Pr.$$.fragment),_y=s(),id=c("p"),id.textContent=W1,by=s(),h(Ia.$$.fragment),yy=s(),un=c("div"),h(Xr.$$.fragment),xy=s(),cd=c("p"),cd.textContent=V1,vy=s(),h(Ua.$$.fragment),$y=s(),hn=c("div"),h(Yr.$$.fragment),wy=s(),ld=c("p"),ld.textContent=P1,My=s(),h(Aa.$$.fragment),Ty=s(),mn=c("div"),h(zr.$$.fragment),ky=s(),pd=c("p"),pd.textContent=X1,jy=s(),h(qa.$$.fragment),Hy=s(),tt=c("div"),h(Or.$$.fragment),Cy=s(),dd=c("p"),dd.textContent=Y1,Iy=s(),gd=c("p"),gd.innerHTML=z1,Uy=s(),ud=c("p"),ud.innerHTML=O1,Ay=s(),fn=c("div"),h(Qr.$$.fragment),qy=s(),hd=c("p"),hd.textContent=Q1,Jy=s(),md=c("p"),md.innerHTML=K1,Ny=s(),_n=c("div"),h(Kr.$$.fragment),Ey=s(),fd=c("p"),fd.textContent=ew,Ry=s(),h(Ja.$$.fragment),Dy=s(),ge=c("div"),h(ei.$$.fragment),Gy=s(),_d=c("p"),_d.textContent=tw,Fy=s(),bd=c("p"),bd.innerHTML=nw,Sy=s(),yd=c("p"),yd.innerHTML=ow,Ly=s(),h(Na.$$.fragment),Zy=s(),nt=c("div"),h(ti.$$.fragment),By=s(),xd=c("p"),xd.textContent=aw,Wy=s(),vd=c("p"),vd.innerHTML=sw,Vy=s(),$d=c("p"),$d.innerHTML=rw,Py=s(),ot=c("div"),h(ni.$$.fragment),Xy=s(),wd=c("p"),wd.textContent=iw,Yy=s(),Md=c("p"),Md.innerHTML=cw,zy=s(),h(Ea.$$.fragment),Oy=s(),L=c("div"),h(oi.$$.fragment),Qy=s(),Td=c("p"),Td.textContent=lw,Ky=s(),kd=c("p"),kd.innerHTML=pw,ex=s(),jd=c("p"),jd.innerHTML=dw,tx=s(),Hd=c("ul"),Hd.innerHTML=gw,nx=s(),Cd=c("p"),Cd.textContent=uw,ox=s(),h(Ra.$$.fragment),ax=s(),at=c("div"),h(ai.$$.fragment),sx=s(),Id=c("p"),Id.textContent=hw,rx=s(),Ud=c("p"),Ud.textContent=mw,ix=s(),h(Da.$$.fragment),cx=s(),z=c("div"),h(si.$$.fragment),lx=s(),Ad=c("p"),Ad.textContent=fw,px=s(),qd=c("p"),qd.textContent=_w,dx=s(),h(Ga.$$.fragment),gx=s(),h(Fa.$$.fragment),ux=s(),h(Sa.$$.fragment),hx=s(),st=c("div"),h(ri.$$.fragment),mx=s(),Jd=c("p"),Jd.textContent=bw,fx=s(),Nd=c("p"),Nd.innerHTML=yw,_x=s(),h(La.$$.fragment),bx=s(),bn=c("div"),h(ii.$$.fragment),yx=s(),Ed=c("p"),Ed.textContent=xw,xx=s(),h(Za.$$.fragment),vx=s(),ue=c("div"),h(ci.$$.fragment),$x=s(),Rd=c("p"),Rd.textContent=vw,wx=s(),Dd=c("p"),Dd.textContent=$w,Mx=s(),Gd=c("p"),Gd.innerHTML=ww,Tx=s(),h(Ba.$$.fragment),kx=s(),rt=c("div"),h(li.$$.fragment),jx=s(),Fd=c("p"),Fd.textContent=Mw,Hx=s(),Sd=c("p"),Sd.textContent=Tw,Cx=s(),Ld=c("p"),Ld.innerHTML=kw,Ix=s(),yn=c("div"),h(pi.$$.fragment),Ux=s(),Zd=c("p"),Zd.textContent=jw,Ax=s(),h(Wa.$$.fragment),qx=s(),he=c("div"),h(di.$$.fragment),Jx=s(),Bd=c("p"),Bd.textContent=Hw,Nx=s(),h(Va.$$.fragment),Ex=s(),h(Pa.$$.fragment),Rx=s(),h(Xa.$$.fragment),Dx=s(),q=c("div"),h(gi.$$.fragment),Gx=s(),Wd=c("p"),Wd.textContent=Cw,Fx=s(),Vd=c("p"),Vd.textContent=Iw,Sx=s(),Pd=c("p"),Pd.innerHTML=Uw,Lx=s(),Xd=c("p"),Xd.innerHTML=Aw,Zx=s(),Yd=c("p"),Yd.innerHTML=qw,Bx=s(),zd=c("p"),zd.innerHTML=Jw,Wx=s(),h(Ya.$$.fragment),Vx=s(),h(za.$$.fragment),Px=s(),h(Oa.$$.fragment),Xx=s(),h(Qa.$$.fragment),Yx=s(),Ka=c("div"),h(ui.$$.fragment),zx=s(),Od=c("p"),Od.textContent=Nw,pu=s(),E=c("div"),h(hi.$$.fragment),Ox=s(),Qd=c("p"),Qd.textContent=Ew,Qx=s(),Kd=c("p"),Kd.textContent=Rw,Kx=s(),eg=c("ol"),eg.innerHTML=Dw,ev=s(),tg=c("p"),tg.innerHTML=Gw,tv=s(),h(es.$$.fragment),nv=s(),h(ts.$$.fragment),ov=s(),h(ns.$$.fragment),du=s(),h(mi.$$.fragment),gu=s(),h(fi.$$.fragment),uu=s(),jn=c("div"),h(_i.$$.fragment),av=s(),ng=c("p"),ng.textContent=Fw,hu=s(),h(bi.$$.fragment),mu=s(),ct=c("div"),h(yi.$$.fragment),sv=s(),og=c("p"),og.textContent=Sw,rv=s(),ag=c("p"),ag.innerHTML=Lw,fu=s(),h(xi.$$.fragment),_u=s(),lt=c("div"),h(vi.$$.fragment),iv=s(),sg=c("p"),sg.textContent=Zw,cv=s(),h(os.$$.fragment),bu=s(),h($i.$$.fragment),yu=s(),Hn=c("div"),h(wi.$$.fragment),lv=s(),rg=c("p"),rg.textContent=Bw,xu=s(),h(Mi.$$.fragment),vu=s(),Cn=c("div"),h(Ti.$$.fragment),pv=s(),ig=c("p"),ig.innerHTML=Ww,$u=s(),h(ki.$$.fragment),wu=s(),pt=c("div"),h(ji.$$.fragment),dv=s(),cg=c("p"),cg.textContent=Vw,gv=s(),lg=c("p"),lg.innerHTML=Pw,Mu=s(),h(Hi.$$.fragment),Tu=s(),dt=c("div"),h(Ci.$$.fragment),uv=s(),pg=c("p"),pg.textContent=Xw,hv=s(),h(as.$$.fragment),ku=s(),h(Ii.$$.fragment),ju=s(),gt=c("div"),h(Ui.$$.fragment),mv=s(),dg=c("p"),dg.textContent=Yw,fv=s(),h(ss.$$.fragment),Hu=s(),h(Ai.$$.fragment),Cu=s(),In=c("div"),h(qi.$$.fragment),_v=s(),gg=c("p"),gg.textContent=zw,Iu=s(),h(Ji.$$.fragment),Uu=s(),Q=c("div"),h(Ni.$$.fragment),bv=s(),ug=c("p"),ug.innerHTML=Ow,yv=s(),hg=c("p"),hg.innerHTML=Qw,xv=s(),mg=c("ul"),mg.innerHTML=Kw,vv=s(),h(rs.$$.fragment),Au=s(),h(Ei.$$.fragment),qu=s(),K=c("div"),h(Ri.$$.fragment),$v=s(),fg=c("p"),fg.textContent=eM,wv=s(),_g=c("p"),_g.textContent=tM,Mv=s(),bg=c("p"),bg.innerHTML=nM,Tv=s(),yg=c("p"),yg.innerHTML=oM,Ju=s(),h(Di.$$.fragment),Nu=s(),fe=c("div"),h(Gi.$$.fragment),kv=s(),xg=c("p"),xg.textContent=aM,jv=s(),vg=c("p"),vg.innerHTML=sM,Hv=s(),$g=c("p"),$g.innerHTML=rM,Eu=s(),h(Fi.$$.fragment),Ru=s(),ut=c("div"),h(Si.$$.fragment),Cv=s(),wg=c("p"),wg.textContent=iM,Iv=s(),h(is.$$.fragment),Du=s(),h(Li.$$.fragment),Gu=s(),ht=c("div"),h(Zi.$$.fragment),Uv=s(),Mg=c("p"),Mg.textContent=cM,Av=s(),Tg=c("p"),Tg.innerHTML=lM,Fu=s(),h(Bi.$$.fragment),Su=s(),Un=c("div"),h(Wi.$$.fragment),qv=s(),kg=c("p"),kg.textContent=pM,Lu=s(),h(Vi.$$.fragment),Zu=s(),An=c("div"),h(Pi.$$.fragment),Jv=s(),jg=c("p"),jg.textContent=dM,Bu=s(),h(Xi.$$.fragment),Wu=s(),Yi=c("p"),Yi.innerHTML=gM,Vu=s(),_e=c("div"),h(zi.$$.fragment),Nv=s(),Hg=c("p"),Hg.textContent=uM,Ev=s(),xn=c("div"),h(Oi.$$.fragment),Rv=s(),Cg=c("p"),Cg.innerHTML=hM,Dv=s(),h(cs.$$.fragment),Gv=s(),vn=c("div"),h(Qi.$$.fragment),Fv=s(),Ig=c("p"),Ig.innerHTML=mM,Sv=s(),Ug=c("p"),Ug.innerHTML=fM,Pu=s(),qn=c("div"),h(Ki.$$.fragment),Lv=s(),Ag=c("p"),Ag.textContent=_M,Xu=s(),ee=c("div"),h(ec.$$.fragment),Zv=s(),qg=c("p"),qg.textContent=bM,Bv=s(),Jg=c("p"),Jg.textContent=yM,Wv=s(),Ng=c("ul"),Ng.innerHTML=xM,Vv=s(),Eg=c("p"),Eg.innerHTML=vM,Yu=s(),h(tc.$$.fragment),zu=s(),D=c("div"),h(nc.$$.fragment),Pv=s(),Rg=c("p"),Rg.textContent=$M,Xv=s(),Dg=c("p"),Dg.innerHTML=wM,Yv=s(),h(ls.$$.fragment),zv=s(),it=c("div"),h(oc.$$.fragment),Ov=s(),Gg=c("p"),Gg.textContent=MM,Qv=s(),h(ps.$$.fragment),Kv=s(),Fg=c("p"),Fg.innerHTML=TM,e$=s(),$n=c("div"),h(ac.$$.fragment),t$=s(),Sg=c("p"),Sg.textContent=kM,n$=s(),Lg=c("p"),Lg.textContent=jM,o$=s(),wn=c("div"),h(sc.$$.fragment),a$=s(),Zg=c("p"),Zg.innerHTML=HM,s$=s(),Bg=c("p"),Bg.innerHTML=CM,Ou=s(),h(rc.$$.fragment),Qu=s(),ic=c("p"),ic.innerHTML=IM,Ku=s(),h(cc.$$.fragment),eh=s(),be=c("div"),h(lc.$$.fragment),r$=s(),Wg=c("p"),Wg.textContent=UM,i$=s(),h(ds.$$.fragment),c$=s(),h(gs.$$.fragment),th=s(),h(pc.$$.fragment),nh=s(),ye=c("div"),h(dc.$$.fragment),l$=s(),Vg=c("p"),Vg.textContent=AM,p$=s(),h(us.$$.fragment),d$=s(),h(hs.$$.fragment),oh=s(),au=c("p"),this.h()},l(t){const g=RM("svelte-u9bgzb",document.head);n=l(g,"META",{name:!0,content:!0}),g.forEach(p),u=r(t),i=l(t,"P",{}),k(i).forEach(p),a=r(t),m(x.$$.fragment,t),e=r(t),v=l(t,"P",{"data-svelte-h":!0}),d(v)!=="svelte-vbqehn"&&(v.innerHTML=g$),su=r(t),xs=l(t,"P",{"data-svelte-h":!0}),d(xs)!=="svelte-ii6hxn"&&(xs.innerHTML=u$),ru=r(t),vs=l(t,"P",{"data-svelte-h":!0}),d(vs)!=="svelte-1pntla4"&&(vs.innerHTML=h$),iu=r(t),m($s.$$.fragment,t),cu=r(t),m(ws.$$.fragment,t),lu=r(t),w=l(t,"DIV",{class:!0});var M=k(w);m(Ms.$$.fragment,M),uh=r(M),Ce=l(M,"DIV",{class:!0});var mt=k(Ce);m(Ts.$$.fragment,mt),hh=r(mt),Uc=l(mt,"P",{"data-svelte-h":!0}),d(Uc)!=="svelte-nwim5u"&&(Uc.textContent=m$),mh=r(mt),Ac=l(mt,"P",{"data-svelte-h":!0}),d(Ac)!=="svelte-1p3hclb"&&(Ac.innerHTML=f$),fh=r(mt),qc=l(mt,"P",{"data-svelte-h":!0}),d(qc)!=="svelte-xxbgtf"&&(qc.innerHTML=_$),mt.forEach(p),_h=r(M),Ie=l(M,"DIV",{class:!0});var ft=k(Ie);m(ks.$$.fragment,ft),bh=r(ft),Jc=l(ft,"P",{"data-svelte-h":!0}),d(Jc)!=="svelte-pl69v6"&&(Jc.textContent=b$),yh=r(ft),Nc=l(ft,"P",{"data-svelte-h":!0}),d(Nc)!=="svelte-164ppjv"&&(Nc.innerHTML=y$),xh=r(ft),m(ro.$$.fragment,ft),ft.forEach(p),vh=r(M),Pt=l(M,"DIV",{class:!0});var Jn=k(Pt);m(js.$$.fragment,Jn),$h=r(Jn),Ec=l(Jn,"P",{"data-svelte-h":!0}),d(Ec)!=="svelte-p5bez4"&&(Ec.textContent=x$),wh=r(Jn),Rc=l(Jn,"P",{"data-svelte-h":!0}),d(Rc)!=="svelte-eb77qn"&&(Rc.innerHTML=v$),Jn.forEach(p),Mh=r(M),Xt=l(M,"DIV",{class:!0});var Nn=k(Xt);m(Hs.$$.fragment,Nn),Th=r(Nn),Dc=l(Nn,"P",{"data-svelte-h":!0}),d(Dc)!=="svelte-1ck64b0"&&(Dc.textContent=$$),kh=r(Nn),Gc=l(Nn,"P",{"data-svelte-h":!0}),d(Gc)!=="svelte-xt39ay"&&(Gc.innerHTML=w$),Nn.forEach(p),jh=r(M),Ue=l(M,"DIV",{class:!0});var _t=k(Ue);m(Cs.$$.fragment,_t),Hh=r(_t),Fc=l(_t,"P",{"data-svelte-h":!0}),d(Fc)!=="svelte-1v3ljxo"&&(Fc.textContent=M$),Ch=r(_t),Sc=l(_t,"P",{"data-svelte-h":!0}),d(Sc)!=="svelte-zq4mwt"&&(Sc.textContent=T$),Ih=r(_t),Lc=l(_t,"P",{"data-svelte-h":!0}),d(Lc)!=="svelte-xxbgtf"&&(Lc.innerHTML=k$),_t.forEach(p),Uh=r(M),Ae=l(M,"DIV",{class:!0});var bt=k(Ae);m(Is.$$.fragment,bt),Ah=r(bt),Zc=l(bt,"P",{"data-svelte-h":!0}),d(Zc)!=="svelte-16mfbn3"&&(Zc.textContent=j$),qh=r(bt),m(io.$$.fragment,bt),Jh=r(bt),m(co.$$.fragment,bt),bt.forEach(p),Nh=r(M),qe=l(M,"DIV",{class:!0});var yt=k(qe);m(Us.$$.fragment,yt),Eh=r(yt),Bc=l(yt,"P",{"data-svelte-h":!0}),d(Bc)!=="svelte-1xtlk3i"&&(Bc.textContent=H$),Rh=r(yt),m(lo.$$.fragment,yt),Dh=r(yt),m(po.$$.fragment,yt),yt.forEach(p),Gh=r(M),go=l(M,"DIV",{class:!0});var gc=k(go);m(As.$$.fragment,gc),Fh=r(gc),Wc=l(gc,"P",{"data-svelte-h":!0}),d(Wc)!=="svelte-q41614"&&(Wc.innerHTML=C$),gc.forEach(p),Sh=r(M),Je=l(M,"DIV",{class:!0});var xt=k(Je);m(qs.$$.fragment,xt),Lh=r(xt),Vc=l(xt,"P",{"data-svelte-h":!0}),d(Vc)!=="svelte-8lce12"&&(Vc.textContent=I$),Zh=r(xt),Pc=l(xt,"P",{"data-svelte-h":!0}),d(Pc)!=="svelte-164ppjv"&&(Pc.innerHTML=U$),Bh=r(xt),m(uo.$$.fragment,xt),xt.forEach(p),Wh=r(M),re=l(M,"DIV",{class:!0});var xe=k(re);m(Js.$$.fragment,xe),Vh=r(xe),Xc=l(xe,"P",{"data-svelte-h":!0}),d(Xc)!=="svelte-pth6mb"&&(Xc.textContent=A$),Ph=r(xe),m(ho.$$.fragment,xe),Xh=r(xe),m(mo.$$.fragment,xe),Yh=r(xe),m(fo.$$.fragment,xe),xe.forEach(p),zh=r(M),F=l(M,"DIV",{class:!0});var Z=k(F);m(Ns.$$.fragment,Z),Oh=r(Z),Yc=l(Z,"P",{"data-svelte-h":!0}),d(Yc)!=="svelte-rmrpcj"&&(Yc.textContent=q$),Qh=r(Z),zc=l(Z,"P",{"data-svelte-h":!0}),d(zc)!=="svelte-12u67q9"&&(zc.innerHTML=J$),Kh=r(Z),Oc=l(Z,"P",{"data-svelte-h":!0}),d(Oc)!=="svelte-1c86n24"&&(Oc.textContent=N$),em=r(Z),m(_o.$$.fragment,Z),tm=r(Z),m(bo.$$.fragment,Z),nm=r(Z),m(yo.$$.fragment,Z),Z.forEach(p),om=r(M),V=l(M,"DIV",{class:!0});var te=k(V);m(Es.$$.fragment,te),am=r(te),Qc=l(te,"P",{"data-svelte-h":!0}),d(Qc)!=="svelte-1g87pq3"&&(Qc.textContent=E$),sm=r(te),Kc=l(te,"P",{"data-svelte-h":!0}),d(Kc)!=="svelte-1gunwzz"&&(Kc.innerHTML=R$),rm=r(te),el=l(te,"P",{"data-svelte-h":!0}),d(el)!=="svelte-r5v8l0"&&(el.innerHTML=D$),im=r(te),tl=l(te,"P",{"data-svelte-h":!0}),d(tl)!=="svelte-1on7ni7"&&(tl.innerHTML=G$),cm=r(te),m(xo.$$.fragment,te),te.forEach(p),lm=r(M),Ne=l(M,"DIV",{class:!0});var vt=k(Ne);m(Rs.$$.fragment,vt),pm=r(vt),nl=l(vt,"P",{"data-svelte-h":!0}),d(nl)!=="svelte-aoy5wl"&&(nl.textContent=F$),dm=r(vt),m(vo.$$.fragment,vt),gm=r(vt),m($o.$$.fragment,vt),vt.forEach(p),um=r(M),P=l(M,"DIV",{class:!0});var ne=k(P);m(Ds.$$.fragment,ne),hm=r(ne),ol=l(ne,"P",{"data-svelte-h":!0}),d(ol)!=="svelte-1hp36yr"&&(ol.innerHTML=S$),mm=r(ne),al=l(ne,"P",{"data-svelte-h":!0}),d(al)!=="svelte-r57fdn"&&(al.innerHTML=L$),fm=r(ne),sl=l(ne,"P",{"data-svelte-h":!0}),d(sl)!=="svelte-13rslc6"&&(sl.innerHTML=Z$),_m=r(ne),rl=l(ne,"P",{"data-svelte-h":!0}),d(rl)!=="svelte-1on7ni7"&&(rl.innerHTML=B$),bm=r(ne),m(wo.$$.fragment,ne),ne.forEach(p),ym=r(M),Mo=l(M,"DIV",{class:!0});var uc=k(Mo);m(Gs.$$.fragment,uc),xm=r(uc),il=l(uc,"P",{"data-svelte-h":!0}),d(il)!=="svelte-12go647"&&(il.textContent=W$),uc.forEach(p),vm=r(M),To=l(M,"DIV",{class:!0});var hc=k(To);m(Fs.$$.fragment,hc),$m=r(hc),cl=l(hc,"P",{"data-svelte-h":!0}),d(cl)!=="svelte-14fvvbg"&&(cl.textContent=V$),hc.forEach(p),wm=r(M),Ee=l(M,"DIV",{class:!0});var $t=k(Ee);m(Ss.$$.fragment,$t),Mm=r($t),ll=l($t,"P",{"data-svelte-h":!0}),d(ll)!=="svelte-15pbnj8"&&(ll.textContent=P$),Tm=r($t),pl=l($t,"P",{"data-svelte-h":!0}),d(pl)!=="svelte-1fg5f6l"&&(pl.textContent=X$),km=r($t),m(ko.$$.fragment,$t),$t.forEach(p),jm=r(M),jo=l(M,"DIV",{class:!0});var mc=k(jo);m(Ls.$$.fragment,mc),Hm=r(mc),dl=l(mc,"P",{"data-svelte-h":!0}),d(dl)!=="svelte-1n7quvg"&&(dl.textContent=Y$),mc.forEach(p),Cm=r(M),Re=l(M,"DIV",{class:!0});var wt=k(Re);m(Zs.$$.fragment,wt),Im=r(wt),gl=l(wt,"P",{"data-svelte-h":!0}),d(gl)!=="svelte-1s6a009"&&(gl.textContent=z$),Um=r(wt),m(Ho.$$.fragment,wt),Am=r(wt),m(Co.$$.fragment,wt),wt.forEach(p),qm=r(M),Yt=l(M,"DIV",{class:!0});var En=k(Yt);m(Bs.$$.fragment,En),Jm=r(En),ul=l(En,"P",{"data-svelte-h":!0}),d(ul)!=="svelte-gmiayq"&&(ul.textContent=O$),Nm=r(En),m(Io.$$.fragment,En),En.forEach(p),Em=r(M),zt=l(M,"DIV",{class:!0});var Rn=k(zt);m(Ws.$$.fragment,Rn),Rm=r(Rn),hl=l(Rn,"P",{"data-svelte-h":!0}),d(hl)!=="svelte-l8j8qy"&&(hl.textContent=Q$),Dm=r(Rn),m(Uo.$$.fragment,Rn),Rn.forEach(p),Gm=r(M),Ot=l(M,"DIV",{class:!0});var Dn=k(Ot);m(Vs.$$.fragment,Dn),Fm=r(Dn),ml=l(Dn,"P",{"data-svelte-h":!0}),d(ml)!=="svelte-1gp9ysc"&&(ml.textContent=K$),Sm=r(Dn),fl=l(Dn,"P",{"data-svelte-h":!0}),d(fl)!=="svelte-1seiqi6"&&(fl.innerHTML=e2),Dn.forEach(p),Lm=r(M),De=l(M,"DIV",{class:!0});var Mt=k(De);m(Ps.$$.fragment,Mt),Zm=r(Mt),_l=l(Mt,"P",{"data-svelte-h":!0}),d(_l)!=="svelte-xvin3w"&&(_l.textContent=t2),Bm=r(Mt),bl=l(Mt,"P",{"data-svelte-h":!0}),d(bl)!=="svelte-1vd9l2b"&&(bl.innerHTML=n2),Wm=r(Mt),yl=l(Mt,"P",{"data-svelte-h":!0}),d(yl)!=="svelte-wf2uv4"&&(yl.innerHTML=o2),Mt.forEach(p),Vm=r(M),Ao=l(M,"DIV",{class:!0});var fc=k(Ao);m(Xs.$$.fragment,fc),Pm=r(fc),xl=l(fc,"P",{"data-svelte-h":!0}),d(xl)!=="svelte-17rezgl"&&(xl.textContent=a2),fc.forEach(p),Xm=r(M),Qt=l(M,"DIV",{class:!0});var Gn=k(Qt);m(Ys.$$.fragment,Gn),Ym=r(Gn),vl=l(Gn,"P",{"data-svelte-h":!0}),d(vl)!=="svelte-1lh7ib8"&&(vl.textContent=s2),zm=r(Gn),$l=l(Gn,"P",{"data-svelte-h":!0}),d($l)!=="svelte-eb77qn"&&($l.innerHTML=r2),Gn.forEach(p),Om=r(M),qo=l(M,"DIV",{class:!0});var _c=k(qo);m(zs.$$.fragment,_c),Qm=r(_c),wl=l(_c,"P",{"data-svelte-h":!0}),d(wl)!=="svelte-2wnalp"&&(wl.textContent=i2),_c.forEach(p),Km=r(M),Kt=l(M,"DIV",{class:!0});var Fn=k(Kt);m(Os.$$.fragment,Fn),ef=r(Fn),Ml=l(Fn,"P",{"data-svelte-h":!0}),d(Ml)!=="svelte-idifvk"&&(Ml.textContent=c2),tf=r(Fn),Tl=l(Fn,"P",{"data-svelte-h":!0}),d(Tl)!=="svelte-xt39ay"&&(Tl.innerHTML=l2),Fn.forEach(p),nf=r(M),Jo=l(M,"DIV",{class:!0});var bc=k(Jo);m(Qs.$$.fragment,bc),of=r(bc),kl=l(bc,"P",{"data-svelte-h":!0}),d(kl)!=="svelte-1k595hs"&&(kl.textContent=p2),bc.forEach(p),af=r(M),Ge=l(M,"DIV",{class:!0});var Tt=k(Ge);m(Ks.$$.fragment,Tt),sf=r(Tt),jl=l(Tt,"P",{"data-svelte-h":!0}),d(jl)!=="svelte-106oizm"&&(jl.textContent=d2),rf=r(Tt),Hl=l(Tt,"P",{"data-svelte-h":!0}),d(Hl)!=="svelte-1tfv4hv"&&(Hl.textContent=g2),cf=r(Tt),m(No.$$.fragment,Tt),Tt.forEach(p),lf=r(M),en=l(M,"DIV",{class:!0});var Sn=k(en);m(er.$$.fragment,Sn),pf=r(Sn),Cl=l(Sn,"P",{"data-svelte-h":!0}),d(Cl)!=="svelte-13117mw"&&(Cl.textContent=u2),df=r(Sn),m(Eo.$$.fragment,Sn),Sn.forEach(p),gf=r(M),tn=l(M,"DIV",{class:!0});var Ln=k(tn);m(tr.$$.fragment,Ln),uf=r(Ln),Il=l(Ln,"P",{"data-svelte-h":!0}),d(Il)!=="svelte-sivey2"&&(Il.textContent=h2),hf=r(Ln),m(Ro.$$.fragment,Ln),Ln.forEach(p),mf=r(M),Fe=l(M,"DIV",{class:!0});var kt=k(Fe);m(nr.$$.fragment,kt),ff=r(kt),Ul=l(kt,"P",{"data-svelte-h":!0}),d(Ul)!=="svelte-1niezvm"&&(Ul.textContent=m2),_f=r(kt),Al=l(kt,"P",{"data-svelte-h":!0}),d(Al)!=="svelte-164ppjv"&&(Al.innerHTML=f2),bf=r(kt),m(Do.$$.fragment,kt),kt.forEach(p),yf=r(M),Go=l(M,"DIV",{class:!0});var yc=k(Go);m(or.$$.fragment,yc),xf=r(yc),ql=l(yc,"P",{"data-svelte-h":!0}),d(ql)!=="svelte-1o179eo"&&(ql.textContent=_2),yc.forEach(p),vf=r(M),Se=l(M,"DIV",{class:!0});var jt=k(Se);m(ar.$$.fragment,jt),$f=r(jt),Jl=l(jt,"P",{"data-svelte-h":!0}),d(Jl)!=="svelte-1av5ht1"&&(Jl.textContent=b2),wf=r(jt),Nl=l(jt,"P",{"data-svelte-h":!0}),d(Nl)!=="svelte-1on7ni7"&&(Nl.innerHTML=y2),Mf=r(jt),m(Fo.$$.fragment,jt),jt.forEach(p),Tf=r(M),So=l(M,"DIV",{class:!0});var xc=k(So);m(sr.$$.fragment,xc),kf=r(xc),El=l(xc,"P",{"data-svelte-h":!0}),d(El)!=="svelte-1a5sg0y"&&(El.textContent=x2),xc.forEach(p),jf=r(M),Lo=l(M,"DIV",{class:!0});var vc=k(Lo);m(rr.$$.fragment,vc),Hf=r(vc),Rl=l(vc,"P",{"data-svelte-h":!0}),d(Rl)!=="svelte-13tt6xv"&&(Rl.textContent=v2),vc.forEach(p),Cf=r(M),nn=l(M,"DIV",{class:!0});var Zn=k(nn);m(ir.$$.fragment,Zn),If=r(Zn),Dl=l(Zn,"P",{"data-svelte-h":!0}),d(Dl)!=="svelte-oj23bg"&&(Dl.textContent=$2),Uf=r(Zn),m(Zo.$$.fragment,Zn),Zn.forEach(p),Af=r(M),Bo=l(M,"DIV",{class:!0});var $c=k(Bo);m(cr.$$.fragment,$c),qf=r($c),Gl=l($c,"P",{"data-svelte-h":!0}),d(Gl)!=="svelte-d99h9l"&&(Gl.textContent=w2),$c.forEach(p),Jf=r(M),on=l(M,"DIV",{class:!0});var Bn=k(on);m(lr.$$.fragment,Bn),Nf=r(Bn),Fl=l(Bn,"P",{"data-svelte-h":!0}),d(Fl)!=="svelte-fasffe"&&(Fl.textContent=M2),Ef=r(Bn),m(Wo.$$.fragment,Bn),Bn.forEach(p),Rf=r(M),ie=l(M,"DIV",{class:!0});var ve=k(ie);m(pr.$$.fragment,ve),Df=r(ve),Sl=l(ve,"P",{"data-svelte-h":!0}),d(Sl)!=="svelte-1ipows8"&&(Sl.textContent=T2),Gf=r(ve),Ll=l(ve,"P",{"data-svelte-h":!0}),d(Ll)!=="svelte-11lpom8"&&(Ll.textContent=k2),Ff=r(ve),m(Vo.$$.fragment,ve),Sf=r(ve),m(Po.$$.fragment,ve),ve.forEach(p),Lf=r(M),X=l(M,"DIV",{class:!0});var oe=k(X);m(dr.$$.fragment,oe),Zf=r(oe),Zl=l(oe,"P",{"data-svelte-h":!0}),d(Zl)!=="svelte-1d865z6"&&(Zl.textContent=j2),Bf=r(oe),Bl=l(oe,"P",{"data-svelte-h":!0}),d(Bl)!=="svelte-vb94yg"&&(Bl.textContent=H2),Wf=r(oe),Wl=l(oe,"P",{"data-svelte-h":!0}),d(Wl)!=="svelte-cpm9yd"&&(Wl.innerHTML=C2),Vf=r(oe),Vl=l(oe,"P",{"data-svelte-h":!0}),d(Vl)!=="svelte-ndzof3"&&(Vl.innerHTML=I2),Pf=r(oe),m(Xo.$$.fragment,oe),oe.forEach(p),Xf=r(M),Yo=l(M,"DIV",{class:!0});var wc=k(Yo);m(gr.$$.fragment,wc),Yf=r(wc),Pl=l(wc,"P",{"data-svelte-h":!0}),d(Pl)!=="svelte-130dnbj"&&(Pl.textContent=U2),wc.forEach(p),zf=r(M),an=l(M,"DIV",{class:!0});var Wn=k(an);m(ur.$$.fragment,Wn),Of=r(Wn),Xl=l(Wn,"P",{"data-svelte-h":!0}),d(Xl)!=="svelte-20b1wq"&&(Xl.textContent=A2),Qf=r(Wn),Yl=l(Wn,"P",{"data-svelte-h":!0}),d(Yl)!=="svelte-xt39ay"&&(Yl.innerHTML=q2),Wn.forEach(p),Kf=r(M),sn=l(M,"DIV",{class:!0});var Vn=k(sn);m(hr.$$.fragment,Vn),e_=r(Vn),zl=l(Vn,"P",{"data-svelte-h":!0}),d(zl)!=="svelte-1vu5uho"&&(zl.innerHTML=J2),t_=r(Vn),Ol=l(Vn,"P",{"data-svelte-h":!0}),d(Ol)!=="svelte-65kopl"&&(Ol.innerHTML=N2),Vn.forEach(p),n_=r(M),zo=l(M,"DIV",{class:!0});var Mc=k(zo);m(mr.$$.fragment,Mc),o_=r(Mc),Ql=l(Mc,"P",{"data-svelte-h":!0}),d(Ql)!=="svelte-i5g6s6"&&(Ql.textContent=E2),Mc.forEach(p),a_=r(M),Le=l(M,"DIV",{class:!0});var Ht=k(Le);m(fr.$$.fragment,Ht),s_=r(Ht),Kl=l(Ht,"P",{"data-svelte-h":!0}),d(Kl)!=="svelte-19fc6id"&&(Kl.textContent=R2),r_=r(Ht),ep=l(Ht,"P",{"data-svelte-h":!0}),d(ep)!=="svelte-14mt8n5"&&(ep.innerHTML=D2),i_=r(Ht),tp=l(Ht,"P",{"data-svelte-h":!0}),d(tp)!=="svelte-xxbgtf"&&(tp.innerHTML=G2),Ht.forEach(p),c_=r(M),R=l(M,"DIV",{class:!0});var G=k(R);m(_r.$$.fragment,G),l_=r(G),np=l(G,"P",{"data-svelte-h":!0}),d(np)!=="svelte-gsbehr"&&(np.textContent=F2),p_=r(G),op=l(G,"P",{"data-svelte-h":!0}),d(op)!=="svelte-1rkm1l0"&&(op.textContent=S2),d_=r(G),ap=l(G,"UL",{"data-svelte-h":!0}),d(ap)!=="svelte-1t8qnom"&&(ap.innerHTML=L2),g_=r(G),sp=l(G,"P",{"data-svelte-h":!0}),d(sp)!=="svelte-ph9tk9"&&(sp.innerHTML=Z2),u_=r(G),rp=l(G,"UL",{"data-svelte-h":!0}),d(rp)!=="svelte-16eulop"&&(rp.innerHTML=B2),h_=r(G),m(Oo.$$.fragment,G),m_=r(G),m(Qo.$$.fragment,G),G.forEach(p),f_=r(M),Ze=l(M,"DIV",{class:!0});var Ct=k(Ze);m(br.$$.fragment,Ct),__=r(Ct),ip=l(Ct,"P",{"data-svelte-h":!0}),d(ip)!=="svelte-1ia1m9g"&&(ip.textContent=W2),b_=r(Ct),m(Ko.$$.fragment,Ct),y_=r(Ct),m(ea.$$.fragment,Ct),Ct.forEach(p),x_=r(M),Be=l(M,"DIV",{class:!0});var It=k(Be);m(yr.$$.fragment,It),v_=r(It),cp=l(It,"P",{"data-svelte-h":!0}),d(cp)!=="svelte-s9iia3"&&(cp.textContent=V2),$_=r(It),lp=l(It,"P",{"data-svelte-h":!0}),d(lp)!=="svelte-l2qemr"&&(lp.innerHTML=P2),w_=r(It),m(ta.$$.fragment,It),It.forEach(p),M_=r(M),ce=l(M,"DIV",{class:!0});var $e=k(ce);m(xr.$$.fragment,$e),T_=r($e),pp=l($e,"P",{"data-svelte-h":!0}),d(pp)!=="svelte-1a7k7d"&&(pp.textContent=X2),k_=r($e),dp=l($e,"P",{"data-svelte-h":!0}),d(dp)!=="svelte-145s2tk"&&(dp.innerHTML=Y2),j_=r($e),gp=l($e,"P",{"data-svelte-h":!0}),d(gp)!=="svelte-xxbgtf"&&(gp.innerHTML=z2),H_=r($e),m(na.$$.fragment,$e),$e.forEach(p),C_=r(M),rn=l(M,"DIV",{class:!0});var Pn=k(rn);m(vr.$$.fragment,Pn),I_=r(Pn),up=l(Pn,"P",{"data-svelte-h":!0}),d(up)!=="svelte-1rbvjim"&&(up.textContent=O2),U_=r(Pn),m(oa.$$.fragment,Pn),Pn.forEach(p),A_=r(M),We=l(M,"DIV",{class:!0});var Ut=k(We);m($r.$$.fragment,Ut),q_=r(Ut),hp=l(Ut,"P",{"data-svelte-h":!0}),d(hp)!=="svelte-f61qi5"&&(hp.textContent=Q2),J_=r(Ut),m(aa.$$.fragment,Ut),N_=r(Ut),m(sa.$$.fragment,Ut),Ut.forEach(p),E_=r(M),cn=l(M,"DIV",{class:!0});var Xn=k(cn);m(wr.$$.fragment,Xn),R_=r(Xn),mp=l(Xn,"P",{"data-svelte-h":!0}),d(mp)!=="svelte-omx1g3"&&(mp.textContent=K2),D_=r(Xn),m(ra.$$.fragment,Xn),Xn.forEach(p),G_=r(M),le=l(M,"DIV",{class:!0});var we=k(le);m(Mr.$$.fragment,we),F_=r(we),fp=l(we,"P",{"data-svelte-h":!0}),d(fp)!=="svelte-lufmym"&&(fp.textContent=e1),S_=r(we),_p=l(we,"P",{"data-svelte-h":!0}),d(_p)!=="svelte-517n25"&&(_p.innerHTML=t1),L_=r(we),bp=l(we,"P",{"data-svelte-h":!0}),d(bp)!=="svelte-qhkeo9"&&(bp.innerHTML=n1),Z_=r(we),m(ia.$$.fragment,we),we.forEach(p),B_=r(M),ca=l(M,"DIV",{class:!0});var Tc=k(ca);m(Tr.$$.fragment,Tc),W_=r(Tc),yp=l(Tc,"P",{"data-svelte-h":!0}),d(yp)!=="svelte-1cgcdt7"&&(yp.textContent=o1),Tc.forEach(p),V_=r(M),Ve=l(M,"DIV",{class:!0});var At=k(Ve);m(kr.$$.fragment,At),P_=r(At),xp=l(At,"P",{"data-svelte-h":!0}),d(xp)!=="svelte-7xr8du"&&(xp.textContent=a1),X_=r(At),m(la.$$.fragment,At),Y_=r(At),m(pa.$$.fragment,At),At.forEach(p),z_=r(M),da=l(M,"DIV",{class:!0});var kc=k(da);m(jr.$$.fragment,kc),O_=r(kc),vp=l(kc,"P",{"data-svelte-h":!0}),d(vp)!=="svelte-1lk5pt4"&&(vp.textContent=s1),kc.forEach(p),Q_=r(M),pe=l(M,"DIV",{class:!0});var Me=k(pe);m(Hr.$$.fragment,Me),K_=r(Me),$p=l(Me,"P",{"data-svelte-h":!0}),d($p)!=="svelte-1tc2fi9"&&($p.textContent=r1),eb=r(Me),wp=l(Me,"P",{"data-svelte-h":!0}),d(wp)!=="svelte-svm7t8"&&(wp.innerHTML=i1),tb=r(Me),Mp=l(Me,"P",{"data-svelte-h":!0}),d(Mp)!=="svelte-xxbgtf"&&(Mp.innerHTML=c1),nb=r(Me),m(ga.$$.fragment,Me),Me.forEach(p),ob=r(M),de=l(M,"DIV",{class:!0});var Te=k(de);m(Cr.$$.fragment,Te),ab=r(Te),Tp=l(Te,"P",{"data-svelte-h":!0}),d(Tp)!=="svelte-eo3dek"&&(Tp.textContent=l1),sb=r(Te),kp=l(Te,"P",{"data-svelte-h":!0}),d(kp)!=="svelte-fokgh9"&&(kp.innerHTML=p1),rb=r(Te),jp=l(Te,"P",{"data-svelte-h":!0}),d(jp)!=="svelte-xxbgtf"&&(jp.innerHTML=d1),ib=r(Te),m(ua.$$.fragment,Te),Te.forEach(p),cb=r(M),Pe=l(M,"DIV",{class:!0});var qt=k(Pe);m(Ir.$$.fragment,qt),lb=r(qt),Hp=l(qt,"P",{"data-svelte-h":!0}),d(Hp)!=="svelte-1vpgi7z"&&(Hp.textContent=g1),pb=r(qt),Cp=l(qt,"P",{"data-svelte-h":!0}),d(Cp)!=="svelte-11ohrqa"&&(Cp.textContent=u1),db=r(qt),m(ha.$$.fragment,qt),qt.forEach(p),gb=r(M),ma=l(M,"DIV",{class:!0});var jc=k(ma);m(Ur.$$.fragment,jc),ub=r(jc),Ip=l(jc,"P",{"data-svelte-h":!0}),d(Ip)!=="svelte-wnw53w"&&(Ip.textContent=h1),jc.forEach(p),hb=r(M),ln=l(M,"DIV",{class:!0});var Yn=k(ln);m(Ar.$$.fragment,Yn),mb=r(Yn),Up=l(Yn,"P",{"data-svelte-h":!0}),d(Up)!=="svelte-b4yhj"&&(Up.textContent=m1),fb=r(Yn),Ap=l(Yn,"P",{"data-svelte-h":!0}),d(Ap)!=="svelte-1expdup"&&(Ap.innerHTML=f1),Yn.forEach(p),_b=r(M),pn=l(M,"DIV",{class:!0});var zn=k(pn);m(qr.$$.fragment,zn),bb=r(zn),qp=l(zn,"P",{"data-svelte-h":!0}),d(qp)!=="svelte-12l2ojn"&&(qp.textContent=_1),yb=r(zn),m(fa.$$.fragment,zn),zn.forEach(p),xb=r(M),S=l(M,"DIV",{class:!0});var B=k(S);m(Jr.$$.fragment,B),vb=r(B),Jp=l(B,"P",{"data-svelte-h":!0}),d(Jp)!=="svelte-ihiuvu"&&(Jp.textContent=b1),$b=r(B),Np=l(B,"P",{"data-svelte-h":!0}),d(Np)!=="svelte-kvfsh7"&&(Np.textContent=y1),wb=r(B),Ep=l(B,"P",{"data-svelte-h":!0}),d(Ep)!=="svelte-cs4ah2"&&(Ep.textContent=x1),Mb=r(B),m(_a.$$.fragment,B),Tb=r(B),Rp=l(B,"P",{"data-svelte-h":!0}),d(Rp)!=="svelte-1pnedrv"&&(Rp.textContent=v1),kb=r(B),m(ba.$$.fragment,B),B.forEach(p),jb=r(M),ya=l(M,"DIV",{class:!0});var Hc=k(ya);m(Nr.$$.fragment,Hc),Hb=r(Hc),Dp=l(Hc,"P",{"data-svelte-h":!0}),d(Dp)!=="svelte-uowooj"&&(Dp.textContent=$1),Hc.forEach(p),Cb=r(M),xa=l(M,"DIV",{class:!0});var Cc=k(xa);m(Er.$$.fragment,Cc),Ib=r(Cc),Gp=l(Cc,"P",{"data-svelte-h":!0}),d(Gp)!=="svelte-apiozp"&&(Gp.textContent=w1),Cc.forEach(p),Ub=r(M),va=l(M,"DIV",{class:!0});var Ic=k(va);m(Rr.$$.fragment,Ic),Ab=r(Ic),Fp=l(Ic,"P",{"data-svelte-h":!0}),d(Fp)!=="svelte-1qehg6u"&&(Fp.textContent=M1),Ic.forEach(p),qb=r(M),dn=l(M,"DIV",{class:!0});var On=k(dn);m(Dr.$$.fragment,On),Jb=r(On),Sp=l(On,"P",{"data-svelte-h":!0}),d(Sp)!=="svelte-tnvivq"&&(Sp.textContent=T1),Nb=r(On),m($a.$$.fragment,On),On.forEach(p),Eb=r(M),Xe=l(M,"DIV",{class:!0});var Jt=k(Xe);m(Gr.$$.fragment,Jt),Rb=r(Jt),Lp=l(Jt,"P",{"data-svelte-h":!0}),d(Lp)!=="svelte-1qa90id"&&(Lp.textContent=k1),Db=r(Jt),Zp=l(Jt,"P",{"data-svelte-h":!0}),d(Zp)!=="svelte-1knrefm"&&(Zp.textContent=j1),Gb=r(Jt),m(wa.$$.fragment,Jt),Jt.forEach(p),Fb=r(M),Ye=l(M,"DIV",{class:!0});var Nt=k(Ye);m(Fr.$$.fragment,Nt),Sb=r(Nt),Bp=l(Nt,"P",{"data-svelte-h":!0}),d(Bp)!=="svelte-3q13qo"&&(Bp.textContent=H1),Lb=r(Nt),Wp=l(Nt,"P",{"data-svelte-h":!0}),d(Wp)!=="svelte-1p5ibr4"&&(Wp.innerHTML=C1),Zb=r(Nt),m(Ma.$$.fragment,Nt),Nt.forEach(p),Bb=r(M),ze=l(M,"DIV",{class:!0});var Et=k(ze);m(Sr.$$.fragment,Et),Wb=r(Et),Vp=l(Et,"P",{"data-svelte-h":!0}),d(Vp)!=="svelte-cs1v9f"&&(Vp.textContent=I1),Vb=r(Et),Pp=l(Et,"P",{"data-svelte-h":!0}),d(Pp)!=="svelte-1kxlgey"&&(Pp.innerHTML=U1),Pb=r(Et),Xp=l(Et,"P",{"data-svelte-h":!0}),d(Xp)!=="svelte-ndzof3"&&(Xp.innerHTML=A1),Et.forEach(p),Xb=r(M),Oe=l(M,"DIV",{class:!0});var Rt=k(Oe);m(Lr.$$.fragment,Rt),Yb=r(Rt),Yp=l(Rt,"P",{"data-svelte-h":!0}),d(Yp)!=="svelte-16tls2x"&&(Yp.textContent=q1),zb=r(Rt),zp=l(Rt,"P",{"data-svelte-h":!0}),d(zp)!=="svelte-n0cprg"&&(zp.innerHTML=J1),Ob=r(Rt),Op=l(Rt,"P",{"data-svelte-h":!0}),d(Op)!=="svelte-mf5z8c"&&(Op.innerHTML=N1),Rt.forEach(p),Qb=r(M),Qe=l(M,"DIV",{class:!0});var Dt=k(Qe);m(Zr.$$.fragment,Dt),Kb=r(Dt),Qp=l(Dt,"P",{"data-svelte-h":!0}),d(Qp)!=="svelte-keb9bv"&&(Qp.textContent=E1),ey=r(Dt),Kp=l(Dt,"P",{"data-svelte-h":!0}),d(Kp)!=="svelte-2lslon"&&(Kp.innerHTML=R1),ty=r(Dt),ed=l(Dt,"P",{"data-svelte-h":!0}),d(ed)!=="svelte-12do56u"&&(ed.innerHTML=D1),Dt.forEach(p),ny=r(M),Y=l(M,"DIV",{class:!0});var ae=k(Y);m(Br.$$.fragment,ae),oy=r(ae),td=l(ae,"P",{"data-svelte-h":!0}),d(td)!=="svelte-13c8xg2"&&(td.textContent=G1),ay=r(ae),nd=l(ae,"P",{"data-svelte-h":!0}),d(nd)!=="svelte-5htwml"&&(nd.textContent=F1),sy=r(ae),m(Ta.$$.fragment,ae),ry=r(ae),m(ka.$$.fragment,ae),iy=r(ae),m(ja.$$.fragment,ae),ae.forEach(p),cy=r(M),Ke=l(M,"DIV",{class:!0});var Gt=k(Ke);m(Wr.$$.fragment,Gt),ly=r(Gt),od=l(Gt,"P",{"data-svelte-h":!0}),d(od)!=="svelte-1o1ui5j"&&(od.textContent=S1),py=r(Gt),ad=l(Gt,"P",{"data-svelte-h":!0}),d(ad)!=="svelte-zzdx9o"&&(ad.innerHTML=L1),dy=r(Gt),sd=l(Gt,"P",{"data-svelte-h":!0}),d(sd)!=="svelte-xxbgtf"&&(sd.innerHTML=Z1),Gt.forEach(p),gy=r(M),et=l(M,"DIV",{class:!0});var Ft=k(et);m(Vr.$$.fragment,Ft),uy=r(Ft),rd=l(Ft,"P",{"data-svelte-h":!0}),d(rd)!=="svelte-vjmct2"&&(rd.textContent=B1),hy=r(Ft),m(Ha.$$.fragment,Ft),my=r(Ft),m(Ca.$$.fragment,Ft),Ft.forEach(p),fy=r(M),gn=l(M,"DIV",{class:!0});var Qn=k(gn);m(Pr.$$.fragment,Qn),_y=r(Qn),id=l(Qn,"P",{"data-svelte-h":!0}),d(id)!=="svelte-1h0ufuc"&&(id.textContent=W1),by=r(Qn),m(Ia.$$.fragment,Qn),Qn.forEach(p),yy=r(M),un=l(M,"DIV",{class:!0});var Kn=k(un);m(Xr.$$.fragment,Kn),xy=r(Kn),cd=l(Kn,"P",{"data-svelte-h":!0}),d(cd)!=="svelte-1my46uo"&&(cd.textContent=V1),vy=r(Kn),m(Ua.$$.fragment,Kn),Kn.forEach(p),$y=r(M),hn=l(M,"DIV",{class:!0});var eo=k(hn);m(Yr.$$.fragment,eo),wy=r(eo),ld=l(eo,"P",{"data-svelte-h":!0}),d(ld)!=="svelte-5pcxuz"&&(ld.textContent=P1),My=r(eo),m(Aa.$$.fragment,eo),eo.forEach(p),Ty=r(M),mn=l(M,"DIV",{class:!0});var to=k(mn);m(zr.$$.fragment,to),ky=r(to),pd=l(to,"P",{"data-svelte-h":!0}),d(pd)!=="svelte-10aqzwl"&&(pd.textContent=X1),jy=r(to),m(qa.$$.fragment,to),to.forEach(p),Hy=r(M),tt=l(M,"DIV",{class:!0});var St=k(tt);m(Or.$$.fragment,St),Cy=r(St),dd=l(St,"P",{"data-svelte-h":!0}),d(dd)!=="svelte-38gi4y"&&(dd.textContent=Y1),Iy=r(St),gd=l(St,"P",{"data-svelte-h":!0}),d(gd)!=="svelte-65s7rh"&&(gd.innerHTML=z1),Uy=r(St),ud=l(St,"P",{"data-svelte-h":!0}),d(ud)!=="svelte-12do56u"&&(ud.innerHTML=O1),St.forEach(p),Ay=r(M),fn=l(M,"DIV",{class:!0});var no=k(fn);m(Qr.$$.fragment,no),qy=r(no),hd=l(no,"P",{"data-svelte-h":!0}),d(hd)!=="svelte-o2dz8s"&&(hd.textContent=Q1),Jy=r(no),md=l(no,"P",{"data-svelte-h":!0}),d(md)!=="svelte-198t660"&&(md.innerHTML=K1),no.forEach(p),Ny=r(M),_n=l(M,"DIV",{class:!0});var oo=k(_n);m(Kr.$$.fragment,oo),Ey=r(oo),fd=l(oo,"P",{"data-svelte-h":!0}),d(fd)!=="svelte-kx7a2l"&&(fd.textContent=ew),Ry=r(oo),m(Ja.$$.fragment,oo),oo.forEach(p),Dy=r(M),ge=l(M,"DIV",{class:!0});var ke=k(ge);m(ei.$$.fragment,ke),Gy=r(ke),_d=l(ke,"P",{"data-svelte-h":!0}),d(_d)!=="svelte-i4rj9b"&&(_d.textContent=tw),Fy=r(ke),bd=l(ke,"P",{"data-svelte-h":!0}),d(bd)!=="svelte-15iw2gd"&&(bd.innerHTML=nw),Sy=r(ke),yd=l(ke,"P",{"data-svelte-h":!0}),d(yd)!=="svelte-8s7qco"&&(yd.innerHTML=ow),Ly=r(ke),m(Na.$$.fragment,ke),ke.forEach(p),Zy=r(M),nt=l(M,"DIV",{class:!0});var Lt=k(nt);m(ti.$$.fragment,Lt),By=r(Lt),xd=l(Lt,"P",{"data-svelte-h":!0}),d(xd)!=="svelte-6vx93v"&&(xd.textContent=aw),Wy=r(Lt),vd=l(Lt,"P",{"data-svelte-h":!0}),d(vd)!=="svelte-1992tg8"&&(vd.innerHTML=sw),Vy=r(Lt),$d=l(Lt,"P",{"data-svelte-h":!0}),d($d)!=="svelte-gmy86i"&&($d.innerHTML=rw),Lt.forEach(p),Py=r(M),ot=l(M,"DIV",{class:!0});var Zt=k(ot);m(ni.$$.fragment,Zt),Xy=r(Zt),wd=l(Zt,"P",{"data-svelte-h":!0}),d(wd)!=="svelte-h8ye5s"&&(wd.textContent=iw),Yy=r(Zt),Md=l(Zt,"P",{"data-svelte-h":!0}),d(Md)!=="svelte-1u14fwi"&&(Md.innerHTML=cw),zy=r(Zt),m(Ea.$$.fragment,Zt),Zt.forEach(p),Oy=r(M),L=l(M,"DIV",{class:!0});var W=k(L);m(oi.$$.fragment,W),Qy=r(W),Td=l(W,"P",{"data-svelte-h":!0}),d(Td)!=="svelte-t9d1pp"&&(Td.textContent=lw),Ky=r(W),kd=l(W,"P",{"data-svelte-h":!0}),d(kd)!=="svelte-xxyl9g"&&(kd.innerHTML=pw),ex=r(W),jd=l(W,"P",{"data-svelte-h":!0}),d(jd)!=="svelte-ph9tk9"&&(jd.innerHTML=dw),tx=r(W),Hd=l(W,"UL",{"data-svelte-h":!0}),d(Hd)!=="svelte-16eulop"&&(Hd.innerHTML=gw),nx=r(W),Cd=l(W,"P",{"data-svelte-h":!0}),d(Cd)!=="svelte-k7g81c"&&(Cd.textContent=uw),ox=r(W),m(Ra.$$.fragment,W),W.forEach(p),ax=r(M),at=l(M,"DIV",{class:!0});var Bt=k(at);m(ai.$$.fragment,Bt),sx=r(Bt),Id=l(Bt,"P",{"data-svelte-h":!0}),d(Id)!=="svelte-1lgtcoe"&&(Id.textContent=hw),rx=r(Bt),Ud=l(Bt,"P",{"data-svelte-h":!0}),d(Ud)!=="svelte-zugpyn"&&(Ud.textContent=mw),ix=r(Bt),m(Da.$$.fragment,Bt),Bt.forEach(p),cx=r(M),z=l(M,"DIV",{class:!0});var se=k(z);m(si.$$.fragment,se),lx=r(se),Ad=l(se,"P",{"data-svelte-h":!0}),d(Ad)!=="svelte-1j5taqn"&&(Ad.textContent=fw),px=r(se),qd=l(se,"P",{"data-svelte-h":!0}),d(qd)!=="svelte-1oloczu"&&(qd.textContent=_w),dx=r(se),m(Ga.$$.fragment,se),gx=r(se),m(Fa.$$.fragment,se),ux=r(se),m(Sa.$$.fragment,se),se.forEach(p),hx=r(M),st=l(M,"DIV",{class:!0});var Wt=k(st);m(ri.$$.fragment,Wt),mx=r(Wt),Jd=l(Wt,"P",{"data-svelte-h":!0}),d(Jd)!=="svelte-z82c1y"&&(Jd.textContent=bw),fx=r(Wt),Nd=l(Wt,"P",{"data-svelte-h":!0}),d(Nd)!=="svelte-1expdup"&&(Nd.innerHTML=yw),_x=r(Wt),m(La.$$.fragment,Wt),Wt.forEach(p),bx=r(M),bn=l(M,"DIV",{class:!0});var ao=k(bn);m(ii.$$.fragment,ao),yx=r(ao),Ed=l(ao,"P",{"data-svelte-h":!0}),d(Ed)!=="svelte-klf1wz"&&(Ed.textContent=xw),xx=r(ao),m(Za.$$.fragment,ao),ao.forEach(p),vx=r(M),ue=l(M,"DIV",{class:!0});var je=k(ue);m(ci.$$.fragment,je),$x=r(je),Rd=l(je,"P",{"data-svelte-h":!0}),d(Rd)!=="svelte-6tdefx"&&(Rd.textContent=vw),wx=r(je),Dd=l(je,"P",{"data-svelte-h":!0}),d(Dd)!=="svelte-sjutdt"&&(Dd.textContent=$w),Mx=r(je),Gd=l(je,"P",{"data-svelte-h":!0}),d(Gd)!=="svelte-164ppjv"&&(Gd.innerHTML=ww),Tx=r(je),m(Ba.$$.fragment,je),je.forEach(p),kx=r(M),rt=l(M,"DIV",{class:!0});var Vt=k(rt);m(li.$$.fragment,Vt),jx=r(Vt),Fd=l(Vt,"P",{"data-svelte-h":!0}),d(Fd)!=="svelte-tgkk8q"&&(Fd.textContent=Mw),Hx=r(Vt),Sd=l(Vt,"P",{"data-svelte-h":!0}),d(Sd)!=="svelte-llxqqu"&&(Sd.textContent=Tw),Cx=r(Vt),Ld=l(Vt,"P",{"data-svelte-h":!0}),d(Ld)!=="svelte-1bxaipy"&&(Ld.innerHTML=kw),Vt.forEach(p),Ix=r(M),yn=l(M,"DIV",{class:!0});var so=k(yn);m(pi.$$.fragment,so),Ux=r(so),Zd=l(so,"P",{"data-svelte-h":!0}),d(Zd)!=="svelte-1icdi1y"&&(Zd.textContent=jw),Ax=r(so),m(Wa.$$.fragment,so),so.forEach(p),qx=r(M),he=l(M,"DIV",{class:!0});var He=k(he);m(di.$$.fragment,He),Jx=r(He),Bd=l(He,"P",{"data-svelte-h":!0}),d(Bd)!=="svelte-kukbcr"&&(Bd.textContent=Hw),Nx=r(He),m(Va.$$.fragment,He),Ex=r(He),m(Pa.$$.fragment,He),Rx=r(He),m(Xa.$$.fragment,He),He.forEach(p),Dx=r(M),q=l(M,"DIV",{class:!0});var N=k(q);m(gi.$$.fragment,N),Gx=r(N),Wd=l(N,"P",{"data-svelte-h":!0}),d(Wd)!=="svelte-1nvey1d"&&(Wd.textContent=Cw),Fx=r(N),Vd=l(N,"P",{"data-svelte-h":!0}),d(Vd)!=="svelte-1vu0l4l"&&(Vd.textContent=Iw),Sx=r(N),Pd=l(N,"P",{"data-svelte-h":!0}),d(Pd)!=="svelte-adrskp"&&(Pd.innerHTML=Uw),Lx=r(N),Xd=l(N,"P",{"data-svelte-h":!0}),d(Xd)!=="svelte-1m6fudm"&&(Xd.innerHTML=Aw),Zx=r(N),Yd=l(N,"P",{"data-svelte-h":!0}),d(Yd)!=="svelte-nojwu3"&&(Yd.innerHTML=qw),Bx=r(N),zd=l(N,"P",{"data-svelte-h":!0}),d(zd)!=="svelte-90ewc6"&&(zd.innerHTML=Jw),Wx=r(N),m(Ya.$$.fragment,N),Vx=r(N),m(za.$$.fragment,N),Px=r(N),m(Oa.$$.fragment,N),Xx=r(N),m(Qa.$$.fragment,N),N.forEach(p),Yx=r(M),Ka=l(M,"DIV",{class:!0});var sh=k(Ka);m(ui.$$.fragment,sh),zx=r(sh),Od=l(sh,"P",{"data-svelte-h":!0}),d(Od)!=="svelte-l7gr50"&&(Od.textContent=Nw),sh.forEach(p),M.forEach(p),pu=r(t),E=l(t,"DIV",{class:!0});var O=k(E);m(hi.$$.fragment,O),Ox=r(O),Qd=l(O,"P",{"data-svelte-h":!0}),d(Qd)!=="svelte-1qftj6h"&&(Qd.textContent=Ew),Qx=r(O),Kd=l(O,"P",{"data-svelte-h":!0}),d(Kd)!=="svelte-xomfnq"&&(Kd.textContent=Rw),Kx=r(O),eg=l(O,"OL",{"data-svelte-h":!0}),d(eg)!=="svelte-2mvyin"&&(eg.innerHTML=Dw),ev=r(O),tg=l(O,"P",{"data-svelte-h":!0}),d(tg)!=="svelte-6du8u1"&&(tg.innerHTML=Gw),tv=r(O),m(es.$$.fragment,O),nv=r(O),m(ts.$$.fragment,O),ov=r(O),m(ns.$$.fragment,O),O.forEach(p),du=r(t),m(mi.$$.fragment,t),gu=r(t),m(fi.$$.fragment,t),uu=r(t),jn=l(t,"DIV",{class:!0});var rh=k(jn);m(_i.$$.fragment,rh),av=r(rh),ng=l(rh,"P",{"data-svelte-h":!0}),d(ng)!=="svelte-frgpd7"&&(ng.textContent=Fw),rh.forEach(p),hu=r(t),m(bi.$$.fragment,t),mu=r(t),ct=l(t,"DIV",{class:!0});var Pg=k(ct);m(yi.$$.fragment,Pg),sv=r(Pg),og=l(Pg,"P",{"data-svelte-h":!0}),d(og)!=="svelte-n4j72f"&&(og.textContent=Sw),rv=r(Pg),ag=l(Pg,"P",{"data-svelte-h":!0}),d(ag)!=="svelte-102qt1n"&&(ag.innerHTML=Lw),Pg.forEach(p),fu=r(t),m(xi.$$.fragment,t),_u=r(t),lt=l(t,"DIV",{class:!0});var Xg=k(lt);m(vi.$$.fragment,Xg),iv=r(Xg),sg=l(Xg,"P",{"data-svelte-h":!0}),d(sg)!=="svelte-si50g0"&&(sg.textContent=Zw),cv=r(Xg),m(os.$$.fragment,Xg),Xg.forEach(p),bu=r(t),m($i.$$.fragment,t),yu=r(t),Hn=l(t,"DIV",{class:!0});var ih=k(Hn);m(wi.$$.fragment,ih),lv=r(ih),rg=l(ih,"P",{"data-svelte-h":!0}),d(rg)!=="svelte-1dp8z99"&&(rg.textContent=Bw),ih.forEach(p),xu=r(t),m(Mi.$$.fragment,t),vu=r(t),Cn=l(t,"DIV",{class:!0});var ch=k(Cn);m(Ti.$$.fragment,ch),pv=r(ch),ig=l(ch,"P",{"data-svelte-h":!0}),d(ig)!=="svelte-1m53mfe"&&(ig.innerHTML=Ww),ch.forEach(p),$u=r(t),m(ki.$$.fragment,t),wu=r(t),pt=l(t,"DIV",{class:!0});var Yg=k(pt);m(ji.$$.fragment,Yg),dv=r(Yg),cg=l(Yg,"P",{"data-svelte-h":!0}),d(cg)!=="svelte-8pkqdq"&&(cg.textContent=Vw),gv=r(Yg),lg=l(Yg,"P",{"data-svelte-h":!0}),d(lg)!=="svelte-vdyl1q"&&(lg.innerHTML=Pw),Yg.forEach(p),Mu=r(t),m(Hi.$$.fragment,t),Tu=r(t),dt=l(t,"DIV",{class:!0});var zg=k(dt);m(Ci.$$.fragment,zg),uv=r(zg),pg=l(zg,"P",{"data-svelte-h":!0}),d(pg)!=="svelte-fx2iaz"&&(pg.textContent=Xw),hv=r(zg),m(as.$$.fragment,zg),zg.forEach(p),ku=r(t),m(Ii.$$.fragment,t),ju=r(t),gt=l(t,"DIV",{class:!0});var Og=k(gt);m(Ui.$$.fragment,Og),mv=r(Og),dg=l(Og,"P",{"data-svelte-h":!0}),d(dg)!=="svelte-pzc88f"&&(dg.textContent=Yw),fv=r(Og),m(ss.$$.fragment,Og),Og.forEach(p),Hu=r(t),m(Ai.$$.fragment,t),Cu=r(t),In=l(t,"DIV",{class:!0});var lh=k(In);m(qi.$$.fragment,lh),_v=r(lh),gg=l(lh,"P",{"data-svelte-h":!0}),d(gg)!=="svelte-1eicjbk"&&(gg.textContent=zw),lh.forEach(p),Iu=r(t),m(Ji.$$.fragment,t),Uu=r(t),Q=l(t,"DIV",{class:!0});var Mn=k(Q);m(Ni.$$.fragment,Mn),bv=r(Mn),ug=l(Mn,"P",{"data-svelte-h":!0}),d(ug)!=="svelte-1v78htg"&&(ug.innerHTML=Ow),yv=r(Mn),hg=l(Mn,"P",{"data-svelte-h":!0}),d(hg)!=="svelte-murgw9"&&(hg.innerHTML=Qw),xv=r(Mn),mg=l(Mn,"UL",{"data-svelte-h":!0}),d(mg)!=="svelte-1mrng5l"&&(mg.innerHTML=Kw),vv=r(Mn),m(rs.$$.fragment,Mn),Mn.forEach(p),Au=r(t),m(Ei.$$.fragment,t),qu=r(t),K=l(t,"DIV",{class:!0});var Tn=k(K);m(Ri.$$.fragment,Tn),$v=r(Tn),fg=l(Tn,"P",{"data-svelte-h":!0}),d(fg)!=="svelte-ovnxfi"&&(fg.textContent=eM),wv=r(Tn),_g=l(Tn,"P",{"data-svelte-h":!0}),d(_g)!=="svelte-afv8fv"&&(_g.textContent=tM),Mv=r(Tn),bg=l(Tn,"P",{"data-svelte-h":!0}),d(bg)!=="svelte-18gvp4f"&&(bg.innerHTML=nM),Tv=r(Tn),yg=l(Tn,"P",{"data-svelte-h":!0}),d(yg)!=="svelte-ndzof3"&&(yg.innerHTML=oM),Tn.forEach(p),Ju=r(t),m(Di.$$.fragment,t),Nu=r(t),fe=l(t,"DIV",{class:!0});var ms=k(fe);m(Gi.$$.fragment,ms),kv=r(ms),xg=l(ms,"P",{"data-svelte-h":!0}),d(xg)!=="svelte-2ejdv8"&&(xg.textContent=aM),jv=r(ms),vg=l(ms,"P",{"data-svelte-h":!0}),d(vg)!=="svelte-1ff2vxz"&&(vg.innerHTML=sM),Hv=r(ms),$g=l(ms,"P",{"data-svelte-h":!0}),d($g)!=="svelte-ndzof3"&&($g.innerHTML=rM),ms.forEach(p),Eu=r(t),m(Fi.$$.fragment,t),Ru=r(t),ut=l(t,"DIV",{class:!0});var Qg=k(ut);m(Si.$$.fragment,Qg),Cv=r(Qg),wg=l(Qg,"P",{"data-svelte-h":!0}),d(wg)!=="svelte-1v8t816"&&(wg.textContent=iM),Iv=r(Qg),m(is.$$.fragment,Qg),Qg.forEach(p),Du=r(t),m(Li.$$.fragment,t),Gu=r(t),ht=l(t,"DIV",{class:!0});var Kg=k(ht);m(Zi.$$.fragment,Kg),Uv=r(Kg),Mg=l(Kg,"P",{"data-svelte-h":!0}),d(Mg)!=="svelte-by9v9h"&&(Mg.textContent=cM),Av=r(Kg),Tg=l(Kg,"P",{"data-svelte-h":!0}),d(Tg)!=="svelte-ndzof3"&&(Tg.innerHTML=lM),Kg.forEach(p),Fu=r(t),m(Bi.$$.fragment,t),Su=r(t),Un=l(t,"DIV",{class:!0});var ph=k(Un);m(Wi.$$.fragment,ph),qv=r(ph),kg=l(ph,"P",{"data-svelte-h":!0}),d(kg)!=="svelte-f10xp"&&(kg.textContent=pM),ph.forEach(p),Lu=r(t),m(Vi.$$.fragment,t),Zu=r(t),An=l(t,"DIV",{class:!0});var dh=k(An);m(Pi.$$.fragment,dh),Jv=r(dh),jg=l(dh,"P",{"data-svelte-h":!0}),d(jg)!=="svelte-s36het"&&(jg.textContent=dM),dh.forEach(p),Bu=r(t),m(Xi.$$.fragment,t),Wu=r(t),Yi=l(t,"P",{"data-svelte-h":!0}),d(Yi)!=="svelte-eea1xn"&&(Yi.innerHTML=gM),Vu=r(t),_e=l(t,"DIV",{class:!0});var fs=k(_e);m(zi.$$.fragment,fs),Nv=r(fs),Hg=l(fs,"P",{"data-svelte-h":!0}),d(Hg)!=="svelte-1nyzeix"&&(Hg.textContent=uM),Ev=r(fs),xn=l(fs,"DIV",{class:!0});var eu=k(xn);m(Oi.$$.fragment,eu),Rv=r(eu),Cg=l(eu,"P",{"data-svelte-h":!0}),d(Cg)!=="svelte-1d7s5nc"&&(Cg.innerHTML=hM),Dv=r(eu),m(cs.$$.fragment,eu),eu.forEach(p),Gv=r(fs),vn=l(fs,"DIV",{class:!0});var tu=k(vn);m(Qi.$$.fragment,tu),Fv=r(tu),Ig=l(tu,"P",{"data-svelte-h":!0}),d(Ig)!=="svelte-1o44akx"&&(Ig.innerHTML=mM),Sv=r(tu),Ug=l(tu,"P",{"data-svelte-h":!0}),d(Ug)!=="svelte-huzhzj"&&(Ug.innerHTML=fM),tu.forEach(p),fs.forEach(p),Pu=r(t),qn=l(t,"DIV",{class:!0});var gh=k(qn);m(Ki.$$.fragment,gh),Lv=r(gh),Ag=l(gh,"P",{"data-svelte-h":!0}),d(Ag)!=="svelte-1cij9yu"&&(Ag.textContent=_M),gh.forEach(p),Xu=r(t),ee=l(t,"DIV",{class:!0});var kn=k(ee);m(ec.$$.fragment,kn),Zv=r(kn),qg=l(kn,"P",{"data-svelte-h":!0}),d(qg)!=="svelte-bx32lj"&&(qg.textContent=bM),Bv=r(kn),Jg=l(kn,"P",{"data-svelte-h":!0}),d(Jg)!=="svelte-1a6nwfz"&&(Jg.textContent=yM),Wv=r(kn),Ng=l(kn,"UL",{"data-svelte-h":!0}),d(Ng)!=="svelte-1wreq5n"&&(Ng.innerHTML=xM),Vv=r(kn),Eg=l(kn,"P",{"data-svelte-h":!0}),d(Eg)!=="svelte-zlmtk1"&&(Eg.innerHTML=vM),kn.forEach(p),Yu=r(t),m(tc.$$.fragment,t),zu=r(t),D=l(t,"DIV",{class:!0});var me=k(D);m(nc.$$.fragment,me),Pv=r(me),Rg=l(me,"P",{"data-svelte-h":!0}),d(Rg)!=="svelte-1wfz9hx"&&(Rg.textContent=$M),Xv=r(me),Dg=l(me,"P",{"data-svelte-h":!0}),d(Dg)!=="svelte-3pj0bu"&&(Dg.innerHTML=wM),Yv=r(me),m(ls.$$.fragment,me),zv=r(me),it=l(me,"DIV",{class:!0});var _s=k(it);m(oc.$$.fragment,_s),Ov=r(_s),Gg=l(_s,"P",{"data-svelte-h":!0}),d(Gg)!=="svelte-e95u7k"&&(Gg.textContent=MM),Qv=r(_s),m(ps.$$.fragment,_s),Kv=r(_s),Fg=l(_s,"P",{"data-svelte-h":!0}),d(Fg)!=="svelte-eijr4"&&(Fg.innerHTML=TM),_s.forEach(p),e$=r(me),$n=l(me,"DIV",{class:!0});var nu=k($n);m(ac.$$.fragment,nu),t$=r(nu),Sg=l(nu,"P",{"data-svelte-h":!0}),d(Sg)!=="svelte-t1x1k0"&&(Sg.textContent=kM),n$=r(nu),Lg=l(nu,"P",{"data-svelte-h":!0}),d(Lg)!=="svelte-1jdo3t2"&&(Lg.textContent=jM),nu.forEach(p),o$=r(me),wn=l(me,"DIV",{class:!0});var ou=k(wn);m(sc.$$.fragment,ou),a$=r(ou),Zg=l(ou,"P",{"data-svelte-h":!0}),d(Zg)!=="svelte-m2dnyn"&&(Zg.innerHTML=HM),s$=r(ou),Bg=l(ou,"P",{"data-svelte-h":!0}),d(Bg)!=="svelte-aasb0o"&&(Bg.innerHTML=CM),ou.forEach(p),me.forEach(p),Ou=r(t),m(rc.$$.fragment,t),Qu=r(t),ic=l(t,"P",{"data-svelte-h":!0}),d(ic)!=="svelte-uto5dd"&&(ic.innerHTML=IM),Ku=r(t),m(cc.$$.fragment,t),eh=r(t),be=l(t,"DIV",{class:!0});var bs=k(be);m(lc.$$.fragment,bs),r$=r(bs),Wg=l(bs,"P",{"data-svelte-h":!0}),d(Wg)!=="svelte-1qo0ul7"&&(Wg.textContent=UM),i$=r(bs),m(ds.$$.fragment,bs),c$=r(bs),m(gs.$$.fragment,bs),bs.forEach(p),th=r(t),m(pc.$$.fragment,t),nh=r(t),ye=l(t,"DIV",{class:!0});var ys=k(ye);m(dc.$$.fragment,ys),l$=r(ys),Vg=l(ys,"P",{"data-svelte-h":!0}),d(Vg)!=="svelte-m0m658"&&(Vg.textContent=AM),p$=r(ys),m(us.$$.fragment,ys),d$=r(ys),m(hs.$$.fragment,ys),ys.forEach(p),oh=r(t),au=l(t,"P",{}),k(au).forEach(p),this.h()},h(){j(n,"name","hf:doc:metadata"),j(n,"content",C0),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(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(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(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(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(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(go,"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(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(F,"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(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(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(Mo,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(To,"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(jo,"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(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(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(Ot,"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(Ao,"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(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(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(Jo,"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(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(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(Go,"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(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(Lo,"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(Bo,"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(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(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(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(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(zo,"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(R,"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(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(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(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(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(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(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(ca,"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(da,"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(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(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(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(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(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(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(ya,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(xa,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(va,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(dn,"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(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(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(Oe,"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(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(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(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(gn,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(un,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(hn,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(mn,"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(fn,"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(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(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(ot,"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(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(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(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(bn,"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(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(yn,"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(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(Ka,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(w,"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(jn,"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(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(Hn,"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(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(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(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(In,"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(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(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(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(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(Un,"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(xn,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(vn,"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(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(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(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($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(wn,"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(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(ye,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8")},m(t,g){o(document.head,n),$(t,u,g),$(t,i,g),$(t,a,g),f(x,t,g),$(t,e,g),$(t,v,g),$(t,su,g),$(t,xs,g),$(t,ru,g),$(t,vs,g),$(t,iu,g),f($s,t,g),$(t,cu,g),f(ws,t,g),$(t,lu,g),$(t,w,g),f(Ms,w,null),o(w,uh),o(w,Ce),f(Ts,Ce,null),o(Ce,hh),o(Ce,Uc),o(Ce,mh),o(Ce,Ac),o(Ce,fh),o(Ce,qc),o(w,_h),o(w,Ie),f(ks,Ie,null),o(Ie,bh),o(Ie,Jc),o(Ie,yh),o(Ie,Nc),o(Ie,xh),f(ro,Ie,null),o(w,vh),o(w,Pt),f(js,Pt,null),o(Pt,$h),o(Pt,Ec),o(Pt,wh),o(Pt,Rc),o(w,Mh),o(w,Xt),f(Hs,Xt,null),o(Xt,Th),o(Xt,Dc),o(Xt,kh),o(Xt,Gc),o(w,jh),o(w,Ue),f(Cs,Ue,null),o(Ue,Hh),o(Ue,Fc),o(Ue,Ch),o(Ue,Sc),o(Ue,Ih),o(Ue,Lc),o(w,Uh),o(w,Ae),f(Is,Ae,null),o(Ae,Ah),o(Ae,Zc),o(Ae,qh),f(io,Ae,null),o(Ae,Jh),f(co,Ae,null),o(w,Nh),o(w,qe),f(Us,qe,null),o(qe,Eh),o(qe,Bc),o(qe,Rh),f(lo,qe,null),o(qe,Dh),f(po,qe,null),o(w,Gh),o(w,go),f(As,go,null),o(go,Fh),o(go,Wc),o(w,Sh),o(w,Je),f(qs,Je,null),o(Je,Lh),o(Je,Vc),o(Je,Zh),o(Je,Pc),o(Je,Bh),f(uo,Je,null),o(w,Wh),o(w,re),f(Js,re,null),o(re,Vh),o(re,Xc),o(re,Ph),f(ho,re,null),o(re,Xh),f(mo,re,null),o(re,Yh),f(fo,re,null),o(w,zh),o(w,F),f(Ns,F,null),o(F,Oh),o(F,Yc),o(F,Qh),o(F,zc),o(F,Kh),o(F,Oc),o(F,em),f(_o,F,null),o(F,tm),f(bo,F,null),o(F,nm),f(yo,F,null),o(w,om),o(w,V),f(Es,V,null),o(V,am),o(V,Qc),o(V,sm),o(V,Kc),o(V,rm),o(V,el),o(V,im),o(V,tl),o(V,cm),f(xo,V,null),o(w,lm),o(w,Ne),f(Rs,Ne,null),o(Ne,pm),o(Ne,nl),o(Ne,dm),f(vo,Ne,null),o(Ne,gm),f($o,Ne,null),o(w,um),o(w,P),f(Ds,P,null),o(P,hm),o(P,ol),o(P,mm),o(P,al),o(P,fm),o(P,sl),o(P,_m),o(P,rl),o(P,bm),f(wo,P,null),o(w,ym),o(w,Mo),f(Gs,Mo,null),o(Mo,xm),o(Mo,il),o(w,vm),o(w,To),f(Fs,To,null),o(To,$m),o(To,cl),o(w,wm),o(w,Ee),f(Ss,Ee,null),o(Ee,Mm),o(Ee,ll),o(Ee,Tm),o(Ee,pl),o(Ee,km),f(ko,Ee,null),o(w,jm),o(w,jo),f(Ls,jo,null),o(jo,Hm),o(jo,dl),o(w,Cm),o(w,Re),f(Zs,Re,null),o(Re,Im),o(Re,gl),o(Re,Um),f(Ho,Re,null),o(Re,Am),f(Co,Re,null),o(w,qm),o(w,Yt),f(Bs,Yt,null),o(Yt,Jm),o(Yt,ul),o(Yt,Nm),f(Io,Yt,null),o(w,Em),o(w,zt),f(Ws,zt,null),o(zt,Rm),o(zt,hl),o(zt,Dm),f(Uo,zt,null),o(w,Gm),o(w,Ot),f(Vs,Ot,null),o(Ot,Fm),o(Ot,ml),o(Ot,Sm),o(Ot,fl),o(w,Lm),o(w,De),f(Ps,De,null),o(De,Zm),o(De,_l),o(De,Bm),o(De,bl),o(De,Wm),o(De,yl),o(w,Vm),o(w,Ao),f(Xs,Ao,null),o(Ao,Pm),o(Ao,xl),o(w,Xm),o(w,Qt),f(Ys,Qt,null),o(Qt,Ym),o(Qt,vl),o(Qt,zm),o(Qt,$l),o(w,Om),o(w,qo),f(zs,qo,null),o(qo,Qm),o(qo,wl),o(w,Km),o(w,Kt),f(Os,Kt,null),o(Kt,ef),o(Kt,Ml),o(Kt,tf),o(Kt,Tl),o(w,nf),o(w,Jo),f(Qs,Jo,null),o(Jo,of),o(Jo,kl),o(w,af),o(w,Ge),f(Ks,Ge,null),o(Ge,sf),o(Ge,jl),o(Ge,rf),o(Ge,Hl),o(Ge,cf),f(No,Ge,null),o(w,lf),o(w,en),f(er,en,null),o(en,pf),o(en,Cl),o(en,df),f(Eo,en,null),o(w,gf),o(w,tn),f(tr,tn,null),o(tn,uf),o(tn,Il),o(tn,hf),f(Ro,tn,null),o(w,mf),o(w,Fe),f(nr,Fe,null),o(Fe,ff),o(Fe,Ul),o(Fe,_f),o(Fe,Al),o(Fe,bf),f(Do,Fe,null),o(w,yf),o(w,Go),f(or,Go,null),o(Go,xf),o(Go,ql),o(w,vf),o(w,Se),f(ar,Se,null),o(Se,$f),o(Se,Jl),o(Se,wf),o(Se,Nl),o(Se,Mf),f(Fo,Se,null),o(w,Tf),o(w,So),f(sr,So,null),o(So,kf),o(So,El),o(w,jf),o(w,Lo),f(rr,Lo,null),o(Lo,Hf),o(Lo,Rl),o(w,Cf),o(w,nn),f(ir,nn,null),o(nn,If),o(nn,Dl),o(nn,Uf),f(Zo,nn,null),o(w,Af),o(w,Bo),f(cr,Bo,null),o(Bo,qf),o(Bo,Gl),o(w,Jf),o(w,on),f(lr,on,null),o(on,Nf),o(on,Fl),o(on,Ef),f(Wo,on,null),o(w,Rf),o(w,ie),f(pr,ie,null),o(ie,Df),o(ie,Sl),o(ie,Gf),o(ie,Ll),o(ie,Ff),f(Vo,ie,null),o(ie,Sf),f(Po,ie,null),o(w,Lf),o(w,X),f(dr,X,null),o(X,Zf),o(X,Zl),o(X,Bf),o(X,Bl),o(X,Wf),o(X,Wl),o(X,Vf),o(X,Vl),o(X,Pf),f(Xo,X,null),o(w,Xf),o(w,Yo),f(gr,Yo,null),o(Yo,Yf),o(Yo,Pl),o(w,zf),o(w,an),f(ur,an,null),o(an,Of),o(an,Xl),o(an,Qf),o(an,Yl),o(w,Kf),o(w,sn),f(hr,sn,null),o(sn,e_),o(sn,zl),o(sn,t_),o(sn,Ol),o(w,n_),o(w,zo),f(mr,zo,null),o(zo,o_),o(zo,Ql),o(w,a_),o(w,Le),f(fr,Le,null),o(Le,s_),o(Le,Kl),o(Le,r_),o(Le,ep),o(Le,i_),o(Le,tp),o(w,c_),o(w,R),f(_r,R,null),o(R,l_),o(R,np),o(R,p_),o(R,op),o(R,d_),o(R,ap),o(R,g_),o(R,sp),o(R,u_),o(R,rp),o(R,h_),f(Oo,R,null),o(R,m_),f(Qo,R,null),o(w,f_),o(w,Ze),f(br,Ze,null),o(Ze,__),o(Ze,ip),o(Ze,b_),f(Ko,Ze,null),o(Ze,y_),f(ea,Ze,null),o(w,x_),o(w,Be),f(yr,Be,null),o(Be,v_),o(Be,cp),o(Be,$_),o(Be,lp),o(Be,w_),f(ta,Be,null),o(w,M_),o(w,ce),f(xr,ce,null),o(ce,T_),o(ce,pp),o(ce,k_),o(ce,dp),o(ce,j_),o(ce,gp),o(ce,H_),f(na,ce,null),o(w,C_),o(w,rn),f(vr,rn,null),o(rn,I_),o(rn,up),o(rn,U_),f(oa,rn,null),o(w,A_),o(w,We),f($r,We,null),o(We,q_),o(We,hp),o(We,J_),f(aa,We,null),o(We,N_),f(sa,We,null),o(w,E_),o(w,cn),f(wr,cn,null),o(cn,R_),o(cn,mp),o(cn,D_),f(ra,cn,null),o(w,G_),o(w,le),f(Mr,le,null),o(le,F_),o(le,fp),o(le,S_),o(le,_p),o(le,L_),o(le,bp),o(le,Z_),f(ia,le,null),o(w,B_),o(w,ca),f(Tr,ca,null),o(ca,W_),o(ca,yp),o(w,V_),o(w,Ve),f(kr,Ve,null),o(Ve,P_),o(Ve,xp),o(Ve,X_),f(la,Ve,null),o(Ve,Y_),f(pa,Ve,null),o(w,z_),o(w,da),f(jr,da,null),o(da,O_),o(da,vp),o(w,Q_),o(w,pe),f(Hr,pe,null),o(pe,K_),o(pe,$p),o(pe,eb),o(pe,wp),o(pe,tb),o(pe,Mp),o(pe,nb),f(ga,pe,null),o(w,ob),o(w,de),f(Cr,de,null),o(de,ab),o(de,Tp),o(de,sb),o(de,kp),o(de,rb),o(de,jp),o(de,ib),f(ua,de,null),o(w,cb),o(w,Pe),f(Ir,Pe,null),o(Pe,lb),o(Pe,Hp),o(Pe,pb),o(Pe,Cp),o(Pe,db),f(ha,Pe,null),o(w,gb),o(w,ma),f(Ur,ma,null),o(ma,ub),o(ma,Ip),o(w,hb),o(w,ln),f(Ar,ln,null),o(ln,mb),o(ln,Up),o(ln,fb),o(ln,Ap),o(w,_b),o(w,pn),f(qr,pn,null),o(pn,bb),o(pn,qp),o(pn,yb),f(fa,pn,null),o(w,xb),o(w,S),f(Jr,S,null),o(S,vb),o(S,Jp),o(S,$b),o(S,Np),o(S,wb),o(S,Ep),o(S,Mb),f(_a,S,null),o(S,Tb),o(S,Rp),o(S,kb),f(ba,S,null),o(w,jb),o(w,ya),f(Nr,ya,null),o(ya,Hb),o(ya,Dp),o(w,Cb),o(w,xa),f(Er,xa,null),o(xa,Ib),o(xa,Gp),o(w,Ub),o(w,va),f(Rr,va,null),o(va,Ab),o(va,Fp),o(w,qb),o(w,dn),f(Dr,dn,null),o(dn,Jb),o(dn,Sp),o(dn,Nb),f($a,dn,null),o(w,Eb),o(w,Xe),f(Gr,Xe,null),o(Xe,Rb),o(Xe,Lp),o(Xe,Db),o(Xe,Zp),o(Xe,Gb),f(wa,Xe,null),o(w,Fb),o(w,Ye),f(Fr,Ye,null),o(Ye,Sb),o(Ye,Bp),o(Ye,Lb),o(Ye,Wp),o(Ye,Zb),f(Ma,Ye,null),o(w,Bb),o(w,ze),f(Sr,ze,null),o(ze,Wb),o(ze,Vp),o(ze,Vb),o(ze,Pp),o(ze,Pb),o(ze,Xp),o(w,Xb),o(w,Oe),f(Lr,Oe,null),o(Oe,Yb),o(Oe,Yp),o(Oe,zb),o(Oe,zp),o(Oe,Ob),o(Oe,Op),o(w,Qb),o(w,Qe),f(Zr,Qe,null),o(Qe,Kb),o(Qe,Qp),o(Qe,ey),o(Qe,Kp),o(Qe,ty),o(Qe,ed),o(w,ny),o(w,Y),f(Br,Y,null),o(Y,oy),o(Y,td),o(Y,ay),o(Y,nd),o(Y,sy),f(Ta,Y,null),o(Y,ry),f(ka,Y,null),o(Y,iy),f(ja,Y,null),o(w,cy),o(w,Ke),f(Wr,Ke,null),o(Ke,ly),o(Ke,od),o(Ke,py),o(Ke,ad),o(Ke,dy),o(Ke,sd),o(w,gy),o(w,et),f(Vr,et,null),o(et,uy),o(et,rd),o(et,hy),f(Ha,et,null),o(et,my),f(Ca,et,null),o(w,fy),o(w,gn),f(Pr,gn,null),o(gn,_y),o(gn,id),o(gn,by),f(Ia,gn,null),o(w,yy),o(w,un),f(Xr,un,null),o(un,xy),o(un,cd),o(un,vy),f(Ua,un,null),o(w,$y),o(w,hn),f(Yr,hn,null),o(hn,wy),o(hn,ld),o(hn,My),f(Aa,hn,null),o(w,Ty),o(w,mn),f(zr,mn,null),o(mn,ky),o(mn,pd),o(mn,jy),f(qa,mn,null),o(w,Hy),o(w,tt),f(Or,tt,null),o(tt,Cy),o(tt,dd),o(tt,Iy),o(tt,gd),o(tt,Uy),o(tt,ud),o(w,Ay),o(w,fn),f(Qr,fn,null),o(fn,qy),o(fn,hd),o(fn,Jy),o(fn,md),o(w,Ny),o(w,_n),f(Kr,_n,null),o(_n,Ey),o(_n,fd),o(_n,Ry),f(Ja,_n,null),o(w,Dy),o(w,ge),f(ei,ge,null),o(ge,Gy),o(ge,_d),o(ge,Fy),o(ge,bd),o(ge,Sy),o(ge,yd),o(ge,Ly),f(Na,ge,null),o(w,Zy),o(w,nt),f(ti,nt,null),o(nt,By),o(nt,xd),o(nt,Wy),o(nt,vd),o(nt,Vy),o(nt,$d),o(w,Py),o(w,ot),f(ni,ot,null),o(ot,Xy),o(ot,wd),o(ot,Yy),o(ot,Md),o(ot,zy),f(Ea,ot,null),o(w,Oy),o(w,L),f(oi,L,null),o(L,Qy),o(L,Td),o(L,Ky),o(L,kd),o(L,ex),o(L,jd),o(L,tx),o(L,Hd),o(L,nx),o(L,Cd),o(L,ox),f(Ra,L,null),o(w,ax),o(w,at),f(ai,at,null),o(at,sx),o(at,Id),o(at,rx),o(at,Ud),o(at,ix),f(Da,at,null),o(w,cx),o(w,z),f(si,z,null),o(z,lx),o(z,Ad),o(z,px),o(z,qd),o(z,dx),f(Ga,z,null),o(z,gx),f(Fa,z,null),o(z,ux),f(Sa,z,null),o(w,hx),o(w,st),f(ri,st,null),o(st,mx),o(st,Jd),o(st,fx),o(st,Nd),o(st,_x),f(La,st,null),o(w,bx),o(w,bn),f(ii,bn,null),o(bn,yx),o(bn,Ed),o(bn,xx),f(Za,bn,null),o(w,vx),o(w,ue),f(ci,ue,null),o(ue,$x),o(ue,Rd),o(ue,wx),o(ue,Dd),o(ue,Mx),o(ue,Gd),o(ue,Tx),f(Ba,ue,null),o(w,kx),o(w,rt),f(li,rt,null),o(rt,jx),o(rt,Fd),o(rt,Hx),o(rt,Sd),o(rt,Cx),o(rt,Ld),o(w,Ix),o(w,yn),f(pi,yn,null),o(yn,Ux),o(yn,Zd),o(yn,Ax),f(Wa,yn,null),o(w,qx),o(w,he),f(di,he,null),o(he,Jx),o(he,Bd),o(he,Nx),f(Va,he,null),o(he,Ex),f(Pa,he,null),o(he,Rx),f(Xa,he,null),o(w,Dx),o(w,q),f(gi,q,null),o(q,Gx),o(q,Wd),o(q,Fx),o(q,Vd),o(q,Sx),o(q,Pd),o(q,Lx),o(q,Xd),o(q,Zx),o(q,Yd),o(q,Bx),o(q,zd),o(q,Wx),f(Ya,q,null),o(q,Vx),f(za,q,null),o(q,Px),f(Oa,q,null),o(q,Xx),f(Qa,q,null),o(w,Yx),o(w,Ka),f(ui,Ka,null),o(Ka,zx),o(Ka,Od),$(t,pu,g),$(t,E,g),f(hi,E,null),o(E,Ox),o(E,Qd),o(E,Qx),o(E,Kd),o(E,Kx),o(E,eg),o(E,ev),o(E,tg),o(E,tv),f(es,E,null),o(E,nv),f(ts,E,null),o(E,ov),f(ns,E,null),$(t,du,g),f(mi,t,g),$(t,gu,g),f(fi,t,g),$(t,uu,g),$(t,jn,g),f(_i,jn,null),o(jn,av),o(jn,ng),$(t,hu,g),f(bi,t,g),$(t,mu,g),$(t,ct,g),f(yi,ct,null),o(ct,sv),o(ct,og),o(ct,rv),o(ct,ag),$(t,fu,g),f(xi,t,g),$(t,_u,g),$(t,lt,g),f(vi,lt,null),o(lt,iv),o(lt,sg),o(lt,cv),f(os,lt,null),$(t,bu,g),f($i,t,g),$(t,yu,g),$(t,Hn,g),f(wi,Hn,null),o(Hn,lv),o(Hn,rg),$(t,xu,g),f(Mi,t,g),$(t,vu,g),$(t,Cn,g),f(Ti,Cn,null),o(Cn,pv),o(Cn,ig),$(t,$u,g),f(ki,t,g),$(t,wu,g),$(t,pt,g),f(ji,pt,null),o(pt,dv),o(pt,cg),o(pt,gv),o(pt,lg),$(t,Mu,g),f(Hi,t,g),$(t,Tu,g),$(t,dt,g),f(Ci,dt,null),o(dt,uv),o(dt,pg),o(dt,hv),f(as,dt,null),$(t,ku,g),f(Ii,t,g),$(t,ju,g),$(t,gt,g),f(Ui,gt,null),o(gt,mv),o(gt,dg),o(gt,fv),f(ss,gt,null),$(t,Hu,g),f(Ai,t,g),$(t,Cu,g),$(t,In,g),f(qi,In,null),o(In,_v),o(In,gg),$(t,Iu,g),f(Ji,t,g),$(t,Uu,g),$(t,Q,g),f(Ni,Q,null),o(Q,bv),o(Q,ug),o(Q,yv),o(Q,hg),o(Q,xv),o(Q,mg),o(Q,vv),f(rs,Q,null),$(t,Au,g),f(Ei,t,g),$(t,qu,g),$(t,K,g),f(Ri,K,null),o(K,$v),o(K,fg),o(K,wv),o(K,_g),o(K,Mv),o(K,bg),o(K,Tv),o(K,yg),$(t,Ju,g),f(Di,t,g),$(t,Nu,g),$(t,fe,g),f(Gi,fe,null),o(fe,kv),o(fe,xg),o(fe,jv),o(fe,vg),o(fe,Hv),o(fe,$g),$(t,Eu,g),f(Fi,t,g),$(t,Ru,g),$(t,ut,g),f(Si,ut,null),o(ut,Cv),o(ut,wg),o(ut,Iv),f(is,ut,null),$(t,Du,g),f(Li,t,g),$(t,Gu,g),$(t,ht,g),f(Zi,ht,null),o(ht,Uv),o(ht,Mg),o(ht,Av),o(ht,Tg),$(t,Fu,g),f(Bi,t,g),$(t,Su,g),$(t,Un,g),f(Wi,Un,null),o(Un,qv),o(Un,kg),$(t,Lu,g),f(Vi,t,g),$(t,Zu,g),$(t,An,g),f(Pi,An,null),o(An,Jv),o(An,jg),$(t,Bu,g),f(Xi,t,g),$(t,Wu,g),$(t,Yi,g),$(t,Vu,g),$(t,_e,g),f(zi,_e,null),o(_e,Nv),o(_e,Hg),o(_e,Ev),o(_e,xn),f(Oi,xn,null),o(xn,Rv),o(xn,Cg),o(xn,Dv),f(cs,xn,null),o(_e,Gv),o(_e,vn),f(Qi,vn,null),o(vn,Fv),o(vn,Ig),o(vn,Sv),o(vn,Ug),$(t,Pu,g),$(t,qn,g),f(Ki,qn,null),o(qn,Lv),o(qn,Ag),$(t,Xu,g),$(t,ee,g),f(ec,ee,null),o(ee,Zv),o(ee,qg),o(ee,Bv),o(ee,Jg),o(ee,Wv),o(ee,Ng),o(ee,Vv),o(ee,Eg),$(t,Yu,g),f(tc,t,g),$(t,zu,g),$(t,D,g),f(nc,D,null),o(D,Pv),o(D,Rg),o(D,Xv),o(D,Dg),o(D,Yv),f(ls,D,null),o(D,zv),o(D,it),f(oc,it,null),o(it,Ov),o(it,Gg),o(it,Qv),f(ps,it,null),o(it,Kv),o(it,Fg),o(D,e$),o(D,$n),f(ac,$n,null),o($n,t$),o($n,Sg),o($n,n$),o($n,Lg),o(D,o$),o(D,wn),f(sc,wn,null),o(wn,a$),o(wn,Zg),o(wn,s$),o(wn,Bg),$(t,Ou,g),f(rc,t,g),$(t,Qu,g),$(t,ic,g),$(t,Ku,g),f(cc,t,g),$(t,eh,g),$(t,be,g),f(lc,be,null),o(be,r$),o(be,Wg),o(be,i$),f(ds,be,null),o(be,c$),f(gs,be,null),$(t,th,g),f(pc,t,g),$(t,nh,g),$(t,ye,g),f(dc,ye,null),o(ye,l$),o(ye,Vg),o(ye,p$),f(us,ye,null),o(ye,d$),f(hs,ye,null),$(t,oh,g),$(t,au,g),ah=!0},p(t,[g]){const M={};g&2&&(M.$$scope={dirty:g,ctx:t}),ro.$set(M);const mt={};g&2&&(mt.$$scope={dirty:g,ctx:t}),io.$set(mt);const ft={};g&2&&(ft.$$scope={dirty:g,ctx:t}),co.$set(ft);const Jn={};g&2&&(Jn.$$scope={dirty:g,ctx:t}),lo.$set(Jn);const Nn={};g&2&&(Nn.$$scope={dirty:g,ctx:t}),po.$set(Nn);const _t={};g&2&&(_t.$$scope={dirty:g,ctx:t}),uo.$set(_t);const bt={};g&2&&(bt.$$scope={dirty:g,ctx:t}),ho.$set(bt);const yt={};g&2&&(yt.$$scope={dirty:g,ctx:t}),mo.$set(yt);const gc={};g&2&&(gc.$$scope={dirty:g,ctx:t}),fo.$set(gc);const xt={};g&2&&(xt.$$scope={dirty:g,ctx:t}),_o.$set(xt);const xe={};g&2&&(xe.$$scope={dirty:g,ctx:t}),bo.$set(xe);const Z={};g&2&&(Z.$$scope={dirty:g,ctx:t}),yo.$set(Z);const te={};g&2&&(te.$$scope={dirty:g,ctx:t}),xo.$set(te);const vt={};g&2&&(vt.$$scope={dirty:g,ctx:t}),vo.$set(vt);const ne={};g&2&&(ne.$$scope={dirty:g,ctx:t}),$o.$set(ne);const uc={};g&2&&(uc.$$scope={dirty:g,ctx:t}),wo.$set(uc);const hc={};g&2&&(hc.$$scope={dirty:g,ctx:t}),ko.$set(hc);const $t={};g&2&&($t.$$scope={dirty:g,ctx:t}),Ho.$set($t);const mc={};g&2&&(mc.$$scope={dirty:g,ctx:t}),Co.$set(mc);const wt={};g&2&&(wt.$$scope={dirty:g,ctx:t}),Io.$set(wt);const En={};g&2&&(En.$$scope={dirty:g,ctx:t}),Uo.$set(En);const Rn={};g&2&&(Rn.$$scope={dirty:g,ctx:t}),No.$set(Rn);const Dn={};g&2&&(Dn.$$scope={dirty:g,ctx:t}),Eo.$set(Dn);const Mt={};g&2&&(Mt.$$scope={dirty:g,ctx:t}),Ro.$set(Mt);const fc={};g&2&&(fc.$$scope={dirty:g,ctx:t}),Do.$set(fc);const Gn={};g&2&&(Gn.$$scope={dirty:g,ctx:t}),Fo.$set(Gn);const _c={};g&2&&(_c.$$scope={dirty:g,ctx:t}),Zo.$set(_c);const Fn={};g&2&&(Fn.$$scope={dirty:g,ctx:t}),Wo.$set(Fn);const bc={};g&2&&(bc.$$scope={dirty:g,ctx:t}),Vo.$set(bc);const Tt={};g&2&&(Tt.$$scope={dirty:g,ctx:t}),Po.$set(Tt);const Sn={};g&2&&(Sn.$$scope={dirty:g,ctx:t}),Xo.$set(Sn);const Ln={};g&2&&(Ln.$$scope={dirty:g,ctx:t}),Oo.$set(Ln);const kt={};g&2&&(kt.$$scope={dirty:g,ctx:t}),Qo.$set(kt);const yc={};g&2&&(yc.$$scope={dirty:g,ctx:t}),Ko.$set(yc);const jt={};g&2&&(jt.$$scope={dirty:g,ctx:t}),ea.$set(jt);const xc={};g&2&&(xc.$$scope={dirty:g,ctx:t}),ta.$set(xc);const vc={};g&2&&(vc.$$scope={dirty:g,ctx:t}),na.$set(vc);const Zn={};g&2&&(Zn.$$scope={dirty:g,ctx:t}),oa.$set(Zn);const $c={};g&2&&($c.$$scope={dirty:g,ctx:t}),aa.$set($c);const Bn={};g&2&&(Bn.$$scope={dirty:g,ctx:t}),sa.$set(Bn);const ve={};g&2&&(ve.$$scope={dirty:g,ctx:t}),ra.$set(ve);const oe={};g&2&&(oe.$$scope={dirty:g,ctx:t}),ia.$set(oe);const wc={};g&2&&(wc.$$scope={dirty:g,ctx:t}),la.$set(wc);const Wn={};g&2&&(Wn.$$scope={dirty:g,ctx:t}),pa.$set(Wn);const Vn={};g&2&&(Vn.$$scope={dirty:g,ctx:t}),ga.$set(Vn);const Mc={};g&2&&(Mc.$$scope={dirty:g,ctx:t}),ua.$set(Mc);const Ht={};g&2&&(Ht.$$scope={dirty:g,ctx:t}),ha.$set(Ht);const G={};g&2&&(G.$$scope={dirty:g,ctx:t}),fa.$set(G);const Ct={};g&2&&(Ct.$$scope={dirty:g,ctx:t}),_a.$set(Ct);const It={};g&2&&(It.$$scope={dirty:g,ctx:t}),ba.$set(It);const $e={};g&2&&($e.$$scope={dirty:g,ctx:t}),$a.$set($e);const Pn={};g&2&&(Pn.$$scope={dirty:g,ctx:t}),wa.$set(Pn);const Ut={};g&2&&(Ut.$$scope={dirty:g,ctx:t}),Ma.$set(Ut);const Xn={};g&2&&(Xn.$$scope={dirty:g,ctx:t}),Ta.$set(Xn);const we={};g&2&&(we.$$scope={dirty:g,ctx:t}),ka.$set(we);const Tc={};g&2&&(Tc.$$scope={dirty:g,ctx:t}),ja.$set(Tc);const At={};g&2&&(At.$$scope={dirty:g,ctx:t}),Ha.$set(At);const kc={};g&2&&(kc.$$scope={dirty:g,ctx:t}),Ca.$set(kc);const Me={};g&2&&(Me.$$scope={dirty:g,ctx:t}),Ia.$set(Me);const Te={};g&2&&(Te.$$scope={dirty:g,ctx:t}),Ua.$set(Te);const qt={};g&2&&(qt.$$scope={dirty:g,ctx:t}),Aa.$set(qt);const jc={};g&2&&(jc.$$scope={dirty:g,ctx:t}),qa.$set(jc);const Yn={};g&2&&(Yn.$$scope={dirty:g,ctx:t}),Ja.$set(Yn);const zn={};g&2&&(zn.$$scope={dirty:g,ctx:t}),Na.$set(zn);const B={};g&2&&(B.$$scope={dirty:g,ctx:t}),Ea.$set(B);const Hc={};g&2&&(Hc.$$scope={dirty:g,ctx:t}),Ra.$set(Hc);const Cc={};g&2&&(Cc.$$scope={dirty:g,ctx:t}),Da.$set(Cc);const Ic={};g&2&&(Ic.$$scope={dirty:g,ctx:t}),Ga.$set(Ic);const On={};g&2&&(On.$$scope={dirty:g,ctx:t}),Fa.$set(On);const Jt={};g&2&&(Jt.$$scope={dirty:g,ctx:t}),Sa.$set(Jt);const Nt={};g&2&&(Nt.$$scope={dirty:g,ctx:t}),La.$set(Nt);const Et={};g&2&&(Et.$$scope={dirty:g,ctx:t}),Za.$set(Et);const Rt={};g&2&&(Rt.$$scope={dirty:g,ctx:t}),Ba.$set(Rt);const Dt={};g&2&&(Dt.$$scope={dirty:g,ctx:t}),Wa.$set(Dt);const ae={};g&2&&(ae.$$scope={dirty:g,ctx:t}),Va.$set(ae);const Gt={};g&2&&(Gt.$$scope={dirty:g,ctx:t}),Pa.$set(Gt);const Ft={};g&2&&(Ft.$$scope={dirty:g,ctx:t}),Xa.$set(Ft);const Qn={};g&2&&(Qn.$$scope={dirty:g,ctx:t}),Ya.$set(Qn);const Kn={};g&2&&(Kn.$$scope={dirty:g,ctx:t}),za.$set(Kn);const eo={};g&2&&(eo.$$scope={dirty:g,ctx:t}),Oa.$set(eo);const to={};g&2&&(to.$$scope={dirty:g,ctx:t}),Qa.$set(to);const St={};g&2&&(St.$$scope={dirty:g,ctx:t}),es.$set(St);const no={};g&2&&(no.$$scope={dirty:g,ctx:t}),ts.$set(no);const oo={};g&2&&(oo.$$scope={dirty:g,ctx:t}),ns.$set(oo);const ke={};g&2&&(ke.$$scope={dirty:g,ctx:t}),os.$set(ke);const Lt={};g&2&&(Lt.$$scope={dirty:g,ctx:t}),as.$set(Lt);const Zt={};g&2&&(Zt.$$scope={dirty:g,ctx:t}),ss.$set(Zt);const W={};g&2&&(W.$$scope={dirty:g,ctx:t}),rs.$set(W);const Bt={};g&2&&(Bt.$$scope={dirty:g,ctx:t}),is.$set(Bt);const se={};g&2&&(se.$$scope={dirty:g,ctx:t}),cs.$set(se);const Wt={};g&2&&(Wt.$$scope={dirty:g,ctx:t}),ls.$set(Wt);const ao={};g&2&&(ao.$$scope={dirty:g,ctx:t}),ps.$set(ao);const je={};g&2&&(je.$$scope={dirty:g,ctx:t}),ds.$set(je);const Vt={};g&2&&(Vt.$$scope={dirty:g,ctx:t}),gs.$set(Vt);const so={};g&2&&(so.$$scope={dirty:g,ctx:t}),us.$set(so);const He={};g&2&&(He.$$scope={dirty:g,ctx:t}),hs.$set(He)},i(t){ah||(_(x.$$.fragment,t),_($s.$$.fragment,t),_(ws.$$.fragment,t),_(Ms.$$.fragment,t),_(Ts.$$.fragment,t),_(ks.$$.fragment,t),_(ro.$$.fragment,t),_(js.$$.fragment,t),_(Hs.$$.fragment,t),_(Cs.$$.fragment,t),_(Is.$$.fragment,t),_(io.$$.fragment,t),_(co.$$.fragment,t),_(Us.$$.fragment,t),_(lo.$$.fragment,t),_(po.$$.fragment,t),_(As.$$.fragment,t),_(qs.$$.fragment,t),_(uo.$$.fragment,t),_(Js.$$.fragment,t),_(ho.$$.fragment,t),_(mo.$$.fragment,t),_(fo.$$.fragment,t),_(Ns.$$.fragment,t),_(_o.$$.fragment,t),_(bo.$$.fragment,t),_(yo.$$.fragment,t),_(Es.$$.fragment,t),_(xo.$$.fragment,t),_(Rs.$$.fragment,t),_(vo.$$.fragment,t),_($o.$$.fragment,t),_(Ds.$$.fragment,t),_(wo.$$.fragment,t),_(Gs.$$.fragment,t),_(Fs.$$.fragment,t),_(Ss.$$.fragment,t),_(ko.$$.fragment,t),_(Ls.$$.fragment,t),_(Zs.$$.fragment,t),_(Ho.$$.fragment,t),_(Co.$$.fragment,t),_(Bs.$$.fragment,t),_(Io.$$.fragment,t),_(Ws.$$.fragment,t),_(Uo.$$.fragment,t),_(Vs.$$.fragment,t),_(Ps.$$.fragment,t),_(Xs.$$.fragment,t),_(Ys.$$.fragment,t),_(zs.$$.fragment,t),_(Os.$$.fragment,t),_(Qs.$$.fragment,t),_(Ks.$$.fragment,t),_(No.$$.fragment,t),_(er.$$.fragment,t),_(Eo.$$.fragment,t),_(tr.$$.fragment,t),_(Ro.$$.fragment,t),_(nr.$$.fragment,t),_(Do.$$.fragment,t),_(or.$$.fragment,t),_(ar.$$.fragment,t),_(Fo.$$.fragment,t),_(sr.$$.fragment,t),_(rr.$$.fragment,t),_(ir.$$.fragment,t),_(Zo.$$.fragment,t),_(cr.$$.fragment,t),_(lr.$$.fragment,t),_(Wo.$$.fragment,t),_(pr.$$.fragment,t),_(Vo.$$.fragment,t),_(Po.$$.fragment,t),_(dr.$$.fragment,t),_(Xo.$$.fragment,t),_(gr.$$.fragment,t),_(ur.$$.fragment,t),_(hr.$$.fragment,t),_(mr.$$.fragment,t),_(fr.$$.fragment,t),_(_r.$$.fragment,t),_(Oo.$$.fragment,t),_(Qo.$$.fragment,t),_(br.$$.fragment,t),_(Ko.$$.fragment,t),_(ea.$$.fragment,t),_(yr.$$.fragment,t),_(ta.$$.fragment,t),_(xr.$$.fragment,t),_(na.$$.fragment,t),_(vr.$$.fragment,t),_(oa.$$.fragment,t),_($r.$$.fragment,t),_(aa.$$.fragment,t),_(sa.$$.fragment,t),_(wr.$$.fragment,t),_(ra.$$.fragment,t),_(Mr.$$.fragment,t),_(ia.$$.fragment,t),_(Tr.$$.fragment,t),_(kr.$$.fragment,t),_(la.$$.fragment,t),_(pa.$$.fragment,t),_(jr.$$.fragment,t),_(Hr.$$.fragment,t),_(ga.$$.fragment,t),_(Cr.$$.fragment,t),_(ua.$$.fragment,t),_(Ir.$$.fragment,t),_(ha.$$.fragment,t),_(Ur.$$.fragment,t),_(Ar.$$.fragment,t),_(qr.$$.fragment,t),_(fa.$$.fragment,t),_(Jr.$$.fragment,t),_(_a.$$.fragment,t),_(ba.$$.fragment,t),_(Nr.$$.fragment,t),_(Er.$$.fragment,t),_(Rr.$$.fragment,t),_(Dr.$$.fragment,t),_($a.$$.fragment,t),_(Gr.$$.fragment,t),_(wa.$$.fragment,t),_(Fr.$$.fragment,t),_(Ma.$$.fragment,t),_(Sr.$$.fragment,t),_(Lr.$$.fragment,t),_(Zr.$$.fragment,t),_(Br.$$.fragment,t),_(Ta.$$.fragment,t),_(ka.$$.fragment,t),_(ja.$$.fragment,t),_(Wr.$$.fragment,t),_(Vr.$$.fragment,t),_(Ha.$$.fragment,t),_(Ca.$$.fragment,t),_(Pr.$$.fragment,t),_(Ia.$$.fragment,t),_(Xr.$$.fragment,t),_(Ua.$$.fragment,t),_(Yr.$$.fragment,t),_(Aa.$$.fragment,t),_(zr.$$.fragment,t),_(qa.$$.fragment,t),_(Or.$$.fragment,t),_(Qr.$$.fragment,t),_(Kr.$$.fragment,t),_(Ja.$$.fragment,t),_(ei.$$.fragment,t),_(Na.$$.fragment,t),_(ti.$$.fragment,t),_(ni.$$.fragment,t),_(Ea.$$.fragment,t),_(oi.$$.fragment,t),_(Ra.$$.fragment,t),_(ai.$$.fragment,t),_(Da.$$.fragment,t),_(si.$$.fragment,t),_(Ga.$$.fragment,t),_(Fa.$$.fragment,t),_(Sa.$$.fragment,t),_(ri.$$.fragment,t),_(La.$$.fragment,t),_(ii.$$.fragment,t),_(Za.$$.fragment,t),_(ci.$$.fragment,t),_(Ba.$$.fragment,t),_(li.$$.fragment,t),_(pi.$$.fragment,t),_(Wa.$$.fragment,t),_(di.$$.fragment,t),_(Va.$$.fragment,t),_(Pa.$$.fragment,t),_(Xa.$$.fragment,t),_(gi.$$.fragment,t),_(Ya.$$.fragment,t),_(za.$$.fragment,t),_(Oa.$$.fragment,t),_(Qa.$$.fragment,t),_(ui.$$.fragment,t),_(hi.$$.fragment,t),_(es.$$.fragment,t),_(ts.$$.fragment,t),_(ns.$$.fragment,t),_(mi.$$.fragment,t),_(fi.$$.fragment,t),_(_i.$$.fragment,t),_(bi.$$.fragment,t),_(yi.$$.fragment,t),_(xi.$$.fragment,t),_(vi.$$.fragment,t),_(os.$$.fragment,t),_($i.$$.fragment,t),_(wi.$$.fragment,t),_(Mi.$$.fragment,t),_(Ti.$$.fragment,t),_(ki.$$.fragment,t),_(ji.$$.fragment,t),_(Hi.$$.fragment,t),_(Ci.$$.fragment,t),_(as.$$.fragment,t),_(Ii.$$.fragment,t),_(Ui.$$.fragment,t),_(ss.$$.fragment,t),_(Ai.$$.fragment,t),_(qi.$$.fragment,t),_(Ji.$$.fragment,t),_(Ni.$$.fragment,t),_(rs.$$.fragment,t),_(Ei.$$.fragment,t),_(Ri.$$.fragment,t),_(Di.$$.fragment,t),_(Gi.$$.fragment,t),_(Fi.$$.fragment,t),_(Si.$$.fragment,t),_(is.$$.fragment,t),_(Li.$$.fragment,t),_(Zi.$$.fragment,t),_(Bi.$$.fragment,t),_(Wi.$$.fragment,t),_(Vi.$$.fragment,t),_(Pi.$$.fragment,t),_(Xi.$$.fragment,t),_(zi.$$.fragment,t),_(Oi.$$.fragment,t),_(cs.$$.fragment,t),_(Qi.$$.fragment,t),_(Ki.$$.fragment,t),_(ec.$$.fragment,t),_(tc.$$.fragment,t),_(nc.$$.fragment,t),_(ls.$$.fragment,t),_(oc.$$.fragment,t),_(ps.$$.fragment,t),_(ac.$$.fragment,t),_(sc.$$.fragment,t),_(rc.$$.fragment,t),_(cc.$$.fragment,t),_(lc.$$.fragment,t),_(ds.$$.fragment,t),_(gs.$$.fragment,t),_(pc.$$.fragment,t),_(dc.$$.fragment,t),_(us.$$.fragment,t),_(hs.$$.fragment,t),ah=!0)},o(t){b(x.$$.fragment,t),b($s.$$.fragment,t),b(ws.$$.fragment,t),b(Ms.$$.fragment,t),b(Ts.$$.fragment,t),b(ks.$$.fragment,t),b(ro.$$.fragment,t),b(js.$$.fragment,t),b(Hs.$$.fragment,t),b(Cs.$$.fragment,t),b(Is.$$.fragment,t),b(io.$$.fragment,t),b(co.$$.fragment,t),b(Us.$$.fragment,t),b(lo.$$.fragment,t),b(po.$$.fragment,t),b(As.$$.fragment,t),b(qs.$$.fragment,t),b(uo.$$.fragment,t),b(Js.$$.fragment,t),b(ho.$$.fragment,t),b(mo.$$.fragment,t),b(fo.$$.fragment,t),b(Ns.$$.fragment,t),b(_o.$$.fragment,t),b(bo.$$.fragment,t),b(yo.$$.fragment,t),b(Es.$$.fragment,t),b(xo.$$.fragment,t),b(Rs.$$.fragment,t),b(vo.$$.fragment,t),b($o.$$.fragment,t),b(Ds.$$.fragment,t),b(wo.$$.fragment,t),b(Gs.$$.fragment,t),b(Fs.$$.fragment,t),b(Ss.$$.fragment,t),b(ko.$$.fragment,t),b(Ls.$$.fragment,t),b(Zs.$$.fragment,t),b(Ho.$$.fragment,t),b(Co.$$.fragment,t),b(Bs.$$.fragment,t),b(Io.$$.fragment,t),b(Ws.$$.fragment,t),b(Uo.$$.fragment,t),b(Vs.$$.fragment,t),b(Ps.$$.fragment,t),b(Xs.$$.fragment,t),b(Ys.$$.fragment,t),b(zs.$$.fragment,t),b(Os.$$.fragment,t),b(Qs.$$.fragment,t),b(Ks.$$.fragment,t),b(No.$$.fragment,t),b(er.$$.fragment,t),b(Eo.$$.fragment,t),b(tr.$$.fragment,t),b(Ro.$$.fragment,t),b(nr.$$.fragment,t),b(Do.$$.fragment,t),b(or.$$.fragment,t),b(ar.$$.fragment,t),b(Fo.$$.fragment,t),b(sr.$$.fragment,t),b(rr.$$.fragment,t),b(ir.$$.fragment,t),b(Zo.$$.fragment,t),b(cr.$$.fragment,t),b(lr.$$.fragment,t),b(Wo.$$.fragment,t),b(pr.$$.fragment,t),b(Vo.$$.fragment,t),b(Po.$$.fragment,t),b(dr.$$.fragment,t),b(Xo.$$.fragment,t),b(gr.$$.fragment,t),b(ur.$$.fragment,t),b(hr.$$.fragment,t),b(mr.$$.fragment,t),b(fr.$$.fragment,t),b(_r.$$.fragment,t),b(Oo.$$.fragment,t),b(Qo.$$.fragment,t),b(br.$$.fragment,t),b(Ko.$$.fragment,t),b(ea.$$.fragment,t),b(yr.$$.fragment,t),b(ta.$$.fragment,t),b(xr.$$.fragment,t),b(na.$$.fragment,t),b(vr.$$.fragment,t),b(oa.$$.fragment,t),b($r.$$.fragment,t),b(aa.$$.fragment,t),b(sa.$$.fragment,t),b(wr.$$.fragment,t),b(ra.$$.fragment,t),b(Mr.$$.fragment,t),b(ia.$$.fragment,t),b(Tr.$$.fragment,t),b(kr.$$.fragment,t),b(la.$$.fragment,t),b(pa.$$.fragment,t),b(jr.$$.fragment,t),b(Hr.$$.fragment,t),b(ga.$$.fragment,t),b(Cr.$$.fragment,t),b(ua.$$.fragment,t),b(Ir.$$.fragment,t),b(ha.$$.fragment,t),b(Ur.$$.fragment,t),b(Ar.$$.fragment,t),b(qr.$$.fragment,t),b(fa.$$.fragment,t),b(Jr.$$.fragment,t),b(_a.$$.fragment,t),b(ba.$$.fragment,t),b(Nr.$$.fragment,t),b(Er.$$.fragment,t),b(Rr.$$.fragment,t),b(Dr.$$.fragment,t),b($a.$$.fragment,t),b(Gr.$$.fragment,t),b(wa.$$.fragment,t),b(Fr.$$.fragment,t),b(Ma.$$.fragment,t),b(Sr.$$.fragment,t),b(Lr.$$.fragment,t),b(Zr.$$.fragment,t),b(Br.$$.fragment,t),b(Ta.$$.fragment,t),b(ka.$$.fragment,t),b(ja.$$.fragment,t),b(Wr.$$.fragment,t),b(Vr.$$.fragment,t),b(Ha.$$.fragment,t),b(Ca.$$.fragment,t),b(Pr.$$.fragment,t),b(Ia.$$.fragment,t),b(Xr.$$.fragment,t),b(Ua.$$.fragment,t),b(Yr.$$.fragment,t),b(Aa.$$.fragment,t),b(zr.$$.fragment,t),b(qa.$$.fragment,t),b(Or.$$.fragment,t),b(Qr.$$.fragment,t),b(Kr.$$.fragment,t),b(Ja.$$.fragment,t),b(ei.$$.fragment,t),b(Na.$$.fragment,t),b(ti.$$.fragment,t),b(ni.$$.fragment,t),b(Ea.$$.fragment,t),b(oi.$$.fragment,t),b(Ra.$$.fragment,t),b(ai.$$.fragment,t),b(Da.$$.fragment,t),b(si.$$.fragment,t),b(Ga.$$.fragment,t),b(Fa.$$.fragment,t),b(Sa.$$.fragment,t),b(ri.$$.fragment,t),b(La.$$.fragment,t),b(ii.$$.fragment,t),b(Za.$$.fragment,t),b(ci.$$.fragment,t),b(Ba.$$.fragment,t),b(li.$$.fragment,t),b(pi.$$.fragment,t),b(Wa.$$.fragment,t),b(di.$$.fragment,t),b(Va.$$.fragment,t),b(Pa.$$.fragment,t),b(Xa.$$.fragment,t),b(gi.$$.fragment,t),b(Ya.$$.fragment,t),b(za.$$.fragment,t),b(Oa.$$.fragment,t),b(Qa.$$.fragment,t),b(ui.$$.fragment,t),b(hi.$$.fragment,t),b(es.$$.fragment,t),b(ts.$$.fragment,t),b(ns.$$.fragment,t),b(mi.$$.fragment,t),b(fi.$$.fragment,t),b(_i.$$.fragment,t),b(bi.$$.fragment,t),b(yi.$$.fragment,t),b(xi.$$.fragment,t),b(vi.$$.fragment,t),b(os.$$.fragment,t),b($i.$$.fragment,t),b(wi.$$.fragment,t),b(Mi.$$.fragment,t),b(Ti.$$.fragment,t),b(ki.$$.fragment,t),b(ji.$$.fragment,t),b(Hi.$$.fragment,t),b(Ci.$$.fragment,t),b(as.$$.fragment,t),b(Ii.$$.fragment,t),b(Ui.$$.fragment,t),b(ss.$$.fragment,t),b(Ai.$$.fragment,t),b(qi.$$.fragment,t),b(Ji.$$.fragment,t),b(Ni.$$.fragment,t),b(rs.$$.fragment,t),b(Ei.$$.fragment,t),b(Ri.$$.fragment,t),b(Di.$$.fragment,t),b(Gi.$$.fragment,t),b(Fi.$$.fragment,t),b(Si.$$.fragment,t),b(is.$$.fragment,t),b(Li.$$.fragment,t),b(Zi.$$.fragment,t),b(Bi.$$.fragment,t),b(Wi.$$.fragment,t),b(Vi.$$.fragment,t),b(Pi.$$.fragment,t),b(Xi.$$.fragment,t),b(zi.$$.fragment,t),b(Oi.$$.fragment,t),b(cs.$$.fragment,t),b(Qi.$$.fragment,t),b(Ki.$$.fragment,t),b(ec.$$.fragment,t),b(tc.$$.fragment,t),b(nc.$$.fragment,t),b(ls.$$.fragment,t),b(oc.$$.fragment,t),b(ps.$$.fragment,t),b(ac.$$.fragment,t),b(sc.$$.fragment,t),b(rc.$$.fragment,t),b(cc.$$.fragment,t),b(lc.$$.fragment,t),b(ds.$$.fragment,t),b(gs.$$.fragment,t),b(pc.$$.fragment,t),b(dc.$$.fragment,t),b(us.$$.fragment,t),b(hs.$$.fragment,t),ah=!1},d(t){t&&(p(u),p(i),p(a),p(e),p(v),p(su),p(xs),p(ru),p(vs),p(iu),p(cu),p(lu),p(w),p(pu),p(E),p(du),p(gu),p(uu),p(jn),p(hu),p(mu),p(ct),p(fu),p(_u),p(lt),p(bu),p(yu),p(Hn),p(xu),p(vu),p(Cn),p($u),p(wu),p(pt),p(Mu),p(Tu),p(dt),p(ku),p(ju),p(gt),p(Hu),p(Cu),p(In),p(Iu),p(Uu),p(Q),p(Au),p(qu),p(K),p(Ju),p(Nu),p(fe),p(Eu),p(Ru),p(ut),p(Du),p(Gu),p(ht),p(Fu),p(Su),p(Un),p(Lu),p(Zu),p(An),p(Bu),p(Wu),p(Yi),p(Vu),p(_e),p(Pu),p(qn),p(Xu),p(ee),p(Yu),p(zu),p(D),p(Ou),p(Qu),p(ic),p(Ku),p(eh),p(be),p(th),p(nh),p(ye),p(oh),p(au)),p(n),y(x,t),y($s,t),y(ws,t),y(Ms),y(Ts),y(ks),y(ro),y(js),y(Hs),y(Cs),y(Is),y(io),y(co),y(Us),y(lo),y(po),y(As),y(qs),y(uo),y(Js),y(ho),y(mo),y(fo),y(Ns),y(_o),y(bo),y(yo),y(Es),y(xo),y(Rs),y(vo),y($o),y(Ds),y(wo),y(Gs),y(Fs),y(Ss),y(ko),y(Ls),y(Zs),y(Ho),y(Co),y(Bs),y(Io),y(Ws),y(Uo),y(Vs),y(Ps),y(Xs),y(Ys),y(zs),y(Os),y(Qs),y(Ks),y(No),y(er),y(Eo),y(tr),y(Ro),y(nr),y(Do),y(or),y(ar),y(Fo),y(sr),y(rr),y(ir),y(Zo),y(cr),y(lr),y(Wo),y(pr),y(Vo),y(Po),y(dr),y(Xo),y(gr),y(ur),y(hr),y(mr),y(fr),y(_r),y(Oo),y(Qo),y(br),y(Ko),y(ea),y(yr),y(ta),y(xr),y(na),y(vr),y(oa),y($r),y(aa),y(sa),y(wr),y(ra),y(Mr),y(ia),y(Tr),y(kr),y(la),y(pa),y(jr),y(Hr),y(ga),y(Cr),y(ua),y(Ir),y(ha),y(Ur),y(Ar),y(qr),y(fa),y(Jr),y(_a),y(ba),y(Nr),y(Er),y(Rr),y(Dr),y($a),y(Gr),y(wa),y(Fr),y(Ma),y(Sr),y(Lr),y(Zr),y(Br),y(Ta),y(ka),y(ja),y(Wr),y(Vr),y(Ha),y(Ca),y(Pr),y(Ia),y(Xr),y(Ua),y(Yr),y(Aa),y(zr),y(qa),y(Or),y(Qr),y(Kr),y(Ja),y(ei),y(Na),y(ti),y(ni),y(Ea),y(oi),y(Ra),y(ai),y(Da),y(si),y(Ga),y(Fa),y(Sa),y(ri),y(La),y(ii),y(Za),y(ci),y(Ba),y(li),y(pi),y(Wa),y(di),y(Va),y(Pa),y(Xa),y(gi),y(Ya),y(za),y(Oa),y(Qa),y(ui),y(hi),y(es),y(ts),y(ns),y(mi,t),y(fi,t),y(_i),y(bi,t),y(yi),y(xi,t),y(vi),y(os),y($i,t),y(wi),y(Mi,t),y(Ti),y(ki,t),y(ji),y(Hi,t),y(Ci),y(as),y(Ii,t),y(Ui),y(ss),y(Ai,t),y(qi),y(Ji,t),y(Ni),y(rs),y(Ei,t),y(Ri),y(Di,t),y(Gi),y(Fi,t),y(Si),y(is),y(Li,t),y(Zi),y(Bi,t),y(Wi),y(Vi,t),y(Pi),y(Xi,t),y(zi),y(Oi),y(cs),y(Qi),y(Ki),y(ec),y(tc,t),y(nc),y(ls),y(oc),y(ps),y(ac),y(sc),y(rc,t),y(cc,t),y(lc),y(ds),y(gs),y(pc,t),y(dc),y(us),y(hs)}}}const C0='{"title":"HfApi Client","local":"hfapi-client","sections":[{"title":"HfApi","local":"huggingface_hub.HfApi","sections":[],"depth":2},{"title":"API Dataclasses","local":"api-dataclasses","sections":[{"title":"AccessRequest","local":"huggingface_hub.hf_api.AccessRequest","sections":[],"depth":3},{"title":"CommitInfo","local":"huggingface_hub.CommitInfo","sections":[],"depth":3},{"title":"DatasetInfo","local":"huggingface_hub.hf_api.DatasetInfo","sections":[],"depth":3},{"title":"GitRefInfo","local":"huggingface_hub.GitRefInfo","sections":[],"depth":3},{"title":"GitCommitInfo","local":"huggingface_hub.GitCommitInfo","sections":[],"depth":3},{"title":"GitRefs","local":"huggingface_hub.GitRefs","sections":[],"depth":3},{"title":"ModelInfo","local":"huggingface_hub.hf_api.ModelInfo","sections":[],"depth":3},{"title":"RepoSibling","local":"huggingface_hub.hf_api.RepoSibling","sections":[],"depth":3},{"title":"RepoFile","local":"huggingface_hub.hf_api.RepoFile","sections":[],"depth":3},{"title":"RepoUrl","local":"huggingface_hub.RepoUrl","sections":[],"depth":3},{"title":"SafetensorsRepoMetadata","local":"huggingface_hub.utils.SafetensorsRepoMetadata","sections":[],"depth":3},{"title":"SafetensorsFileMetadata","local":"huggingface_hub.utils.SafetensorsFileMetadata","sections":[],"depth":3},{"title":"SpaceInfo","local":"huggingface_hub.hf_api.SpaceInfo","sections":[],"depth":3},{"title":"TensorInfo","local":"huggingface_hub.utils.TensorInfo","sections":[],"depth":3},{"title":"User","local":"huggingface_hub.User","sections":[],"depth":3},{"title":"UserLikes","local":"huggingface_hub.UserLikes","sections":[],"depth":3}],"depth":2},{"title":"CommitOperation","local":"huggingface_hub.CommitOperationAdd","sections":[],"depth":2},{"title":"CommitScheduler","local":"huggingface_hub.CommitScheduler","sections":[],"depth":2},{"title":"Search helpers","local":"search-helpers","sections":[{"title":"DatasetFilter","local":"huggingface_hub.DatasetFilter","sections":[],"depth":3},{"title":"ModelFilter","local":"huggingface_hub.ModelFilter","sections":[],"depth":3}],"depth":2}],"depth":1}';function I0(T){return JM(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class D0 extends NM{constructor(n){super(),EM(this,n,I0,H0,qM,{})}}export{D0 as component};
