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


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


<p><a
  href="/docs/huggingface_hub/v0.21.0.rc0/en/package_reference/community#huggingface_hub.DiscussionStatusChange"
>DiscussionStatusChange</a></p>
`}}),go=new q({props:{anchor:"huggingface_hub.HfApi.change_discussion_status.example",$$slots:{default:[Yw]},$$scope:{ctx:w}}}),uo=new U({props:{$$slots:{default:[zw]},$$scope:{ctx:w}}}),Ns=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/v0.21.0.rc0/src/huggingface_hub/hf_api.py#L6183",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


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


<p><a
  href="/docs/huggingface_hub/v0.21.0.rc0/en/package_reference/community#huggingface_hub.DiscussionComment"
>DiscussionComment</a></p>
`}}),ho=new q({props:{anchor:"huggingface_hub.HfApi.comment_discussion.example",$$slots:{default:[Ow]},$$scope:{ctx:w}}}),fo=new U({props:{$$slots:{default:[Qw]},$$scope:{ctx:w}}}),Es=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/v0.21.0.rc0/src/huggingface_hub/hf_api.py#L5558",raiseDescription:`<script context="module">export const metadata = 'undefined';<\/script>


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


<p><a
  href="/docs/huggingface_hub/v0.21.0.rc0/en/package_reference/utilities#huggingface_hub.utils.RepositoryNotFoundError"
>RepositoryNotFoundError</a> or <a
  href="/docs/huggingface_hub/v0.21.0.rc0/en/package_reference/utilities#huggingface_hub.utils.BadRequestError"
>BadRequestError</a> or <a
  href="/docs/huggingface_hub/v0.21.0.rc0/en/package_reference/utilities#huggingface_hub.utils.HfHubHTTPError"
>HfHubHTTPError</a></p>
`}}),Rs=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/v0.21.0.rc0/src/huggingface_hub/hf_api.py#L7644"}}),_o=new q({props:{anchor:"huggingface_hub.HfApi.create_collection.example",$$slots:{default:[Kw]},$$scope:{ctx:w}}}),Gs=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/v0.21.0.rc0/en/package_reference/hf_api#huggingface_hub.CommitOperationAdd">CommitOperationAdd</a> to upload a file</li>
<li><a href="/docs/huggingface_hub/v0.21.0.rc0/en/package_reference/hf_api#huggingface_hub.CommitOperationDelete">CommitOperationDelete</a> to delete a file</li>
<li><a href="/docs/huggingface_hub/v0.21.0.rc0/en/package_reference/hf_api#huggingface_hub.CommitOperationCopy">CommitOperationCopy</a> to copy a file</li>
</ul>
<p>Operation objects will be mutated to include information relative to the upload. Do not reuse the
same objects for multiple commits.`,name:"operations"},{anchor:"huggingface_hub.HfApi.create_commit.commit_message",description:`<strong>commit_message</strong> (<code>str</code>) &#x2014;
The summary (first line) of the commit that will be created.`,name:"commit_message"},{anchor:"huggingface_hub.HfApi.create_commit.commit_description",description:`<strong>commit_description</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The description of the commit that will be created`,name:"commit_description"},{anchor:"huggingface_hub.HfApi.create_commit.token",description:`<strong>token</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Authentication token, obtained with <code>HfApi.login</code> method. Will
default to the stored token.`,name:"token"},{anchor:"huggingface_hub.HfApi.create_commit.repo_type",description:`<strong>repo_type</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Set to <code>&quot;dataset&quot;</code> or <code>&quot;space&quot;</code> if uploading to a dataset or
space, <code>None</code> or <code>&quot;model&quot;</code> if uploading to a model. Default is
<code>None</code>.`,name:"repo_type"},{anchor:"huggingface_hub.HfApi.create_commit.revision",description:`<strong>revision</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The git revision to commit from. Defaults to the head of the <code>&quot;main&quot;</code> branch.`,name:"revision"},{anchor:"huggingface_hub.HfApi.create_commit.create_pr",description:`<strong>create_pr</strong> (<code>boolean</code>, <em>optional</em>) &#x2014;
Whether or not to create a Pull Request with that commit. Defaults to <code>False</code>.
If <code>revision</code> is not set, PR is opened against the <code>&quot;main&quot;</code> branch. If
<code>revision</code> is set and is a branch, PR is opened against this branch. If
<code>revision</code> is set and is not a branch name (example: a commit oid), an
<code>RevisionNotFoundError</code> is returned by the server.`,name:"create_pr"},{anchor:"huggingface_hub.HfApi.create_commit.num_threads",description:`<strong>num_threads</strong> (<code>int</code>, <em>optional</em>) &#x2014;
Number of concurrent threads for uploading files. Defaults to 5.
Setting it to 2 means at most 2 files will be uploaded concurrently.`,name:"num_threads"},{anchor:"huggingface_hub.HfApi.create_commit.parent_commit",description:`<strong>parent_commit</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The OID / SHA of the parent commit, as a hexadecimal string.
Shorthands (7 first characters) are also supported. If specified and <code>create_pr</code> is <code>False</code>,
the commit will fail if <code>revision</code> does not point to <code>parent_commit</code>. If specified and <code>create_pr</code>
is <code>True</code>, the pull request will be created from <code>parent_commit</code>. Specifying <code>parent_commit</code>
ensures the repo has not changed before committing the changes, and can be especially useful
if the repo is updated / committed to concurrently.`,name:"parent_commit"},{anchor:"huggingface_hub.HfApi.create_commit.run_as_future",description:`<strong>run_as_future</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to run this method in the background. Background jobs are run sequentially without
blocking the main thread. Passing <code>run_as_future=True</code> will return a <a href="https://docs.python.org/3/library/concurrent.futures.html#future-objects" rel="nofollow">Future</a>
object. Defaults to <code>False</code>.`,name:"run_as_future"}],source:"https://github.com/huggingface/huggingface_hub/blob/v0.21.0.rc0/src/huggingface_hub/hf_api.py#L3580",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


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


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


<ul>
<li><a
  href="https://docs.python.org/3/library/exceptions.html#ValueError"
  rel="nofollow"
><code>ValueError</code></a> —
If commit message is empty.</li>
<li><a
  href="https://docs.python.org/3/library/exceptions.html#ValueError"
  rel="nofollow"
><code>ValueError</code></a> —
If parent commit is not a valid commit OID.</li>
<li><a
  href="https://docs.python.org/3/library/exceptions.html#ValueError"
  rel="nofollow"
><code>ValueError</code></a> —
If 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/v0.21.0.rc0/en/package_reference/utilities#huggingface_hub.utils.RepositoryNotFoundError"
>RepositoryNotFoundError</a> —
If repository is not found (error 404): wrong repo_id/repo_type, private
but not authenticated or repo does not exist.</li>
</ul>
`,raiseType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>ValueError</code> or <a
  href="/docs/huggingface_hub/v0.21.0.rc0/en/package_reference/utilities#huggingface_hub.utils.RepositoryNotFoundError"
>RepositoryNotFoundError</a></p>
`}}),bo=new U({props:{warning:!0,$$slots:{default:[eM]},$$scope:{ctx:w}}}),vo=new U({props:{warning:!0,$$slots:{default:[tM]},$$scope:{ctx:w}}}),xo=new U({props:{warning:!0,$$slots:{default:[nM]},$$scope:{ctx:w}}}),Ds=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/v0.21.0.rc0/en/package_reference/hf_api#huggingface_hub.CommitOperationAdd">CommitOperationAdd</a>) &#x2014;
A list containing lists of <a href="/docs/huggingface_hub/v0.21.0.rc0/en/package_reference/hf_api#huggingface_hub.CommitOperationAdd">CommitOperationAdd</a>. Each sublist will result in a commit on the
PR.</p>
<p>deletion_commits &#x2014;
A list containing lists of <a href="/docs/huggingface_hub/v0.21.0.rc0/en/package_reference/hf_api#huggingface_hub.CommitOperationDelete">CommitOperationDelete</a>. Each sublist will result in a commit on
the PR. Deletion commits are pushed before addition commits.`,name:"addition_commits"},{anchor:"huggingface_hub.HfApi.create_commits_on_pr.commit_message",description:`<strong>commit_message</strong> (<code>str</code>) &#x2014;
The summary (first line) of the commit that will be created. Will also be the title of the PR.`,name:"commit_message"},{anchor:"huggingface_hub.HfApi.create_commits_on_pr.commit_description",description:`<strong>commit_description</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The description of the commit that will be created. The description will be added to the PR.`,name:"commit_description"},{anchor:"huggingface_hub.HfApi.create_commits_on_pr.token",description:`<strong>token</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Authentication token, obtained with <code>HfApi.login</code> method. Will default to the stored token.`,name:"token"},{anchor:"huggingface_hub.HfApi.create_commits_on_pr.repo_type",description:`<strong>repo_type</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Set to <code>&quot;dataset&quot;</code> or <code>&quot;space&quot;</code> if uploading to a dataset or space, <code>None</code> or <code>&quot;model&quot;</code> if uploading to
a model. Default is <code>None</code>.`,name:"repo_type"},{anchor:"huggingface_hub.HfApi.create_commits_on_pr.merge_pr",description:`<strong>merge_pr</strong> (<code>bool</code>) &#x2014;
If set to <code>True</code>, the Pull Request is merged at the end of the process. Defaults to <code>True</code>.`,name:"merge_pr"},{anchor:"huggingface_hub.HfApi.create_commits_on_pr.num_threads",description:`<strong>num_threads</strong> (<code>int</code>, <em>optional</em>) &#x2014;
Number of concurrent threads for uploading files. Defaults to 5.`,name:"num_threads"},{anchor:"huggingface_hub.HfApi.create_commits_on_pr.verbose",description:`<strong>verbose</strong> (<code>bool</code>) &#x2014;
If set to <code>True</code>, process will run on verbose mode i.e. print information about the ongoing tasks.
Defaults to <code>False</code>.`,name:"verbose"}],source:"https://github.com/huggingface/huggingface_hub/blob/v0.21.0.rc0/src/huggingface_hub/hf_api.py#L3829",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>
`}}),yo=new U({props:{warning:!0,$$slots:{default:[oM]},$$scope:{ctx:w}}}),$o=new U({props:{warning:!0,$$slots:{default:[aM]},$$scope:{ctx:w}}}),wo=new q({props:{anchor:"huggingface_hub.HfApi.create_commits_on_pr.example",$$slots:{default:[sM]},$$scope:{ctx:w}}}),Fs=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/v0.21.0.rc0/src/huggingface_hub/hf_api.py#L6010"}}),Mo=new U({props:{$$slots:{default:[rM]},$$scope:{ctx:w}}}),Ss=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/v0.21.0.rc0/src/huggingface_hub/hf_api.py#L7134",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


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


