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

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

<span class="hljs-meta">&gt;&gt;&gt; </span>HfApi().comment_discussion(
<span class="hljs-meta">... </span>    repo_id=<span class="hljs-string">&quot;username/repo_name&quot;</span>,
<span class="hljs-meta">... </span>    discussion_num=<span class="hljs-number">34</span>
<span class="hljs-meta">... </span>    comment=comment
<span class="hljs-meta">... </span>)
<span class="hljs-comment"># DiscussionComment(id=&#x27;deadbeef0000000&#x27;, type=&#x27;comment&#x27;, ...)</span>
`,wrap:!1}}),{c(){n=l("p"),n.textContent=g,a=i(),u(s.$$.fragment)},l(t){n=c(t,"P",{"data-svelte-h":!0}),d(n)!=="svelte-kvfsh7"&&(n.textContent=g),a=r(t),m(s.$$.fragment,t)},m(t,v){$(t,n,v),$(t,a,v),f(s,t,v),x=!0},p:I,i(t){x||(_(s.$$.fragment,t),x=!0)},o(t){b(s.$$.fragment,t),x=!1},d(t){t&&(p(n),p(a)),y(s,t)}}}function kM(M){let n,g="Raises the following errors:",a,s,x=`<li><a href="https://requests.readthedocs.io/en/latest/api/#requests.HTTPError" rel="nofollow"><code>HTTPError</code></a>
if the HuggingFace API returned an error</li> <li><a href="https://docs.python.org/3/library/exceptions.html#ValueError" rel="nofollow"><code>ValueError</code></a>
if some parameter value is invalid</li> <li><a href="/docs/huggingface_hub/main/en/package_reference/utilities#huggingface_hub.utils.RepositoryNotFoundError">RepositoryNotFoundError</a>
If the repository to download from cannot be found. This may be because it doesn’t exist,
or because it is set to <code>private</code> and you do not have access.</li>`;return{c(){n=l("p"),n.textContent=g,a=i(),s=l("ul"),s.innerHTML=x},l(t){n=c(t,"P",{"data-svelte-h":!0}),d(n)!=="svelte-182te9i"&&(n.textContent=g),a=r(t),s=c(t,"UL",{"data-svelte-h":!0}),d(s)!=="svelte-12f410c"&&(s.innerHTML=x)},m(t,v){$(t,n,v),$(t,a,v),$(t,s,v)},p:I,d(t){t&&(p(n),p(a),p(s))}}}function CM(M){let n,g="Example:",a,s,x;return s=new H({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMGNyZWF0ZV9jb2xsZWN0aW9uJTBBY29sbGVjdGlvbiUyMCUzRCUyMGNyZWF0ZV9jb2xsZWN0aW9uKCUwQSUyMCUyMCUyMCUyMHRpdGxlJTNEJTIySUNDViUyMDIwMjMlMjIlMkMlMEElMjAlMjAlMjAlMjBkZXNjcmlwdGlvbiUzRCUyMlBvcnRmb2xpbyUyMG9mJTIwbW9kZWxzJTJDJTIwcGFwZXJzJTIwYW5kJTIwZGVtb3MlMjBJJTIwcHJlc2VudGVkJTIwYXQlMjBJQ0NWJTIwMjAyMyUyMiUyQyUwQSklMEFjb2xsZWN0aW9uLnNsdWc=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> create_collection
<span class="hljs-meta">&gt;&gt;&gt; </span>collection = create_collection(
<span class="hljs-meta">... </span>    title=<span class="hljs-string">&quot;ICCV 2023&quot;</span>,
<span class="hljs-meta">... </span>    description=<span class="hljs-string">&quot;Portfolio of models, papers and demos I presented at ICCV 2023&quot;</span>,
<span class="hljs-meta">... </span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>collection.slug
<span class="hljs-string">&quot;username/iccv-2023-64f9a55bb3115b4f513ec026&quot;</span>`,wrap:!1}}),{c(){n=l("p"),n.textContent=g,a=i(),u(s.$$.fragment)},l(t){n=c(t,"P",{"data-svelte-h":!0}),d(n)!=="svelte-11lpom8"&&(n.textContent=g),a=r(t),m(s.$$.fragment,t)},m(t,v){$(t,n,v),$(t,a,v),f(s,t,v),x=!0},p:I,i(t){x||(_(s.$$.fragment,t),x=!0)},o(t){b(s.$$.fragment,t),x=!1},d(t){t&&(p(n),p(a)),y(s,t)}}}function IM(M){let n,g=`The input list of <code>CommitOperation</code> will be mutated during the commit process. Do not reuse the same objects
for multiple commits.`;return{c(){n=l("p"),n.innerHTML=g},l(a){n=c(a,"P",{"data-svelte-h":!0}),d(n)!=="svelte-1i3qk8u"&&(n.innerHTML=g)},m(a,s){$(a,n,s)},p:I,d(a){a&&p(n)}}}function HM(M){let n,g=`<code>create_commit</code> assumes that the repo already exists on the Hub. If you get a
Client error 404, please make sure you are authenticated and that <code>repo_id</code> and
<code>repo_type</code> are set correctly. If repo does not exist, create it first using
<a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.HfApi.create_repo">create_repo()</a>.`;return{c(){n=l("p"),n.innerHTML=g},l(a){n=c(a,"P",{"data-svelte-h":!0}),d(n)!=="svelte-hn9ry1"&&(n.innerHTML=g)},m(a,s){$(a,n,s)},p:I,d(a){a&&p(n)}}}function UM(M){let n,g="<code>create_commit</code> is limited to 25k LFS files and a 1GB payload for regular files.";return{c(){n=l("p"),n.innerHTML=g},l(a){n=c(a,"P",{"data-svelte-h":!0}),d(n)!=="svelte-yun5lq"&&(n.innerHTML=g)},m(a,s){$(a,n,s)},p:I,d(a){a&&p(n)}}}function JM(M){let n,g="<code>create_commits_on_pr</code> is experimental.  Its API and behavior is subject to change in the future without prior notice.";return{c(){n=l("p"),n.innerHTML=g},l(a){n=c(a,"P",{"data-svelte-h":!0}),d(n)!=="svelte-1ryas9o"&&(n.innerHTML=g)},m(a,s){$(a,n,s)},p:I,d(a){a&&p(n)}}}function AM(M){let n,g=`<code>create_commits_on_pr</code> assumes that the repo already exists on the Hub. If you get a Client error 404, please
make sure you are authenticated and that <code>repo_id</code> and <code>repo_type</code> are set correctly. If repo does not exist,
create it first using <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.HfApi.create_repo">create_repo()</a>.`;return{c(){n=l("p"),n.innerHTML=g},l(a){n=c(a,"P",{"data-svelte-h":!0}),d(n)!=="svelte-1aayk81"&&(n.innerHTML=g)},m(a,s){$(a,n,s)},p:I,d(a){a&&p(n)}}}function qM(M){let n,g="Example:",a,s,x;return s=new H({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMEhmQXBpJTJDJTIwcGxhbl9tdWx0aV9jb21taXRzJTBBYWRkaXRpb25fY29tbWl0cyUyQyUyMGRlbGV0aW9uX2NvbW1pdHMlMjAlM0QlMjBwbGFuX211bHRpX2NvbW1pdHMoJTBBJTIwJTIwJTIwJTIwb3BlcmF0aW9ucyUzRCU1QiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMENvbW1pdE9wZXJhdGlvbkFkZCguLi4pJTJDJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwQ29tbWl0T3BlcmF0aW9uQWRkKC4uLiklMkMlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjBDb21taXRPcGVyYXRpb25EZWxldGUoLi4uKSUyQyUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMENvbW1pdE9wZXJhdGlvbkRlbGV0ZSguLi4pJTJDJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwQ29tbWl0T3BlcmF0aW9uQWRkKC4uLiklMkMlMEElMjAlMjAlMjAlMjAlNUQlMkMlMEEpJTBBSGZBcGkoKS5jcmVhdGVfY29tbWl0c19vbl9wciglMEElMjAlMjAlMjAlMjByZXBvX2lkJTNEJTIybXktY29vbC1tb2RlbCUyMiUyQyUwQSUyMCUyMCUyMCUyMGFkZGl0aW9uX2NvbW1pdHMlM0RhZGRpdGlvbl9jb21taXRzJTJDJTBBJTIwJTIwJTIwJTIwZGVsZXRpb25fY29tbWl0cyUzRGRlbGV0aW9uX2NvbW1pdHMlMkMlMEElMjAlMjAlMjAlMjAoLi4uKSUwQSUyMCUyMCUyMCUyMHZlcmJvc2UlM0RUcnVlJTJDJTBBKQ==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> HfApi, plan_multi_commits
<span class="hljs-meta">&gt;&gt;&gt; </span>addition_commits, deletion_commits = plan_multi_commits(
<span class="hljs-meta">... </span>    operations=[
<span class="hljs-meta">... </span>         CommitOperationAdd(...),
<span class="hljs-meta">... </span>         CommitOperationAdd(...),
<span class="hljs-meta">... </span>         CommitOperationDelete(...),
<span class="hljs-meta">... </span>         CommitOperationDelete(...),
<span class="hljs-meta">... </span>         CommitOperationAdd(...),
<span class="hljs-meta">... </span>    ],
<span class="hljs-meta">... </span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>HfApi().create_commits_on_pr(
<span class="hljs-meta">... </span>    repo_id=<span class="hljs-string">&quot;my-cool-model&quot;</span>,
<span class="hljs-meta">... </span>    addition_commits=addition_commits,
<span class="hljs-meta">... </span>    deletion_commits=deletion_commits,
<span class="hljs-meta">... </span>    (...)
<span class="hljs-meta">... </span>    verbose=<span class="hljs-literal">True</span>,
<span class="hljs-meta">... </span>)`,wrap:!1}}),{c(){n=l("p"),n.textContent=g,a=i(),u(s.$$.fragment)},l(t){n=c(t,"P",{"data-svelte-h":!0}),d(n)!=="svelte-11lpom8"&&(n.textContent=g),a=r(t),m(s.$$.fragment,t)},m(t,v){$(t,n,v),$(t,a,v),f(s,t,v),x=!0},p:I,i(t){x||(_(s.$$.fragment,t),x=!0)},o(t){b(s.$$.fragment,t),x=!1},d(t){t&&(p(n),p(a)),y(s,t)}}}function NM(M){let n,g="Raises the following errors:",a,s,x=`<li><a href="https://requests.readthedocs.io/en/latest/api/#requests.HTTPError" rel="nofollow"><code>HTTPError</code></a>
if the HuggingFace API returned an error</li> <li><a href="https://docs.python.org/3/library/exceptions.html#ValueError" rel="nofollow"><code>ValueError</code></a>
if some parameter value is invalid</li> <li><a href="/docs/huggingface_hub/main/en/package_reference/utilities#huggingface_hub.utils.RepositoryNotFoundError">RepositoryNotFoundError</a>
If the repository to download from cannot be found. This may be because it doesn’t exist,
or because it is set to <code>private</code> and you do not have access.</li>`;return{c(){n=l("p"),n.textContent=g,a=i(),s=l("ul"),s.innerHTML=x},l(t){n=c(t,"P",{"data-svelte-h":!0}),d(n)!=="svelte-182te9i"&&(n.textContent=g),a=r(t),s=c(t,"UL",{"data-svelte-h":!0}),d(s)!=="svelte-12f410c"&&(s.innerHTML=x)},m(t,v){$(t,n,v),$(t,a,v),$(t,s,v)},p:I,d(t){t&&(p(n),p(a),p(s))}}}function EM(M){let n,g="Example:",a,s,x;return s=new H({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=l("p"),n.textContent=g,a=i(),u(s.$$.fragment)},l(t){n=c(t,"P",{"data-svelte-h":!0}),d(n)!=="svelte-11lpom8"&&(n.textContent=g),a=r(t),m(s.$$.fragment,t)},m(t,v){$(t,n,v),$(t,a,v),f(s,t,v),x=!0},p:I,i(t){x||(_(s.$$.fragment,t),x=!0)},o(t){b(s.$$.fragment,t),x=!1},d(t){t&&(p(n),p(a)),y(s,t)}}}function RM(M){let n,g;return n=new H({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(){u(n.$$.fragment)},l(a){m(n.$$.fragment,a)},m(a,s){f(n,a,s),g=!0},p:I,i(a){g||(_(n.$$.fragment,a),g=!0)},o(a){b(n.$$.fragment,a),g=!1},d(a){y(n,a)}}}function GM(M){let n,g="Raises the following errors:",a,s,x=`<li><a href="https://requests.readthedocs.io/en/latest/api/#requests.HTTPError" rel="nofollow"><code>HTTPError</code></a>
if the HuggingFace API returned an error</li> <li><a href="https://docs.python.org/3/library/exceptions.html#ValueError" rel="nofollow"><code>ValueError</code></a>
if some parameter value is invalid</li> <li><a href="/docs/huggingface_hub/main/en/package_reference/utilities#huggingface_hub.utils.RepositoryNotFoundError">RepositoryNotFoundError</a>
If the repository to download from cannot be found. This may be because it doesn’t exist,
or because it is set to <code>private</code> and you do not have access.</li>`;return{c(){n=l("p"),n.textContent=g,a=i(),s=l("ul"),s.innerHTML=x},l(t){n=c(t,"P",{"data-svelte-h":!0}),d(n)!=="svelte-182te9i"&&(n.textContent=g),a=r(t),s=c(t,"UL",{"data-svelte-h":!0}),d(s)!=="svelte-12f410c"&&(s.innerHTML=x)},m(t,v){$(t,n,v),$(t,a,v),$(t,s,v)},p:I,d(t){t&&(p(n),p(a),p(s))}}}function DM(M){let n,g="Raises the following errors:",a,s,x=`<li><a href="/docs/huggingface_hub/main/en/package_reference/utilities#huggingface_hub.utils.RepositoryNotFoundError">RepositoryNotFoundError</a>
If the repository to download from cannot be found. This may be because it doesn’t exist,
or because it is set to <code>private</code> and you do not have access.</li> <li><a href="/docs/huggingface_hub/main/en/package_reference/utilities#huggingface_hub.utils.RevisionNotFoundError">RevisionNotFoundError</a>
If the revision to download from cannot be found.</li>`;return{c(){n=l("p"),n.textContent=g,a=i(),s=l("ul"),s.innerHTML=x},l(t){n=c(t,"P",{"data-svelte-h":!0}),d(n)!=="svelte-182te9i"&&(n.textContent=g),a=r(t),s=c(t,"UL",{"data-svelte-h":!0}),d(s)!=="svelte-1mt8eeu"&&(s.innerHTML=x)},m(t,v){$(t,n,v),$(t,a,v),$(t,s,v)},p:I,d(t){t&&(p(n),p(a),p(s))}}}function FM(M){let n,g="Example:",a,s,x;return s=new H({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMGRlbGV0ZV9jb2xsZWN0aW9uJTBBY29sbGVjdGlvbiUyMCUzRCUyMGRlbGV0ZV9jb2xsZWN0aW9uKCUyMnVzZXJuYW1lJTJGdXNlbGVzcy1jb2xsZWN0aW9uLTY0ZjlhNTViYjMxMTViNGY1MTNlYzAyNiUyMiUyQyUyMG1pc3Npbmdfb2slM0RUcnVlKQ==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> delete_collection
<span class="hljs-meta">&gt;&gt;&gt; </span>collection = delete_collection(<span class="hljs-string">&quot;username/useless-collection-64f9a55bb3115b4f513ec026&quot;</span>, missing_ok=<span class="hljs-literal">True</span>)`,wrap:!1}}),{c(){n=l("p"),n.textContent=g,a=i(),u(s.$$.fragment)},l(t){n=c(t,"P",{"data-svelte-h":!0}),d(n)!=="svelte-11lpom8"&&(n.textContent=g),a=r(t),m(s.$$.fragment,t)},m(t,v){$(t,n,v),$(t,a,v),f(s,t,v),x=!0},p:I,i(t){x||(_(s.$$.fragment,t),x=!0)},o(t){b(s.$$.fragment,t),x=!1},d(t){t&&(p(n),p(a)),y(s,t)}}}function SM(M){let n,g="This is a non-revertible action. A deleted collection cannot be restored.";return{c(){n=l("p"),n.textContent=g},l(a){n=c(a,"P",{"data-svelte-h":!0}),d(n)!=="svelte-1k7dttx"&&(n.textContent=g)},m(a,s){$(a,n,s)},p:I,d(a){a&&p(n)}}}function ZM(M){let n,g="Example:",a,s,x;return s=new H({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMGdldF9jb2xsZWN0aW9uJTJDJTIwZGVsZXRlX2NvbGxlY3Rpb25faXRlbSUwQSUwQWNvbGxlY3Rpb24lMjAlM0QlMjBnZXRfY29sbGVjdGlvbiglMjJUaGVCbG9rZSUyRnJlY2VudC1tb2RlbHMtNjRmOWE1NWJiMzExNWI0ZjUxM2VjMDI2JTIyKSUwQSUwQWRlbGV0ZV9jb2xsZWN0aW9uX2l0ZW0oJTBBJTIwJTIwJTIwJTIwY29sbGVjdGlvbl9zbHVnJTNEJTIyVGhlQmxva2UlMkZyZWNlbnQtbW9kZWxzLTY0ZjlhNTViYjMxMTViNGY1MTNlYzAyNiUyMiUyQyUwQSUyMCUyMCUyMCUyMGl0ZW1fb2JqZWN0X2lkJTNEY29sbGVjdGlvbi5pdGVtcyU1Qi0xJTVELml0ZW1fb2JqZWN0X2lkJTJDJTBBKQ==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> get_collection, delete_collection_item

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

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

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

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

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

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

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

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


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


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

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

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

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

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

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

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

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

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

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

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


<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># List only models from the AllenNLP library</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>api.list_models(<span class="hljs-built_in">filter</span>=<span class="hljs-string">&quot;allennlp&quot;</span>)`,wrap:!1}}),{c(){n=l("p"),n.innerHTML=g,a=i(),u(s.$$.fragment)},l(t){n=c(t,"P",{"data-svelte-h":!0}),d(n)!=="svelte-1lrmw6w"&&(n.innerHTML=g),a=r(t),m(s.$$.fragment,t)},m(t,v){$(t,n,v),$(t,a,v),f(s,t,v),x=!0},p:I,i(t){x||(_(s.$$.fragment,t),x=!0)},o(t){b(s.$$.fragment,t),x=!1},d(t){t&&(p(n),p(a)),y(s,t)}}}function mw(M){let n,g="Example usage with the <code>search</code> argument:",a,s,x;return s=new H({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=l("p"),n.innerHTML=g,a=i(),u(s.$$.fragment)},l(t){n=c(t,"P",{"data-svelte-h":!0}),d(n)!=="svelte-1oyacuq"&&(n.innerHTML=g),a=r(t),m(s.$$.fragment,t)},m(t,v){$(t,n,v),$(t,a,v),f(s,t,v),x=!0},p:I,i(t){x||(_(s.$$.fragment,t),x=!0)},o(t){b(s.$$.fragment,t),x=!1},d(t){t&&(p(n),p(a)),y(s,t)}}}function fw(M){let n,g="Example:",a,s,x;return s=new H({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMEhmQXBpJTBBYXBpJTIwJTNEJTIwSGZBcGkoKSUwQSUwQWluaXRpYWxfY29tbWl0JTIwJTNEJTIwYXBpLmxpc3RfcmVwb19jb21taXRzKCUyMmdwdDIlMjIpJTVCLTElNUQlMEElMEFpbml0aWFsX2NvbW1pdCUwQSUwQWFwaS5jcmVhdGVfYnJhbmNoKCUyMmdwdDIlMjIlMkMlMjAlMjJuZXdfZW1wdHlfYnJhbmNoJTIyJTJDJTIwcmV2aXNpb24lM0Rpbml0aWFsX2NvbW1pdC5jb21taXRfaWQp",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> HfApi
<span class="hljs-meta">&gt;&gt;&gt; </span>api = HfApi()

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

<span class="hljs-comment"># Upload checkpoints folder while creating a PR</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>upload_folder(
<span class="hljs-meta">... </span>    folder_path=<span class="hljs-string">&quot;local/checkpoints&quot;</span>,
<span class="hljs-meta">... </span>    path_in_repo=<span class="hljs-string">&quot;remote/experiment/checkpoints&quot;</span>,
<span class="hljs-meta">... </span>    repo_id=<span class="hljs-string">&quot;username/my-dataset&quot;</span>,
<span class="hljs-meta">... </span>    repo_type=<span class="hljs-string">&quot;datasets&quot;</span>,
<span class="hljs-meta">... </span>    token=<span class="hljs-string">&quot;my_token&quot;</span>,
<span class="hljs-meta">... </span>    create_pr=<span class="hljs-literal">True</span>,
<span class="hljs-meta">... </span>)
<span class="hljs-string">&quot;https://huggingface.co/datasets/username/my-dataset/tree/refs%2Fpr%2F1/remote/experiment/checkpoints&quot;</span>
`,wrap:!1}}),{c(){n=l("p"),n.textContent=g,a=i(),u(s.$$.fragment)},l(t){n=c(t,"P",{"data-svelte-h":!0}),d(n)!=="svelte-11lpom8"&&(n.textContent=g),a=r(t),m(s.$$.fragment,t)},m(t,v){$(t,n,v),$(t,a,v),f(s,t,v),x=!0},p:I,i(t){x||(_(s.$$.fragment,t),x=!0)},o(t){b(s.$$.fragment,t),x=!1},d(t){t&&(p(n),p(a)),y(s,t)}}}function Ow(M){let n,g="<code>plan_multi_commits</code> is experimental. Its API and behavior is subject to change in the future without prior notice.";return{c(){n=l("p"),n.innerHTML=g},l(a){n=c(a,"P",{"data-svelte-h":!0}),d(n)!=="svelte-ptumhw"&&(n.innerHTML=g)},m(a,s){$(a,n,s)},p:I,d(a){a&&p(n)}}}function Qw(M){let n,g="Example:",a,s,x;return s=new H({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMEhmQXBpJTJDJTIwcGxhbl9tdWx0aV9jb21taXRzJTBBYWRkaXRpb25fY29tbWl0cyUyQyUyMGRlbGV0aW9uX2NvbW1pdHMlMjAlM0QlMjBwbGFuX211bHRpX2NvbW1pdHMoJTBBJTIwJTIwJTIwJTIwb3BlcmF0aW9ucyUzRCU1QiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMENvbW1pdE9wZXJhdGlvbkFkZCguLi4pJTJDJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwQ29tbWl0T3BlcmF0aW9uQWRkKC4uLiklMkMlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjBDb21taXRPcGVyYXRpb25EZWxldGUoLi4uKSUyQyUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMENvbW1pdE9wZXJhdGlvbkRlbGV0ZSguLi4pJTJDJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwQ29tbWl0T3BlcmF0aW9uQWRkKC4uLiklMkMlMEElMjAlMjAlMjAlMjAlNUQlMkMlMEEpJTBBSGZBcGkoKS5jcmVhdGVfY29tbWl0c19vbl9wciglMEElMjAlMjAlMjAlMjByZXBvX2lkJTNEJTIybXktY29vbC1tb2RlbCUyMiUyQyUwQSUyMCUyMCUyMCUyMGFkZGl0aW9uX2NvbW1pdHMlM0RhZGRpdGlvbl9jb21taXRzJTJDJTBBJTIwJTIwJTIwJTIwZGVsZXRpb25fY29tbWl0cyUzRGRlbGV0aW9uX2NvbW1pdHMlMkMlMEElMjAlMjAlMjAlMjAoLi4uKSUwQSUyMCUyMCUyMCUyMHZlcmJvc2UlM0RUcnVlJTJDJTBBKQ==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> HfApi, plan_multi_commits
<span class="hljs-meta">&gt;&gt;&gt; </span>addition_commits, deletion_commits = plan_multi_commits(
<span class="hljs-meta">... </span>    operations=[
<span class="hljs-meta">... </span>         CommitOperationAdd(...),
<span class="hljs-meta">... </span>         CommitOperationAdd(...),
<span class="hljs-meta">... </span>         CommitOperationDelete(...),
<span class="hljs-meta">... </span>         CommitOperationDelete(...),
<span class="hljs-meta">... </span>         CommitOperationAdd(...),
<span class="hljs-meta">... </span>    ],
<span class="hljs-meta">... </span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>HfApi().create_commits_on_pr(
<span class="hljs-meta">... </span>    repo_id=<span class="hljs-string">&quot;my-cool-model&quot;</span>,
<span class="hljs-meta">... </span>    addition_commits=addition_commits,
<span class="hljs-meta">... </span>    deletion_commits=deletion_commits,
<span class="hljs-meta">... </span>    (...)
<span class="hljs-meta">... </span>    verbose=<span class="hljs-literal">True</span>,
<span class="hljs-meta">... </span>)`,wrap:!1}}),{c(){n=l("p"),n.textContent=g,a=i(),u(s.$$.fragment)},l(t){n=c(t,"P",{"data-svelte-h":!0}),d(n)!=="svelte-11lpom8"&&(n.textContent=g),a=r(t),m(s.$$.fragment,t)},m(t,v){$(t,n,v),$(t,a,v),f(s,t,v),x=!0},p:I,i(t){x||(_(s.$$.fragment,t),x=!0)},o(t){b(s.$$.fragment,t),x=!1},d(t){t&&(p(n),p(a)),y(s,t)}}}function Kw(M){let n,g=`The initial order of the operations is not guaranteed! All deletions will be performed before additions. If you are
not updating multiple times the same file, you are fine.`;return{c(){n=l("p"),n.textContent=g},l(a){n=c(a,"P",{"data-svelte-h":!0}),d(n)!=="svelte-sg17jf"&&(n.textContent=g)},m(a,s){$(a,n,s)},p:I,d(a){a&&p(n)}}}function ej(M){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/main/en/package_reference/hf_api#huggingface_hub.HfApi.list_datasets">list_datasets()</a> only a subset of the attributes are returned.`;return{c(){n=l("p"),n.innerHTML=g},l(a){n=c(a,"P",{"data-svelte-h":!0}),d(n)!=="svelte-5rfhi2"&&(n.innerHTML=g)},m(a,s){$(a,n,s)},p:I,d(a){a&&p(n)}}}function tj(M){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/main/en/package_reference/hf_api#huggingface_hub.HfApi.list_models">list_models()</a> only a subset of the attributes are returned.`;return{c(){n=l("p"),n.innerHTML=g},l(a){n=c(a,"P",{"data-svelte-h":!0}),d(n)!=="svelte-15v1iox"&&(n.innerHTML=g)},m(a,s){$(a,n,s)},p:I,d(a){a&&p(n)}}}function nj(M){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/main/en/package_reference/hf_api#huggingface_hub.HfApi.list_models">list_models()</a>, <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.HfApi.list_datasets">list_datasets()</a> or <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.HfApi.list_spaces">list_spaces()</a>). If you need more
information like file size, blob id or lfs details, you must request them specifically from one repo at a time
(using <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.HfApi.model_info">model_info()</a>, <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.HfApi.dataset_info">dataset_info()</a> or <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.HfApi.space_info">space_info()</a>) as it adds more constraints on the backend server to
retrieve these.`;return{c(){n=l("p"),n.innerHTML=g},l(a){n=c(a,"P",{"data-svelte-h":!0}),d(n)!=="svelte-6ldscx"&&(n.innerHTML=g)},m(a,s){$(a,n,s)},p:I,d(a){a&&p(n)}}}function oj(M){let n,g="Example:",a,s,x;return s=new H({props:{code:"UmVwb1VybCgnaHR0cHMlM0ElMkYlMkZodWdnaW5nZmFjZS5jbyUyRmdwdDInKSUwQSUwQVJlcG9VcmwoJ2h0dHBzJTNBJTJGJTJGaHViLWNpLmh1Z2dpbmdmYWNlLmNvJTJGZGF0YXNldHMlMkZkdW1teV91c2VyJTJGZHVtbXlfZGF0YXNldCclMkMlMjBlbmRwb2ludCUzRCdodHRwcyUzQSUyRiUyRmh1Yi1jaS5odWdnaW5nZmFjZS5jbycpJTBBJTBBUmVwb1VybCgnaGYlM0ElMkYlMkZkYXRhc2V0cyUyRm15LXVzZXIlMkZteS1kYXRhc2V0JyklMEElMEFIZkFwaS5jcmVhdGVfcmVwbyglMjJkdW1teV9tb2RlbCUyMik=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span>RepoUrl(<span class="hljs-string">&#x27;https://huggingface.co/gpt2&#x27;</span>)
RepoUrl(<span class="hljs-string">&#x27;https://huggingface.co/gpt2&#x27;</span>, endpoint=<span class="hljs-string">&#x27;https://huggingface.co&#x27;</span>, repo_type=<span class="hljs-string">&#x27;model&#x27;</span>, repo_id=<span class="hljs-string">&#x27;gpt2&#x27;</span>)

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

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

<span class="hljs-meta">&gt;&gt;&gt; </span>HfApi.create_repo(<span class="hljs-string">&quot;dummy_model&quot;</span>)
RepoUrl(<span class="hljs-string">&#x27;https://huggingface.co/Wauplin/dummy_model&#x27;</span>, endpoint=<span class="hljs-string">&#x27;https://huggingface.co&#x27;</span>, repo_type=<span class="hljs-string">&#x27;model&#x27;</span>, repo_id=<span class="hljs-string">&#x27;Wauplin/dummy_model&#x27;</span>)`,wrap:!1}}),{c(){n=l("p"),n.textContent=g,a=i(),u(s.$$.fragment)},l(t){n=c(t,"P",{"data-svelte-h":!0}),d(n)!=="svelte-11lpom8"&&(n.textContent=g),a=r(t),m(s.$$.fragment,t)},m(t,v){$(t,n,v),$(t,a,v),f(s,t,v),x=!0},p:I,i(t){x||(_(s.$$.fragment,t),x=!0)},o(t){b(s.$$.fragment,t),x=!1},d(t){t&&(p(n),p(a)),y(s,t)}}}function aj(M){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/main/en/package_reference/hf_api#huggingface_hub.HfApi.list_spaces">list_spaces()</a> only a subset of the attributes are returned.`;return{c(){n=l("p"),n.innerHTML=g},l(a){n=c(a,"P",{"data-svelte-h":!0}),d(n)!=="svelte-hrpd0g"&&(n.innerHTML=g)},m(a,s){$(a,n,s)},p:I,d(a){a&&p(n)}}}function sj(M){let n,g="Example:",a,s,x;return s=new H({props:{code:"b3BlcmF0aW9uJTIwJTNEJTIwQ29tbWl0T3BlcmF0aW9uQWRkKCUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMHBhdGhfaW5fcmVwbyUzRCUyMnJlbW90ZSUyRmRpciUyRndlaWdodHMuaDUlMjIlMkMlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjBwYXRoX29yX2ZpbGVvYmolM0QlMjIuJTJGbG9jYWwlMkZ3ZWlnaHRzLmg1JTIyJTJDJTBBKSUwQSUwQXdpdGglMjBvcGVyYXRpb24uYXNfZmlsZSgpJTIwYXMlMjBmaWxlJTNBJTBBJTIwJTIwJTIwJTIwY29udGVudCUyMCUzRCUyMGZpbGUucmVhZCgpJTBBJTBBd2l0aCUyMG9wZXJhdGlvbi5hc19maWxlKHdpdGhfdHFkbSUzRFRydWUpJTIwYXMlMjBmaWxlJTNBJTBBJTIwJTIwJTIwJTIwd2hpbGUlMjBUcnVlJTNBJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwZGF0YSUyMCUzRCUyMGZpbGUucmVhZCgxMDI0KSUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMGlmJTIwbm90JTIwZGF0YSUzQSUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMGJyZWFrJTBBJTBBd2l0aCUyMG9wZXJhdGlvbi5hc19maWxlKHdpdGhfdHFkbSUzRFRydWUpJTIwYXMlMjBmaWxlJTNBJTBBJTIwJTIwJTIwJTIwcmVxdWVzdHMucHV0KC4uLiUyQyUyMGRhdGElM0RmaWxlKQ==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span>operation = CommitOperationAdd(
<span class="hljs-meta">... </span>       path_in_repo=<span class="hljs-string">&quot;remote/dir/weights.h5&quot;</span>,
<span class="hljs-meta">... </span>       path_or_fileobj=<span class="hljs-string">&quot;./local/weights.h5&quot;</span>,
<span class="hljs-meta">... </span>)
CommitOperationAdd(path_in_repo=<span class="hljs-string">&#x27;remote/dir/weights.h5&#x27;</span>, path_or_fileobj=<span class="hljs-string">&#x27;./local/weights.h5&#x27;</span>)

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># Related to the dataset</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>new_filter = ModelFilter(trained_dataset=<span class="hljs-string">&quot;common_voice&quot;</span>)`,wrap:!1}}),{c(){u(n.$$.fragment)},l(a){m(n.$$.fragment,a)},m(a,s){f(n,a,s),g=!0},p:I,i(a){g||(_(n.$$.fragment,a),g=!0)},o(a){b(n.$$.fragment,a),g=!1},d(a){y(n,a)}}}function pj(M){let n,g,a,s,x,t,v,i$="Below is the documentation for the <code>HfApi</code> class, which serves as a Python wrapper for the Hugging Face Hub’s API.",wg,as,r$="All methods from the <code>HfApi</code> are also accessible from the package’s root directly. Both approaches are detailed below.",jg,ss,l$=`Using the root method is more straightforward but the <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.HfApi">HfApi</a> class gives you more flexibility.
In particular, you can pass a token that will be reused in all HTTP calls. This is different
than <code>huggingface-cli login</code> or <a href="/docs/huggingface_hub/main/en/package_reference/login#huggingface_hub.login">login()</a> as the token is not persisted on the machine.
It is also possible to provide a different endpoint or configure a custom user-agent.`,Tg,is,kg,rs,Cg,w,ls,Uh,we,cs,Jh,cl,c$="Add an item to a collection on the Hub.",Ah,pl,p$='Returns: <a href="/docs/huggingface_hub/main/en/package_reference/collections#huggingface_hub.Collection">Collection</a>',qh,Pn,Nh,Rt,ps,Eh,dl,d$="Adds or updates a secret in a Space.",Rh,gl,g$=`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>.`,Gh,Gt,ds,Dh,hl,h$="Adds or updates a variable in a Space.",Fh,ul,u$=`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>`,Sh,je,gs,Zh,ml,m$="Closes or re-opens a Discussion or Pull Request.",Lh,zn,Bh,On,Wh,Te,hs,Vh,fl,f$="Creates a new comment on the given Discussion.",Xh,Qn,Yh,Kn,Ph,eo,us,zh,_l,_$=`Create a new branch for a repo on the Hub, starting from the specified revision (defaults to <code>main</code>).
To find a revision suiting your needs, you can use <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.HfApi.list_repo_refs">list_repo_refs()</a> or <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.HfApi.list_repo_commits">list_repo_commits()</a>.`,Oh,ke,ms,Qh,bl,b$="Create a new Collection on the Hub.",Kh,yl,y$='Returns: <a href="/docs/huggingface_hub/main/en/package_reference/collections#huggingface_hub.Collection">Collection</a>',eu,to,tu,le,fs,nu,xl,x$="Creates a commit in the given repo, deleting & uploading files as needed.",ou,no,au,oo,su,ao,iu,L,_s,ru,$l,$$="Push changes to the Hub in multiple commits.",lu,vl,v$=`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.`,cu,Ml,M$=`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.`,pu,so,du,io,gu,ro,hu,P,bs,uu,wl,w$="Creates a Discussion or Pull Request.",mu,jl,j$="Pull Requests created programmatically will be in <code>&quot;draft&quot;</code> status.",fu,Tl,T$='Creating a Pull Request with changes can also be done at once with <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.HfApi.create_commit">HfApi.create_commit()</a>.',_u,kl,k$='Returns: <a href="/docs/huggingface_hub/main/en/package_reference/community#huggingface_hub.DiscussionWithDetails">DiscussionWithDetails</a>',bu,lo,yu,Ce,ys,xu,Cl,C$="Create a new Inference Endpoint.",$u,co,vu,po,Mu,z,xs,wu,Il,I$="Creates a Pull Request . Pull Requests created programmatically will be in <code>&quot;draft&quot;</code> status.",ju,Hl,H$='Creating a Pull Request with changes can also be done at once with <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.HfApi.create_commit">HfApi.create_commit()</a>;',Tu,Ul,U$='This is a wrapper around <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.HfApi.create_discussion">HfApi.create_discussion()</a>.',ku,Jl,J$='Returns: <a href="/docs/huggingface_hub/main/en/package_reference/community#huggingface_hub.DiscussionWithDetails">DiscussionWithDetails</a>',Cu,go,Iu,ho,$s,Hu,Al,A$="Create an empty repo on the HuggingFace Hub.",Uu,uo,vs,Ju,ql,q$="Tag a given commit of a repo on the Hub.",Au,Ie,Ms,qu,Nl,N$="Get info on one specific dataset on huggingface.co.",Nu,El,E$="Dataset can be private if you pass an acceptable token.",Eu,mo,Ru,fo,ws,Gu,Rl,R$="Delete a branch from a repo on the Hub.",Du,He,js,Fu,Gl,G$="Delete a collection on the Hub.",Su,_o,Zu,bo,Lu,Dt,Ts,Bu,Dl,D$="Delete an item from a collection.",Wu,yo,Vu,Ft,ks,Xu,Fl,F$="Deletes a file in the given repo.",Yu,xo,Pu,St,Cs,zu,Sl,S$="Deletes a folder in the given repo.",Ou,Zl,Z$='Simple wrapper around <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.HfApi.create_commit">create_commit()</a> method.',Qu,Ue,Is,Ku,Ll,L$="Delete an Inference Endpoint.",em,Bl,B$=`This operation is not reversible. If you don’t want to be charged for an Inference Endpoint, it is preferable
to pause it with <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.HfApi.pause_inference_endpoint">pause_inference_endpoint()</a> or scale it to zero with <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.HfApi.scale_to_zero_inference_endpoint">scale_to_zero_inference_endpoint()</a>.`,tm,Wl,W$='For convenience, you can also delete an Inference Endpoint using <a href="/docs/huggingface_hub/main/en/package_reference/inference_endpoints#huggingface_hub.InferenceEndpoint.delete">InferenceEndpoint.delete()</a>.',nm,$o,Hs,om,Vl,V$="Delete a repo from the HuggingFace Hub. CAUTION: this is irreversible.",am,Zt,Us,sm,Xl,X$="Deletes a secret from a Space.",im,Yl,Y$=`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>.`,rm,vo,Js,lm,Pl,P$="Delete persistent storage for a Space.",cm,Lt,As,pm,zl,z$="Deletes a variable from a Space.",dm,Ol,O$=`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>`,gm,Mo,qs,hm,Ql,Q$="Delete a tag from a repo on the Hub.",um,Je,Ns,mm,Kl,K$="Duplicate a Space.",fm,ec,ev=`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.`,_m,wo,bm,Bt,Es,ym,tc,tv="Edits a comment on a Discussion / Pull Request.",xm,jo,$m,Wt,Rs,vm,nc,nv="Checks if a file exists in a repository on the Hugging Face Hub.",Mm,To,wm,Ae,Gs,jm,oc,ov="Gets information about a Collection on the Hub.",Tm,ac,av='Returns: <a href="/docs/huggingface_hub/main/en/package_reference/collections#huggingface_hub.Collection">Collection</a>',km,ko,Cm,Co,Ds,Im,sc,sv="List all valid dataset tags as a nested namespace object.",Hm,qe,Fs,Um,ic,iv="Fetches a Discussion’s / Pull Request ‘s details from the Hub.",Jm,rc,rv='Returns: <a href="/docs/huggingface_hub/main/en/package_reference/community#huggingface_hub.DiscussionWithDetails">DiscussionWithDetails</a>',Am,Io,qm,Ho,Ss,Nm,lc,lv=`Returns the repository name for a given model ID and optional
organization.`,Em,Uo,Zs,Rm,cc,cv="Fetch metadata of a file versioned on the Hub for a given url.",Gm,Vt,Ls,Dm,pc,pv="Get information about an Inference Endpoint.",Fm,Jo,Sm,Ao,Bs,Zm,dc,dv="List all valid model tags as a nested namespace object",Lm,Xt,Ws,Bm,gc,gv="Get information about a repo’s paths.",Wm,qo,Vm,ce,Vs,Xm,hc,hv="Fetches Discussions and Pull Requests for the given repo.",Ym,uc,uv="Example:",Pm,No,zm,Eo,Om,O,Xs,Qm,mc,mv="Parse metadata for a safetensors repo on the Hub.",Km,fc,fv=`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.`,ef,_c,_v='To parse metadata from a single safetensors file, use <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.HfApi.get_safetensors_metadata">get_safetensors_metadata()</a>.',tf,bc,bv='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>.',nf,Ro,of,Go,Ys,af,yc,yv="Gets runtime information about a Space.",sf,Yt,Ps,rf,xc,xv="Gets all variables from a Space.",lf,$c,$v=`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>`,cf,Pt,zs,pf,vc,vv="Check if a given <code>token</code> is valid and return its permissions.",df,Mc,Mv='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>.',gf,D,Os,hf,wc,wv="Download a given file if it’s not already present in the local cache.",uf,jc,jv="The new cache file layout looks like this:",mf,Tc,Tv=`<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>`,ff,kc,kv=`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:`,_f,Cc,Cv=`<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>`,bf,Do,yf,Fo,xf,Ne,Qs,$f,Ic,Iv="Hides a comment on a Discussion / Pull Request.",vf,So,Mf,Zo,wf,Ee,Ks,jf,Hc,Hv="Like a given repo on the Hub (e.g. set as favorite).",Tf,Uc,Uv='See also <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.HfApi.unlike">unlike()</a> and <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.HfApi.list_liked_repos">list_liked_repos()</a>.',kf,Lo,Cf,Bo,ei,If,Jc,Jv="List collections on the Huggingface Hub, given some filters.",Hf,Re,ti,Uf,Ac,Av="List datasets hosted on the Huggingface Hub, given some filters.",Jf,Wo,Af,Vo,qf,A,ni,Nf,qc,qv="List files on a repo and get information about them.",Ef,Nc,Nv="Takes as input a list of paths. Those paths can be either files or folders. Two server endpoints are called:",Rf,Ec,Ev=`<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>`,Gf,Rc,Rv="Examples:",Df,Gc,Gv="Get information about files on a repo.",Ff,Xo,Sf,Dc,Dv="Get even more information about files on a repo (last commit and security scan results)",Zf,Yo,Lf,Fc,Fv="List LFS files from the “vae/” folder in “stabilityai/stable-diffusion-2” repository.",Bf,Po,Wf,Sc,Sv="List all files on a repo.",Vf,zo,Xf,zt,oi,Yf,Zc,Zv="Lists all inference endpoints for the given namespace.",Pf,Oo,zf,pe,ai,Of,Lc,Lv="List all public repos liked by a user on huggingface.co.",Qf,Bc,Bv=`This list is public so token is optional. If <code>user</code> is not passed, it defaults to
the logged in user.`,Kf,Wc,Wv='See also <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.HfApi.like">like()</a> and <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.HfApi.unlike">unlike()</a>.',e_,Qo,t_,Ko,si,n_,Vc,Vv="Get the public list of all the metrics on huggingface.co",o_,Ge,ii,a_,Xc,Xv="List models hosted on the Huggingface Hub, given some filters.",s_,ea,i_,ta,r_,De,ri,l_,Yc,Yv="Get the list of commits of a given revision for a repo on the Hub.",c_,Pc,Pv="Commits are sorted by date (last commit first).",p_,na,d_,oa,li,g_,zc,zv="Get the list of files in a given repo.",h_,Ot,ci,u_,Oc,Ov="List all users who liked a given repo on the hugging Face Hub.",m_,Qc,Qv='See also <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.HfApi.like">like()</a> and <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.HfApi.list_liked_repos">list_liked_repos()</a>.',f_,Qt,pi,__,Kc,Kv="Get the list of refs of a given repo (both tags and branches).",b_,aa,y_,B,di,x_,ep,e2="List a repo tree’s files and folders and get information about them.",$_,tp,t2="Examples:",v_,np,n2="Get information about a repo’s tree.",M_,sa,w_,op,o2="Get even more information about a repo’s tree (last commit and files’ security scan results)",j_,ia,T_,ra,gi,k_,ap,a2="List spaces hosted on the Huggingface Hub, given some filters.",C_,Kt,hi,I_,sp,s2="Merges a Pull Request.",H_,la,U_,Fe,ui,J_,ip,i2="Get info on one specific model on huggingface.co",A_,rp,r2="Model can be private if you pass an acceptable token or are logged in.",q_,ca,N_,Se,mi,E_,lp,l2="Moving a repository from namespace1/repo_name1 to namespace2/repo_name2",R_,cp,c2=`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>.`,G_,pa,D_,Ze,fi,F_,pp,p2="Parse metadata from a safetensors file on the Hub.",S_,dp,d2='To parse metadata from all safetensors files in a repo at once, use <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.HfApi.get_safetensors_metadata">get_safetensors_metadata()</a>.',Z_,gp,g2='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>.',L_,Le,_i,B_,hp,h2="Pause an Inference Endpoint.",W_,up,u2=`A paused Inference Endpoint will not be charged. It can be resumed at any time using <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.HfApi.resume_inference_endpoint">resume_inference_endpoint()</a>.
This is different than scaling the Inference Endpoint to zero with <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.HfApi.scale_to_zero_inference_endpoint">scale_to_zero_inference_endpoint()</a>, which
would be automatically restarted when a request is made to it.`,V_,mp,m2='For convenience, you can also pause an Inference Endpoint using <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.HfApi.pause_inference_endpoint">pause_inference_endpoint()</a>.',X_,Be,bi,Y_,fp,f2="Pause your Space.",P_,_p,_2=`A paused Space stops executing until manually restarted by its owner. This is different from the sleeping
state in which free Spaces go after 48h of inactivity. Paused time is not billed to your account, no matter the
hardware you’ve selected. To restart your Space, use <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.HfApi.restart_space">restart_space()</a> and go to your Space settings page.`,z_,bp,b2='For more details, please visit <a href="https://huggingface.co/docs/hub/spaces-gpus#pause" rel="nofollow">the docs</a>.',O_,Q,yi,Q_,yp,y2="Pre-upload LFS files to S3 in preparation on a future commit.",K_,xp,x2=`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.`,eb,da,tb,ga,nb,ha,ob,We,xi,ab,$p,$2="Renames a Discussion.",sb,ua,ib,ma,rb,en,$i,lb,vp,v2="Checks if a repository exists on the Hugging Face Hub.",cb,fa,pb,tn,vi,db,Mp,M2="Get the info object for a given repo of a given type.",gb,_a,hb,nn,Mi,ub,wp,w2="Request new hardware for a Space.",mb,ba,fb,on,wi,_b,jp,j2="Request persistent storage for a Space.",bb,ya,yb,Ve,ji,xb,Tp,T2="Restart your Space.",$b,kp,k2=`This is the only way to programmatically restart a Space if you’ve put it on Pause (see <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.HfApi.pause_space">pause_space()</a>). You
must be the owner of the Space to restart it. If you are using an upgraded hardware, your account will be
billed as soon as the Space is restarted. You can trigger a restart no matter the current state of a Space.`,vb,Cp,C2='For more details, please visit <a href="https://huggingface.co/docs/hub/spaces-gpus#pause" rel="nofollow">the docs</a>.',Mb,an,Ti,wb,Ip,I2="Resume an Inference Endpoint.",jb,Hp,H2='For convenience, you can also resume an Inference Endpoint using <a href="/docs/huggingface_hub/main/en/package_reference/inference_endpoints#huggingface_hub.InferenceEndpoint.resume">InferenceEndpoint.resume()</a>.',Tb,de,ki,kb,Up,U2="Run a method in the background and return a Future instance.",Cb,Jp,J2=`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>.`,Ib,Ap,A2=`Note: Most-used methods like <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.HfApi.upload_file">upload_file()</a>, <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.HfApi.upload_folder">upload_folder()</a> and <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.HfApi.create_commit">create_commit()</a> have a <code>run_as_future: bool</code>
argument to directly call them in the background. This is equivalent to calling <code>api.run_as_future(...)</code> on them
but less verbose.`,Hb,xa,Ub,Xe,Ci,Jb,qp,q2="Scale Inference Endpoint to zero.",Ab,Np,N2=`An Inference Endpoint scaled to zero will not be charged. It will be resume on the next request to it, with a
cold start delay. This is different than pausing the Inference Endpoint with <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.HfApi.pause_inference_endpoint">pause_inference_endpoint()</a>, which
would require a manual resume with <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.HfApi.resume_inference_endpoint">resume_inference_endpoint()</a>.`,qb,Ep,E2='For convenience, you can also scale an Inference Endpoint to zero using <a href="/docs/huggingface_hub/main/en/package_reference/inference_endpoints#huggingface_hub.InferenceEndpoint.scale_to_zero">InferenceEndpoint.scale_to_zero()</a>.',Nb,Ye,Ii,Eb,Rp,R2="Set a custom sleep time for a Space running on upgraded hardware..",Rb,Gp,G2=`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>.`,Gb,$a,Db,W,Hi,Fb,Dp,D2="Download repo files.",Sb,Fp,F2=`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>.`,Zb,Sp,S2=`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:`,Lb,Zp,Z2=`<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>`,Bb,Lp,L2=`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.`,Wb,va,Vb,Pe,Ui,Xb,Bp,B2="Get info on one specific Space on huggingface.co.",Yb,Wp,W2="Space can be private if you pass an acceptable token.",Pb,Ma,zb,K,Ji,Ob,Vp,V2="Squash commit history on a branch for a repo on the Hub.",Qb,Xp,X2=`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.`,Kb,wa,ey,ja,ty,Ta,ny,ze,Ai,oy,Yp,Y2="Unlike a given repo on the Hub (e.g. remove from favorite list).",ay,Pp,P2='See also <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.HfApi.like">like()</a> and <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.HfApi.list_liked_repos">list_liked_repos()</a>.',sy,ka,iy,sn,qi,ry,zp,z2="Update an item in a collection.",ly,Ca,cy,ge,Ni,py,Op,O2="Update metadata of a collection on the Hub.",dy,Qp,Q2="All arguments are optional. Only provided metadata will be updated.",gy,Kp,K2='Returns: <a href="/docs/huggingface_hub/main/en/package_reference/collections#huggingface_hub.Collection">Collection</a>',hy,Ia,uy,Oe,Ei,my,ed,e1="Update an Inference Endpoint.",fy,td,t1=`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.`,_y,nd,n1='For convenience, you can also update an Inference Endpoint using <a href="/docs/huggingface_hub/main/en/package_reference/inference_endpoints#huggingface_hub.InferenceEndpoint.update">InferenceEndpoint.update()</a>.',by,rn,Ri,yy,od,o1="Update the visibility setting of a repository.",xy,Ha,$y,he,Gi,vy,ad,a1=`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.`,My,Ua,wy,Ja,jy,Aa,Ty,N,Di,ky,sd,s1=`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.`,Cy,id,i1=`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.`,Iy,rd,r1=`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.`,Hy,ld,l1=`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.`,Uy,cd,c1=`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.`,Jy,pd,p1="Uses <code>HfApi.create_commit</code> under the hood.",Ay,qa,qy,Na,Ny,Ea,Ey,Ra,Ry,Ga,Fi,Gy,dd,d1="Call HF API to know “whoami”.",Ig,G,Si,Dy,gd,g1="Split a list of operations in a list of commits to perform.",Fy,hd,h1="Implementation follows a sub-optimal (yet simple) algorithm:",Sy,ud,u1=`<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>`,Zy,md,m1=`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.`,Ly,Da,By,Fa,Wy,Sa,Hg,Zi,Ug,Li,Jg,et,Bi,Vy,fd,f1="Data structure containing information about a newly created commit.",Xy,_d,_1='Returned by <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.HfApi.create_commit">create_commit()</a>.',Ag,Wi,qg,tt,Vi,Yy,bd,b1="Contains information about a dataset on the Hub.",Py,Za,Ng,Xi,Eg,fn,Yi,zy,yd,y1="Contains information about a git reference for a repo on the Hub.",Rg,Pi,Gg,_n,zi,Oy,xd,x1='Contains information about a git commit for a repo on the Hub. Check out <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.HfApi.list_repo_commits">list_repo_commits()</a> for more details.',Dg,Oi,Fg,nt,Qi,Qy,$d,$1="Contains information about all git references for a repo on the Hub.",Ky,vd,v1='Object is returned by <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.HfApi.list_repo_refs">list_repo_refs()</a>.',Sg,Ki,Zg,ot,er,ex,Md,M1="Contains information about a model on the Hub.",tx,La,Lg,tr,Bg,at,nr,nx,wd,w1="Contains basic information about a repo file inside a repo on the Hub.",ox,Ba,Wg,or,Vg,bn,ar,ax,jd,j1="Contains information about a file on the Hub.",Xg,sr,Yg,ee,ir,sx,Td,T1="Subclass of <code>str</code> describing a repo URL on the Hub.",ix,kd,k1=`<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:`,rx,Cd,C1="<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>",lx,Wa,Pg,rr,zg,te,lr,cx,Id,I1="Metadata for a Safetensors repo.",px,Hd,H1=`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.`,dx,Ud,U1='This class is returned by <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.HfApi.get_safetensors_metadata">get_safetensors_metadata()</a>.',gx,Jd,J1='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>.',Og,cr,Qg,me,pr,hx,Ad,A1="Metadata for a Safetensors file hosted on the Hub.",ux,qd,q1='This class is returned by <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.HfApi.parse_safetensors_file_metadata">parse_safetensors_file_metadata()</a>.',mx,Nd,N1='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>.',Kg,dr,eh,st,gr,fx,Ed,E1="Contains information about a Space on the Hub.",_x,Va,th,hr,nh,it,ur,bx,Rd,R1="Information about a tensor.",yx,Gd,G1='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>.',oh,mr,ah,yn,fr,xx,Dd,D1="Contains information about a user on the Hub.",sh,_r,ih,xn,br,$x,Fd,F1="Contains information about a user likes on the Hub.",rh,yr,lh,xr,S1="Below are the supported values for <code>CommitOperation()</code>:",ch,fe,$r,vx,Sd,Z1="Data structure holding necessary info to upload a file to a repository on the Hub.",Mx,ln,vr,wx,Zd,L1=`A context manager that yields a file-like object allowing to read the underlying
data behind <code>path_or_fileobj</code>.`,jx,Xa,Tx,cn,Mr,kx,Ld,B1="The base64-encoded content of <code>path_or_fileobj</code>",Cx,Bd,W1="Returns: <code>bytes</code>",ph,$n,wr,Ix,Wd,V1=`Data structure holding necessary info to delete a file or a folder from a repository
on the Hub.`,dh,ne,jr,Hx,Vd,X1="Data structure holding necessary info to copy a file in a repository on the Hub.",Ux,Xd,Y1="Limitations:",Jx,Yd,P1="<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>",Ax,Pd,z1='Note: you can combine a <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.CommitOperationCopy">CommitOperationCopy</a> and a <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.CommitOperationDelete">CommitOperationDelete</a> to rename an LFS file on the Hub.',gh,Tr,hh,F,kr,qx,zd,O1="Scheduler to upload a local folder to the Hub at regular intervals (e.g. push to hub every 5 minutes).",Nx,Od,Q1=`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.`,Ex,Ya,Rx,Qe,Cr,Gx,Qd,K1="Push folder to the Hub and return the commit info.",Dx,Pa,Fx,Kd,eM=`The default behavior of <code>push_to_hub</code> is to assume an append-only folder. It lists all files in the folder and
uploads only changed files. If no changes are found, the method returns without committing anything. If you want
to change this behavior, you can inherit from <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.CommitScheduler">CommitScheduler</a> and override this method. This can be useful
for example to compress data together in a single file before committing. For more details and examples, check
out our <a href="https://huggingface.co/docs/huggingface_hub/main/en/guides/upload#scheduled-uploads" rel="nofollow">integration guide</a>.`,Sx,pn,Ir,Zx,eg,tM="Stop the scheduler.",Lx,tg,nM="A stopped scheduler cannot be restarted. Mostly for tests purposes.",Bx,dn,Hr,Wx,ng,oM="Trigger a <code>push_to_hub</code> and return a future.",Vx,og,aM=`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.`,uh,Ur,mh,Jr,sM=`<code>huggingface_hub</code> stores the authentication information locally so that it may be re-used in subsequent
methods.`,fh,Ar,iM='It does this using the <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.HfFolder">HfFolder</a> utility, which saves data at the root of the user.',_h,_e,qr,Xx,za,Nr,Yx,ag,rM="Deletes the token from storage. Does not fail if token does not exist.",Px,Ke,Er,zx,sg,lM="Get token or None if not existent.",Ox,ig,cM="Note that a token can be also provided using the <code>HF_TOKEN</code> environment variable.",Qx,rg,pM=`Token is saved in the huggingface home folder. You can configure it by setting
the <code>HF_HOME</code> environment variable. Previous location was <code>~/.huggingface/token</code>.
If token is found in old location but not in new location, it is copied there first.
For more details, see <a href="https://github.com/huggingface/huggingface_hub/issues/1232" rel="nofollow">https://github.com/huggingface/huggingface_hub/issues/1232</a>.`,Kx,gn,Rr,e$,lg,dM="Save token, creating folder as needed.",t$,cg,gM=`Token is saved in the huggingface home folder. You can configure it by setting
the <code>HF_HOME</code> environment variable.`,bh,Gr,yh,Dr,hM="Some helpers to filter repositories on the Hub are available in the <code>huggingface_hub</code> package.",xh,Fr,$h,rt,Sr,n$,pg,uM=`A class that converts human-readable dataset search parameters into ones
compatible with the REST API. For all parameters capitalization does not
matter.`,o$,Oa,vh,Zr,Mh,lt,Lr,a$,dg,mM=`A class that converts human-readable model search parameters into ones
compatible with the REST API. For all parameters capitalization does not
matter.`,s$,Qa,wh,Mg,jh;return x=new R({props:{title:"HfApi Client",local:"hfapi-client",headingTag:"h1"}}),is=new H({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMEhmQXBpJTJDJTIwbGlzdF9tb2RlbHMlMEElMEElMjMlMjBVc2UlMjByb290JTIwbWV0aG9kJTBBbW9kZWxzJTIwJTNEJTIwbGlzdF9tb2RlbHMoKSUwQSUwQSUyMyUyME9yJTIwY29uZmlndXJlJTIwYSUyMEhmQXBpJTIwY2xpZW50JTBBaGZfYXBpJTIwJTNEJTIwSGZBcGkoJTBBJTIwJTIwJTIwJTIwZW5kcG9pbnQlM0QlMjJodHRwcyUzQSUyRiUyRmh1Z2dpbmdmYWNlLmNvJTIyJTJDJTIwJTIzJTIwQ2FuJTIwYmUlMjBhJTIwUHJpdmF0ZSUyMEh1YiUyMGVuZHBvaW50LiUwQSUyMCUyMCUyMCUyMHRva2VuJTNEJTIyaGZfeHh4JTIyJTJDJTIwJTIzJTIwVG9rZW4lMjBpcyUyMG5vdCUyMHBlcnNpc3RlZCUyMG9uJTIwdGhlJTIwbWFjaGluZS4lMEEpJTBBbW9kZWxzJTIwJTNEJTIwaGZfYXBpLmxpc3RfbW9kZWxzKCk=",highlighted:`<span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> HfApi, list_models

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

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


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


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


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


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


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


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


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


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


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


<p><code>ValueError</code> or <a
  href="/docs/huggingface_hub/main/en/package_reference/utilities#huggingface_hub.utils.RepositoryNotFoundError"
>RepositoryNotFoundError</a></p>
`}}),no=new J({props:{warning:!0,$$slots:{default:[IM]},$$scope:{ctx:M}}}),oo=new J({props:{warning:!0,$$slots:{default:[HM]},$$scope:{ctx:M}}}),ao=new J({props:{warning:!0,$$slots:{default:[UM]},$$scope:{ctx:M}}}),_s=new C({props:{name:"create_commits_on_pr",anchor:"huggingface_hub.HfApi.create_commits_on_pr",parameters:[{name:"repo_id",val:": str"},{name:"addition_commits",val:": List[List[CommitOperationAdd]]"},{name:"deletion_commits",val:": List[List[CommitOperationDelete]]"},{name:"commit_message",val:": str"},{name:"commit_description",val:": Optional[str] = None"},{name:"token",val:": Optional[str] = None"},{name:"repo_type",val:": Optional[str] = None"},{name:"merge_pr",val:": bool = True"},{name:"num_threads",val:": int = 5"},{name:"verbose",val:": bool = False"}],parametersDescription:[{anchor:"huggingface_hub.HfApi.create_commits_on_pr.repo_id",description:`<strong>repo_id</strong> (<code>str</code>) &#x2014;
The repository in which the commits will be pushed. Example: <code>&quot;username/my-cool-model&quot;</code>.`,name:"repo_id"},{anchor:"huggingface_hub.HfApi.create_commits_on_pr.addition_commits",description:`<strong>addition_commits</strong> (<code>List</code> of <code>List</code> of <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.CommitOperationAdd">CommitOperationAdd</a>) &#x2014;
A list containing lists of <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.CommitOperationAdd">CommitOperationAdd</a>. Each sublist will result in a commit on the
PR.</p>
<p>deletion_commits &#x2014;
A list containing lists of <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.CommitOperationDelete">CommitOperationDelete</a>. Each sublist will result in a commit on
the PR. Deletion commits are pushed before addition commits.`,name:"addition_commits"},{anchor:"huggingface_hub.HfApi.create_commits_on_pr.commit_message",description:`<strong>commit_message</strong> (<code>str</code>) &#x2014;
The summary (first line) of the commit that will be created. Will also be the title of the PR.`,name:"commit_message"},{anchor:"huggingface_hub.HfApi.create_commits_on_pr.commit_description",description:`<strong>commit_description</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The description of the commit that will be created. The description will be added to the PR.`,name:"commit_description"},{anchor:"huggingface_hub.HfApi.create_commits_on_pr.token",description:`<strong>token</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Authentication token, obtained with <code>HfApi.login</code> method. Will default to the stored token.`,name:"token"},{anchor:"huggingface_hub.HfApi.create_commits_on_pr.repo_type",description:`<strong>repo_type</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Set to <code>&quot;dataset&quot;</code> or <code>&quot;space&quot;</code> if uploading to a dataset or space, <code>None</code> or <code>&quot;model&quot;</code> if uploading to
a model. Default is <code>None</code>.`,name:"repo_type"},{anchor:"huggingface_hub.HfApi.create_commits_on_pr.merge_pr",description:`<strong>merge_pr</strong> (<code>bool</code>) &#x2014;
If set to <code>True</code>, the Pull Request is merged at the end of the process. Defaults to <code>True</code>.`,name:"merge_pr"},{anchor:"huggingface_hub.HfApi.create_commits_on_pr.num_threads",description:`<strong>num_threads</strong> (<code>int</code>, <em>optional</em>) &#x2014;
Number of concurrent threads for uploading files. Defaults to 5.`,name:"num_threads"},{anchor:"huggingface_hub.HfApi.create_commits_on_pr.verbose",description:`<strong>verbose</strong> (<code>bool</code>) &#x2014;
If set to <code>True</code>, process will run on verbose mode i.e. print information about the ongoing tasks.
Defaults to <code>False</code>.`,name:"verbose"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/hf_api.py#L3579",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>
`}}),so=new J({props:{warning:!0,$$slots:{default:[JM]},$$scope:{ctx:M}}}),io=new J({props:{warning:!0,$$slots:{default:[AM]},$$scope:{ctx:M}}}),ro=new U({props:{anchor:"huggingface_hub.HfApi.create_commits_on_pr.example",$$slots:{default:[qM]},$$scope:{ctx:M}}}),bs=new C({props:{name:"create_discussion",anchor:"huggingface_hub.HfApi.create_discussion",parameters:[{name:"repo_id",val:": str"},{name:"title",val:": str"},{name:"token",val:": Optional[str] = None"},{name:"description",val:": Optional[str] = None"},{name:"repo_type",val:": Optional[str] = None"},{name:"pull_request",val:": bool = False"}],parametersDescription:[{anchor:"huggingface_hub.HfApi.create_discussion.repo_id",description:`<strong>repo_id</strong> (<code>str</code>) &#x2014;
A namespace (user or an organization) and a repo name separated
by a <code>/</code>.`,name:"repo_id"},{anchor:"huggingface_hub.HfApi.create_discussion.title",description:`<strong>title</strong> (<code>str</code>) &#x2014;
The title of the discussion. It can be up to 200 characters long,
and must be at least 3 characters long. Leading and trailing whitespaces
will be stripped.`,name:"title"},{anchor:"huggingface_hub.HfApi.create_discussion.token",description:`<strong>token</strong> (<code>str</code>, <em>optional</em>) &#x2014;
An authentication token (See <a href="https://huggingface.co/settings/token" rel="nofollow">https://huggingface.co/settings/token</a>)`,name:"token"},{anchor:"huggingface_hub.HfApi.create_discussion.description",description:`<strong>description</strong> (<code>str</code>, <em>optional</em>) &#x2014;
An optional description for the Pull Request.
Defaults to <code>&quot;Discussion opened with the huggingface_hub Python library&quot;</code>`,name:"description"},{anchor:"huggingface_hub.HfApi.create_discussion.pull_request",description:`<strong>pull_request</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether to create a Pull Request or discussion. If <code>True</code>, creates a Pull Request.
If <code>False</code>, creates a discussion. Defaults to <code>False</code>.`,name:"pull_request"},{anchor:"huggingface_hub.HfApi.create_discussion.repo_type",description:`<strong>repo_type</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Set to <code>&quot;dataset&quot;</code> or <code>&quot;space&quot;</code> if uploading to a dataset or
space, <code>None</code> or <code>&quot;model&quot;</code> if uploading to a model. Default is
<code>None</code>.`,name:"repo_type"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/hf_api.py#L5657"}}),lo=new J({props:{$$slots:{default:[NM]},$$scope:{ctx:M}}}),ys=new C({props:{name:"create_inference_endpoint",anchor:"huggingface_hub.HfApi.create_inference_endpoint",parameters:[{name:"name",val:": str"},{name:"repository",val:": str"},{name:"framework",val:": str"},{name:"accelerator",val:": str"},{name:"instance_size",val:": str"},{name:"instance_type",val:": str"},{name:"region",val:": str"},{name:"vendor",val:": str"},{name:"account_id",val:": Optional[str] = None"},{name:"min_replica",val:": int = 0"},{name:"max_replica",val:": int = 1"},{name:"revision",val:": Optional[str] = None"},{name:"task",val:": Optional[str] = None"},{name:"custom_image",val:": Optional[Dict] = None"},{name:"type",val:": InferenceEndpointType = <InferenceEndpointType.PROTECTED: 'protected'>"},{name:"namespace",val:": Optional[str] = None"},{name:"token",val:": Optional[str] = None"}],parametersDescription:[{anchor:"huggingface_hub.HfApi.create_inference_endpoint.name",description:`<strong>name</strong> (<code>str</code>) &#x2014;
The unique name for the new Inference Endpoint.`,name:"name"},{anchor:"huggingface_hub.HfApi.create_inference_endpoint.repository",description:`<strong>repository</strong> (<code>str</code>) &#x2014;
The name of the model repository associated with the Inference Endpoint (e.g. <code>&quot;gpt2&quot;</code>).`,name:"repository"},{anchor:"huggingface_hub.HfApi.create_inference_endpoint.framework",description:`<strong>framework</strong> (<code>str</code>) &#x2014;
The machine learning framework used for the model (e.g. <code>&quot;custom&quot;</code>).`,name:"framework"},{anchor:"huggingface_hub.HfApi.create_inference_endpoint.accelerator",description:`<strong>accelerator</strong> (<code>str</code>) &#x2014;
The hardware accelerator to be used for inference (e.g. <code>&quot;cpu&quot;</code>).`,name:"accelerator"},{anchor:"huggingface_hub.HfApi.create_inference_endpoint.instance_size",description:`<strong>instance_size</strong> (<code>str</code>) &#x2014;
The size or type of the instance to be used for hosting the model (e.g. <code>&quot;large&quot;</code>).`,name:"instance_size"},{anchor:"huggingface_hub.HfApi.create_inference_endpoint.instance_type",description:`<strong>instance_type</strong> (<code>str</code>) &#x2014;
The cloud instance type where the Inference Endpoint will be deployed (e.g. <code>&quot;c6i&quot;</code>).`,name:"instance_type"},{anchor:"huggingface_hub.HfApi.create_inference_endpoint.region",description:`<strong>region</strong> (<code>str</code>) &#x2014;
The cloud region in which the Inference Endpoint will be created (e.g. <code>&quot;us-east-1&quot;</code>).`,name:"region"},{anchor:"huggingface_hub.HfApi.create_inference_endpoint.vendor",description:`<strong>vendor</strong> (<code>str</code>) &#x2014;
The cloud provider or vendor where the Inference Endpoint will be hosted (e.g. <code>&quot;aws&quot;</code>).`,name:"vendor"},{anchor:"huggingface_hub.HfApi.create_inference_endpoint.account_id",description:`<strong>account_id</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The account ID used to link a VPC to a private Inference Endpoint (if applicable).`,name:"account_id"},{anchor:"huggingface_hub.HfApi.create_inference_endpoint.min_replica",description:`<strong>min_replica</strong> (<code>int</code>, <em>optional</em>) &#x2014;
The minimum number of replicas (instances) to keep running for the Inference Endpoint. Defaults to 0.`,name:"min_replica"},{anchor:"huggingface_hub.HfApi.create_inference_endpoint.max_replica",description:`<strong>max_replica</strong> (<code>int</code>, <em>optional</em>) &#x2014;
The maximum number of replicas (instances) to scale to for the Inference Endpoint. Defaults to 1.`,name:"max_replica"},{anchor:"huggingface_hub.HfApi.create_inference_endpoint.revision",description:`<strong>revision</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The specific model revision to deploy on the Inference Endpoint (e.g. <code>&quot;6c0e6080953db56375760c0471a8c5f2929baf11&quot;</code>).`,name:"revision"},{anchor:"huggingface_hub.HfApi.create_inference_endpoint.task",description:`<strong>task</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The task on which to deploy the model (e.g. <code>&quot;text-classification&quot;</code>).`,name:"task"},{anchor:"huggingface_hub.HfApi.create_inference_endpoint.custom_image",description:`<strong>custom_image</strong> (<code>Dict</code>, <em>optional</em>) &#x2014;
A custom Docker image to use for the Inference Endpoint. This is useful if you want to deploy an
Inference Endpoint running on the <code>text-generation-inference</code> (TGI) framework (see examples).`,name:"custom_image"},{anchor:"huggingface_hub.HfApi.create_inference_endpoint.type",description:"<strong>type</strong> ([`InferenceEndpointType]<code>, *optional*) -- The type of the Inference Endpoint, which can be </code>&#x201C;protected&#x201D;<code>(default),</code>&#x201C;public&#x201D;<code>or</code>&#x201C;private&#x201D;`.",name:"type"},{anchor:"huggingface_hub.HfApi.create_inference_endpoint.namespace",description:`<strong>namespace</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The namespace where the Inference Endpoint will be created. Defaults to the current user&#x2019;s namespace.`,name:"namespace"},{anchor:"huggingface_hub.HfApi.create_inference_endpoint.token",description:`<strong>token</strong> (<code>str</code>, <em>optional</em>) &#x2014;
An authentication token (See <a href="https://huggingface.co/settings/token" rel="nofollow">https://huggingface.co/settings/token</a>).`,name:"token"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/hf_api.py#L6781",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


<p><code>Iterator[Discussion]</code></p>
`}}),No=new U({props:{anchor:"huggingface_hub.HfApi.get_repo_discussions.example",$$slots:{default:[QM]},$$scope:{ctx:M}}}),Eo=new U({props:{anchor:"huggingface_hub.HfApi.get_repo_discussions.example-2",$$slots:{default:[KM]},$$scope:{ctx:M}}}),Xs=new C({props:{name:"get_safetensors_metadata",anchor:"huggingface_hub.HfApi.get_safetensors_metadata",parameters:[{name:"repo_id",val:": str"},{name:"repo_type",val:": Optional[str] = None"},{name:"revision",val:": Optional[str] = None"},{name:"token",val:": Optional[str] = None"}],parametersDescription:[{anchor:"huggingface_hub.HfApi.get_safetensors_metadata.repo_id",description:`<strong>repo_id</strong> (<code>str</code>) &#x2014;
A user or an organization name and a repo name separated by a <code>/</code>.`,name:"repo_id"},{anchor:"huggingface_hub.HfApi.get_safetensors_metadata.filename",description:`<strong>filename</strong> (<code>str</code>) &#x2014;
The name of the file in the repo.`,name:"filename"},{anchor:"huggingface_hub.HfApi.get_safetensors_metadata.repo_type",description:`<strong>repo_type</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Set to <code>&quot;dataset&quot;</code> or <code>&quot;space&quot;</code> if the file is in a dataset or space, <code>None</code> or <code>&quot;model&quot;</code> if in a
model. Default is <code>None</code>.`,name:"repo_type"},{anchor:"huggingface_hub.HfApi.get_safetensors_metadata.revision",description:`<strong>revision</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The git revision to fetch the file from. Can be a branch name, a tag, or a commit hash. Defaults to the
head of the <code>&quot;main&quot;</code> branch.`,name:"revision"},{anchor:"huggingface_hub.HfApi.get_safetensors_metadata.token",description:`<strong>token</strong> (<code>bool</code> or <code>str</code>, <em>optional</em>) &#x2014;
A valid authentication token (see <a href="https://huggingface.co/settings/token" rel="nofollow">https://huggingface.co/settings/token</a>). If <code>None</code> or <code>True</code> and
machine is logged in (through <code>huggingface-cli login</code> or <a href="/docs/huggingface_hub/main/en/package_reference/login#huggingface_hub.login">login()</a>), token will be
retrieved from the cache. If <code>False</code>, token is not sent in the request header.`,name:"token"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/hf_api.py#L4985",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>
`}}),Ro=new U({props:{anchor:"huggingface_hub.HfApi.get_safetensors_metadata.example",$$slots:{default:[ew]},$$scope:{ctx:M}}}),Ys=new C({props:{name:"get_space_runtime",anchor:"huggingface_hub.HfApi.get_space_runtime",parameters:[{name:"repo_id",val:": str"},{name:"token",val:": Optional[str] = None"}],parametersDescription:[{anchor:"huggingface_hub.HfApi.get_space_runtime.repo_id",description:`<strong>repo_id</strong> (<code>str</code>) &#x2014;
ID of the repo to update. Example: <code>&quot;bigcode/in-the-stack&quot;</code>.`,name:"repo_id"},{anchor:"huggingface_hub.HfApi.get_space_runtime.token",description:`<strong>token</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Hugging Face token. Will default to the locally saved token if
not provided.`,name:"token"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/hf_api.py#L6349",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


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


<p><a
  href="/docs/huggingface_hub/main/en/package_reference/space_runtime#huggingface_hub.SpaceRuntime"
>SpaceRuntime</a></p>
`}}),Ps=new C({props:{name:"get_space_variables",anchor:"huggingface_hub.HfApi.get_space_variables",parameters:[{name:"repo_id",val:": str"},{name:"token",val:": Optional[str] = None"}],parametersDescription:[{anchor:"huggingface_hub.HfApi.get_space_variables.repo_id",description:`<strong>repo_id</strong> (<code>str</code>) &#x2014;
ID of the repo to query. Example: <code>&quot;bigcode/in-the-stack&quot;</code>.`,name:"repo_id"},{anchor:"huggingface_hub.HfApi.get_space_variables.token",description:`<strong>token</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Hugging Face token. Will default to the locally saved token if not provided.`,name:"token"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/hf_api.py#L6272"}}),zs=new C({props:{name:"get_token_permission",anchor:"huggingface_hub.HfApi.get_token_permission",parameters:[{name:"token",val:": Optional[str] = None"}],parametersDescription:[{anchor:"huggingface_hub.HfApi.get_token_permission.token",description:`<strong>token</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The token to check for validity. Defaults to the one saved locally.`,name:"token"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/hf_api.py#L1277",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>
`}}),Os=new C({props:{name:"hf_hub_download",anchor:"huggingface_hub.HfApi.hf_hub_download",parameters:[{name:"repo_id",val:": str"},{name:"filename",val:": str"},{name:"subfolder",val:": Optional[str] = None"},{name:"repo_type",val:": Optional[str] = None"},{name:"revision",val:": Optional[str] = None"},{name:"cache_dir",val:": Union[str, Path, None] = None"},{name:"local_dir",val:": Union[str, Path, None] = None"},{name:"local_dir_use_symlinks",val:": Union[bool, Literal['auto']] = 'auto'"},{name:"force_download",val:": bool = False"},{name:"force_filename",val:": Optional[str] = None"},{name:"proxies",val:": Optional[Dict] = None"},{name:"etag_timeout",val:": float = 10"},{name:"resume_download",val:": bool = False"},{name:"token",val:": Optional[Union[str, bool]] = None"},{name:"local_files_only",val:": bool = False"},{name:"legacy_cache_layout",val:": bool = False"}],parametersDescription:[{anchor:"huggingface_hub.HfApi.hf_hub_download.repo_id",description:`<strong>repo_id</strong> (<code>str</code>) &#x2014;
A user or an organization name and a repo name separated by a <code>/</code>.`,name:"repo_id"},{anchor:"huggingface_hub.HfApi.hf_hub_download.filename",description:`<strong>filename</strong> (<code>str</code>) &#x2014;
The name of the file in the repo.`,name:"filename"},{anchor:"huggingface_hub.HfApi.hf_hub_download.subfolder",description:`<strong>subfolder</strong> (<code>str</code>, <em>optional</em>) &#x2014;
An optional value corresponding to a folder inside the model repo.`,name:"subfolder"},{anchor:"huggingface_hub.HfApi.hf_hub_download.repo_type",description:`<strong>repo_type</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Set to <code>&quot;dataset&quot;</code> or <code>&quot;space&quot;</code> if downloading from a dataset or space,
<code>None</code> or <code>&quot;model&quot;</code> if downloading from a model. Default is <code>None</code>.`,name:"repo_type"},{anchor:"huggingface_hub.HfApi.hf_hub_download.revision",description:`<strong>revision</strong> (<code>str</code>, <em>optional</em>) &#x2014;
An optional Git revision id which can be a branch name, a tag, or a
commit hash.`,name:"revision"},{anchor:"huggingface_hub.HfApi.hf_hub_download.cache_dir",description:`<strong>cache_dir</strong> (<code>str</code>, <code>Path</code>, <em>optional</em>) &#x2014;
Path to the folder where cached files are stored.`,name:"cache_dir"},{anchor:"huggingface_hub.HfApi.hf_hub_download.local_dir",description:`<strong>local_dir</strong> (<code>str</code> or <code>Path</code>, <em>optional</em>) &#x2014;
If provided, the downloaded file will be placed under this directory, either as a symlink (default) or
a regular file (see description for more details).`,name:"local_dir"},{anchor:"huggingface_hub.HfApi.hf_hub_download.local_dir_use_symlinks",description:`<strong>local_dir_use_symlinks</strong> (<code>&quot;auto&quot;</code> or <code>bool</code>, defaults to <code>&quot;auto&quot;</code>) &#x2014;
To be used with <code>local_dir</code>. If set to &#x201C;auto&#x201D;, the cache directory will be used and the file will be either
duplicated or symlinked to the local directory depending on its size. It set to <code>True</code>, a symlink will be
created, no matter the file size. If set to <code>False</code>, the file will either be duplicated from cache (if
already exists) or downloaded from the Hub and not cached. See description for more details.`,name:"local_dir_use_symlinks"},{anchor:"huggingface_hub.HfApi.hf_hub_download.force_download",description:`<strong>force_download</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether the file should be downloaded even if it already exists in
the local cache.`,name:"force_download"},{anchor:"huggingface_hub.HfApi.hf_hub_download.proxies",description:`<strong>proxies</strong> (<code>dict</code>, <em>optional</em>) &#x2014;
Dictionary mapping protocol to the URL of the proxy passed to
<code>requests.request</code>.`,name:"proxies"},{anchor:"huggingface_hub.HfApi.hf_hub_download.etag_timeout",description:`<strong>etag_timeout</strong> (<code>float</code>, <em>optional</em>, defaults to <code>10</code>) &#x2014;
When fetching ETag, how many seconds to wait for the server to send
data before giving up which is passed to <code>requests.request</code>.`,name:"etag_timeout"},{anchor:"huggingface_hub.HfApi.hf_hub_download.resume_download",description:`<strong>resume_download</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
If <code>True</code>, resume a previously interrupted download.`,name:"resume_download"},{anchor:"huggingface_hub.HfApi.hf_hub_download.token",description:`<strong>token</strong> (<code>bool</code> or <code>str</code>, <em>optional</em>) &#x2014;
A valid authentication token (see <a href="https://huggingface.co/settings/token" rel="nofollow">https://huggingface.co/settings/token</a>).
If <code>None</code> or <code>True</code> and machine is logged in (through <code>huggingface-cli login</code>
or <a href="/docs/huggingface_hub/main/en/package_reference/login#huggingface_hub.login">login()</a>), token will be retrieved from the cache.
If <code>False</code>, token is not sent in the request header.`,name:"token"},{anchor:"huggingface_hub.HfApi.hf_hub_download.local_files_only",description:`<strong>local_files_only</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
If <code>True</code>, avoid downloading the file and return the path to the
local cached file if it exists.`,name:"local_files_only"},{anchor:"huggingface_hub.HfApi.hf_hub_download.legacy_cache_layout",description:`<strong>legacy_cache_layout</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
If <code>True</code>, uses the legacy file cache layout i.e. just call <a href="/docs/huggingface_hub/main/en/package_reference/file_download#huggingface_hub.hf_hub_url">hf_hub_url()</a>
then <code>cached_download</code>. This is deprecated as the new cache layout is
more powerful.`,name:"legacy_cache_layout"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/hf_api.py#L4675",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>
`}}),Do=new U({props:{anchor:"huggingface_hub.HfApi.hf_hub_download.example",$$slots:{default:[tw]},$$scope:{ctx:M}}}),Fo=new J({props:{$$slots:{default:[nw]},$$scope:{ctx:M}}}),Qs=new C({props:{name:"hide_discussion_comment",anchor:"huggingface_hub.HfApi.hide_discussion_comment",parameters:[{name:"repo_id",val:": str"},{name:"discussion_num",val:": int"},{name:"comment_id",val:": str"},{name:"token",val:": Optional[str] = None"},{name:"repo_type",val:": Optional[str] = None"}],parametersDescription:[{anchor:"huggingface_hub.HfApi.hide_discussion_comment.repo_id",description:`<strong>repo_id</strong> (<code>str</code>) &#x2014;
A namespace (user or an organization) and a repo name separated
by a <code>/</code>.`,name:"repo_id"},{anchor:"huggingface_hub.HfApi.hide_discussion_comment.discussion_num",description:`<strong>discussion_num</strong> (<code>int</code>) &#x2014;
The number of the Discussion or Pull Request . Must be a strictly positive integer.`,name:"discussion_num"},{anchor:"huggingface_hub.HfApi.hide_discussion_comment.comment_id",description:`<strong>comment_id</strong> (<code>str</code>) &#x2014;
The ID of the comment to edit.`,name:"comment_id"},{anchor:"huggingface_hub.HfApi.hide_discussion_comment.repo_type",description:`<strong>repo_type</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Set to <code>&quot;dataset&quot;</code> or <code>&quot;space&quot;</code> if uploading to a dataset or
space, <code>None</code> or <code>&quot;model&quot;</code> if uploading to a model. Default is
<code>None</code>.`,name:"repo_type"},{anchor:"huggingface_hub.HfApi.hide_discussion_comment.token",description:`<strong>token</strong> (<code>str</code>, <em>optional</em>) &#x2014;
An authentication token (See <a href="https://huggingface.co/settings/token" rel="nofollow">https://huggingface.co/settings/token</a>)`,name:"token"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/hf_api.py#L6158",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


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


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


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


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


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


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


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


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


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


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


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


<p><a
  href="/docs/huggingface_hub/main/en/package_reference/utilities#huggingface_hub.utils.RepositoryNotFoundError"
>RepositoryNotFoundError</a> or <a
  href="/docs/huggingface_hub/main/en/package_reference/utilities#huggingface_hub.utils.RevisionNotFoundError"
>RevisionNotFoundError</a></p>
`}}),Xo=new U({props:{anchor:"huggingface_hub.HfApi.list_files_info.example",$$slots:{default:[lw]},$$scope:{ctx:M}}}),Yo=new U({props:{anchor:"huggingface_hub.HfApi.list_files_info.example-2",$$slots:{default:[cw]},$$scope:{ctx:M}}}),Po=new U({props:{anchor:"huggingface_hub.HfApi.list_files_info.example-3",$$slots:{default:[pw]},$$scope:{ctx:M}}}),zo=new U({props:{anchor:"huggingface_hub.HfApi.list_files_info.example-4",$$slots:{default:[dw]},$$scope:{ctx:M}}}),oi=new C({props:{name:"list_inference_endpoints",anchor:"huggingface_hub.HfApi.list_inference_endpoints",parameters:[{name:"namespace",val:": Optional[str] = None"},{name:"token",val:": Optional[str] = None"}],parametersDescription:[{anchor:"huggingface_hub.HfApi.list_inference_endpoints.namespace",description:`<strong>namespace</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The namespace to list endpoints for. Defaults to the current user. Set to <code>&quot;*&quot;</code> to list all endpoints
from all namespaces (i.e. personal namespace and all orgs the user belongs to).`,name:"namespace"},{anchor:"huggingface_hub.HfApi.list_inference_endpoints.token",description:`<strong>token</strong> (<code>str</code>, <em>optional</em>) &#x2014;
An authentication token (See <a href="https://huggingface.co/settings/token" rel="nofollow">https://huggingface.co/settings/token</a>).`,name:"token"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/hf_api.py#L6726",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


<p><a
  href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.GitRefs"
>GitRefs</a></p>
`}}),aa=new U({props:{anchor:"huggingface_hub.HfApi.list_repo_refs.example",$$slots:{default:[_w]},$$scope:{ctx:M}}}),di=new C({props:{name:"list_repo_tree",anchor:"huggingface_hub.HfApi.list_repo_tree",parameters:[{name:"repo_id",val:": str"},{name:"path_in_repo",val:": Optional[str] = None"},{name:"recursive",val:": bool = False"},{name:"expand",val:": bool = False"},{name:"revision",val:": Optional[str] = None"},{name:"repo_type",val:": Optional[str] = None"},{name:"token",val:": Optional[Union[bool, str]] = None"}],parametersDescription:[{anchor:"huggingface_hub.HfApi.list_repo_tree.repo_id",description:`<strong>repo_id</strong> (<code>str</code>) &#x2014;
A namespace (user or an organization) and a repo name separated by a <code>/</code>.`,name:"repo_id"},{anchor:"huggingface_hub.HfApi.list_repo_tree.path_in_repo",description:`<strong>path_in_repo</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Relative path of the tree (folder) in the repo, for example:
<code>&quot;checkpoints/1fec34a/results&quot;</code>. Will default to the root tree (folder) of the repository.`,name:"path_in_repo"},{anchor:"huggingface_hub.HfApi.list_repo_tree.recursive",description:`<strong>recursive</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether to list tree&#x2019;s files and folders recursively.`,name:"recursive"},{anchor:"huggingface_hub.HfApi.list_repo_tree.expand",description:`<strong>expand</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether to fetch more information about the tree&#x2019;s files and folders (e.g. last commit and files&#x2019; security scan results). This
operation is more expensive for the server so only 50 results are returned per page (instead of 1000).
As pagination is implemented in <code>huggingface_hub</code>, this is transparent for you except for the time it
takes to get the results.`,name:"expand"},{anchor:"huggingface_hub.HfApi.list_repo_tree.revision",description:`<strong>revision</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The revision of the repository from which to get the tree. Defaults to <code>&quot;main&quot;</code> branch.`,name:"revision"},{anchor:"huggingface_hub.HfApi.list_repo_tree.repo_type",description:`<strong>repo_type</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The type of the repository from which to get the tree (<code>&quot;model&quot;</code>, <code>&quot;dataset&quot;</code> or <code>&quot;space&quot;</code>.
Defaults to <code>&quot;model&quot;</code>.`,name:"repo_type"},{anchor:"huggingface_hub.HfApi.list_repo_tree.token",description:`<strong>token</strong> (<code>bool</code> or <code>str</code>, <em>optional</em>) &#x2014;
A valid authentication token (see <a href="https://huggingface.co/settings/token" rel="nofollow">https://huggingface.co/settings/token</a>). If <code>None</code> or <code>True</code> and
machine is logged in (through <code>huggingface-cli login</code> or <a href="/docs/huggingface_hub/main/en/package_reference/login#huggingface_hub.login">login()</a>), token will be
retrieved from the cache. If <code>False</code>, token is not sent in the request header.`,name:"token"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/hf_api.py#L2567",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


<p><a
  href="/docs/huggingface_hub/main/en/package_reference/utilities#huggingface_hub.utils.RepositoryNotFoundError"
>RepositoryNotFoundError</a> or <a
  href="/docs/huggingface_hub/main/en/package_reference/utilities#huggingface_hub.utils.HfHubHTTPError"
>HfHubHTTPError</a> or <a
  href="/docs/huggingface_hub/main/en/package_reference/utilities#huggingface_hub.utils.BadRequestError"
>BadRequestError</a></p>
`}}),yi=new C({props:{name:"preupload_lfs_files",anchor:"huggingface_hub.HfApi.preupload_lfs_files",parameters:[{name:"repo_id",val:": str"},{name:"additions",val:": Iterable[CommitOperationAdd]"},{name:"token",val:": Optional[str] = None"},{name:"repo_type",val:": Optional[str] = None"},{name:"revision",val:": Optional[str] = None"},{name:"create_pr",val:": Optional[bool] = None"},{name:"num_threads",val:": int = 5"},{name:"free_memory",val:": bool = True"}],parametersDescription:[{anchor:"huggingface_hub.HfApi.preupload_lfs_files.repo_id",description:`<strong>repo_id</strong> (<code>str</code>) &#x2014;
The repository in which you will commit the files, for example: <code>&quot;username/custom_transformers&quot;</code>.`,name:"repo_id"},{anchor:"huggingface_hub.HfApi.preupload_lfs_files.operations",description:`<strong>operations</strong> (<code>Iterable</code> of <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.CommitOperationAdd">CommitOperationAdd</a>) &#x2014;
The list of files to upload. Warning: the objects in this list will be mutated to include information
relative to the upload. Do not reuse the same objects for multiple commits.`,name:"operations"},{anchor:"huggingface_hub.HfApi.preupload_lfs_files.token",description:`<strong>token</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Authentication token. Will default to the stored token.`,name:"token"},{anchor:"huggingface_hub.HfApi.preupload_lfs_files.repo_type",description:`<strong>repo_type</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The type of repository to upload to (e.g. <code>&quot;model&quot;</code> -default-, <code>&quot;dataset&quot;</code> or <code>&quot;space&quot;</code>).`,name:"repo_type"},{anchor:"huggingface_hub.HfApi.preupload_lfs_files.revision",description:`<strong>revision</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The git revision to commit from. Defaults to the head of the <code>&quot;main&quot;</code> branch.`,name:"revision"},{anchor:"huggingface_hub.HfApi.preupload_lfs_files.create_pr",description:`<strong>create_pr</strong> (<code>boolean</code>, <em>optional</em>) &#x2014;
Whether or not you plan to create a Pull Request with that commit. Defaults to <code>False</code>.`,name:"create_pr"},{anchor:"huggingface_hub.HfApi.preupload_lfs_files.num_threads",description:`<strong>num_threads</strong> (<code>int</code>, <em>optional</em>) &#x2014;
Number of concurrent threads for uploading files. Defaults to 5.
Setting it to 2 means at most 2 files will be uploaded concurrently.`,name:"num_threads"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/hf_api.py#L3879"}}),da=new J({props:{warning:!0,$$slots:{default:[Mw]},$$scope:{ctx:M}}}),ga=new J({props:{warning:!0,$$slots:{default:[ww]},$$scope:{ctx:M}}}),ha=new U({props:{anchor:"huggingface_hub.HfApi.preupload_lfs_files.example",$$slots:{default:[jw]},$$scope:{ctx:M}}}),xi=new C({props:{name:"rename_discussion",anchor:"huggingface_hub.HfApi.rename_discussion",parameters:[{name:"repo_id",val:": str"},{name:"discussion_num",val:": int"},{name:"new_title",val:": str"},{name:"token",val:": Optional[str] = None"},{name:"repo_type",val:": Optional[str] = None"}],parametersDescription:[{anchor:"huggingface_hub.HfApi.rename_discussion.repo_id",description:`<strong>repo_id</strong> (<code>str</code>) &#x2014;
A namespace (user or an organization) and a repo name separated
by a <code>/</code>.`,name:"repo_id"},{anchor:"huggingface_hub.HfApi.rename_discussion.discussion_num",description:`<strong>discussion_num</strong> (<code>int</code>) &#x2014;
The number of the Discussion or Pull Request . Must be a strictly positive integer.`,name:"discussion_num"},{anchor:"huggingface_hub.HfApi.rename_discussion.new_title",description:`<strong>new_title</strong> (<code>str</code>) &#x2014;
The new title for the discussion`,name:"new_title"},{anchor:"huggingface_hub.HfApi.rename_discussion.repo_type",description:`<strong>repo_type</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Set to <code>&quot;dataset&quot;</code> or <code>&quot;space&quot;</code> if uploading to a dataset or
space, <code>None</code> or <code>&quot;model&quot;</code> if uploading to a model. Default is
<code>None</code>.`,name:"repo_type"},{anchor:"huggingface_hub.HfApi.rename_discussion.token",description:`<strong>token</strong> (<code>str</code>, <em>optional</em>) &#x2014;
An authentication token (See <a href="https://huggingface.co/settings/token" rel="nofollow">https://huggingface.co/settings/token</a>)`,name:"token"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/hf_api.py#L5906",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


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


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


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


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


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


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


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


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


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


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


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


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


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


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


<p><a
  href="/docs/huggingface_hub/main/en/package_reference/inference_endpoints#huggingface_hub.InferenceEndpoint"
>InferenceEndpoint</a></p>
`}}),ki=new C({props:{name:"run_as_future",anchor:"huggingface_hub.HfApi.run_as_future",parameters:[{name:"fn",val:": Callable[..., R]"},{name:"*args",val:""},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"huggingface_hub.HfApi.run_as_future.fn",description:`<strong>fn</strong> (<code>Callable</code>) &#x2014;
The method to run in the background.`,name:"fn"},{anchor:"huggingface_hub.HfApi.run_as_future.*args,",description:`<strong>*args,</strong> **kwargs &#x2014;
Arguments with which the method will be called.`,name:"*args,"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/hf_api.py#L1207",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>
`}}),xa=new U({props:{anchor:"huggingface_hub.HfApi.run_as_future.example",$$slots:{default:[Aw]},$$scope:{ctx:M}}}),Ci=new C({props:{name:"scale_to_zero_inference_endpoint",anchor:"huggingface_hub.HfApi.scale_to_zero_inference_endpoint",parameters:[{name:"name",val:": str"},{name:"namespace",val:": Optional[str] = None"},{name:"token",val:": Optional[str] = None"}],parametersDescription:[{anchor:"huggingface_hub.HfApi.scale_to_zero_inference_endpoint.name",description:`<strong>name</strong> (<code>str</code>) &#x2014;
The name of the Inference Endpoint to scale to zero.`,name:"name"},{anchor:"huggingface_hub.HfApi.scale_to_zero_inference_endpoint.namespace",description:`<strong>namespace</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The namespace in which the Inference Endpoint is located. Defaults to the current user.`,name:"namespace"},{anchor:"huggingface_hub.HfApi.scale_to_zero_inference_endpoint.token",description:`<strong>token</strong> (<code>str</code>, <em>optional</em>) &#x2014;
An authentication token (See <a href="https://huggingface.co/settings/token" rel="nofollow">https://huggingface.co/settings/token</a>).`,name:"token"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/hf_api.py#L7153",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


<p><code>Tuple[List[List[CommitOperationAdd]], List[List[CommitOperationDelete]]]</code></p>
`}}),Da=new J({props:{warning:!0,$$slots:{default:[Ow]},$$scope:{ctx:M}}}),Fa=new U({props:{anchor:"huggingface_hub.plan_multi_commits.example",$$slots:{default:[Qw]},$$scope:{ctx:M}}}),Sa=new J({props:{warning:!0,$$slots:{default:[Kw]},$$scope:{ctx:M}}}),Zi=new R({props:{title:"API Dataclasses",local:"api-dataclasses",headingTag:"h2"}}),Li=new R({props:{title:"CommitInfo",local:"huggingface_hub.CommitInfo",headingTag:"h3"}}),Bi=new C({props:{name:"class huggingface_hub.CommitInfo",anchor:"huggingface_hub.CommitInfo",parameters:[{name:"commit_url",val:": str"},{name:"commit_message",val:": str"},{name:"commit_description",val:": str"},{name:"oid",val:": str"},{name:"pr_url",val:": Optional[str] = None"}],parametersDescription:[{anchor:"huggingface_hub.CommitInfo.commit_url",description:`<strong>commit_url</strong> (<code>str</code>) &#x2014;
Url where to find the commit.`,name:"commit_url"},{anchor:"huggingface_hub.CommitInfo.commit_message",description:`<strong>commit_message</strong> (<code>str</code>) &#x2014;
The summary (first line) of the commit that has been created.`,name:"commit_message"},{anchor:"huggingface_hub.CommitInfo.commit_description",description:`<strong>commit_description</strong> (<code>str</code>) &#x2014;
Description of the commit that has been created. Can be empty.`,name:"commit_description"},{anchor:"huggingface_hub.CommitInfo.oid",description:`<strong>oid</strong> (<code>str</code>) &#x2014;
Commit hash id. Example: <code>&quot;91c54ad1727ee830252e457677f467be0bfd8a57&quot;</code>.`,name:"oid"},{anchor:"huggingface_hub.CommitInfo.pr_url",description:`<strong>pr_url</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Url to the PR that has been created, if any. Populated when <code>create_pr=True</code>
is passed.`,name:"pr_url"},{anchor:"huggingface_hub.CommitInfo.pr_revision",description:`<strong>pr_revision</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Revision of the PR that has been created, if any. Populated when
<code>create_pr=True</code> is passed. Example: <code>&quot;refs/pr/1&quot;</code>.`,name:"pr_revision"},{anchor:"huggingface_hub.CommitInfo.pr_num",description:`<strong>pr_num</strong> (<code>int</code>, <em>optional</em>) &#x2014;
Number of the PR discussion that has been created, if any. Populated when
<code>create_pr=True</code> is passed. Can be passed as <code>discussion_num</code> in
<a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.HfApi.get_discussion_details">get_discussion_details()</a>. Example: <code>1</code>.`,name:"pr_num"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/hf_api.py#L272"}}),Wi=new R({props:{title:"DatasetInfo",local:"huggingface_hub.hf_api.DatasetInfo",headingTag:"h3"}}),Vi=new C({props:{name:"class huggingface_hub.hf_api.DatasetInfo",anchor:"huggingface_hub.hf_api.DatasetInfo",parameters:[{name:"**kwargs",val:""}],parametersDescription:[{anchor:"huggingface_hub.hf_api.DatasetInfo.id",description:`<strong>id</strong> (<code>str</code>) &#x2014;
ID of dataset.`,name:"id"},{anchor:"huggingface_hub.hf_api.DatasetInfo.author",description:`<strong>author</strong> (<code>str</code>) &#x2014;
Author of the dataset.`,name:"author"},{anchor:"huggingface_hub.hf_api.DatasetInfo.sha",description:`<strong>sha</strong> (<code>str</code>) &#x2014;
Repo SHA at this particular revision.`,name:"sha"},{anchor:"huggingface_hub.hf_api.DatasetInfo.created_at",description:`<strong>created_at</strong> (<code>datetime</code>, <em>optional</em>) &#x2014;
Date of creation of the repo on the Hub. Note that the lowest value is <code>2022-03-02T23:29:04.000Z</code>,
corresponding to the date when we began to store creation dates.`,name:"created_at"},{anchor:"huggingface_hub.hf_api.DatasetInfo.last_modified",description:`<strong>last_modified</strong> (<code>datetime</code>, <em>optional</em>) &#x2014;
Date of last commit to the repo.`,name:"last_modified"},{anchor:"huggingface_hub.hf_api.DatasetInfo.private",description:`<strong>private</strong> (<code>bool</code>) &#x2014;
Is the repo private.`,name:"private"},{anchor:"huggingface_hub.hf_api.DatasetInfo.disabled",description:`<strong>disabled</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Is the repo disabled.`,name:"disabled"},{anchor:"huggingface_hub.hf_api.DatasetInfo.gated",description:`<strong>gated</strong> (<code>Literal[&quot;auto&quot;, &quot;manual&quot;, False]</code>, <em>optional</em>) &#x2014;
Is the repo gated.
If so, whether there is manual or automatic approval.`,name:"gated"},{anchor:"huggingface_hub.hf_api.DatasetInfo.downloads",description:`<strong>downloads</strong> (<code>int</code>) &#x2014;
Number of downloads of the dataset.`,name:"downloads"},{anchor:"huggingface_hub.hf_api.DatasetInfo.likes",description:`<strong>likes</strong> (<code>int</code>) &#x2014;
Number of likes of the dataset.`,name:"likes"},{anchor:"huggingface_hub.hf_api.DatasetInfo.tags",description:`<strong>tags</strong> (<code>List[str]</code>) &#x2014;
List of tags of the dataset.`,name:"tags"},{anchor:"huggingface_hub.hf_api.DatasetInfo.card_data",description:`<strong>card_data</strong> (<code>DatasetCardData</code>, <em>optional</em>) &#x2014;
Model Card Metadata  as a <a href="/docs/huggingface_hub/main/en/package_reference/cards#huggingface_hub.DatasetCardData">huggingface_hub.repocard_data.DatasetCardData</a> object.`,name:"card_data"},{anchor:"huggingface_hub.hf_api.DatasetInfo.siblings",description:`<strong>siblings</strong> (<code>List[RepoSibling]</code>) &#x2014;
List of <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.hf_api.RepoSibling">huggingface_hub.hf_api.RepoSibling</a> objects that constitute the dataset.`,name:"siblings"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/hf_api.py#L654"}}),Za=new J({props:{$$slots:{default:[ej]},$$scope:{ctx:M}}}),Xi=new R({props:{title:"GitRefInfo",local:"huggingface_hub.GitRefInfo",headingTag:"h3"}}),Yi=new C({props:{name:"class huggingface_hub.GitRefInfo",anchor:"huggingface_hub.GitRefInfo",parameters:[{name:"name",val:": str"},{name:"ref",val:": str"},{name:"target_commit",val:": str"}],parametersDescription:[{anchor:"huggingface_hub.GitRefInfo.name",description:`<strong>name</strong> (<code>str</code>) &#x2014;
Name of the reference (e.g. tag name or branch name).`,name:"name"},{anchor:"huggingface_hub.GitRefInfo.ref",description:`<strong>ref</strong> (<code>str</code>) &#x2014;
Full git ref on the Hub (e.g. <code>&quot;refs/heads/main&quot;</code> or <code>&quot;refs/tags/v1.0&quot;</code>).`,name:"ref"},{anchor:"huggingface_hub.GitRefInfo.target_commit",description:`<strong>target_commit</strong> (<code>str</code>) &#x2014;
OID of the target commit for the ref (e.g. <code>&quot;e7da7f221d5bf496a48136c0cd264e630fe9fcc8&quot;</code>)`,name:"target_commit"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/hf_api.py#L1012"}}),Pi=new R({props:{title:"GitCommitInfo",local:"huggingface_hub.GitCommitInfo",headingTag:"h3"}}),zi=new C({props:{name:"class huggingface_hub.GitCommitInfo",anchor:"huggingface_hub.GitCommitInfo",parameters:[{name:"commit_id",val:": str"},{name:"authors",val:": List[str]"},{name:"created_at",val:": datetime"},{name:"title",val:": str"},{name:"message",val:": str"},{name:"formatted_title",val:": Optional[str]"},{name:"formatted_message",val:": Optional[str]"}],parametersDescription:[{anchor:"huggingface_hub.GitCommitInfo.commit_id",description:`<strong>commit_id</strong> (<code>str</code>) &#x2014;
OID of the commit (e.g. <code>&quot;e7da7f221d5bf496a48136c0cd264e630fe9fcc8&quot;</code>)`,name:"commit_id"},{anchor:"huggingface_hub.GitCommitInfo.authors",description:`<strong>authors</strong> (<code>List[str]</code>) &#x2014;
List of authors of the commit.`,name:"authors"},{anchor:"huggingface_hub.GitCommitInfo.created_at",description:`<strong>created_at</strong> (<code>datetime</code>) &#x2014;
Datetime when the commit was created.`,name:"created_at"},{anchor:"huggingface_hub.GitCommitInfo.title",description:`<strong>title</strong> (<code>str</code>) &#x2014;
Title of the commit. This is a free-text value entered by the authors.`,name:"title"},{anchor:"huggingface_hub.GitCommitInfo.message",description:`<strong>message</strong> (<code>str</code>) &#x2014;
Description of the commit. This is a free-text value entered by the authors.`,name:"message"},{anchor:"huggingface_hub.GitCommitInfo.formatted_title",description:`<strong>formatted_title</strong> (<code>str</code>) &#x2014;
Title of the commit formatted as HTML. Only returned if <code>formatted=True</code> is set.`,name:"formatted_title"},{anchor:"huggingface_hub.GitCommitInfo.formatted_message",description:`<strong>formatted_message</strong> (<code>str</code>) &#x2014;
Description of the commit formatted as HTML. Only returned if <code>formatted=True</code> is set.`,name:"formatted_message"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/hf_api.py#L1057"}}),Oi=new R({props:{title:"GitRefs",local:"huggingface_hub.GitRefs",headingTag:"h3"}}),Qi=new C({props:{name:"class huggingface_hub.GitRefs",anchor:"huggingface_hub.GitRefs",parameters:[{name:"branches",val:": List[GitRefInfo]"},{name:"converts",val:": List[GitRefInfo]"},{name:"tags",val:": List[GitRefInfo]"},{name:"pull_requests",val:": Optional[List[GitRefInfo]]"}],parametersDescription:[{anchor:"huggingface_hub.GitRefs.branches",description:`<strong>branches</strong> (<code>List[GitRefInfo]</code>) &#x2014;
A list of <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.GitRefInfo">GitRefInfo</a> containing information about branches on the repo.`,name:"branches"},{anchor:"huggingface_hub.GitRefs.converts",description:`<strong>converts</strong> (<code>List[GitRefInfo]</code>) &#x2014;
A list of <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.GitRefInfo">GitRefInfo</a> containing information about &#x201C;convert&#x201D; refs on the repo.
Converts are refs used (internally) to push preprocessed data in Dataset repos.`,name:"converts"},{anchor:"huggingface_hub.GitRefs.tags",description:`<strong>tags</strong> (<code>List[GitRefInfo]</code>) &#x2014;
A list of <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.GitRefInfo">GitRefInfo</a> containing information about tags on the repo.`,name:"tags"},{anchor:"huggingface_hub.GitRefs.pull_requests",description:`<strong>pull_requests</strong> (<code>List[GitRefInfo]</code>, <em>optional</em>) &#x2014;
A list of <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.GitRefInfo">GitRefInfo</a> containing information about pull requests on the repo.
Only returned if <code>include_prs=True</code> is set.`,name:"pull_requests"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/hf_api.py#L1031"}}),Ki=new R({props:{title:"ModelInfo",local:"huggingface_hub.hf_api.ModelInfo",headingTag:"h3"}}),er=new C({props:{name:"class huggingface_hub.hf_api.ModelInfo",anchor:"huggingface_hub.hf_api.ModelInfo",parameters:[{name:"**kwargs",val:""}],parametersDescription:[{anchor:"huggingface_hub.hf_api.ModelInfo.id",description:`<strong>id</strong> (<code>str</code>) &#x2014;
ID of model.`,name:"id"},{anchor:"huggingface_hub.hf_api.ModelInfo.author",description:`<strong>author</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Author of the model.`,name:"author"},{anchor:"huggingface_hub.hf_api.ModelInfo.sha",description:`<strong>sha</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Repo SHA at this particular revision.`,name:"sha"},{anchor:"huggingface_hub.hf_api.ModelInfo.created_at",description:`<strong>created_at</strong> (<code>datetime</code>, <em>optional</em>) &#x2014;
Date of creation of the repo on the Hub. Note that the lowest value is <code>2022-03-02T23:29:04.000Z</code>,
corresponding to the date when we began to store creation dates.`,name:"created_at"},{anchor:"huggingface_hub.hf_api.ModelInfo.last_modified",description:`<strong>last_modified</strong> (<code>datetime</code>, <em>optional</em>) &#x2014;
Date of last commit to the repo.`,name:"last_modified"},{anchor:"huggingface_hub.hf_api.ModelInfo.private",description:`<strong>private</strong> (<code>bool</code>) &#x2014;
Is the repo private.`,name:"private"},{anchor:"huggingface_hub.hf_api.ModelInfo.disabled",description:`<strong>disabled</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Is the repo disabled.`,name:"disabled"},{anchor:"huggingface_hub.hf_api.ModelInfo.gated",description:`<strong>gated</strong> (<code>Literal[&quot;auto&quot;, &quot;manual&quot;, False]</code>, <em>optional</em>) &#x2014;
Is the repo gated.
If so, whether there is manual or automatic approval.`,name:"gated"},{anchor:"huggingface_hub.hf_api.ModelInfo.downloads",description:`<strong>downloads</strong> (<code>int</code>) &#x2014;
Number of downloads of the model.`,name:"downloads"},{anchor:"huggingface_hub.hf_api.ModelInfo.likes",description:`<strong>likes</strong> (<code>int</code>) &#x2014;
Number of likes of the model.`,name:"likes"},{anchor:"huggingface_hub.hf_api.ModelInfo.library_name",description:`<strong>library_name</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Library associated with the model.`,name:"library_name"},{anchor:"huggingface_hub.hf_api.ModelInfo.tags",description:`<strong>tags</strong> (<code>List[str]</code>) &#x2014;
List of tags of the model. Compared to <code>card_data.tags</code>, contains extra tags computed by the Hub
(e.g. supported libraries, model&#x2019;s arXiv).`,name:"tags"},{anchor:"huggingface_hub.hf_api.ModelInfo.pipeline_tag",description:`<strong>pipeline_tag</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Pipeline tag associated with the model.`,name:"pipeline_tag"},{anchor:"huggingface_hub.hf_api.ModelInfo.mask_token",description:`<strong>mask_token</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Mask token used by the model.`,name:"mask_token"},{anchor:"huggingface_hub.hf_api.ModelInfo.widget_data",description:`<strong>widget_data</strong> (<code>Any</code>, <em>optional</em>) &#x2014;
Widget data associated with the model.`,name:"widget_data"},{anchor:"huggingface_hub.hf_api.ModelInfo.model_index",description:`<strong>model_index</strong> (<code>Dict</code>, <em>optional</em>) &#x2014;
Model index for evaluation.`,name:"model_index"},{anchor:"huggingface_hub.hf_api.ModelInfo.config",description:`<strong>config</strong> (<code>Dict</code>, <em>optional</em>) &#x2014;
Model configuration.`,name:"config"},{anchor:"huggingface_hub.hf_api.ModelInfo.transformers_info",description:`<strong>transformers_info</strong> (<code>TransformersInfo</code>, <em>optional</em>) &#x2014;
Transformers-specific info (auto class, processor, etc.) associated with the model.`,name:"transformers_info"},{anchor:"huggingface_hub.hf_api.ModelInfo.card_data",description:`<strong>card_data</strong> (<code>ModelCardData</code>, <em>optional</em>) &#x2014;
Model Card Metadata  as a <a href="/docs/huggingface_hub/main/en/package_reference/cards#huggingface_hub.ModelCardData">huggingface_hub.repocard_data.ModelCardData</a> object.`,name:"card_data"},{anchor:"huggingface_hub.hf_api.ModelInfo.siblings",description:`<strong>siblings</strong> (<code>List[RepoSibling]</code>) &#x2014;
List of <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.hf_api.RepoSibling">huggingface_hub.hf_api.RepoSibling</a> objects that constitute the model.`,name:"siblings"},{anchor:"huggingface_hub.hf_api.ModelInfo.spaces",description:`<strong>spaces</strong> (<code>List[str]</code>, <em>optional</em>) &#x2014;
List of spaces using the model.`,name:"spaces"},{anchor:"huggingface_hub.hf_api.ModelInfo.safetensors",description:`<strong>safetensors</strong> (<code>SafeTensorsInfo</code>, <em>optional</em>) &#x2014;
Model&#x2019;s safetensors information.`,name:"safetensors"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/hf_api.py#L508"}}),La=new J({props:{$$slots:{default:[tj]},$$scope:{ctx:M}}}),tr=new R({props:{title:"RepoSibling",local:"huggingface_hub.hf_api.RepoSibling",headingTag:"h3"}}),nr=new C({props:{name:"class huggingface_hub.hf_api.RepoSibling",anchor:"huggingface_hub.hf_api.RepoSibling",parameters:[{name:"rfilename",val:": str"},{name:"size",val:": Optional[int] = None"},{name:"blob_id",val:": Optional[str] = None"},{name:"lfs",val:": Optional[BlobLfsInfo] = None"}],parametersDescription:[{anchor:"huggingface_hub.hf_api.RepoSibling.rfilename",description:`<strong>rfilename</strong> (str) &#x2014;
file name, relative to the repo root.`,name:"rfilename"},{anchor:"huggingface_hub.hf_api.RepoSibling.size",description:`<strong>size</strong> (<code>int</code>, <em>optional</em>) &#x2014;
The file&#x2019;s size, in bytes. This attribute is defined when <code>files_metadata</code> argument of <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.HfApi.repo_info">repo_info()</a> is set
to <code>True</code>. It&#x2019;s <code>None</code> otherwise.`,name:"size"},{anchor:"huggingface_hub.hf_api.RepoSibling.blob_id",description:`<strong>blob_id</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The file&#x2019;s git OID. This attribute is defined when <code>files_metadata</code> argument of <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.HfApi.repo_info">repo_info()</a> is set to
<code>True</code>. It&#x2019;s <code>None</code> otherwise.`,name:"blob_id"},{anchor:"huggingface_hub.hf_api.RepoSibling.lfs",description:`<strong>lfs</strong> (<code>BlobLfsInfo</code>, <em>optional</em>) &#x2014;
The file&#x2019;s LFS metadata. This attribute is defined when<code>files_metadata</code> argument of <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.HfApi.repo_info">repo_info()</a> is set to
<code>True</code> and the file is stored with Git LFS. It&#x2019;s <code>None</code> otherwise.`,name:"lfs"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/hf_api.py#L388"}}),Ba=new J({props:{$$slots:{default:[nj]},$$scope:{ctx:M}}}),or=new R({props:{title:"RepoFile",local:"huggingface_hub.hf_api.RepoFile",headingTag:"h3"}}),ar=new C({props:{name:"class huggingface_hub.hf_api.RepoFile",anchor:"huggingface_hub.hf_api.RepoFile",parameters:[{name:"**kwargs",val:""}],parametersDescription:[{anchor:"huggingface_hub.hf_api.RepoFile.path",description:`<strong>path</strong> (str) &#x2014;
file path relative to the repo root.`,name:"path"},{anchor:"huggingface_hub.hf_api.RepoFile.size",description:`<strong>size</strong> (<code>int</code>) &#x2014;
The file&#x2019;s size, in bytes.`,name:"size"},{anchor:"huggingface_hub.hf_api.RepoFile.blob_id",description:`<strong>blob_id</strong> (<code>str</code>) &#x2014;
The file&#x2019;s git OID.`,name:"blob_id"},{anchor:"huggingface_hub.hf_api.RepoFile.lfs",description:`<strong>lfs</strong> (<code>BlobLfsInfo</code>) &#x2014;
The file&#x2019;s LFS metadata.`,name:"lfs"},{anchor:"huggingface_hub.hf_api.RepoFile.last_commit",description:`<strong>last_commit</strong> (<code>LastCommitInfo</code>, <em>optional</em>) &#x2014;
The file&#x2019;s last commit metadata. Only defined if <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.HfApi.list_files_info">list_files_info()</a>, <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.HfApi.list_repo_tree">list_repo_tree()</a> and <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.HfApi.get_paths_info">get_paths_info()</a>
are called with <code>expand=True</code>.`,name:"last_commit"},{anchor:"huggingface_hub.hf_api.RepoFile.security",description:`<strong>security</strong> (<code>BlobSecurityInfo</code>, <em>optional</em>) &#x2014;
The file&#x2019;s security scan metadata. Only defined if <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.HfApi.list_files_info">list_files_info()</a>, <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.HfApi.list_repo_tree">list_repo_tree()</a> and <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.HfApi.get_paths_info">get_paths_info()</a>
are called with <code>expand=True</code>.`,name:"security"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/hf_api.py#L423"}}),sr=new R({props:{title:"RepoUrl",local:"huggingface_hub.RepoUrl",headingTag:"h3"}}),ir=new C({props:{name:"class huggingface_hub.RepoUrl",anchor:"huggingface_hub.RepoUrl",parameters:[{name:"url",val:": Any"},{name:"endpoint",val:": Optional[str] = None"}],parametersDescription:[{anchor:"huggingface_hub.RepoUrl.url",description:`<strong>url</strong> (<code>Any</code>) &#x2014;
String value of the repo url.`,name:"url"},{anchor:"huggingface_hub.RepoUrl.endpoint",description:`<strong>endpoint</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Endpoint of the Hub. Defaults to <a href="https://huggingface.co" rel="nofollow">https://huggingface.co</a>.`,name:"endpoint"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/hf_api.py#L327",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>
`}}),Wa=new U({props:{anchor:"huggingface_hub.RepoUrl.example",$$slots:{default:[oj]},$$scope:{ctx:M}}}),rr=new R({props:{title:"SafetensorsRepoMetadata",local:"huggingface_hub.utils.SafetensorsRepoMetadata",headingTag:"h3"}}),lr=new C({props:{name:"class huggingface_hub.utils.SafetensorsRepoMetadata",anchor:"huggingface_hub.utils.SafetensorsRepoMetadata",parameters:[{name:"metadata",val:": typing.Optional[typing.Dict]"},{name:"sharded",val:": bool"},{name:"weight_map",val:": typing.Dict[str, str]"},{name:"files_metadata",val:": typing.Dict[str, huggingface_hub.utils._safetensors.SafetensorsFileMetadata]"}],parametersDescription:[{anchor:"huggingface_hub.utils.SafetensorsRepoMetadata.metadata",description:`<strong>metadata</strong> (<code>Dict</code>, <em>optional</em>) &#x2014;
The metadata contained in the &#x2018;model.safetensors.index.json&#x2019; file, if it exists. Only populated for sharded
models.`,name:"metadata"},{anchor:"huggingface_hub.utils.SafetensorsRepoMetadata.sharded",description:`<strong>sharded</strong> (<code>bool</code>) &#x2014;
Whether the repo contains a sharded model or not.`,name:"sharded"},{anchor:"huggingface_hub.utils.SafetensorsRepoMetadata.weight_map",description:`<strong>weight_map</strong> (<code>Dict[str, str]</code>) &#x2014;
A map of all weights. Keys are tensor names and values are filenames of the files containing the tensors.`,name:"weight_map"},{anchor:"huggingface_hub.utils.SafetensorsRepoMetadata.files_metadata",description:`<strong>files_metadata</strong> (<code>Dict[str, SafetensorsFileMetadata]</code>) &#x2014;
A map of all files metadata. Keys are filenames and values are the metadata of the corresponding file, as
a <code>SafetensorsFileMetadata</code> object.`,name:"files_metadata"},{anchor:"huggingface_hub.utils.SafetensorsRepoMetadata.parameter_count",description:`<strong>parameter_count</strong> (<code>Dict[str, int]</code>) &#x2014;
A map of the number of parameters per data type. Keys are data types and values are the number of parameters
of that data type.`,name:"parameter_count"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/utils/_safetensors.py#L87"}}),cr=new R({props:{title:"SafetensorsFileMetadata",local:"huggingface_hub.utils.SafetensorsFileMetadata",headingTag:"h3"}}),pr=new C({props:{name:"class huggingface_hub.utils.SafetensorsFileMetadata",anchor:"huggingface_hub.utils.SafetensorsFileMetadata",parameters:[{name:"metadata",val:": typing.Dict[str, str]"},{name:"tensors",val:": typing.Dict[str, huggingface_hub.utils._safetensors.TensorInfo]"}],parametersDescription:[{anchor:"huggingface_hub.utils.SafetensorsFileMetadata.metadata",description:`<strong>metadata</strong> (<code>Dict</code>) &#x2014;
The metadata contained in the file.`,name:"metadata"},{anchor:"huggingface_hub.utils.SafetensorsFileMetadata.tensors",description:`<strong>tensors</strong> (<code>Dict[str, TensorInfo]</code>) &#x2014;
A map of all tensors. Keys are tensor names and values are information about the corresponding tensor, as a
<code>TensorInfo</code> object.`,name:"tensors"},{anchor:"huggingface_hub.utils.SafetensorsFileMetadata.parameter_count",description:`<strong>parameter_count</strong> (<code>Dict[str, int]</code>) &#x2014;
A map of the number of parameters per data type. Keys are data types and values are the number of parameters
of that data type.`,name:"parameter_count"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/utils/_safetensors.py#L57"}}),dr=new R({props:{title:"SpaceInfo",local:"huggingface_hub.hf_api.SpaceInfo",headingTag:"h3"}}),gr=new C({props:{name:"class huggingface_hub.hf_api.SpaceInfo",anchor:"huggingface_hub.hf_api.SpaceInfo",parameters:[{name:"**kwargs",val:""}],parametersDescription:[{anchor:"huggingface_hub.hf_api.SpaceInfo.id",description:`<strong>id</strong> (<code>str</code>) &#x2014;
ID of the Space.`,name:"id"},{anchor:"huggingface_hub.hf_api.SpaceInfo.author",description:`<strong>author</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Author of the Space.`,name:"author"},{anchor:"huggingface_hub.hf_api.SpaceInfo.sha",description:`<strong>sha</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Repo SHA at this particular revision.`,name:"sha"},{anchor:"huggingface_hub.hf_api.SpaceInfo.created_at",description:`<strong>created_at</strong> (<code>datetime</code>, <em>optional</em>) &#x2014;
Date of creation of the repo on the Hub. Note that the lowest value is <code>2022-03-02T23:29:04.000Z</code>,
corresponding to the date when we began to store creation dates.`,name:"created_at"},{anchor:"huggingface_hub.hf_api.SpaceInfo.last_modified",description:`<strong>last_modified</strong> (<code>datetime</code>, <em>optional</em>) &#x2014;
Date of last commit to the repo.`,name:"last_modified"},{anchor:"huggingface_hub.hf_api.SpaceInfo.private",description:`<strong>private</strong> (<code>bool</code>) &#x2014;
Is the repo private.`,name:"private"},{anchor:"huggingface_hub.hf_api.SpaceInfo.gated",description:`<strong>gated</strong> (<code>Literal[&quot;auto&quot;, &quot;manual&quot;, False]</code>, <em>optional</em>) &#x2014;
Is the repo gated.
If so, whether there is manual or automatic approval.`,name:"gated"},{anchor:"huggingface_hub.hf_api.SpaceInfo.disabled",description:`<strong>disabled</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Is the Space disabled.`,name:"disabled"},{anchor:"huggingface_hub.hf_api.SpaceInfo.host",description:`<strong>host</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Host URL of the Space.`,name:"host"},{anchor:"huggingface_hub.hf_api.SpaceInfo.subdomain",description:`<strong>subdomain</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Subdomain of the Space.`,name:"subdomain"},{anchor:"huggingface_hub.hf_api.SpaceInfo.likes",description:`<strong>likes</strong> (<code>int</code>) &#x2014;
Number of likes of the Space.`,name:"likes"},{anchor:"huggingface_hub.hf_api.SpaceInfo.tags",description:`<strong>tags</strong> (<code>List[str]</code>) &#x2014;
List of tags of the Space.`,name:"tags"},{anchor:"huggingface_hub.hf_api.SpaceInfo.siblings",description:`<strong>siblings</strong> (<code>List[RepoSibling]</code>) &#x2014;
List of <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.hf_api.RepoSibling">huggingface_hub.hf_api.RepoSibling</a> objects that constitute the Space.`,name:"siblings"},{anchor:"huggingface_hub.hf_api.SpaceInfo.card_data",description:`<strong>card_data</strong> (<code>SpaceCardData</code>, <em>optional</em>) &#x2014;
Space Card Metadata  as a <a href="/docs/huggingface_hub/main/en/package_reference/cards#huggingface_hub.SpaceCardData">huggingface_hub.repocard_data.SpaceCardData</a> object.`,name:"card_data"},{anchor:"huggingface_hub.hf_api.SpaceInfo.runtime",description:`<strong>runtime</strong> (<code>SpaceRuntime</code>, <em>optional</em>) &#x2014;
Space runtime information as a <a href="/docs/huggingface_hub/main/en/package_reference/space_runtime#huggingface_hub.SpaceRuntime">huggingface_hub.hf_api.SpaceRuntime</a> object.`,name:"runtime"},{anchor:"huggingface_hub.hf_api.SpaceInfo.sdk",description:`<strong>sdk</strong> (<code>str</code>, <em>optional</em>) &#x2014;
SDK used by the Space.`,name:"sdk"},{anchor:"huggingface_hub.hf_api.SpaceInfo.models",description:`<strong>models</strong> (<code>List[str]</code>, <em>optional</em>) &#x2014;
List of models used by the Space.`,name:"models"},{anchor:"huggingface_hub.hf_api.SpaceInfo.datasets",description:`<strong>datasets</strong> (<code>List[str]</code>, <em>optional</em>) &#x2014;
List of datasets used by the Space.`,name:"datasets"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/hf_api.py#L761"}}),Va=new J({props:{$$slots:{default:[aj]},$$scope:{ctx:M}}}),hr=new R({props:{title:"TensorInfo",local:"huggingface_hub.utils.TensorInfo",headingTag:"h3"}}),ur=new C({props:{name:"class huggingface_hub.utils.TensorInfo",anchor:"huggingface_hub.utils.TensorInfo",parameters:[{name:"dtype",val:": typing.Literal['F64', 'F32', 'F16', 'BF16', 'I64', 'I32', 'I16', 'I8', 'U8', 'BOOL']"},{name:"shape",val:": typing.List[int]"},{name:"data_offsets",val:": typing.Tuple[int, int]"}],parametersDescription:[{anchor:"huggingface_hub.utils.TensorInfo.dtype",description:`<strong>dtype</strong> (<code>str</code>) &#x2014;
The data type of the tensor (&#x201C;F64&#x201D;, &#x201C;F32&#x201D;, &#x201C;F16&#x201D;, &#x201C;BF16&#x201D;, &#x201C;I64&#x201D;, &#x201C;I32&#x201D;, &#x201C;I16&#x201D;, &#x201C;I8&#x201D;, &#x201C;U8&#x201D;, &#x201C;BOOL&#x201D;).`,name:"dtype"},{anchor:"huggingface_hub.utils.TensorInfo.shape",description:`<strong>shape</strong> (<code>List[int]</code>) &#x2014;
The shape of the tensor.`,name:"shape"},{anchor:"huggingface_hub.utils.TensorInfo.data_offsets",description:`<strong>data_offsets</strong> (<code>Tuple[int, int]</code>) &#x2014;
The offsets of the data in the file as a tuple <code>[BEGIN, END]</code>.`,name:"data_offsets"},{anchor:"huggingface_hub.utils.TensorInfo.parameter_count",description:`<strong>parameter_count</strong> (<code>int</code>) &#x2014;
The number of parameters in the tensor.`,name:"parameter_count"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/utils/_safetensors.py#L27"}}),mr=new R({props:{title:"User",local:"huggingface_hub.User",headingTag:"h3"}}),fr=new C({props:{name:"class huggingface_hub.User",anchor:"huggingface_hub.User",parameters:[{name:"avatar_url",val:": str"},{name:"username",val:": str"},{name:"fullname",val:": str"}],parametersDescription:[{anchor:"huggingface_hub.User.avatar_url",description:`<strong>avatar_url</strong> (<code>str</code>) &#x2014;
URL of the user&#x2019;s avatar.`,name:"avatar_url"},{anchor:"huggingface_hub.User.username",description:`<strong>username</strong> (<code>str</code>) &#x2014;
Name of the user on the Hub (unique).`,name:"username"},{anchor:"huggingface_hub.User.fullname",description:`<strong>fullname</strong> (<code>str</code>) &#x2014;
User&#x2019;s full name.`,name:"fullname"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/hf_api.py#L1118"}}),_r=new R({props:{title:"UserLikes",local:"huggingface_hub.UserLikes",headingTag:"h3"}}),br=new C({props:{name:"class huggingface_hub.UserLikes",anchor:"huggingface_hub.UserLikes",parameters:[{name:"user",val:": str"},{name:"total",val:": int"},{name:"datasets",val:": List[str]"},{name:"models",val:": List[str]"},{name:"spaces",val:": List[str]"}],parametersDescription:[{anchor:"huggingface_hub.UserLikes.user",description:`<strong>user</strong> (<code>str</code>) &#x2014;
Name of the user for which we fetched the likes.`,name:"user"},{anchor:"huggingface_hub.UserLikes.total",description:`<strong>total</strong> (<code>int</code>) &#x2014;
Total number of likes.`,name:"total"},{anchor:"huggingface_hub.UserLikes.datasets",description:`<strong>datasets</strong> (<code>List[str]</code>) &#x2014;
List of datasets liked by the user (as repo_ids).`,name:"datasets"},{anchor:"huggingface_hub.UserLikes.models",description:`<strong>models</strong> (<code>List[str]</code>) &#x2014;
List of models liked by the user (as repo_ids).`,name:"models"},{anchor:"huggingface_hub.UserLikes.spaces",description:`<strong>spaces</strong> (<code>List[str]</code>) &#x2014;
List of spaces liked by the user (as repo_ids).`,name:"spaces"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/hf_api.py#L1090"}}),yr=new R({props:{title:"CommitOperation",local:"huggingface_hub.CommitOperationAdd",headingTag:"h2"}}),$r=new C({props:{name:"class huggingface_hub.CommitOperationAdd",anchor:"huggingface_hub.CommitOperationAdd",parameters:[{name:"path_in_repo",val:": str"},{name:"path_or_fileobj",val:": typing.Union[str, pathlib.Path, bytes, typing.BinaryIO]"}],parametersDescription:[{anchor:"huggingface_hub.CommitOperationAdd.path_in_repo",description:`<strong>path_in_repo</strong> (<code>str</code>) &#x2014;
Relative filepath in the repo, for example: <code>&quot;checkpoints/1fec34a/weights.bin&quot;</code>`,name:"path_in_repo"},{anchor:"huggingface_hub.CommitOperationAdd.path_or_fileobj",description:`<strong>path_or_fileobj</strong> (<code>str</code>, <code>Path</code>, <code>bytes</code>, or <code>BinaryIO</code>) &#x2014;
Either:<ul>
<li>a path to a local file (as <code>str</code> or <code>pathlib.Path</code>) to upload</li>
<li>a buffer of bytes (<code>bytes</code>) holding the content of the file to upload</li>
<li>a &#x201C;file object&#x201D; (subclass of <code>io.BufferedIOBase</code>), typically obtained
with <code>open(path, &quot;rb&quot;)</code>. It must support <code>seek()</code> and <code>tell()</code> methods.</li>
</ul>`,name:"path_or_fileobj"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/_commit_api.py#L111",raiseDescription:`<script context="module">export const metadata = 'undefined';<\/script>


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


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


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


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