<p><a
  href="/docs/huggingface_hub/v0.21.0.rc0/en/package_reference/inference_endpoints#huggingface_hub.InferenceEndpoint"
>InferenceEndpoint</a></p>
`}}),To=new q({props:{anchor:"huggingface_hub.HfApi.create_inference_endpoint.example",$$slots:{default:[iM]},$$scope:{ctx:w}}}),jo=new q({props:{anchor:"huggingface_hub.HfApi.create_inference_endpoint.example-2",$$slots:{default:[cM]},$$scope:{ctx:w}}}),Zs=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/v0.21.0.rc0/src/huggingface_hub/hf_api.py#L6099"}}),ko=new U({props:{$$slots:{default:[lM]},$$scope:{ctx:w}}}),Ls=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/v0.21.0.rc0/en/package_reference/space_runtime#huggingface_hub.SpaceHardware">SpaceHardware</a> for a complete list.`,name:"space_hardware"},{anchor:"huggingface_hub.HfApi.create_repo.space_storage",description:`<strong>space_storage</strong> (<code>SpaceStorage</code> or <code>str</code>, <em>optional</em>) &#x2014;
Choice of persistent storage tier. Example: <code>&quot;small&quot;</code>. See <a href="/docs/huggingface_hub/v0.21.0.rc0/en/package_reference/space_runtime#huggingface_hub.SpaceStorage">SpaceStorage</a> for a complete list.`,name:"space_storage"},{anchor:"huggingface_hub.HfApi.create_repo.space_sleep_time",description:`<strong>space_sleep_time</strong> (<code>int</code>, <em>optional</em>) &#x2014;
Number of seconds of inactivity to wait before a Space is put to sleep. Set to <code>-1</code> if you don&#x2019;t want
your Space to sleep (default behavior for upgraded hardware). For free hardware, you can&#x2019;t configure
the sleep time (value is fixed to 48 hours of inactivity).
See <a href="https://huggingface.co/docs/hub/spaces-gpus#sleep-time" rel="nofollow">https://huggingface.co/docs/hub/spaces-gpus#sleep-time</a> for more details.`,name:"space_sleep_time"},{anchor:"huggingface_hub.HfApi.create_repo.space_secrets",description:`<strong>space_secrets</strong> (<code>List[Dict[str, str]]</code>, <em>optional</em>) &#x2014;
A list of secret keys to set in your Space. Each item is in the form <code>{&quot;key&quot;: ..., &quot;value&quot;: ..., &quot;description&quot;: ...}</code> where description is optional.
For more details, see <a href="https://huggingface.co/docs/hub/spaces-overview#managing-secrets" rel="nofollow">https://huggingface.co/docs/hub/spaces-overview#managing-secrets</a>.`,name:"space_secrets"},{anchor:"huggingface_hub.HfApi.create_repo.space_variables",description:`<strong>space_variables</strong> (<code>List[Dict[str, str]]</code>, <em>optional</em>) &#x2014;
A list of public environment variables to set in your Space. Each item is in the form <code>{&quot;key&quot;: ..., &quot;value&quot;: ..., &quot;description&quot;: ...}</code> where description is optional.
For more details, see <a href="https://huggingface.co/docs/hub/spaces-overview#managing-secrets-and-environment-variables" rel="nofollow">https://huggingface.co/docs/hub/spaces-overview#managing-secrets-and-environment-variables</a>.`,name:"space_variables"}],source:"https://github.com/huggingface/huggingface_hub/blob/v0.21.0.rc0/src/huggingface_hub/hf_api.py#L3237",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


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


<p><a
  href="/docs/huggingface_hub/v0.21.0.rc0/en/package_reference/hf_api#huggingface_hub.RepoUrl"
>RepoUrl</a></p>
`}}),Ws=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/v0.21.0.rc0/src/huggingface_hub/hf_api.py#L5674",raiseDescription:`<script context="module">export const metadata = 'undefined';<\/script>


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


<p><a
  href="/docs/huggingface_hub/v0.21.0.rc0/en/package_reference/utilities#huggingface_hub.utils.RepositoryNotFoundError"
>RepositoryNotFoundError</a> or <a
  href="/docs/huggingface_hub/v0.21.0.rc0/en/package_reference/utilities#huggingface_hub.utils.RevisionNotFoundError"
>RevisionNotFoundError</a> or <a
  href="/docs/huggingface_hub/v0.21.0.rc0/en/package_reference/utilities#huggingface_hub.utils.HfHubHTTPError"
>HfHubHTTPError</a></p>
`}}),Bs=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/v0.21.0.rc0/en/package_reference/login#huggingface_hub.login">login()</a>), token will be retrieved from the cache.
If <code>False</code>, token is not sent in the request header.`,name:"token"}],source:"https://github.com/huggingface/huggingface_hub/blob/v0.21.0.rc0/src/huggingface_hub/hf_api.py#L2224",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


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


<p><a
  href="/docs/huggingface_hub/v0.21.0.rc0/en/package_reference/hf_api#huggingface_hub.hf_api.DatasetInfo"
>hf_api.DatasetInfo</a></p>
`}}),Io=new U({props:{$$slots:{default:[pM]},$$scope:{ctx:w}}}),Vs=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/v0.21.0.rc0/src/huggingface_hub/hf_api.py#L5625",raiseDescription:`<script context="module">export const metadata = 'undefined';<\/script>


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


<p><a
  href="/docs/huggingface_hub/v0.21.0.rc0/en/package_reference/utilities#huggingface_hub.utils.RepositoryNotFoundError"
>RepositoryNotFoundError</a> or <a
  href="/docs/huggingface_hub/v0.21.0.rc0/en/package_reference/utilities#huggingface_hub.utils.HfHubHTTPError"
>HfHubHTTPError</a></p>
`}}),Xs=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/v0.21.0.rc0/src/huggingface_hub/hf_api.py#L7774"}}),Uo=new q({props:{anchor:"huggingface_hub.HfApi.delete_collection.example",$$slots:{default:[dM]},$$scope:{ctx:w}}}),Ao=new U({props:{warning:!0,$$slots:{default:[gM]},$$scope:{ctx:w}}}),Ps=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/v0.21.0.rc0/en/package_reference/collections#huggingface_hub.CollectionItem">CollectionItem</a> object. Example: <code>collection.items[0]._id</code>.`,name:"item_object_id"},{anchor:"huggingface_hub.HfApi.delete_collection_item.missing_ok",description:`<strong>missing_ok</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
If <code>True</code>, do not raise an error if item doesn&#x2019;t exists.`,name:"missing_ok"},{anchor:"huggingface_hub.HfApi.delete_collection_item.token",description:`<strong>token</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Hugging Face token. Will default to the locally saved token if not provided.`,name:"token"}],source:"https://github.com/huggingface/huggingface_hub/blob/v0.21.0.rc0/src/huggingface_hub/hf_api.py#L7941"}}),Jo=new q({props:{anchor:"huggingface_hub.HfApi.delete_collection_item.example",$$slots:{default:[uM]},$$scope:{ctx:w}}}),Ys=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/v0.21.0.rc0/src/huggingface_hub/hf_api.py#L4832"}}),No=new U({props:{$$slots:{default:[hM]},$$scope:{ctx:w}}}),zs=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/v0.21.0.rc0/src/huggingface_hub/hf_api.py#L4920"}}),Os=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/v0.21.0.rc0/src/huggingface_hub/hf_api.py#L7421"}}),Qs=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/v0.21.0.rc0/src/huggingface_hub/hf_api.py#L3372",raiseDescription:`<script context="module">export const metadata = 'undefined';<\/script>


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


<ul>
<li></li>
</ul>
`}}),Ks=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/v0.21.0.rc0/src/huggingface_hub/hf_api.py#L6603"}}),er=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/v0.21.0.rc0/src/huggingface_hub/hf_api.py#L7047",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


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


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


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


<p><code>BadRequestError</code></p>
`}}),tr=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/v0.21.0.rc0/src/huggingface_hub/hf_api.py#L6677"}}),nr=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/v0.21.0.rc0/src/huggingface_hub/hf_api.py#L5745",raiseDescription:`<script context="module">export const metadata = 'undefined';<\/script>


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


<p><a
  href="/docs/huggingface_hub/v0.21.0.rc0/en/package_reference/utilities#huggingface_hub.utils.RepositoryNotFoundError"
>RepositoryNotFoundError</a> or <a
  href="/docs/huggingface_hub/v0.21.0.rc0/en/package_reference/utilities#huggingface_hub.utils.RevisionNotFoundError"
>RevisionNotFoundError</a></p>
`}}),or=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/v0.21.0.rc0/en/package_reference/space_runtime#huggingface_hub.SpaceHardware">SpaceHardware</a> for a complete list.`,name:"hardware"},{anchor:"huggingface_hub.HfApi.duplicate_space.storage",description:`<strong>storage</strong> (<code>SpaceStorage</code> or <code>str</code>, <em>optional</em>) &#x2014;
Choice of persistent storage tier. Example: <code>&quot;small&quot;</code>. See <a href="/docs/huggingface_hub/v0.21.0.rc0/en/package_reference/space_runtime#huggingface_hub.SpaceStorage">SpaceStorage</a> for a complete list.`,name:"storage"},{anchor:"huggingface_hub.HfApi.duplicate_space.sleep_time",description:`<strong>sleep_time</strong> (<code>int</code>, <em>optional</em>) &#x2014;
Number of seconds of inactivity to wait before a Space is put to sleep. Set to <code>-1</code> if you don&#x2019;t want
your Space to sleep (default behavior for upgraded hardware). For free hardware, you can&#x2019;t configure
the sleep time (value is fixed to 48 hours of inactivity).
See <a href="https://huggingface.co/docs/hub/spaces-gpus#sleep-time" rel="nofollow">https://huggingface.co/docs/hub/spaces-gpus#sleep-time</a> for more details.`,name:"sleep_time"},{anchor:"huggingface_hub.HfApi.duplicate_space.secrets",description:`<strong>secrets</strong> (<code>List[Dict[str, str]]</code>, <em>optional</em>) &#x2014;
A list of secret keys to set in your Space. Each item is in the form <code>{&quot;key&quot;: ..., &quot;value&quot;: ..., &quot;description&quot;: ...}</code> where description is optional.
For more details, see <a href="https://huggingface.co/docs/hub/spaces-overview#managing-secrets" rel="nofollow">https://huggingface.co/docs/hub/spaces-overview#managing-secrets</a>.`,name:"secrets"},{anchor:"huggingface_hub.HfApi.duplicate_space.variables",description:`<strong>variables</strong> (<code>List[Dict[str, str]]</code>, <em>optional</em>) &#x2014;
A list of public environment variables to set in your Space. Each item is in the form <code>{&quot;key&quot;: ..., &quot;value&quot;: ..., &quot;description&quot;: ...}</code> where description is optional.
For more details, see <a href="https://huggingface.co/docs/hub/spaces-overview#managing-secrets-and-environment-variables" rel="nofollow">https://huggingface.co/docs/hub/spaces-overview#managing-secrets-and-environment-variables</a>.`,name:"variables"}],source:"https://github.com/huggingface/huggingface_hub/blob/v0.21.0.rc0/src/huggingface_hub/hf_api.py#L6896",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


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


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


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


<ul>
<li></li>
</ul>
`}}),Do=new q({props:{anchor:"huggingface_hub.HfApi.duplicate_space.example",$$slots:{default:[fM]},$$scope:{ctx:w}}}),ar=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/v0.21.0.rc0/src/huggingface_hub/hf_api.py#L6454",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


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


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


<p>True if the file exists, False otherwise.</p>
`}}),So=new q({props:{anchor:"huggingface_hub.HfApi.file_exists.example",$$slots:{default:[_M]},$$scope:{ctx:w}}}),rr=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/v0.21.0.rc0/src/huggingface_hub/hf_api.py#L7608"}}),Zo=new q({props:{anchor:"huggingface_hub.HfApi.get_collection.example",$$slots:{default:[bM]},$$scope:{ctx:w}}}),ir=new H({props:{name:"get_dataset_tags",anchor:"huggingface_hub.HfApi.get_dataset_tags",parameters:[],source:"https://github.com/huggingface/huggingface_hub/blob/v0.21.0.rc0/src/huggingface_hub/hf_api.py#L1368"}}),cr=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/v0.21.0.rc0/src/huggingface_hub/hf_api.py#L5934"}}),Wo=new U({props:{$$slots:{default:[vM]},$$scope:{ctx:w}}}),lr=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/v0.21.0.rc0/en/package_reference/login#huggingface_hub.login">login()</a>), token will be retrieved from the cache.
If <code>False</code>, token is not sent in the request header.`,name:"token"}],source:"https://github.com/huggingface/huggingface_hub/blob/v0.21.0.rc0/src/huggingface_hub/hf_api.py#L5791",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>
`}}),pr=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/v0.21.0.rc0/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/v0.21.0.rc0/src/huggingface_hub/hf_api.py#L4985",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>A <a
  href="/docs/huggingface_hub/v0.21.0.rc0/en/package_reference/file_download#huggingface_hub.HfFileMetadata"
>HfFileMetadata</a> object containing metadata such as location, etag, size and commit_hash.</p>
`}}),dr=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/v0.21.0.rc0/src/huggingface_hub/hf_api.py#L7288",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


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


<p><a
  href="/docs/huggingface_hub/v0.21.0.rc0/en/package_reference/inference_endpoints#huggingface_hub.InferenceEndpoint"
>InferenceEndpoint</a></p>
`}}),Xo=new q({props:{anchor:"huggingface_hub.HfApi.get_inference_endpoint.example",$$slots:{default:[xM]},$$scope:{ctx:w}}}),gr=new H({props:{name:"get_model_tags",anchor:"huggingface_hub.HfApi.get_model_tags",parameters:[],source:"https://github.com/huggingface/huggingface_hub/blob/v0.21.0.rc0/src/huggingface_hub/hf_api.py#L1359"}}),ur=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/v0.21.0.rc0/en/package_reference/login#huggingface_hub.login">login()</a>), token will be
retrieved from the cache. If <code>False</code>, token is not sent in the request header.`,name:"token"}],source:"https://github.com/huggingface/huggingface_hub/blob/v0.21.0.rc0/src/huggingface_hub/hf_api.py#L3076",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/v0.21.0.rc0/en/package_reference/utilities#huggingface_hub.utils.RepositoryNotFoundError"
>RepositoryNotFoundError</a> —
If repository is not found (error 404): wrong repo_id/repo_type, private but not authenticated or repo
does not exist.</li>
<li><a
  href="/docs/huggingface_hub/v0.21.0.rc0/en/package_reference/utilities#huggingface_hub.utils.RevisionNotFoundError"
>RevisionNotFoundError</a> —
If revision is not found (error 404) on the repo.</li>
</ul>
`,raiseType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/huggingface_hub/v0.21.0.rc0/en/package_reference/utilities#huggingface_hub.utils.RepositoryNotFoundError"
>RepositoryNotFoundError</a> or <a
  href="/docs/huggingface_hub/v0.21.0.rc0/en/package_reference/utilities#huggingface_hub.utils.RevisionNotFoundError"
>RevisionNotFoundError</a></p>
`}}),Yo=new q({props:{anchor:"huggingface_hub.HfApi.get_paths_info.example",$$slots:{default:[yM]},$$scope:{ctx:w}}}),hr=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/v0.21.0.rc0/src/huggingface_hub/hf_api.py#L5829",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


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


<p><code>Iterator[Discussion]</code></p>
`}}),zo=new q({props:{anchor:"huggingface_hub.HfApi.get_repo_discussions.example",$$slots:{default:[$M]},$$scope:{ctx:w}}}),Oo=new q({props:{anchor:"huggingface_hub.HfApi.get_repo_discussions.example-2",$$slots:{default:[wM]},$$scope:{ctx:w}}}),fr=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/v0.21.0.rc0/en/package_reference/login#huggingface_hub.login">login()</a>), token will be
retrieved from the cache. If <code>False</code>, token is not sent in the request header.`,name:"token"}],source:"https://github.com/huggingface/huggingface_hub/blob/v0.21.0.rc0/src/huggingface_hub/hf_api.py#L5337",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>
`}}),Qo=new q({props:{anchor:"huggingface_hub.HfApi.get_safetensors_metadata.example",$$slots:{default:[MM]},$$scope:{ctx:w}}}),mr=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/v0.21.0.rc0/src/huggingface_hub/hf_api.py#L6702",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


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


<p><a
  href="/docs/huggingface_hub/v0.21.0.rc0/en/package_reference/space_runtime#huggingface_hub.SpaceRuntime"
>SpaceRuntime</a></p>
`}}),_r=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/v0.21.0.rc0/src/huggingface_hub/hf_api.py#L6625"}}),br=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/v0.21.0.rc0/src/huggingface_hub/hf_api.py#L1340",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>
`}}),vr=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/v0.21.0.rc0/src/huggingface_hub/hf_api.py#L8338",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>
`}}),xr=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/v0.21.0.rc0/en/package_reference/login#huggingface_hub.login">login()</a>), token will be retrieved from the cache.
If <code>False</code>, token is not sent in the request header.`,name:"token"},{anchor:"huggingface_hub.HfApi.hf_hub_download.local_files_only",description:`<strong>local_files_only</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
If <code>True</code>, avoid downloading the file and return the path to the
local cached file if it exists.`,name:"local_files_only"},{anchor:"huggingface_hub.HfApi.hf_hub_download.legacy_cache_layout",description:`<strong>legacy_cache_layout</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
If <code>True</code>, uses the legacy file cache layout i.e. just call <a href="/docs/huggingface_hub/v0.21.0.rc0/en/package_reference/file_download#huggingface_hub.hf_hub_url">hf_hub_url()</a>
then <code>cached_download</code>. This is deprecated as the new cache layout is
more powerful.`,name:"legacy_cache_layout"}],source:"https://github.com/huggingface/huggingface_hub/blob/v0.21.0.rc0/src/huggingface_hub/hf_api.py#L5027",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>
`}}),ea=new q({props:{anchor:"huggingface_hub.HfApi.hf_hub_download.example",$$slots:{default:[TM]},$$scope:{ctx:w}}}),ta=new U({props:{$$slots:{default:[jM]},$$scope:{ctx:w}}}),yr=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/v0.21.0.rc0/src/huggingface_hub/hf_api.py#L6511",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


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


<p><a
  href="/docs/huggingface_hub/v0.21.0.rc0/en/package_reference/community#huggingface_hub.DiscussionComment"
>DiscussionComment</a></p>
`}}),na=new U({props:{warning:!0,$$slots:{default:[kM]},$$scope:{ctx:w}}}),oa=new U({props:{$$slots:{default:[HM]},$$scope:{ctx:w}}}),$r=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/v0.21.0.rc0/src/huggingface_hub/hf_api.py#L1936",raiseDescription:`<script context="module">export const metadata = 'undefined';<\/script>


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


<p><a
  href="/docs/huggingface_hub/v0.21.0.rc0/en/package_reference/utilities#huggingface_hub.utils.RepositoryNotFoundError"
>RepositoryNotFoundError</a></p>
`}}),aa=new q({props:{anchor:"huggingface_hub.HfApi.like.example",$$slots:{default:[CM]},$$scope:{ctx:w}}}),wr=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/v0.21.0.rc0/src/huggingface_hub/hf_api.py#L8055",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>
`}}),sa=new q({props:{anchor:"huggingface_hub.HfApi.list_accepted_access_requests.example",$$slots:{default:[IM]},$$scope:{ctx:w}}}),Mr=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/v0.21.0.rc0/src/huggingface_hub/hf_api.py#L7552",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>an iterable of <a
  href="/docs/huggingface_hub/v0.21.0.rc0/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>
`}}),ra=new U({props:{warning:!0,$$slots:{default:[qM]},$$scope:{ctx:w}}}),Tr=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/v0.21.0.rc0/en/package_reference/hf_api#huggingface_hub.DatasetFilter">DatasetFilter</a> or <code>str</code> or <code>Iterable</code>, <em>optional</em>) &#x2014;
A string or <a href="/docs/huggingface_hub/v0.21.0.rc0/en/package_reference/hf_api#huggingface_hub.DatasetFilter">DatasetFilter</a> which can be used to identify
datasets on the hub.`,name:"filter"},{anchor:"huggingface_hub.HfApi.list_datasets.author",description:`<strong>author</strong> (<code>str</code>, <em>optional</em>) &#x2014;
A string which identify the author of the returned datasets.`,name:"author"},{anchor:"huggingface_hub.HfApi.list_datasets.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/v0.21.0.rc0/en/package_reference/hf_api#huggingface_hub.hf_api.DatasetInfo">huggingface_hub.hf_api.DatasetInfo</a> class.`,name:"sort"},{anchor:"huggingface_hub.HfApi.list_datasets.direction",description:`<strong>direction</strong> (<code>Literal[-1]</code> or <code>int</code>, <em>optional</em>) &#x2014;
Direction in which to sort. The value <code>-1</code> sorts by descending
order while all other values sort by ascending order.`,name:"direction"},{anchor:"huggingface_hub.HfApi.list_datasets.limit",description:`<strong>limit</strong> (<code>int</code>, <em>optional</em>) &#x2014;
The limit on the number of datasets fetched. Leaving this option
to <code>None</code> fetches all datasets.`,name:"limit"},{anchor:"huggingface_hub.HfApi.list_datasets.full",description:`<strong>full</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether to fetch all dataset data, including the <code>last_modified</code>,
the <code>card_data</code> and  the files. Can contain useful information such as the
PapersWithCode ID.`,name:"full"},{anchor:"huggingface_hub.HfApi.list_datasets.token",description:`<strong>token</strong> (<code>bool</code> or <code>str</code>, <em>optional</em>) &#x2014;
A valid authentication token (see <a href="https://huggingface.co/settings/token" rel="nofollow">https://huggingface.co/settings/token</a>).
If <code>None</code> or <code>True</code> and machine is logged in (through <code>huggingface-cli login</code>
or <a href="/docs/huggingface_hub/v0.21.0.rc0/en/package_reference/login#huggingface_hub.login">login()</a>), token will be retrieved from the cache.
If <code>False</code>, token is not sent in the request header.`,name:"token"}],source:"https://github.com/huggingface/huggingface_hub/blob/v0.21.0.rc0/src/huggingface_hub/hf_api.py#L1618",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


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


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


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


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


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


<p><a
  href="/docs/huggingface_hub/v0.21.0.rc0/en/package_reference/utilities#huggingface_hub.utils.RepositoryNotFoundError"
>RepositoryNotFoundError</a> or <a
  href="/docs/huggingface_hub/v0.21.0.rc0/en/package_reference/utilities#huggingface_hub.utils.RevisionNotFoundError"
>RevisionNotFoundError</a></p>
`}}),la=new q({props:{anchor:"huggingface_hub.HfApi.list_files_info.example",$$slots:{default:[JM]},$$scope:{ctx:w}}}),pa=new q({props:{anchor:"huggingface_hub.HfApi.list_files_info.example-2",$$slots:{default:[NM]},$$scope:{ctx:w}}}),da=new q({props:{anchor:"huggingface_hub.HfApi.list_files_info.example-3",$$slots:{default:[EM]},$$scope:{ctx:w}}}),ga=new q({props:{anchor:"huggingface_hub.HfApi.list_files_info.example-4",$$slots:{default:[RM]},$$scope:{ctx:w}}}),kr=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/v0.21.0.rc0/src/huggingface_hub/hf_api.py#L7079",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


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


<p>List<a
  href="/docs/huggingface_hub/v0.21.0.rc0/en/package_reference/inference_endpoints#huggingface_hub.InferenceEndpoint"
>InferenceEndpoint</a></p>
`}}),ua=new q({props:{anchor:"huggingface_hub.HfApi.list_inference_endpoints.example",$$slots:{default:[GM]},$$scope:{ctx:w}}}),Hr=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/v0.21.0.rc0/src/huggingface_hub/hf_api.py#L2031",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


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


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


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


<p><code>ValueError</code></p>
`}}),ha=new q({props:{anchor:"huggingface_hub.HfApi.list_liked_repos.example",$$slots:{default:[DM]},$$scope:{ctx:w}}}),Cr=new H({props:{name:"list_metrics",anchor:"huggingface_hub.HfApi.list_metrics",parameters:[],source:"https://github.com/huggingface/huggingface_hub/blob/v0.21.0.rc0/src/huggingface_hub/hf_api.py#L1836",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>
`}}),Ir=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/v0.21.0.rc0/en/package_reference/hf_api#huggingface_hub.ModelFilter">ModelFilter</a> or <code>str</code> or <code>Iterable</code>, <em>optional</em>) &#x2014;
A string or <a href="/docs/huggingface_hub/v0.21.0.rc0/en/package_reference/hf_api#huggingface_hub.ModelFilter">ModelFilter</a> which can be used to identify models
on the Hub.`,name:"filter"},{anchor:"huggingface_hub.HfApi.list_models.author",description:`<strong>author</strong> (<code>str</code>, <em>optional</em>) &#x2014;
A string which identify the author (user or organization) of the
returned models`,name:"author"},{anchor:"huggingface_hub.HfApi.list_models.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/v0.21.0.rc0/en/package_reference/hf_api#huggingface_hub.hf_api.ModelInfo">huggingface_hub.hf_api.ModelInfo</a> class.`,name:"sort"},{anchor:"huggingface_hub.HfApi.list_models.direction",description:`<strong>direction</strong> (<code>Literal[-1]</code> or <code>int</code>, <em>optional</em>) &#x2014;
Direction in which to sort. The value <code>-1</code> sorts by descending
order while all other values sort by ascending order.`,name:"direction"},{anchor:"huggingface_hub.HfApi.list_models.limit",description:`<strong>limit</strong> (<code>int</code>, <em>optional</em>) &#x2014;
The limit on the number of models fetched. Leaving this option
to <code>None</code> fetches all models.`,name:"limit"},{anchor:"huggingface_hub.HfApi.list_models.full",description:`<strong>full</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether to fetch all model data, including the <code>last_modified</code>,
the <code>sha</code>, the files and the <code>tags</code>. This is set to <code>True</code> by
default when using a filter.`,name:"full"},{anchor:"huggingface_hub.HfApi.list_models.cardData",description:`<strong>cardData</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether to grab the metadata for the model as well. Can contain
useful information such as carbon emissions, metrics, and
datasets trained on.`,name:"cardData"},{anchor:"huggingface_hub.HfApi.list_models.fetch_config",description:`<strong>fetch_config</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether to fetch the model configs as well. This is not included
in <code>full</code> due to its size.`,name:"fetch_config"},{anchor:"huggingface_hub.HfApi.list_models.token",description:`<strong>token</strong> (<code>bool</code> or <code>str</code>, <em>optional</em>) &#x2014;
A valid authentication token (see <a href="https://huggingface.co/settings/token" rel="nofollow">https://huggingface.co/settings/token</a>).
If <code>None</code> or <code>True</code> and machine is logged in (through <code>huggingface-cli login</code>
or <a href="/docs/huggingface_hub/v0.21.0.rc0/en/package_reference/login#huggingface_hub.login">login()</a>), token will be retrieved from the cache.
If <code>False</code>, token is not sent in the request header.`,name:"token"},{anchor:"huggingface_hub.HfApi.list_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/v0.21.0.rc0/src/huggingface_hub/hf_api.py#L1377",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


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


<p><code>Iterable[ModelInfo]</code></p>
`}}),ma=new q({props:{anchor:"huggingface_hub.HfApi.list_models.example",$$slots:{default:[FM]},$$scope:{ctx:w}}}),_a=new q({props:{anchor:"huggingface_hub.HfApi.list_models.example-2",$$slots:{default:[SM]},$$scope:{ctx:w}}}),qr=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/v0.21.0.rc0/src/huggingface_hub/hf_api.py#L7994",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>
`}}),ba=new q({props:{anchor:"huggingface_hub.HfApi.list_pending_access_requests.example",$$slots:{default:[ZM]},$$scope:{ctx:w}}}),Ur=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/v0.21.0.rc0/src/huggingface_hub/hf_api.py#L8114",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>
`}}),va=new q({props:{anchor:"huggingface_hub.HfApi.list_rejected_access_requests.example",$$slots:{default:[LM]},$$scope:{ctx:w}}}),Ar=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/v0.21.0.rc0/en/package_reference/login#huggingface_hub.login">login()</a>), token will be retrieved from the cache.
If <code>False</code>, token is not sent in the request header.`,name:"token"},{anchor:"huggingface_hub.HfApi.list_repo_commits.revision",description:`<strong>revision</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The git revision to commit from. Defaults to the head of the <code>&quot;main&quot;</code> branch.`,name:"revision"},{anchor:"huggingface_hub.HfApi.list_repo_commits.formatted",description:`<strong>formatted</strong> (<code>bool</code>) &#x2014;
Whether to return the HTML-formatted title and description of the commits. Defaults to False.`,name:"formatted"}],source:"https://github.com/huggingface/huggingface_hub/blob/v0.21.0.rc0/src/huggingface_hub/hf_api.py#L2990",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


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


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


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


<p><a
  href="/docs/huggingface_hub/v0.21.0.rc0/en/package_reference/utilities#huggingface_hub.utils.RepositoryNotFoundError"
>RepositoryNotFoundError</a> or <a
  href="/docs/huggingface_hub/v0.21.0.rc0/en/package_reference/utilities#huggingface_hub.utils.RevisionNotFoundError"
>RevisionNotFoundError</a></p>
`}}),xa=new q({props:{anchor:"huggingface_hub.HfApi.list_repo_commits.example",$$slots:{default:[WM]},$$scope:{ctx:w}}}),Jr=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/v0.21.0.rc0/en/package_reference/login#huggingface_hub.login">login()</a>), token will be
retrieved from the cache. If <code>False</code>, token is not sent in the request header.`,name:"token"}],source:"https://github.com/huggingface/huggingface_hub/blob/v0.21.0.rc0/src/huggingface_hub/hf_api.py#L2751",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>
`}}),Nr=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/v0.21.0.rc0/src/huggingface_hub/hf_api.py#L2106",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


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


<p><code>List[User]</code></p>
`}}),Er=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/v0.21.0.rc0/en/package_reference/login#huggingface_hub.login">login()</a>), token will be retrieved from the cache.
If <code>False</code>, token is not sent in the request header.`,name:"token"}],source:"https://github.com/huggingface/huggingface_hub/blob/v0.21.0.rc0/src/huggingface_hub/hf_api.py#L2918",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


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


<p><a
  href="/docs/huggingface_hub/v0.21.0.rc0/en/package_reference/hf_api#huggingface_hub.GitRefs"
>GitRefs</a></p>
`}}),$a=new q({props:{anchor:"huggingface_hub.HfApi.list_repo_refs.example",$$slots:{default:[BM]},$$scope:{ctx:w}}}),Rr=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/v0.21.0.rc0/en/package_reference/login#huggingface_hub.login">login()</a>), token will be
retrieved from the cache. If <code>False</code>, token is not sent in the request header.`,name:"token"}],source:"https://github.com/huggingface/huggingface_hub/blob/v0.21.0.rc0/src/huggingface_hub/hf_api.py#L2787",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/v0.21.0.rc0/en/package_reference/utilities#huggingface_hub.utils.RepositoryNotFoundError"
>RepositoryNotFoundError</a> —
If repository is not found (error 404): wrong repo_id/repo_type, private but not authenticated or repo
does not exist.</li>
<li><a
  href="/docs/huggingface_hub/v0.21.0.rc0/en/package_reference/utilities#huggingface_hub.utils.RevisionNotFoundError"
>RevisionNotFoundError</a> —
If revision is not found (error 404) on the repo.</li>
<li><a
  href="/docs/huggingface_hub/v0.21.0.rc0/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/v0.21.0.rc0/en/package_reference/utilities#huggingface_hub.utils.RepositoryNotFoundError"
>RepositoryNotFoundError</a> or <a
  href="/docs/huggingface_hub/v0.21.0.rc0/en/package_reference/utilities#huggingface_hub.utils.RevisionNotFoundError"
>RevisionNotFoundError</a> or <a
  href="/docs/huggingface_hub/v0.21.0.rc0/en/package_reference/utilities#huggingface_hub.utils.EntryNotFoundError"
>EntryNotFoundError</a></p>
`}}),wa=new q({props:{anchor:"huggingface_hub.HfApi.list_repo_tree.example",$$slots:{default:[VM]},$$scope:{ctx:w}}}),Ma=new q({props:{anchor:"huggingface_hub.HfApi.list_repo_tree.example-2",$$slots:{default:[XM]},$$scope:{ctx:w}}}),Gr=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/v0.21.0.rc0/en/package_reference/hf_api#huggingface_hub.hf_api.SpaceInfo">huggingface_hub.hf_api.SpaceInfo</a>\` class.`,name:"sort"},{anchor:"huggingface_hub.HfApi.list_spaces.direction",description:`<strong>direction</strong> (<code>Literal[-1]</code> or <code>int</code>, <em>optional</em>) &#x2014;
Direction in which to sort. The value <code>-1</code> sorts by descending
order while all other values sort by ascending order.`,name:"direction"},{anchor:"huggingface_hub.HfApi.list_spaces.limit",description:`<strong>limit</strong> (<code>int</code>, <em>optional</em>) &#x2014;
The limit on the number of Spaces fetched. Leaving this option
to <code>None</code> fetches all Spaces.`,name:"limit"},{anchor:"huggingface_hub.HfApi.list_spaces.datasets",description:`<strong>datasets</strong> (<code>str</code> or <code>Iterable</code>, <em>optional</em>) &#x2014;
Whether to return Spaces that make use of a dataset.
The name of a specific dataset can be passed as a string.`,name:"datasets"},{anchor:"huggingface_hub.HfApi.list_spaces.models",description:`<strong>models</strong> (<code>str</code> or <code>Iterable</code>, <em>optional</em>) &#x2014;
Whether to return Spaces that make use of a model.
The name of a specific model can be passed as a string.`,name:"models"},{anchor:"huggingface_hub.HfApi.list_spaces.linked",description:`<strong>linked</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether to return Spaces that make use of either a model or a dataset.`,name:"linked"},{anchor:"huggingface_hub.HfApi.list_spaces.full",description:`<strong>full</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether to fetch all Spaces data, including the <code>last_modified</code>, <code>siblings</code>
and <code>card_data</code> fields.`,name:"full"},{anchor:"huggingface_hub.HfApi.list_spaces.token",description:`<strong>token</strong> (<code>bool</code> or <code>str</code>, <em>optional</em>) &#x2014;
A valid authentication token (see <a href="https://huggingface.co/settings/token" rel="nofollow">https://huggingface.co/settings/token</a>).
If <code>None</code> or <code>True</code> and machine is logged in (through <code>huggingface-cli login</code>
or <a href="/docs/huggingface_hub/v0.21.0.rc0/en/package_reference/login#huggingface_hub.login">login()</a>), token will be retrieved from the cache.
If <code>False</code>, token is not sent in the request header.`,name:"token"}],source:"https://github.com/huggingface/huggingface_hub/blob/v0.21.0.rc0/src/huggingface_hub/hf_api.py#L1849",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


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


<p><code>Iterable[SpaceInfo]</code></p>
`}}),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/v0.21.0.rc0/src/huggingface_hub/hf_api.py#L6401",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


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


<p><a
  href="/docs/huggingface_hub/v0.21.0.rc0/en/package_reference/community#huggingface_hub.DiscussionStatusChange"
>DiscussionStatusChange</a></p>
`}}),ja=new U({props:{$$slots:{default:[PM]},$$scope:{ctx:w}}}),Fr=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/v0.21.0.rc0/en/package_reference/login#huggingface_hub.login">login()</a>), token will be retrieved from the cache.
If <code>False</code>, token is not sent in the request header.`,name:"token"}],source:"https://github.com/huggingface/huggingface_hub/blob/v0.21.0.rc0/src/huggingface_hub/hf_api.py#L2156",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


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


<p><a
  href="/docs/huggingface_hub/v0.21.0.rc0/en/package_reference/hf_api#huggingface_hub.hf_api.ModelInfo"
>huggingface_hub.hf_api.ModelInfo</a></p>
`}}),ka=new U({props:{$$slots:{default:[YM]},$$scope:{ctx:w}}}),Sr=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/v0.21.0.rc0/src/huggingface_hub/hf_api.py#L3482"}}),Ha=new U({props:{$$slots:{default:[zM]},$$scope:{ctx:w}}}),Zr=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/v0.21.0.rc0/en/package_reference/login#huggingface_hub.login">login()</a>), token will be
retrieved from the cache. If <code>False</code>, token is not sent in the request header.`,name:"token"}],source:"https://github.com/huggingface/huggingface_hub/blob/v0.21.0.rc0/src/huggingface_hub/hf_api.py#L5458",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/v0.21.0.rc0/src/huggingface_hub/hf_api.py#L7446",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


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


<p><a
  href="/docs/huggingface_hub/v0.21.0.rc0/en/package_reference/inference_endpoints#huggingface_hub.InferenceEndpoint"
>InferenceEndpoint</a></p>
`}}),Wr=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/v0.21.0.rc0/src/huggingface_hub/hf_api.py#L6817",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


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


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


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


<p><a
  href="/docs/huggingface_hub/v0.21.0.rc0/en/package_reference/utilities#huggingface_hub.utils.RepositoryNotFoundError"
>RepositoryNotFoundError</a> or <a
  href="/docs/huggingface_hub/v0.21.0.rc0/en/package_reference/utilities#huggingface_hub.utils.HfHubHTTPError"
>HfHubHTTPError</a> or <a
  href="/docs/huggingface_hub/v0.21.0.rc0/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/v0.21.0.rc0/en/package_reference/hf_api#huggingface_hub.CommitOperationAdd">CommitOperationAdd</a>) &#x2014;
The list of files to upload. Warning: the objects in this list will be mutated to include information
relative to the upload. Do not reuse the same objects for multiple commits.`,name:"operations"},{anchor:"huggingface_hub.HfApi.preupload_lfs_files.token",description:`<strong>token</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Authentication token. Will default to the stored token.`,name:"token"},{anchor:"huggingface_hub.HfApi.preupload_lfs_files.repo_type",description:`<strong>repo_type</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The type of repository to upload to (e.g. <code>&quot;model&quot;</code> -default-, <code>&quot;dataset&quot;</code> or <code>&quot;space&quot;</code>).`,name:"repo_type"},{anchor:"huggingface_hub.HfApi.preupload_lfs_files.revision",description:`<strong>revision</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The git revision to commit from. Defaults to the head of the <code>&quot;main&quot;</code> branch.`,name:"revision"},{anchor:"huggingface_hub.HfApi.preupload_lfs_files.create_pr",description:`<strong>create_pr</strong> (<code>boolean</code>, <em>optional</em>) &#x2014;
Whether or not you plan to create a Pull Request with that commit. Defaults to <code>False</code>.`,name:"create_pr"},{anchor:"huggingface_hub.HfApi.preupload_lfs_files.num_threads",description:`<strong>num_threads</strong> (<code>int</code>, <em>optional</em>) &#x2014;
Number of concurrent threads for uploading files. Defaults to 5.
Setting it to 2 means at most 2 files will be uploaded concurrently.`,name:"num_threads"},{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/v0.21.0.rc0/src/huggingface_hub/hf_api.py#L4129"}}),Ca=new U({props:{warning:!0,$$slots:{default:[OM]},$$scope:{ctx:w}}}),Ia=new U({props:{warning:!0,$$slots:{default:[QM]},$$scope:{ctx:w}}}),qa=new q({props:{anchor:"huggingface_hub.HfApi.preupload_lfs_files.example",$$slots:{default:[KM]},$$scope:{ctx:w}}}),Vr=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/v0.21.0.rc0/src/huggingface_hub/hf_api.py#L8278",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>
`}}),Xr=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/v0.21.0.rc0/src/huggingface_hub/hf_api.py#L6259",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


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


<p><a
  href="/docs/huggingface_hub/v0.21.0.rc0/en/package_reference/community#huggingface_hub.DiscussionTitleChange"
>DiscussionTitleChange</a></p>
`}}),Ua=new q({props:{anchor:"huggingface_hub.HfApi.rename_discussion.example",$$slots:{default:[eT]},$$scope:{ctx:w}}}),Aa=new U({props:{$$slots:{default:[tT]},$$scope:{ctx:w}}}),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/v0.21.0.rc0/en/package_reference/login#huggingface_hub.login">login()</a>), token will be retrieved from the cache.
If <code>False</code>, token is not sent in the request header.`,name:"token"}],source:"https://github.com/huggingface/huggingface_hub/blob/v0.21.0.rc0/src/huggingface_hub/hf_api.py#L2418",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>True if the repository exists, False otherwise.</p>
`}}),Ja=new q({props:{anchor:"huggingface_hub.HfApi.repo_exists.example",$$slots:{default:[nT]},$$scope:{ctx:w}}}),Yr=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/v0.21.0.rc0/en/package_reference/login#huggingface_hub.login">login()</a>), token will be retrieved from the cache.
If <code>False</code>, token is not sent in the request header.`,name:"token"}],source:"https://github.com/huggingface/huggingface_hub/blob/v0.21.0.rc0/src/huggingface_hub/hf_api.py#L2350",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


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


<p><code>Union[SpaceInfo, DatasetInfo, ModelInfo]</code></p>
`}}),Na=new U({props:{$$slots:{default:[oT]},$$scope:{ctx:w}}}),zr=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/v0.21.0.rc0/en/package_reference/space_runtime#huggingface_hub.SpaceHardware">SpaceHardware</a>) &#x2014;
Hardware on which to run the Space. Example: <code>&quot;t4-medium&quot;</code>.`,name:"hardware"},{anchor:"huggingface_hub.HfApi.request_space_hardware.token",description:`<strong>token</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Hugging Face token. Will default to the locally saved token if not provided.`,name:"token"},{anchor:"huggingface_hub.HfApi.request_space_hardware.sleep_time",description:`<strong>sleep_time</strong> (<code>int</code>, <em>optional</em>) &#x2014;
Number of seconds of inactivity to wait before a Space is put to sleep. Set to <code>-1</code> if you don&#x2019;t want
your Space to sleep (default behavior for upgraded hardware). For free hardware, you can&#x2019;t configure
the sleep time (value is fixed to 48 hours of inactivity).
See <a href="https://huggingface.co/docs/hub/spaces-gpus#sleep-time" rel="nofollow">https://huggingface.co/docs/hub/spaces-gpus#sleep-time</a> for more details.`,name:"sleep_time"}],source:"https://github.com/huggingface/huggingface_hub/blob/v0.21.0.rc0/src/huggingface_hub/hf_api.py#L6721",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


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


<p><a
  href="/docs/huggingface_hub/v0.21.0.rc0/en/package_reference/space_runtime#huggingface_hub.SpaceRuntime"
>SpaceRuntime</a></p>
`}}),Ea=new U({props:{$$slots:{default:[aT]},$$scope:{ctx:w}}}),Or=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/v0.21.0.rc0/en/package_reference/space_runtime#huggingface_hub.SpaceStorage">SpaceStorage</a>) &#x2014;
Storage tier. Either &#x2018;small&#x2019;, &#x2018;medium&#x2019;, or &#x2018;large&#x2019;.`,name:"storage"},{anchor:"huggingface_hub.HfApi.request_space_storage.token",description:`<strong>token</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Hugging Face token. Will default to the locally saved token if not provided.`,name:"token"}],source:"https://github.com/huggingface/huggingface_hub/blob/v0.21.0.rc0/src/huggingface_hub/hf_api.py#L7011",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


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


<p><a
  href="/docs/huggingface_hub/v0.21.0.rc0/en/package_reference/space_runtime#huggingface_hub.SpaceRuntime"
>SpaceRuntime</a></p>
`}}),Ra=new U({props:{$$slots:{default:[sT]},$$scope:{ctx:w}}}),Qr=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/v0.21.0.rc0/src/huggingface_hub/hf_api.py#L6853",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


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


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


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


<p><a
  href="/docs/huggingface_hub/v0.21.0.rc0/en/package_reference/utilities#huggingface_hub.utils.RepositoryNotFoundError"
>RepositoryNotFoundError</a> or <a
  href="/docs/huggingface_hub/v0.21.0.rc0/en/package_reference/utilities#huggingface_hub.utils.HfHubHTTPError"
>HfHubHTTPError</a> or <a
  href="/docs/huggingface_hub/v0.21.0.rc0/en/package_reference/utilities#huggingface_hub.utils.BadRequestError"
>BadRequestError</a></p>
`}}),Kr=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/v0.21.0.rc0/src/huggingface_hub/hf_api.py#L7478",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


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


<p><a
  href="/docs/huggingface_hub/v0.21.0.rc0/en/package_reference/inference_endpoints#huggingface_hub.InferenceEndpoint"
>InferenceEndpoint</a></p>
`}}),ei=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/v0.21.0.rc0/en/package_reference/login#huggingface_hub.login">login()</a>), token will be retrieved from the cache.
If <code>False</code>, token is not sent in the request header.`,name:"token"}],source:"https://github.com/huggingface/huggingface_hub/blob/v0.21.0.rc0/src/huggingface_hub/hf_api.py#L2462",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>True if the repository and the revision exists, False otherwise.</p>
`}}),Ga=new q({props:{anchor:"huggingface_hub.HfApi.revision_exists.example",$$slots:{default:[rT]},$$scope:{ctx:w}}}),ti=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/v0.21.0.rc0/src/huggingface_hub/hf_api.py#L1270",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>
`}}),Da=new q({props:{anchor:"huggingface_hub.HfApi.run_as_future.example",$$slots:{default:[iT]},$$scope:{ctx:w}}}),ni=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/v0.21.0.rc0/src/huggingface_hub/hf_api.py#L7506",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


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


<p><a
  href="/docs/huggingface_hub/v0.21.0.rc0/en/package_reference/inference_endpoints#huggingface_hub.InferenceEndpoint"
>InferenceEndpoint</a></p>
`}}),oi=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/v0.21.0.rc0/src/huggingface_hub/hf_api.py#L6771",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


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


<p><a
  href="/docs/huggingface_hub/v0.21.0.rc0/en/package_reference/space_runtime#huggingface_hub.SpaceRuntime"
>SpaceRuntime</a></p>
`}}),Fa=new U({props:{$$slots:{default:[cT]},$$scope:{ctx:w}}}),ai=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/v0.21.0.rc0/en/package_reference/login#huggingface_hub.login">login()</a>), token will be retrieved from the cache.
If <code>False</code>, token is not sent in the request header.`,name:"token"},{anchor:"huggingface_hub.HfApi.snapshot_download.local_files_only",description:`<strong>local_files_only</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
If <code>True</code>, avoid downloading the file and return the path to the
local cached file if it exists.`,name:"local_files_only"},{anchor:"huggingface_hub.HfApi.snapshot_download.allow_patterns",description:`<strong>allow_patterns</strong> (<code>List[str]</code> or <code>str</code>, <em>optional</em>) &#x2014;
If provided, only files matching at least one pattern are downloaded.`,name:"allow_patterns"},{anchor:"huggingface_hub.HfApi.snapshot_download.ignore_patterns",description:`<strong>ignore_patterns</strong> (<code>List[str]</code> or <code>str</code>, <em>optional</em>) &#x2014;
If provided, files matching any of the patterns are not downloaded.`,name:"ignore_patterns"},{anchor:"huggingface_hub.HfApi.snapshot_download.max_workers",description:`<strong>max_workers</strong> (<code>int</code>, <em>optional</em>) &#x2014;
Number of concurrent threads to download files (1 thread = 1 file download).
Defaults to 8.`,name:"max_workers"},{anchor:"huggingface_hub.HfApi.snapshot_download.tqdm_class",description:`<strong>tqdm_class</strong> (<code>tqdm</code>, <em>optional</em>) &#x2014;
If provided, overwrites the default behavior for the progress bar. Passed
argument must inherit from <code>tqdm.auto.tqdm</code> or at least mimic its behavior.
Note that the <code>tqdm_class</code> is not passed to each individual download.
Defaults to the custom HF progress bar that can be disabled by setting
<code>HF_HUB_DISABLE_PROGRESS_BARS</code> environment variable.`,name:"tqdm_class"}],source:"https://github.com/huggingface/huggingface_hub/blob/v0.21.0.rc0/src/huggingface_hub/hf_api.py#L5195",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>Local folder path (string) of repo snapshot</p>
`}}),Sa=new U({props:{$$slots:{default:[lT]},$$scope:{ctx:w}}}),si=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/v0.21.0.rc0/en/package_reference/login#huggingface_hub.login">login()</a>), token will be retrieved from the cache.
If <code>False</code>, token is not sent in the request header.`,name:"token"}],source:"https://github.com/huggingface/huggingface_hub/blob/v0.21.0.rc0/src/huggingface_hub/hf_api.py#L2287",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


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


<p><a
  href="/docs/huggingface_hub/v0.21.0.rc0/en/package_reference/hf_api#huggingface_hub.hf_api.SpaceInfo"
>SpaceInfo</a></p>
`}}),Za=new U({props:{$$slots:{default:[pT]},$$scope:{ctx:w}}}),ri=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/v0.21.0.rc0/en/package_reference/login#huggingface_hub.login">login()</a>), token can be automatically retrieved
from the cache.`,name:"token"}],source:"https://github.com/huggingface/huggingface_hub/blob/v0.21.0.rc0/src/huggingface_hub/hf_api.py#L3152",raiseDescription:`<script context="module">export const metadata = 'undefined';<\/script>


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


<p><a
  href="/docs/huggingface_hub/v0.21.0.rc0/en/package_reference/utilities#huggingface_hub.utils.RepositoryNotFoundError"
>RepositoryNotFoundError</a> or <a
  href="/docs/huggingface_hub/v0.21.0.rc0/en/package_reference/utilities#huggingface_hub.utils.RevisionNotFoundError"
>RevisionNotFoundError</a> or <a
  href="/docs/huggingface_hub/v0.21.0.rc0/en/package_reference/utilities#huggingface_hub.utils.BadRequestError"
>BadRequestError</a></p>
`}}),La=new U({props:{warning:!0,$$slots:{default:[dT]},$$scope:{ctx:w}}}),Wa=new U({props:{warning:!0,$$slots:{default:[gT]},$$scope:{ctx:w}}}),Ba=new q({props:{anchor:"huggingface_hub.HfApi.super_squash_history.example",$$slots:{default:[uT]},$$scope:{ctx:w}}}),ii=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/v0.21.0.rc0/src/huggingface_hub/hf_api.py#L1984",raiseDescription:`<script context="module">export const metadata = 'undefined';<\/script>


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


<p><a
  href="/docs/huggingface_hub/v0.21.0.rc0/en/package_reference/utilities#huggingface_hub.utils.RepositoryNotFoundError"
>RepositoryNotFoundError</a></p>
`}}),Va=new q({props:{anchor:"huggingface_hub.HfApi.unlike.example",$$slots:{default:[hT]},$$scope:{ctx:w}}}),ci=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/v0.21.0.rc0/en/package_reference/collections#huggingface_hub.CollectionItem">CollectionItem</a> object. Example: <code>collection.items[0].item_object_id</code>.`,name:"item_object_id"},{anchor:"huggingface_hub.HfApi.update_collection_item.note",description:`<strong>note</strong> (<code>str</code>, <em>optional</em>) &#x2014;
A note to attach to the item in the collection. The maximum size for a note is 500 characters.`,name:"note"},{anchor:"huggingface_hub.HfApi.update_collection_item.position",description:`<strong>position</strong> (<code>int</code>, <em>optional</em>) &#x2014;
New position of the item in the collection.`,name:"position"},{anchor:"huggingface_hub.HfApi.update_collection_item.token",description:`<strong>token</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Hugging Face token. Will default to the locally saved token if not provided.`,name:"token"}],source:"https://github.com/huggingface/huggingface_hub/blob/v0.21.0.rc0/src/huggingface_hub/hf_api.py#L7891"}}),Xa=new q({props:{anchor:"huggingface_hub.HfApi.update_collection_item.example",$$slots:{default:[fT]},$$scope:{ctx:w}}}),li=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/v0.21.0.rc0/src/huggingface_hub/hf_api.py#L7709"}}),Pa=new q({props:{anchor:"huggingface_hub.HfApi.update_collection_metadata.example",$$slots:{default:[mT]},$$scope:{ctx:w}}}),pi=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/v0.21.0.rc0/src/huggingface_hub/hf_api.py#L7332",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


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


<p><a
  href="/docs/huggingface_hub/v0.21.0.rc0/en/package_reference/inference_endpoints#huggingface_hub.InferenceEndpoint"
>InferenceEndpoint</a></p>
`}}),di=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/v0.21.0.rc0/src/huggingface_hub/hf_api.py#L3419",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>The HTTP response in json.</p>
`}}),Ya=new U({props:{$$slots:{default:[_T]},$$scope:{ctx:w}}}),gi=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/v0.21.0.rc0/src/huggingface_hub/hf_api.py#L4315",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


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


<p><a
  href="/docs/huggingface_hub/v0.21.0.rc0/en/package_reference/hf_api#huggingface_hub.CommitInfo"
>CommitInfo</a> or <code>Future</code></p>
`}}),za=new U({props:{$$slots:{default:[bT]},$$scope:{ctx:w}}}),Oa=new U({props:{warning:!0,$$slots:{default:[vT]},$$scope:{ctx:w}}}),Qa=new q({props:{anchor:"huggingface_hub.HfApi.upload_file.example",$$slots:{default:[xT]},$$scope:{ctx:w}}}),ui=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/v0.21.0.rc0/src/huggingface_hub/hf_api.py#L4573",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>Instance of <a
  href="/docs/huggingface_hub/v0.21.0.rc0/en/package_reference/hf_api#huggingface_hub.CommitInfo"
>CommitInfo</a> containing information about the newly created commit (commit hash, commit
url, pr url, commit message,…). If <code>run_as_future=True</code> is passed, returns a Future object which will
contain the result when executed.
<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/v0.21.0.rc0/en/package_reference/hf_api#huggingface_hub.CommitInfo"
>CommitInfo</a> or <code>Future</code></p>
`}}),Ka=new U({props:{$$slots:{default:[yT]},$$scope:{ctx:w}}}),es=new U({props:{warning:!0,$$slots:{default:[$T]},$$scope:{ctx:w}}}),ts=new U({props:{warning:!0,$$slots:{default:[wT]},$$scope:{ctx:w}}}),ns=new q({props:{anchor:"huggingface_hub.HfApi.upload_folder.example",$$slots:{default:[MT]},$$scope:{ctx:w}}}),hi=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/v0.21.0.rc0/src/huggingface_hub/hf_api.py#L1310"}}),fi=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/v0.21.0.rc0/src/huggingface_hub/_multi_commits.py#L77",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


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


<p><code>Tuple[List[List[CommitOperationAdd]], List[List[CommitOperationDelete]]]</code></p>
`}}),as=new U({props:{warning:!0,$$slots:{default:[TT]},$$scope:{ctx:w}}}),ss=new q({props:{anchor:"huggingface_hub.plan_multi_commits.example",$$slots:{default:[jT]},$$scope:{ctx:w}}}),rs=new U({props:{warning:!0,$$slots:{default:[kT]},$$scope:{ctx:w}}}),mi=new R({props:{title:"API Dataclasses",local:"api-dataclasses",headingTag:"h2"}}),_i=new R({props:{title:"AccessRequest",local:"huggingface_hub.hf_api.AccessRequest",headingTag:"h3"}}),bi=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/v0.21.0.rc0/src/huggingface_hub/hf_api.py#L361"}}),vi=new R({props:{title:"CommitInfo",local:"huggingface_hub.CommitInfo",headingTag:"h3"}}),xi=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/v0.21.0.rc0/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/v0.21.0.rc0/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/v0.21.0.rc0/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/v0.21.0.rc0/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/v0.21.0.rc0/src/huggingface_hub/hf_api.py#L291"}}),yi=new R({props:{title:"DatasetInfo",local:"huggingface_hub.hf_api.DatasetInfo",headingTag:"h3"}}),$i=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/v0.21.0.rc0/en/package_reference/cards#huggingface_hub.DatasetCardData">huggingface_hub.repocard_data.DatasetCardData</a> object.`,name:"card_data"},{anchor:"huggingface_hub.hf_api.DatasetInfo.siblings",description:`<strong>siblings</strong> (<code>List[RepoSibling]</code>) &#x2014;
List of <a href="/docs/huggingface_hub/v0.21.0.rc0/en/package_reference/hf_api#huggingface_hub.hf_api.RepoSibling">huggingface_hub.hf_api.RepoSibling</a> objects that constitute the dataset.`,name:"siblings"}],source:"https://github.com/huggingface/huggingface_hub/blob/v0.21.0.rc0/src/huggingface_hub/hf_api.py#L716"}}),is=new U({props:{$$slots:{default:[HT]},$$scope:{ctx:w}}}),wi=new R({props:{title:"GitRefInfo",local:"huggingface_hub.GitRefInfo",headingTag:"h3"}}),Mi=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/v0.21.0.rc0/src/huggingface_hub/hf_api.py#L1074"}}),Ti=new R({props:{title:"GitCommitInfo",local:"huggingface_hub.GitCommitInfo",headingTag:"h3"}}),ji=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/v0.21.0.rc0/src/huggingface_hub/hf_api.py#L1119"}}),ki=new R({props:{title:"GitRefs",local:"huggingface_hub.GitRefs",headingTag:"h3"}}),Hi=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/v0.21.0.rc0/en/package_reference/hf_api#huggingface_hub.GitRefInfo">GitRefInfo</a> containing information about branches on the repo.`,name:"branches"},{anchor:"huggingface_hub.GitRefs.converts",description:`<strong>converts</strong> (<code>List[GitRefInfo]</code>) &#x2014;
A list of <a href="/docs/huggingface_hub/v0.21.0.rc0/en/package_reference/hf_api#huggingface_hub.GitRefInfo">GitRefInfo</a> containing information about &#x201C;convert&#x201D; refs on the repo.
Converts are refs used (internally) to push preprocessed data in Dataset repos.`,name:"converts"},{anchor:"huggingface_hub.GitRefs.tags",description:`<strong>tags</strong> (<code>List[GitRefInfo]</code>) &#x2014;
A list of <a href="/docs/huggingface_hub/v0.21.0.rc0/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/v0.21.0.rc0/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/v0.21.0.rc0/src/huggingface_hub/hf_api.py#L1093"}}),Ci=new R({props:{title:"ModelInfo",local:"huggingface_hub.hf_api.ModelInfo",headingTag:"h3"}}),Ii=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/v0.21.0.rc0/en/package_reference/cards#huggingface_hub.ModelCardData">huggingface_hub.repocard_data.ModelCardData</a> object.`,name:"card_data"},{anchor:"huggingface_hub.hf_api.ModelInfo.siblings",description:`<strong>siblings</strong> (<code>List[RepoSibling]</code>) &#x2014;
List of <a href="/docs/huggingface_hub/v0.21.0.rc0/en/package_reference/hf_api#huggingface_hub.hf_api.RepoSibling">huggingface_hub.hf_api.RepoSibling</a> objects that constitute the model.`,name:"siblings"},{anchor:"huggingface_hub.hf_api.ModelInfo.spaces",description:`<strong>spaces</strong> (<code>List[str]</code>, <em>optional</em>) &#x2014;
List of spaces using the model.`,name:"spaces"},{anchor:"huggingface_hub.hf_api.ModelInfo.safetensors",description:`<strong>safetensors</strong> (<code>SafeTensorsInfo</code>, <em>optional</em>) &#x2014;
Model&#x2019;s safetensors information.`,name:"safetensors"}],source:"https://github.com/huggingface/huggingface_hub/blob/v0.21.0.rc0/src/huggingface_hub/hf_api.py#L570"}}),cs=new U({props:{$$slots:{default:[CT]},$$scope:{ctx:w}}}),qi=new R({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/v0.21.0.rc0/en/package_reference/hf_api#huggingface_hub.HfApi.repo_info">repo_info()</a> is set
to <code>True</code>. It&#x2019;s <code>None</code> otherwise.`,name:"size"},{anchor:"huggingface_hub.hf_api.RepoSibling.blob_id",description:`<strong>blob_id</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The file&#x2019;s git OID. This attribute is defined when <code>files_metadata</code> argument of <a href="/docs/huggingface_hub/v0.21.0.rc0/en/package_reference/hf_api#huggingface_hub.HfApi.repo_info">repo_info()</a> is set to
<code>True</code>. It&#x2019;s <code>None</code> otherwise.`,name:"blob_id"},{anchor:"huggingface_hub.hf_api.RepoSibling.lfs",description:`<strong>lfs</strong> (<code>BlobLfsInfo</code>, <em>optional</em>) &#x2014;
The file&#x2019;s LFS metadata. This attribute is defined when<code>files_metadata</code> argument of <a href="/docs/huggingface_hub/v0.21.0.rc0/en/package_reference/hf_api#huggingface_hub.HfApi.repo_info">repo_info()</a> is set to
<code>True</code> and the file is stored with Git LFS. It&#x2019;s <code>None</code> otherwise.`,name:"lfs"}],source:"https://github.com/huggingface/huggingface_hub/blob/v0.21.0.rc0/src/huggingface_hub/hf_api.py#L450"}}),ls=new U({props:{$$slots:{default:[IT]},$$scope:{ctx:w}}}),Ai=new R({props:{title:"RepoFile",local:"huggingface_hub.hf_api.RepoFile",headingTag:"h3"}}),Ji=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/v0.21.0.rc0/en/package_reference/hf_api#huggingface_hub.HfApi.list_files_info">list_files_info()</a>, <a href="/docs/huggingface_hub/v0.21.0.rc0/en/package_reference/hf_api#huggingface_hub.HfApi.list_repo_tree">list_repo_tree()</a> and <a href="/docs/huggingface_hub/v0.21.0.rc0/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/v0.21.0.rc0/en/package_reference/hf_api#huggingface_hub.HfApi.list_files_info">list_files_info()</a>, <a href="/docs/huggingface_hub/v0.21.0.rc0/en/package_reference/hf_api#huggingface_hub.HfApi.list_repo_tree">list_repo_tree()</a> and <a href="/docs/huggingface_hub/v0.21.0.rc0/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/v0.21.0.rc0/src/huggingface_hub/hf_api.py#L485"}}),Ni=new R({props:{title:"RepoUrl",local:"huggingface_hub.RepoUrl",headingTag:"h3"}}),Ei=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/v0.21.0.rc0/src/huggingface_hub/hf_api.py#L390",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>
`}}),ps=new q({props:{anchor:"huggingface_hub.RepoUrl.example",$$slots:{default:[qT]},$$scope:{ctx:w}}}),Ri=new R({props:{title:"SafetensorsRepoMetadata",local:"huggingface_hub.utils.SafetensorsRepoMetadata",headingTag:"h3"}}),Gi=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/v0.21.0.rc0/src/huggingface_hub/utils/_safetensors.py#L86"}}),Di=new R({props:{title:"SafetensorsFileMetadata",local:"huggingface_hub.utils.SafetensorsFileMetadata",headingTag:"h3"}}),Fi=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/v0.21.0.rc0/src/huggingface_hub/utils/_safetensors.py#L56"}}),Si=new R({props:{title:"SpaceInfo",local:"huggingface_hub.hf_api.SpaceInfo",headingTag:"h3"}}),Zi=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/v0.21.0.rc0/en/package_reference/hf_api#huggingface_hub.hf_api.RepoSibling">huggingface_hub.hf_api.RepoSibling</a> objects that constitute the Space.`,name:"siblings"},{anchor:"huggingface_hub.hf_api.SpaceInfo.card_data",description:`<strong>card_data</strong> (<code>SpaceCardData</code>, <em>optional</em>) &#x2014;
Space Card Metadata  as a <a href="/docs/huggingface_hub/v0.21.0.rc0/en/package_reference/cards#huggingface_hub.SpaceCardData">huggingface_hub.repocard_data.SpaceCardData</a> object.`,name:"card_data"},{anchor:"huggingface_hub.hf_api.SpaceInfo.runtime",description:`<strong>runtime</strong> (<code>SpaceRuntime</code>, <em>optional</em>) &#x2014;
Space runtime information as a <a href="/docs/huggingface_hub/v0.21.0.rc0/en/package_reference/space_runtime#huggingface_hub.SpaceRuntime">huggingface_hub.hf_api.SpaceRuntime</a> object.`,name:"runtime"},{anchor:"huggingface_hub.hf_api.SpaceInfo.sdk",description:`<strong>sdk</strong> (<code>str</code>, <em>optional</em>) &#x2014;
SDK used by the Space.`,name:"sdk"},{anchor:"huggingface_hub.hf_api.SpaceInfo.models",description:`<strong>models</strong> (<code>List[str]</code>, <em>optional</em>) &#x2014;
List of models used by the Space.`,name:"models"},{anchor:"huggingface_hub.hf_api.SpaceInfo.datasets",description:`<strong>datasets</strong> (<code>List[str]</code>, <em>optional</em>) &#x2014;
List of datasets used by the Space.`,name:"datasets"}],source:"https://github.com/huggingface/huggingface_hub/blob/v0.21.0.rc0/src/huggingface_hub/hf_api.py#L823"}}),ds=new U({props:{$$slots:{default:[UT]},$$scope:{ctx:w}}}),Li=new R({props:{title:"TensorInfo",local:"huggingface_hub.utils.TensorInfo",headingTag:"h3"}}),Wi=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/v0.21.0.rc0/src/huggingface_hub/utils/_safetensors.py#L26"}}),Bi=new R({props:{title:"User",local:"huggingface_hub.User",headingTag:"h3"}}),Vi=new H({props:{name:"class huggingface_hub.User",anchor:"huggingface_hub.User",parameters:[{name:"avatar_url",val:": str"},{name:"username",val:": str"},{name:"fullname",val:": str"}],parametersDescription:[{anchor:"huggingface_hub.User.avatar_url",description:`<strong>avatar_url</strong> (<code>str</code>) &#x2014;
URL of the user&#x2019;s avatar.`,name:"avatar_url"},{anchor:"huggingface_hub.User.username",description:`<strong>username</strong> (<code>str</code>) &#x2014;
Name of the user on the Hub (unique).`,name:"username"},{anchor:"huggingface_hub.User.fullname",description:`<strong>fullname</strong> (<code>str</code>) &#x2014;
User&#x2019;s full name.`,name:"fullname"}],source:"https://github.com/huggingface/huggingface_hub/blob/v0.21.0.rc0/src/huggingface_hub/hf_api.py#L1180"}}),Xi=new R({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/v0.21.0.rc0/src/huggingface_hub/hf_api.py#L1152"}}),Yi=new R({props:{title:"CommitOperation",local:"huggingface_hub.CommitOperationAdd",headingTag:"h2"}}),Oi=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/v0.21.0.rc0/src/huggingface_hub/_commit_api.py#L111",raiseDescription:`<script context="module">export const metadata = 'undefined';<\/script>


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


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