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

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

<span class="hljs-meta">&gt;&gt;&gt; </span>HfApi().comment_discussion(
<span class="hljs-meta">... </span>    repo_id=<span class="hljs-string">&quot;username/repo_name&quot;</span>,
<span class="hljs-meta">... </span>    discussion_num=<span class="hljs-number">34</span>
<span class="hljs-meta">... </span>    comment=comment
<span class="hljs-meta">... </span>)
<span class="hljs-comment"># DiscussionComment(id=&#x27;deadbeef0000000&#x27;, type=&#x27;comment&#x27;, ...)</span>
`,wrap:!1}}),{c(){n=c("p"),n.textContent=g,s=r(),h(a.$$.fragment)},l(e){n=l(e,"P",{"data-svelte-h":!0}),d(n)!=="svelte-kvfsh7"&&(n.textContent=g),s=i(e),f(a.$$.fragment,e)},m(e,y){$(e,n,y),$(e,s,y),m(a,e,y),x=!0},p:H,i(e){x||(_(a.$$.fragment,e),x=!0)},o(e){b(a.$$.fragment,e),x=!1},d(e){e&&(p(n),p(s)),v(a,e)}}}function DM(M){let n,g="Raises the following errors:",s,a,x=`<li><a href="https://requests.readthedocs.io/en/latest/api/#requests.HTTPError" rel="nofollow"><code>HTTPError</code></a>
if the HuggingFace API returned an error</li> <li><a href="https://docs.python.org/3/library/exceptions.html#ValueError" rel="nofollow"><code>ValueError</code></a>
if some parameter value is invalid</li> <li><a href="/docs/huggingface_hub/v0.20.3/en/package_reference/utilities#huggingface_hub.utils.RepositoryNotFoundError">RepositoryNotFoundError</a>
If the repository to download from cannot be found. This may be because it doesn’t exist,
or because it is set to <code>private</code> and you do not have access.</li>`;return{c(){n=c("p"),n.textContent=g,s=r(),a=c("ul"),a.innerHTML=x},l(e){n=l(e,"P",{"data-svelte-h":!0}),d(n)!=="svelte-182te9i"&&(n.textContent=g),s=i(e),a=l(e,"UL",{"data-svelte-h":!0}),d(a)!=="svelte-v54g60"&&(a.innerHTML=x)},m(e,y){$(e,n,y),$(e,s,y),$(e,a,y)},p:H,d(e){e&&(p(n),p(s),p(a))}}}function FM(M){let n,g="Example:",s,a,x;return a=new I({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMGNyZWF0ZV9jb2xsZWN0aW9uJTBBY29sbGVjdGlvbiUyMCUzRCUyMGNyZWF0ZV9jb2xsZWN0aW9uKCUwQSUyMCUyMCUyMCUyMHRpdGxlJTNEJTIySUNDViUyMDIwMjMlMjIlMkMlMEElMjAlMjAlMjAlMjBkZXNjcmlwdGlvbiUzRCUyMlBvcnRmb2xpbyUyMG9mJTIwbW9kZWxzJTJDJTIwcGFwZXJzJTIwYW5kJTIwZGVtb3MlMjBJJTIwcHJlc2VudGVkJTIwYXQlMjBJQ0NWJTIwMjAyMyUyMiUyQyUwQSklMEFjb2xsZWN0aW9uLnNsdWc=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> create_collection
<span class="hljs-meta">&gt;&gt;&gt; </span>collection = create_collection(
<span class="hljs-meta">... </span>    title=<span class="hljs-string">&quot;ICCV 2023&quot;</span>,
<span class="hljs-meta">... </span>    description=<span class="hljs-string">&quot;Portfolio of models, papers and demos I presented at ICCV 2023&quot;</span>,
<span class="hljs-meta">... </span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>collection.slug
<span class="hljs-string">&quot;username/iccv-2023-64f9a55bb3115b4f513ec026&quot;</span>`,wrap:!1}}),{c(){n=c("p"),n.textContent=g,s=r(),h(a.$$.fragment)},l(e){n=l(e,"P",{"data-svelte-h":!0}),d(n)!=="svelte-11lpom8"&&(n.textContent=g),s=i(e),f(a.$$.fragment,e)},m(e,y){$(e,n,y),$(e,s,y),m(a,e,y),x=!0},p:H,i(e){x||(_(a.$$.fragment,e),x=!0)},o(e){b(a.$$.fragment,e),x=!1},d(e){e&&(p(n),p(s)),v(a,e)}}}function SM(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=c("p"),n.innerHTML=g},l(s){n=l(s,"P",{"data-svelte-h":!0}),d(n)!=="svelte-1i3qk8u"&&(n.innerHTML=g)},m(s,a){$(s,n,a)},p:H,d(s){s&&p(n)}}}function ZM(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/v0.20.3/en/package_reference/hf_api#huggingface_hub.HfApi.create_repo">create_repo()</a>.`;return{c(){n=c("p"),n.innerHTML=g},l(s){n=l(s,"P",{"data-svelte-h":!0}),d(n)!=="svelte-uhy4sx"&&(n.innerHTML=g)},m(s,a){$(s,n,a)},p:H,d(s){s&&p(n)}}}function LM(M){let n,g="<code>create_commit</code> is limited to 25k LFS files and a 1GB payload for regular files.";return{c(){n=c("p"),n.innerHTML=g},l(s){n=l(s,"P",{"data-svelte-h":!0}),d(n)!=="svelte-yun5lq"&&(n.innerHTML=g)},m(s,a){$(s,n,a)},p:H,d(s){s&&p(n)}}}function WM(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=c("p"),n.innerHTML=g},l(s){n=l(s,"P",{"data-svelte-h":!0}),d(n)!=="svelte-1ryas9o"&&(n.innerHTML=g)},m(s,a){$(s,n,a)},p:H,d(s){s&&p(n)}}}function BM(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/v0.20.3/en/package_reference/hf_api#huggingface_hub.HfApi.create_repo">create_repo()</a>.`;return{c(){n=c("p"),n.innerHTML=g},l(s){n=l(s,"P",{"data-svelte-h":!0}),d(n)!=="svelte-shlk1l"&&(n.innerHTML=g)},m(s,a){$(s,n,a)},p:H,d(s){s&&p(n)}}}function VM(M){let n,g="Example:",s,a,x;return a=new I({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMEhmQXBpJTJDJTIwcGxhbl9tdWx0aV9jb21taXRzJTBBYWRkaXRpb25fY29tbWl0cyUyQyUyMGRlbGV0aW9uX2NvbW1pdHMlMjAlM0QlMjBwbGFuX211bHRpX2NvbW1pdHMoJTBBJTIwJTIwJTIwJTIwb3BlcmF0aW9ucyUzRCU1QiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMENvbW1pdE9wZXJhdGlvbkFkZCguLi4pJTJDJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwQ29tbWl0T3BlcmF0aW9uQWRkKC4uLiklMkMlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjBDb21taXRPcGVyYXRpb25EZWxldGUoLi4uKSUyQyUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMENvbW1pdE9wZXJhdGlvbkRlbGV0ZSguLi4pJTJDJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwQ29tbWl0T3BlcmF0aW9uQWRkKC4uLiklMkMlMEElMjAlMjAlMjAlMjAlNUQlMkMlMEEpJTBBSGZBcGkoKS5jcmVhdGVfY29tbWl0c19vbl9wciglMEElMjAlMjAlMjAlMjByZXBvX2lkJTNEJTIybXktY29vbC1tb2RlbCUyMiUyQyUwQSUyMCUyMCUyMCUyMGFkZGl0aW9uX2NvbW1pdHMlM0RhZGRpdGlvbl9jb21taXRzJTJDJTBBJTIwJTIwJTIwJTIwZGVsZXRpb25fY29tbWl0cyUzRGRlbGV0aW9uX2NvbW1pdHMlMkMlMEElMjAlMjAlMjAlMjAoLi4uKSUwQSUyMCUyMCUyMCUyMHZlcmJvc2UlM0RUcnVlJTJDJTBBKQ==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> HfApi, plan_multi_commits
<span class="hljs-meta">&gt;&gt;&gt; </span>addition_commits, deletion_commits = plan_multi_commits(
<span class="hljs-meta">... </span>    operations=[
<span class="hljs-meta">... </span>         CommitOperationAdd(...),
<span class="hljs-meta">... </span>         CommitOperationAdd(...),
<span class="hljs-meta">... </span>         CommitOperationDelete(...),
<span class="hljs-meta">... </span>         CommitOperationDelete(...),
<span class="hljs-meta">... </span>         CommitOperationAdd(...),
<span class="hljs-meta">... </span>    ],
<span class="hljs-meta">... </span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>HfApi().create_commits_on_pr(
<span class="hljs-meta">... </span>    repo_id=<span class="hljs-string">&quot;my-cool-model&quot;</span>,
<span class="hljs-meta">... </span>    addition_commits=addition_commits,
<span class="hljs-meta">... </span>    deletion_commits=deletion_commits,
<span class="hljs-meta">... </span>    (...)
<span class="hljs-meta">... </span>    verbose=<span class="hljs-literal">True</span>,
<span class="hljs-meta">... </span>)`,wrap:!1}}),{c(){n=c("p"),n.textContent=g,s=r(),h(a.$$.fragment)},l(e){n=l(e,"P",{"data-svelte-h":!0}),d(n)!=="svelte-11lpom8"&&(n.textContent=g),s=i(e),f(a.$$.fragment,e)},m(e,y){$(e,n,y),$(e,s,y),m(a,e,y),x=!0},p:H,i(e){x||(_(a.$$.fragment,e),x=!0)},o(e){b(a.$$.fragment,e),x=!1},d(e){e&&(p(n),p(s)),v(a,e)}}}function XM(M){let n,g="Raises the following errors:",s,a,x=`<li><a href="https://requests.readthedocs.io/en/latest/api/#requests.HTTPError" rel="nofollow"><code>HTTPError</code></a>
if the HuggingFace API returned an error</li> <li><a href="https://docs.python.org/3/library/exceptions.html#ValueError" rel="nofollow"><code>ValueError</code></a>
if some parameter value is invalid</li> <li><a href="/docs/huggingface_hub/v0.20.3/en/package_reference/utilities#huggingface_hub.utils.RepositoryNotFoundError">RepositoryNotFoundError</a>
If the repository to download from cannot be found. This may be because it doesn’t exist,
or because it is set to <code>private</code> and you do not have access.</li>`;return{c(){n=c("p"),n.textContent=g,s=r(),a=c("ul"),a.innerHTML=x},l(e){n=l(e,"P",{"data-svelte-h":!0}),d(n)!=="svelte-182te9i"&&(n.textContent=g),s=i(e),a=l(e,"UL",{"data-svelte-h":!0}),d(a)!=="svelte-v54g60"&&(a.innerHTML=x)},m(e,y){$(e,n,y),$(e,s,y),$(e,a,y)},p:H,d(e){e&&(p(n),p(s),p(a))}}}function PM(M){let n,g="Example:",s,a,x;return a=new I({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMEhmQXBpJTBBYXBpJTIwJTNEJTIwSGZBcGkoKSUwQWNyZWF0ZV9pbmZlcmVuY2VfZW5kcG9pbnQoJTBBJTIwJTIwJTIwJTIwJTIybXktZW5kcG9pbnQtbmFtZSUyMiUyQyUwQSUyMCUyMCUyMCUyMHJlcG9zaXRvcnklM0QlMjJncHQyJTIyJTJDJTBBJTIwJTIwJTIwJTIwZnJhbWV3b3JrJTNEJTIycHl0b3JjaCUyMiUyQyUwQSUyMCUyMCUyMCUyMHRhc2slM0QlMjJ0ZXh0LWdlbmVyYXRpb24lMjIlMkMlMEElMjAlMjAlMjAlMjBhY2NlbGVyYXRvciUzRCUyMmNwdSUyMiUyQyUwQSUyMCUyMCUyMCUyMHZlbmRvciUzRCUyMmF3cyUyMiUyQyUwQSUyMCUyMCUyMCUyMHJlZ2lvbiUzRCUyMnVzLWVhc3QtMSUyMiUyQyUwQSUyMCUyMCUyMCUyMHR5cGUlM0QlMjJwcm90ZWN0ZWQlMjIlMkMlMEElMjAlMjAlMjAlMjBpbnN0YW5jZV9zaXplJTNEJTIybWVkaXVtJTIyJTJDJTBBJTIwJTIwJTIwJTIwaW5zdGFuY2VfdHlwZSUzRCUyMmM2aSUyMiUyQyUwQSklMEFlbmRwb2ludCUwQSUwQWVuZHBvaW50LmNsaWVudC50ZXh0X2dlbmVyYXRpb24oLi4uKQ==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> HfApi
<span class="hljs-meta">&gt;&gt;&gt; </span>api = HfApi()
<span class="hljs-meta">&gt;&gt;&gt; </span>create_inference_endpoint(
<span class="hljs-meta">... </span>    <span class="hljs-string">&quot;my-endpoint-name&quot;</span>,
<span class="hljs-meta">... </span>    repository=<span class="hljs-string">&quot;gpt2&quot;</span>,
<span class="hljs-meta">... </span>    framework=<span class="hljs-string">&quot;pytorch&quot;</span>,
<span class="hljs-meta">... </span>    task=<span class="hljs-string">&quot;text-generation&quot;</span>,
<span class="hljs-meta">... </span>    accelerator=<span class="hljs-string">&quot;cpu&quot;</span>,
<span class="hljs-meta">... </span>    vendor=<span class="hljs-string">&quot;aws&quot;</span>,
<span class="hljs-meta">... </span>    region=<span class="hljs-string">&quot;us-east-1&quot;</span>,
<span class="hljs-meta">... </span>    <span class="hljs-built_in">type</span>=<span class="hljs-string">&quot;protected&quot;</span>,
<span class="hljs-meta">... </span>    instance_size=<span class="hljs-string">&quot;medium&quot;</span>,
<span class="hljs-meta">... </span>    instance_type=<span class="hljs-string">&quot;c6i&quot;</span>,
<span class="hljs-meta">... </span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>endpoint
InferenceEndpoint(name=<span class="hljs-string">&#x27;my-endpoint-name&#x27;</span>, status=<span class="hljs-string">&quot;pending&quot;</span>,...)

<span class="hljs-comment"># Run inference on the endpoint</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>endpoint.client.text_generation(...)
<span class="hljs-string">&quot;...&quot;</span>`,wrap:!1}}),{c(){n=c("p"),n.textContent=g,s=r(),h(a.$$.fragment)},l(e){n=l(e,"P",{"data-svelte-h":!0}),d(n)!=="svelte-11lpom8"&&(n.textContent=g),s=i(e),f(a.$$.fragment,e)},m(e,y){$(e,n,y),$(e,s,y),m(a,e,y),x=!0},p:H,i(e){x||(_(a.$$.fragment,e),x=!0)},o(e){b(a.$$.fragment,e),x=!1},d(e){e&&(p(n),p(s)),v(a,e)}}}function YM(M){let n,g;return n=new I({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMEhmQXBpJTBBYXBpJTIwJTNEJTIwSGZBcGkoKSUwQWNyZWF0ZV9pbmZlcmVuY2VfZW5kcG9pbnQoJTBBJTIwJTIwJTIwJTIwJTIyYXdzLXplcGh5ci03Yi1iZXRhLTA0ODYlMjIlMkMlMEElMjAlMjAlMjAlMjByZXBvc2l0b3J5JTNEJTIySHVnZ2luZ0ZhY2VINCUyRnplcGh5ci03Yi1iZXRhJTIyJTJDJTBBJTIwJTIwJTIwJTIwZnJhbWV3b3JrJTNEJTIycHl0b3JjaCUyMiUyQyUwQSUyMCUyMCUyMCUyMHRhc2slM0QlMjJ0ZXh0LWdlbmVyYXRpb24lMjIlMkMlMEElMjAlMjAlMjAlMjBhY2NlbGVyYXRvciUzRCUyMmdwdSUyMiUyQyUwQSUyMCUyMCUyMCUyMHZlbmRvciUzRCUyMmF3cyUyMiUyQyUwQSUyMCUyMCUyMCUyMHJlZ2lvbiUzRCUyMnVzLWVhc3QtMSUyMiUyQyUwQSUyMCUyMCUyMCUyMHR5cGUlM0QlMjJwcm90ZWN0ZWQlMjIlMkMlMEElMjAlMjAlMjAlMjBpbnN0YW5jZV9zaXplJTNEJTIybWVkaXVtJTIyJTJDJTBBJTIwJTIwJTIwJTIwaW5zdGFuY2VfdHlwZSUzRCUyMmc1LjJ4bGFyZ2UlMjIlMkMlMEElMjAlMjAlMjAlMjBjdXN0b21faW1hZ2UlM0QlN0IlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjJoZWFsdGhfcm91dGUlMjIlM0ElMjAlMjIlMkZoZWFsdGglMjIlMkMlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjJlbnYlMjIlM0ElMjAlN0IlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjJNQVhfQkFUQ0hfUFJFRklMTF9UT0tFTlMlMjIlM0ElMjAlMjIyMDQ4JTIyJTJDJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIyTUFYX0lOUFVUX0xFTkdUSCUyMiUzQSUyMCUyMjEwMjQlMjIlMkMlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjJNQVhfVE9UQUxfVE9LRU5TJTIyJTNBJTIwJTIyMTUxMiUyMiUyQyUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMk1PREVMX0lEJTIyJTNBJTIwJTIyJTJGcmVwb3NpdG9yeSUyMiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCU3RCUyQyUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMnVybCUyMiUzQSUyMCUyMmdoY3IuaW8lMkZodWdnaW5nZmFjZSUyRnRleHQtZ2VuZXJhdGlvbi1pbmZlcmVuY2UlM0ExLjEuMCUyMiUyQyUwQSUyMCUyMCUyMCUyMCU3RCUyQyUwQSklMEE=",highlighted:`<span class="hljs-comment"># Start an Inference Endpoint running Zephyr-7b-beta on TGI</span>
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> HfApi
<span class="hljs-meta">&gt;&gt;&gt; </span>api = HfApi()
<span class="hljs-meta">&gt;&gt;&gt; </span>create_inference_endpoint(
<span class="hljs-meta">... </span>    <span class="hljs-string">&quot;aws-zephyr-7b-beta-0486&quot;</span>,
<span class="hljs-meta">... </span>    repository=<span class="hljs-string">&quot;HuggingFaceH4/zephyr-7b-beta&quot;</span>,
<span class="hljs-meta">... </span>    framework=<span class="hljs-string">&quot;pytorch&quot;</span>,
<span class="hljs-meta">... </span>    task=<span class="hljs-string">&quot;text-generation&quot;</span>,
<span class="hljs-meta">... </span>    accelerator=<span class="hljs-string">&quot;gpu&quot;</span>,
<span class="hljs-meta">... </span>    vendor=<span class="hljs-string">&quot;aws&quot;</span>,
<span class="hljs-meta">... </span>    region=<span class="hljs-string">&quot;us-east-1&quot;</span>,
<span class="hljs-meta">... </span>    <span class="hljs-built_in">type</span>=<span class="hljs-string">&quot;protected&quot;</span>,
<span class="hljs-meta">... </span>    instance_size=<span class="hljs-string">&quot;medium&quot;</span>,
<span class="hljs-meta">... </span>    instance_type=<span class="hljs-string">&quot;g5.2xlarge&quot;</span>,
<span class="hljs-meta">... </span>    custom_image={
<span class="hljs-meta">... </span>        <span class="hljs-string">&quot;health_route&quot;</span>: <span class="hljs-string">&quot;/health&quot;</span>,
<span class="hljs-meta">... </span>        <span class="hljs-string">&quot;env&quot;</span>: {
<span class="hljs-meta">... </span>            <span class="hljs-string">&quot;MAX_BATCH_PREFILL_TOKENS&quot;</span>: <span class="hljs-string">&quot;2048&quot;</span>,
<span class="hljs-meta">... </span>            <span class="hljs-string">&quot;MAX_INPUT_LENGTH&quot;</span>: <span class="hljs-string">&quot;1024&quot;</span>,
<span class="hljs-meta">... </span>            <span class="hljs-string">&quot;MAX_TOTAL_TOKENS&quot;</span>: <span class="hljs-string">&quot;1512&quot;</span>,
<span class="hljs-meta">... </span>            <span class="hljs-string">&quot;MODEL_ID&quot;</span>: <span class="hljs-string">&quot;/repository&quot;</span>
<span class="hljs-meta">... </span>        },
<span class="hljs-meta">... </span>        <span class="hljs-string">&quot;url&quot;</span>: <span class="hljs-string">&quot;ghcr.io/huggingface/text-generation-inference:1.1.0&quot;</span>,
<span class="hljs-meta">... </span>    },
<span class="hljs-meta">... </span>)
`,wrap:!1}}),{c(){h(n.$$.fragment)},l(s){f(n.$$.fragment,s)},m(s,a){m(n,s,a),g=!0},p:H,i(s){g||(_(n.$$.fragment,s),g=!0)},o(s){b(n.$$.fragment,s),g=!1},d(s){v(n,s)}}}function zM(M){let n,g="Raises the following errors:",s,a,x=`<li><a href="https://requests.readthedocs.io/en/latest/api/#requests.HTTPError" rel="nofollow"><code>HTTPError</code></a>
if the HuggingFace API returned an error</li> <li><a href="https://docs.python.org/3/library/exceptions.html#ValueError" rel="nofollow"><code>ValueError</code></a>
if some parameter value is invalid</li> <li><a href="/docs/huggingface_hub/v0.20.3/en/package_reference/utilities#huggingface_hub.utils.RepositoryNotFoundError">RepositoryNotFoundError</a>
If the repository to download from cannot be found. This may be because it doesn’t exist,
or because it is set to <code>private</code> and you do not have access.</li>`;return{c(){n=c("p"),n.textContent=g,s=r(),a=c("ul"),a.innerHTML=x},l(e){n=l(e,"P",{"data-svelte-h":!0}),d(n)!=="svelte-182te9i"&&(n.textContent=g),s=i(e),a=l(e,"UL",{"data-svelte-h":!0}),d(a)!=="svelte-v54g60"&&(a.innerHTML=x)},m(e,y){$(e,n,y),$(e,s,y),$(e,a,y)},p:H,d(e){e&&(p(n),p(s),p(a))}}}function OM(M){let n,g="Raises the following errors:",s,a,x=`<li><a href="/docs/huggingface_hub/v0.20.3/en/package_reference/utilities#huggingface_hub.utils.RepositoryNotFoundError">RepositoryNotFoundError</a>
If the repository to download from cannot be found. This may be because it doesn’t exist,
or because it is set to <code>private</code> and you do not have access.</li> <li><a href="/docs/huggingface_hub/v0.20.3/en/package_reference/utilities#huggingface_hub.utils.RevisionNotFoundError">RevisionNotFoundError</a>
If the revision to download from cannot be found.</li>`;return{c(){n=c("p"),n.textContent=g,s=r(),a=c("ul"),a.innerHTML=x},l(e){n=l(e,"P",{"data-svelte-h":!0}),d(n)!=="svelte-182te9i"&&(n.textContent=g),s=i(e),a=l(e,"UL",{"data-svelte-h":!0}),d(a)!=="svelte-3t7304"&&(a.innerHTML=x)},m(e,y){$(e,n,y),$(e,s,y),$(e,a,y)},p:H,d(e){e&&(p(n),p(s),p(a))}}}function QM(M){let n,g="Example:",s,a,x;return a=new I({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMGRlbGV0ZV9jb2xsZWN0aW9uJTBBY29sbGVjdGlvbiUyMCUzRCUyMGRlbGV0ZV9jb2xsZWN0aW9uKCUyMnVzZXJuYW1lJTJGdXNlbGVzcy1jb2xsZWN0aW9uLTY0ZjlhNTViYjMxMTViNGY1MTNlYzAyNiUyMiUyQyUyMG1pc3Npbmdfb2slM0RUcnVlKQ==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> delete_collection
<span class="hljs-meta">&gt;&gt;&gt; </span>collection = delete_collection(<span class="hljs-string">&quot;username/useless-collection-64f9a55bb3115b4f513ec026&quot;</span>, missing_ok=<span class="hljs-literal">True</span>)`,wrap:!1}}),{c(){n=c("p"),n.textContent=g,s=r(),h(a.$$.fragment)},l(e){n=l(e,"P",{"data-svelte-h":!0}),d(n)!=="svelte-11lpom8"&&(n.textContent=g),s=i(e),f(a.$$.fragment,e)},m(e,y){$(e,n,y),$(e,s,y),m(a,e,y),x=!0},p:H,i(e){x||(_(a.$$.fragment,e),x=!0)},o(e){b(a.$$.fragment,e),x=!1},d(e){e&&(p(n),p(s)),v(a,e)}}}function KM(M){let n,g="This is a non-revertible action. A deleted collection cannot be restored.";return{c(){n=c("p"),n.textContent=g},l(s){n=l(s,"P",{"data-svelte-h":!0}),d(n)!=="svelte-1k7dttx"&&(n.textContent=g)},m(s,a){$(s,n,a)},p:H,d(s){s&&p(n)}}}function ew(M){let n,g="Example:",s,a,x;return a=new I({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMGdldF9jb2xsZWN0aW9uJTJDJTIwZGVsZXRlX2NvbGxlY3Rpb25faXRlbSUwQSUwQWNvbGxlY3Rpb24lMjAlM0QlMjBnZXRfY29sbGVjdGlvbiglMjJUaGVCbG9rZSUyRnJlY2VudC1tb2RlbHMtNjRmOWE1NWJiMzExNWI0ZjUxM2VjMDI2JTIyKSUwQSUwQWRlbGV0ZV9jb2xsZWN0aW9uX2l0ZW0oJTBBJTIwJTIwJTIwJTIwY29sbGVjdGlvbl9zbHVnJTNEJTIyVGhlQmxva2UlMkZyZWNlbnQtbW9kZWxzLTY0ZjlhNTViYjMxMTViNGY1MTNlYzAyNiUyMiUyQyUwQSUyMCUyMCUyMCUyMGl0ZW1fb2JqZWN0X2lkJTNEY29sbGVjdGlvbi5pdGVtcyU1Qi0xJTVELml0ZW1fb2JqZWN0X2lkJTJDJTBBKQ==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> get_collection, delete_collection_item

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

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

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

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

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

<span class="hljs-comment"># Run inference</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>endpoint.client.text_to_image(...)`,wrap:!1}}),{c(){n=c("p"),n.textContent=g,s=r(),h(a.$$.fragment)},l(e){n=l(e,"P",{"data-svelte-h":!0}),d(n)!=="svelte-11lpom8"&&(n.textContent=g),s=i(e),f(a.$$.fragment,e)},m(e,y){$(e,n,y),$(e,s,y),m(a,e,y),x=!0},p:H,i(e){x||(_(a.$$.fragment,e),x=!0)},o(e){b(a.$$.fragment,e),x=!1},d(e){e&&(p(n),p(s)),v(a,e)}}}function lw(M){let n,g="Example:",s,a,x;return a=new I({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMGdldF9wYXRoc19pbmZvJTBBcGF0aHNfaW5mbyUyMCUzRCUyMGdldF9wYXRoc19pbmZvKCUyMmFsbGVuYWklMkZjNCUyMiUyQyUyMCU1QiUyMlJFQURNRS5tZCUyMiUyQyUyMCUyMmVuJTIyJTVEJTJDJTIwcmVwb190eXBlJTNEJTIyZGF0YXNldCUyMiklMEFwYXRoc19pbmZv",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> get_paths_info
<span class="hljs-meta">&gt;&gt;&gt; </span>paths_info = get_paths_info(<span class="hljs-string">&quot;allenai/c4&quot;</span>, [<span class="hljs-string">&quot;README.md&quot;</span>, <span class="hljs-string">&quot;en&quot;</span>], repo_type=<span class="hljs-string">&quot;dataset&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>paths_info
[
    RepoFile(path=<span class="hljs-string">&#x27;README.md&#x27;</span>, size=<span class="hljs-number">2379</span>, blob_id=<span class="hljs-string">&#x27;f84cb4c97182890fc1dbdeaf1a6a468fd27b4fff&#x27;</span>, lfs=<span class="hljs-literal">None</span>, last_commit=<span class="hljs-literal">None</span>, security=<span class="hljs-literal">None</span>),
    RepoFolder(path=<span class="hljs-string">&#x27;en&#x27;</span>, tree_id=<span class="hljs-string">&#x27;dc943c4c40f53d02b31ced1defa7e5f438d5862e&#x27;</span>, last_commit=<span class="hljs-literal">None</span>)
]`,wrap:!1}}),{c(){n=c("p"),n.textContent=g,s=r(),h(a.$$.fragment)},l(e){n=l(e,"P",{"data-svelte-h":!0}),d(n)!=="svelte-11lpom8"&&(n.textContent=g),s=i(e),f(a.$$.fragment,e)},m(e,y){$(e,n,y),$(e,s,y),m(a,e,y),x=!0},p:H,i(e){x||(_(a.$$.fragment,e),x=!0)},o(e){b(a.$$.fragment,e),x=!1},d(e){e&&(p(n),p(s)),v(a,e)}}}function pw(M){let n,g="Collecting all discussions of a repo in a list:",s,a,x;return a=new I({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMGdldF9yZXBvX2Rpc2N1c3Npb25zJTBBZGlzY3Vzc2lvbnNfbGlzdCUyMCUzRCUyMGxpc3QoZ2V0X3JlcG9fZGlzY3Vzc2lvbnMocmVwb19pZCUzRCUyMmJlcnQtYmFzZS11bmNhc2VkJTIyKSk=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> get_repo_discussions
<span class="hljs-meta">&gt;&gt;&gt; </span>discussions_list = <span class="hljs-built_in">list</span>(get_repo_discussions(repo_id=<span class="hljs-string">&quot;bert-base-uncased&quot;</span>))`,wrap:!1}}),{c(){n=c("p"),n.textContent=g,s=r(),h(a.$$.fragment)},l(e){n=l(e,"P",{"data-svelte-h":!0}),d(n)!=="svelte-1p6axsk"&&(n.textContent=g),s=i(e),f(a.$$.fragment,e)},m(e,y){$(e,n,y),$(e,s,y),m(a,e,y),x=!0},p:H,i(e){x||(_(a.$$.fragment,e),x=!0)},o(e){b(a.$$.fragment,e),x=!1},d(e){e&&(p(n),p(s)),v(a,e)}}}function dw(M){let n,g="Iterating over discussions of a repo:",s,a,x;return a=new I({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMGdldF9yZXBvX2Rpc2N1c3Npb25zJTBBZm9yJTIwZGlzY3Vzc2lvbiUyMGluJTIwZ2V0X3JlcG9fZGlzY3Vzc2lvbnMocmVwb19pZCUzRCUyMmJlcnQtYmFzZS11bmNhc2VkJTIyKSUzQSUwQSUyMCUyMCUyMCUyMHByaW50KGRpc2N1c3Npb24ubnVtJTJDJTIwZGlzY3Vzc2lvbi50aXRsZSk=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> get_repo_discussions
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">for</span> discussion <span class="hljs-keyword">in</span> get_repo_discussions(repo_id=<span class="hljs-string">&quot;bert-base-uncased&quot;</span>):
<span class="hljs-meta">... </span>    <span class="hljs-built_in">print</span>(discussion.num, discussion.title)`,wrap:!1}}),{c(){n=c("p"),n.textContent=g,s=r(),h(a.$$.fragment)},l(e){n=l(e,"P",{"data-svelte-h":!0}),d(n)!=="svelte-121l6g4"&&(n.textContent=g),s=i(e),f(a.$$.fragment,e)},m(e,y){$(e,n,y),$(e,s,y),m(a,e,y),x=!0},p:H,i(e){x||(_(a.$$.fragment,e),x=!0)},o(e){b(a.$$.fragment,e),x=!1},d(e){e&&(p(n),p(s)),v(a,e)}}}function gw(M){let n,g="Example:",s,a,x;return a=new I({props:{code:"bWV0YWRhdGElMjAlM0QlMjBnZXRfc2FmZXRlbnNvcnNfbWV0YWRhdGEoJTIyYmlnc2NpZW5jZSUyRmJsb29tei01NjBtJTIyKSUwQW1ldGFkYXRhJTBBbWV0YWRhdGEuZmlsZXNfbWV0YWRhdGElNUIlMjJtb2RlbC5zYWZldGVuc29ycyUyMiU1RC5tZXRhZGF0YSUwQSUwQW1ldGFkYXRhJTIwJTNEJTIwZ2V0X3NhZmV0ZW5zb3JzX21ldGFkYXRhKCUyMmJpZ3NjaWVuY2UlMkZibG9vbSUyMiklMEFtZXRhZGF0YSUwQWxlbihtZXRhZGF0YS5maWxlc19tZXRhZGF0YSklMEElMEFnZXRfc2FmZXRlbnNvcnNfbWV0YWRhdGEoJTIycnVud2F5bWwlMkZzdGFibGUtZGlmZnVzaW9uLXYxLTUlMjIp",highlighted:`<span class="hljs-comment"># Parse repo with single weights file</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>metadata = get_safetensors_metadata(<span class="hljs-string">&quot;bigscience/bloomz-560m&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>metadata
SafetensorsRepoMetadata(
    metadata=<span class="hljs-literal">None</span>,
    sharded=<span class="hljs-literal">False</span>,
    weight_map={<span class="hljs-string">&#x27;h.0.input_layernorm.bias&#x27;</span>: <span class="hljs-string">&#x27;model.safetensors&#x27;</span>, ...},
    files_metadata={<span class="hljs-string">&#x27;model.safetensors&#x27;</span>: SafetensorsFileMetadata(...)}
)
<span class="hljs-meta">&gt;&gt;&gt; </span>metadata.files_metadata[<span class="hljs-string">&quot;model.safetensors&quot;</span>].metadata
{<span class="hljs-string">&#x27;format&#x27;</span>: <span class="hljs-string">&#x27;pt&#x27;</span>}

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

<span class="hljs-comment"># Parse repo with sharded model</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>get_safetensors_metadata(<span class="hljs-string">&quot;runwayml/stable-diffusion-v1-5&quot;</span>)
NotASafetensorsRepoError: <span class="hljs-string">&#x27;runwayml/stable-diffusion-v1-5&#x27;</span> <span class="hljs-keyword">is</span> <span class="hljs-keyword">not</span> a safetensors repo. Couldn<span class="hljs-string">&#x27;t find &#x27;</span>model.safetensors.index.json<span class="hljs-string">&#x27; or &#x27;</span>model.safetensors<span class="hljs-string">&#x27; files.</span>`,wrap:!1}}),{c(){n=c("p"),n.textContent=g,s=r(),h(a.$$.fragment)},l(e){n=l(e,"P",{"data-svelte-h":!0}),d(n)!=="svelte-11lpom8"&&(n.textContent=g),s=i(e),f(a.$$.fragment,e)},m(e,y){$(e,n,y),$(e,s,y),m(a,e,y),x=!0},p:H,i(e){x||(_(a.$$.fragment,e),x=!0)},o(e){b(a.$$.fragment,e),x=!1},d(e){e&&(p(n),p(s)),v(a,e)}}}function uw(M){let n,g;return n=new I({props:{code:"JTVCJTIwJTIwOTYlNUQlMjAlMjAuJTBBJUUyJTk0JTk0JUUyJTk0JTgwJUUyJTk0JTgwJTIwJTVCJTIwMTYwJTVEJTIwJTIwbW9kZWxzLS1qdWxpZW4tYy0tRXNwZXJCRVJUby1zbWFsbCUwQSUyMCUyMCUyMCUyMCVFMiU5NCU5QyVFMiU5NCU4MCVFMiU5NCU4MCUyMCU1QiUyMDE2MCU1RCUyMCUyMGJsb2JzJTBBJTIwJTIwJTIwJTIwJUUyJTk0JTgyJTIwJTIwJTIwJUUyJTk0JTlDJUUyJTk0JTgwJUUyJTk0JTgwJTIwJTVCMzIxTSU1RCUyMCUyMDQwMzQ1MGUyMzRkNjU5NDNhN2RjZjdlMDVhNzcxY2UzYzkyZmFhODRkZDA3ZGI0YWMyMGY1OTIwMzdhMWU0YmQlMEElMjAlMjAlMjAlMjAlRTIlOTQlODIlMjAlMjAlMjAlRTIlOTQlOUMlRTIlOTQlODAlRTIlOTQlODAlMjAlNUIlMjAzOTglNUQlMjAlMjA3Y2IxOGRjOWJhZmJmY2Y3NDYyOWE0Yjc2MGFmMWIxNjA5NTdhODNlJTBBJTIwJTIwJTIwJTIwJUUyJTk0JTgyJTIwJTIwJTIwJUUyJTk0JTk0JUUyJTk0JTgwJUUyJTk0JTgwJTIwJTVCMS40SyU1RCUyMCUyMGQ3ZWRmNmJkMmE2ODFmYjAxNzVmNzczNTI5OTgzMWVlMWIyMmI4MTIlMEElMjAlMjAlMjAlMjAlRTIlOTQlOUMlRTIlOTQlODAlRTIlOTQlODAlMjAlNUIlMjAlMjA5NiU1RCUyMCUyMHJlZnMlMEElMjAlMjAlMjAlMjAlRTIlOTQlODIlMjAlMjAlMjAlRTIlOTQlOTQlRTIlOTQlODAlRTIlOTQlODAlMjAlNUIlMjAlMjA0MCU1RCUyMCUyMG1haW4lMEElMjAlMjAlMjAlMjAlRTIlOTQlOTQlRTIlOTQlODAlRTIlOTQlODAlMjAlNUIlMjAxMjglNUQlMjAlMjBzbmFwc2hvdHMlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlRTIlOTQlOUMlRTIlOTQlODAlRTIlOTQlODAlMjAlNUIlMjAxMjglNUQlMjAlMjAyNDM5ZjYwZWYzM2EwZDQ2ZDg1ZGE1MDAxZDUyYWVkYTViMDBjZTlmJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJUUyJTk0JTgyJTIwJTIwJTIwJUUyJTk0JTlDJUUyJTk0JTgwJUUyJTk0JTgwJTIwJTVCJTIwJTIwNTIlNUQlMjAlMjBSRUFETUUubWQlMjAtJTNFJTIwLi4lMkYuLiUyRmJsb2JzJTJGZDdlZGY2YmQyYTY4MWZiMDE3NWY3NzM1Mjk5ODMxZWUxYjIyYjgxMiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCVFMiU5NCU4MiUyMCUyMCUyMCVFMiU5NCU5NCVFMiU5NCU4MCVFMiU5NCU4MCUyMCU1QiUyMCUyMDc2JTVEJTIwJTIwcHl0b3JjaF9tb2RlbC5iaW4lMjAtJTNFJTIwLi4lMkYuLiUyRmJsb2JzJTJGNDAzNDUwZTIzNGQ2NTk0M2E3ZGNmN2UwNWE3NzFjZTNjOTJmYWE4NGRkMDdkYjRhYzIwZjU5MjAzN2ExZTRiZCUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCVFMiU5NCU5NCVFMiU5NCU4MCVFMiU5NCU4MCUyMCU1QiUyMDEyOCU1RCUyMCUyMGJiYzc3YzgxMzJhZjFjYzVjZjY3OGRhM2YxZGRmMmRlNDM2MDZkNDglMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlRTIlOTQlOUMlRTIlOTQlODAlRTIlOTQlODAlMjAlNUIlMjAlMjA1MiU1RCUyMCUyMFJFQURNRS5tZCUyMC0lM0UlMjAuLiUyRi4uJTJGYmxvYnMlMkY3Y2IxOGRjOWJhZmJmY2Y3NDYyOWE0Yjc2MGFmMWIxNjA5NTdhODNlJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJUUyJTk0JTk0JUUyJTk0JTgwJUUyJTk0JTgwJTIwJTVCJTIwJTIwNzYlNUQlMjAlMjBweXRvcmNoX21vZGVsLmJpbiUyMC0lM0UlMjAuLiUyRi4uJTJGYmxvYnMlMkY0MDM0NTBlMjM0ZDY1OTQzYTdkY2Y3ZTA1YTc3MWNlM2M5MmZhYTg0ZGQwN2RiNGFjMjBmNTkyMDM3YTFlNGJk",highlighted:`<span class="hljs-selector-attr">[  96]</span>  .
└── <span class="hljs-selector-attr">[ 160]</span>  models<span class="hljs-attr">--julien-c--EsperBERTo-small</span>
    ├── <span class="hljs-selector-attr">[ 160]</span>  blobs
    │   ├── <span class="hljs-selector-attr">[321M]</span>  <span class="hljs-number">403450</span>e234d65943a7dcf7e05a771ce3c92faa84dd07db4ac20f592037a1e4bd
    │   ├── <span class="hljs-selector-attr">[ 398]</span>  <span class="hljs-number">7</span>cb18dc9bafbfcf74629a4b760af1b160957a83e
    │   └── <span class="hljs-selector-attr">[1.4K]</span>  d7edf6bd2a681fb0175f7735299831ee1b22b812
    ├── <span class="hljs-selector-attr">[  96]</span>  refs
    │   └── <span class="hljs-selector-attr">[  40]</span>  <span class="hljs-selector-tag">main</span>
    └── <span class="hljs-selector-attr">[ 128]</span>  snapshots
        ├── <span class="hljs-selector-attr">[ 128]</span>  <span class="hljs-number">2439</span>f60ef33a0d46d85da5001d52aeda5b00ce9f
        │   ├── <span class="hljs-selector-attr">[  52]</span>  README<span class="hljs-selector-class">.md</span> -&gt; ../../blobs/d7edf6bd2a681fb0175f7735299831ee1b22b812
        │   └── <span class="hljs-selector-attr">[  76]</span>  pytorch_model<span class="hljs-selector-class">.bin</span> -&gt; ../../blobs/<span class="hljs-number">403450</span>e234d65943a7dcf7e05a771ce3c92faa84dd07db4ac20f592037a1e4bd
        └── <span class="hljs-selector-attr">[ 128]</span>  bbc77c8132af1cc5cf678da3f1ddf2de43606d48
            ├── <span class="hljs-selector-attr">[  52]</span>  README<span class="hljs-selector-class">.md</span> -&gt; ../../blobs/<span class="hljs-number">7</span>cb18dc9bafbfcf74629a4b760af1b160957a83e
            └── <span class="hljs-selector-attr">[  76]</span>  pytorch_model<span class="hljs-selector-class">.bin</span> -&gt; ../../blobs/<span class="hljs-number">403450</span>e234d65943a7dcf7e05a771ce3c92faa84dd07db4ac20f592037a1e4bd`,wrap:!1}}),{c(){h(n.$$.fragment)},l(s){f(n.$$.fragment,s)},m(s,a){m(n,s,a),g=!0},p:H,i(s){g||(_(n.$$.fragment,s),g=!0)},o(s){b(n.$$.fragment,s),g=!1},d(s){v(n,s)}}}function hw(M){let n,g="Raises the following errors:",s,a,x=`<li><a href="https://docs.python.org/3/library/exceptions.html#EnvironmentError" rel="nofollow"><code>EnvironmentError</code></a>
if <code>token=True</code> and the token cannot be found.</li> <li><a href="https://docs.python.org/3/library/exceptions.html#OSError" rel="nofollow"><code>OSError</code></a>
if ETag cannot be determined.</li> <li><a href="https://docs.python.org/3/library/exceptions.html#ValueError" rel="nofollow"><code>ValueError</code></a>
if some parameter value is invalid</li> <li><a href="/docs/huggingface_hub/v0.20.3/en/package_reference/utilities#huggingface_hub.utils.RepositoryNotFoundError">RepositoryNotFoundError</a>
If the repository to download from cannot be found. This may be because it doesn’t exist,
or because it is set to <code>private</code> and you do not have access.</li> <li><a href="/docs/huggingface_hub/v0.20.3/en/package_reference/utilities#huggingface_hub.utils.RevisionNotFoundError">RevisionNotFoundError</a>
If the revision to download from cannot be found.</li> <li><a href="/docs/huggingface_hub/v0.20.3/en/package_reference/utilities#huggingface_hub.utils.EntryNotFoundError">EntryNotFoundError</a>
If the file to download cannot be found.</li> <li><a href="/docs/huggingface_hub/v0.20.3/en/package_reference/utilities#huggingface_hub.utils.LocalEntryNotFoundError">LocalEntryNotFoundError</a>
If network is disabled or unavailable and file is not found in cache.</li>`;return{c(){n=c("p"),n.textContent=g,s=r(),a=c("ul"),a.innerHTML=x},l(e){n=l(e,"P",{"data-svelte-h":!0}),d(n)!=="svelte-182te9i"&&(n.textContent=g),s=i(e),a=l(e,"UL",{"data-svelte-h":!0}),d(a)!=="svelte-1k09y1g"&&(a.innerHTML=x)},m(e,y){$(e,n,y),$(e,s,y),$(e,a,y)},p:H,d(e){e&&(p(n),p(s),p(a))}}}function fw(M){let n;return{c(){n=AM("Hidden comments' content cannot be retrieved anymore. Hiding a comment is irreversible.")},l(g){n=JM(g,"Hidden comments' content cannot be retrieved anymore. Hiding a comment is irreversible.")},m(g,s){$(g,n,s)},d(g){g&&p(n)}}}function mw(M){let n,g="Raises the following errors:",s,a,x=`<li><a href="https://requests.readthedocs.io/en/latest/api/#requests.HTTPError" rel="nofollow"><code>HTTPError</code></a>
if the HuggingFace API returned an error</li> <li><a href="https://docs.python.org/3/library/exceptions.html#ValueError" rel="nofollow"><code>ValueError</code></a>
if some parameter value is invalid</li> <li><a href="/docs/huggingface_hub/v0.20.3/en/package_reference/utilities#huggingface_hub.utils.RepositoryNotFoundError">RepositoryNotFoundError</a>
If the repository to download from cannot be found. This may be because it doesn’t exist,
or because it is set to <code>private</code> and you do not have access.</li>`;return{c(){n=c("p"),n.textContent=g,s=r(),a=c("ul"),a.innerHTML=x},l(e){n=l(e,"P",{"data-svelte-h":!0}),d(n)!=="svelte-182te9i"&&(n.textContent=g),s=i(e),a=l(e,"UL",{"data-svelte-h":!0}),d(a)!=="svelte-v54g60"&&(a.innerHTML=x)},m(e,y){$(e,n,y),$(e,s,y),$(e,a,y)},p:H,d(e){e&&(p(n),p(s),p(a))}}}function _w(M){let n,g="Example:",s,a,x;return a=new I({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMGxpa2UlMkMlMjBsaXN0X2xpa2VkX3JlcG9zJTJDJTIwdW5saWtlJTBBbGlrZSglMjJncHQyJTIyKSUwQSUyMmdwdDIlMjIlMjBpbiUyMGxpc3RfbGlrZWRfcmVwb3MoKS5tb2RlbHMlMEF1bmxpa2UoJTIyZ3B0MiUyMiklMEElMjJncHQyJTIyJTIwaW4lMjBsaXN0X2xpa2VkX3JlcG9zKCkubW9kZWxz",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> like, list_liked_repos, unlike
<span class="hljs-meta">&gt;&gt;&gt; </span>like(<span class="hljs-string">&quot;gpt2&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-string">&quot;gpt2&quot;</span> <span class="hljs-keyword">in</span> list_liked_repos().models
<span class="hljs-literal">True</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>unlike(<span class="hljs-string">&quot;gpt2&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-string">&quot;gpt2&quot;</span> <span class="hljs-keyword">in</span> list_liked_repos().models
<span class="hljs-literal">False</span>`,wrap:!1}}),{c(){n=c("p"),n.textContent=g,s=r(),h(a.$$.fragment)},l(e){n=l(e,"P",{"data-svelte-h":!0}),d(n)!=="svelte-11lpom8"&&(n.textContent=g),s=i(e),f(a.$$.fragment,e)},m(e,y){$(e,n,y),$(e,s,y),m(a,e,y),x=!0},p:H,i(e){x||(_(a.$$.fragment,e),x=!0)},o(e){b(a.$$.fragment,e),x=!1},d(e){e&&(p(n),p(s)),v(a,e)}}}function bw(M){let n,g="Example:",s,a,x;return a=new I({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMGxpc3RfYWNjZXB0ZWRfYWNjZXNzX3JlcXVlc3RzJTBBJTBBcmVxdWVzdHMlMjAlM0QlMjBsaXN0X2FjY2VwdGVkX2FjY2Vzc19yZXF1ZXN0cyglMjJtZXRhLWxsYW1hJTJGTGxhbWEtMi03YiUyMiklMEFsZW4ocmVxdWVzdHMpJTBBcmVxdWVzdHMlNUIwJTVE",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> list_accepted_access_requests

<span class="hljs-meta">&gt;&gt;&gt; </span>requests = list_accepted_access_requests(<span class="hljs-string">&quot;meta-llama/Llama-2-7b&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-built_in">len</span>(requests)
<span class="hljs-number">411</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>requests[<span class="hljs-number">0</span>]
[
    AccessRequest(
        username=<span class="hljs-string">&#x27;clem&#x27;</span>,
        fullname=<span class="hljs-string">&#x27;Clem 🤗&#x27;</span>,
        email=<span class="hljs-string">&#x27;***&#x27;</span>,
        timestamp=datetime.datetime(<span class="hljs-number">2023</span>, <span class="hljs-number">11</span>, <span class="hljs-number">23</span>, <span class="hljs-number">18</span>, <span class="hljs-number">4</span>, <span class="hljs-number">53</span>, <span class="hljs-number">828000</span>, tzinfo=datetime.timezone.utc),
        status=<span class="hljs-string">&#x27;accepted&#x27;</span>,
        fields=<span class="hljs-literal">None</span>,
    ),
    ...
]`,wrap:!1}}),{c(){n=c("p"),n.textContent=g,s=r(),h(a.$$.fragment)},l(e){n=l(e,"P",{"data-svelte-h":!0}),d(n)!=="svelte-11lpom8"&&(n.textContent=g),s=i(e),f(a.$$.fragment,e)},m(e,y){$(e,n,y),$(e,s,y),m(a,e,y),x=!0},p:H,i(e){x||(_(a.$$.fragment,e),x=!0)},o(e){b(a.$$.fragment,e),x=!1},d(e){e&&(p(n),p(s)),v(a,e)}}}function vw(M){let n,g=`When listing collections, the item list per collection is truncated to 4 items maximum. To retrieve all items
from a collection, you must use <a href="/docs/huggingface_hub/v0.20.3/en/package_reference/hf_api#huggingface_hub.HfApi.get_collection">get_collection()</a>.`;return{c(){n=c("p"),n.innerHTML=g},l(s){n=l(s,"P",{"data-svelte-h":!0}),d(n)!=="svelte-1h1i0oq"&&(n.innerHTML=g)},m(s,a){$(s,n,a)},p:H,d(s){s&&p(n)}}}function xw(M){let n,g="Example usage with the <code>filter</code> argument:",s,a,x;return a=new I({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMEhmQXBpJTBBJTBBYXBpJTIwJTNEJTIwSGZBcGkoKSUwQSUwQSUyMyUyMExpc3QlMjBhbGwlMjBkYXRhc2V0cyUwQWFwaS5saXN0X2RhdGFzZXRzKCklMEElMEElMEElMjMlMjBMaXN0JTIwb25seSUyMHRoZSUyMHRleHQlMjBjbGFzc2lmaWNhdGlvbiUyMGRhdGFzZXRzJTBBYXBpLmxpc3RfZGF0YXNldHMoZmlsdGVyJTNEJTIydGFza19jYXRlZ29yaWVzJTNBdGV4dC1jbGFzc2lmaWNhdGlvbiUyMiklMEElMjMlMjBVc2luZyUyMHRoZSUyMCU2MERhdGFzZXRGaWx0ZXIlNjAlMEFmaWx0JTIwJTNEJTIwRGF0YXNldEZpbHRlcih0YXNrX2NhdGVnb3JpZXMlM0QlMjJ0ZXh0LWNsYXNzaWZpY2F0aW9uJTIyKSUwQSUwQSUwQSUyMyUyMExpc3QlMjBvbmx5JTIwdGhlJTIwZGF0YXNldHMlMjBpbiUyMHJ1c3NpYW4lMjBmb3IlMjBsYW5ndWFnZSUyMG1vZGVsaW5nJTBBYXBpLmxpc3RfZGF0YXNldHMoJTBBJTIwJTIwJTIwJTIwZmlsdGVyJTNEKCUyMmxhbmd1YWdlJTNBcnUlMjIlMkMlMjAlMjJ0YXNrX2lkcyUzQWxhbmd1YWdlLW1vZGVsaW5nJTIyKSUwQSklMEElMjMlMjBVc2luZyUyMHRoZSUyMCU2MERhdGFzZXRGaWx0ZXIlNjAlMEFmaWx0JTIwJTNEJTIwRGF0YXNldEZpbHRlcihsYW5ndWFnZSUzRCUyMnJ1JTIyJTJDJTIwdGFza19pZHMlM0QlMjJsYW5ndWFnZS1tb2RlbGluZyUyMiklMEElMEFhcGkubGlzdF9kYXRhc2V0cyhmaWx0ZXIlM0RmaWx0KQ==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> HfApi

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

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


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


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

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

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

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

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

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

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

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

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

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

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

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

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

<span class="hljs-meta">&gt;&gt;&gt; </span>requests = list_rejected_access_requests(<span class="hljs-string">&quot;meta-llama/Llama-2-7b&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-built_in">len</span>(requests)
<span class="hljs-number">411</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>requests[<span class="hljs-number">0</span>]
[
    AccessRequest(
        username=<span class="hljs-string">&#x27;clem&#x27;</span>,
        fullname=<span class="hljs-string">&#x27;Clem 🤗&#x27;</span>,
        email=<span class="hljs-string">&#x27;***&#x27;</span>,
        timestamp=datetime.datetime(<span class="hljs-number">2023</span>, <span class="hljs-number">11</span>, <span class="hljs-number">23</span>, <span class="hljs-number">18</span>, <span class="hljs-number">4</span>, <span class="hljs-number">53</span>, <span class="hljs-number">828000</span>, tzinfo=datetime.timezone.utc),
        status=<span class="hljs-string">&#x27;rejected&#x27;</span>,
        fields=<span class="hljs-literal">None</span>,
    ),
    ...
]`,wrap:!1}}),{c(){n=c("p"),n.textContent=g,s=r(),h(a.$$.fragment)},l(e){n=l(e,"P",{"data-svelte-h":!0}),d(n)!=="svelte-11lpom8"&&(n.textContent=g),s=i(e),f(a.$$.fragment,e)},m(e,y){$(e,n,y),$(e,s,y),m(a,e,y),x=!0},p:H,i(e){x||(_(a.$$.fragment,e),x=!0)},o(e){b(a.$$.fragment,e),x=!1},d(e){e&&(p(n),p(s)),v(a,e)}}}function qw(M){let n,g="Example:",s,a,x;return a=new I({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMEhmQXBpJTBBYXBpJTIwJTNEJTIwSGZBcGkoKSUwQSUwQWluaXRpYWxfY29tbWl0JTIwJTNEJTIwYXBpLmxpc3RfcmVwb19jb21taXRzKCUyMmdwdDIlMjIpJTVCLTElNUQlMEElMEFpbml0aWFsX2NvbW1pdCUwQSUwQWFwaS5jcmVhdGVfYnJhbmNoKCUyMmdwdDIlMjIlMkMlMjAlMjJuZXdfZW1wdHlfYnJhbmNoJTIyJTJDJTIwcmV2aXNpb24lM0Rpbml0aWFsX2NvbW1pdC5jb21taXRfaWQp",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> HfApi
<span class="hljs-meta">&gt;&gt;&gt; </span>api = HfApi()

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

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

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

<span class="hljs-meta">&gt;&gt;&gt; </span>api.list_repo_refs(<span class="hljs-string">&quot;bigcode/the-stack&quot;</span>, repo_type=<span class="hljs-string">&#x27;dataset&#x27;</span>)
GitRefs(
    branches=[
        GitRefInfo(name=<span class="hljs-string">&#x27;main&#x27;</span>, ref=<span class="hljs-string">&#x27;refs/heads/main&#x27;</span>, target_commit=<span class="hljs-string">&#x27;18edc1591d9ce72aa82f56c4431b3c969b210ae3&#x27;</span>),
        GitRefInfo(name=<span class="hljs-string">&#x27;v1.1.a1&#x27;</span>, ref=<span class="hljs-string">&#x27;refs/heads/v1.1.a1&#x27;</span>, target_commit=<span class="hljs-string">&#x27;f9826b862d1567f3822d3d25649b0d6d22ace714&#x27;</span>)
    ],
    converts=[],
    tags=[
        GitRefInfo(name=<span class="hljs-string">&#x27;v1.0&#x27;</span>, ref=<span class="hljs-string">&#x27;refs/tags/v1.0&#x27;</span>, target_commit=<span class="hljs-string">&#x27;c37a8cd1e382064d8aced5e05543c5f7753834da&#x27;</span>)
    ]
)`,wrap:!1}}),{c(){n=c("p"),n.textContent=g,s=r(),h(a.$$.fragment)},l(e){n=l(e,"P",{"data-svelte-h":!0}),d(n)!=="svelte-11lpom8"&&(n.textContent=g),s=i(e),f(a.$$.fragment,e)},m(e,y){$(e,n,y),$(e,s,y),m(a,e,y),x=!0},p:H,i(e){x||(_(a.$$.fragment,e),x=!0)},o(e){b(a.$$.fragment,e),x=!1},d(e){e&&(p(n),p(s)),v(a,e)}}}function Jw(M){let n,g;return n=new I({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMGxpc3RfcmVwb190cmVlJTBBcmVwb190cmVlJTIwJTNEJTIwbGlzdF9yZXBvX3RyZWUoJTIybHlzYW5kcmUlMkZhcnhpdi1ubHAlMjIpJTBBcmVwb190cmVlJTBBbGlzdChyZXBvX3RyZWUp",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> list_repo_tree
<span class="hljs-meta">&gt;&gt;&gt; </span>repo_tree = list_repo_tree(<span class="hljs-string">&quot;lysandre/arxiv-nlp&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>repo_tree
&lt;generator <span class="hljs-built_in">object</span> HfApi.list_repo_tree at <span class="hljs-number">0x7fa4088e1ac0</span>&gt;
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-built_in">list</span>(repo_tree)
[
    RepoFile(path=<span class="hljs-string">&#x27;.gitattributes&#x27;</span>, size=<span class="hljs-number">391</span>, blob_id=<span class="hljs-string">&#x27;ae8c63daedbd4206d7d40126955d4e6ab1c80f8f&#x27;</span>, lfs=<span class="hljs-literal">None</span>, last_commit=<span class="hljs-literal">None</span>, security=<span class="hljs-literal">None</span>),
    RepoFile(path=<span class="hljs-string">&#x27;README.md&#x27;</span>, size=<span class="hljs-number">391</span>, blob_id=<span class="hljs-string">&#x27;43bd404b159de6fba7c2f4d3264347668d43af25&#x27;</span>, lfs=<span class="hljs-literal">None</span>, last_commit=<span class="hljs-literal">None</span>, security=<span class="hljs-literal">None</span>),
    RepoFile(path=<span class="hljs-string">&#x27;config.json&#x27;</span>, size=<span class="hljs-number">554</span>, blob_id=<span class="hljs-string">&#x27;2f9618c3a19b9a61add74f70bfb121335aeef666&#x27;</span>, lfs=<span class="hljs-literal">None</span>, last_commit=<span class="hljs-literal">None</span>, security=<span class="hljs-literal">None</span>),
    RepoFile(
        path=<span class="hljs-string">&#x27;flax_model.msgpack&#x27;</span>, size=<span class="hljs-number">497764107</span>, blob_id=<span class="hljs-string">&#x27;8095a62ccb4d806da7666fcda07467e2d150218e&#x27;</span>,
        lfs={<span class="hljs-string">&#x27;size&#x27;</span>: <span class="hljs-number">497764107</span>, <span class="hljs-string">&#x27;sha256&#x27;</span>: <span class="hljs-string">&#x27;d88b0d6a6ff9c3f8151f9d3228f57092aaea997f09af009eefd7373a77b5abb9&#x27;</span>, <span class="hljs-string">&#x27;pointer_size&#x27;</span>: <span class="hljs-number">134</span>}, last_commit=<span class="hljs-literal">None</span>, security=<span class="hljs-literal">None</span>
    ),
    RepoFile(path=<span class="hljs-string">&#x27;merges.txt&#x27;</span>, size=<span class="hljs-number">456318</span>, blob_id=<span class="hljs-string">&#x27;226b0752cac7789c48f0cb3ec53eda48b7be36cc&#x27;</span>, lfs=<span class="hljs-literal">None</span>, last_commit=<span class="hljs-literal">None</span>, security=<span class="hljs-literal">None</span>),
    RepoFile(
        path=<span class="hljs-string">&#x27;pytorch_model.bin&#x27;</span>, size=<span class="hljs-number">548123560</span>, blob_id=<span class="hljs-string">&#x27;64eaa9c526867e404b68f2c5d66fd78e27026523&#x27;</span>,
        lfs={<span class="hljs-string">&#x27;size&#x27;</span>: <span class="hljs-number">548123560</span>, <span class="hljs-string">&#x27;sha256&#x27;</span>: <span class="hljs-string">&#x27;9be78edb5b928eba33aa88f431551348f7466ba9f5ef3daf1d552398722a5436&#x27;</span>, <span class="hljs-string">&#x27;pointer_size&#x27;</span>: <span class="hljs-number">134</span>}, last_commit=<span class="hljs-literal">None</span>, security=<span class="hljs-literal">None</span>
    ),
    RepoFile(path=<span class="hljs-string">&#x27;vocab.json&#x27;</span>, size=<span class="hljs-number">898669</span>, blob_id=<span class="hljs-string">&#x27;b00361fece0387ca34b4b8b8539ed830d644dbeb&#x27;</span>, lfs=<span class="hljs-literal">None</span>, last_commit=<span class="hljs-literal">None</span>, security=<span class="hljs-literal">None</span>)]
]`,wrap:!1}}),{c(){h(n.$$.fragment)},l(s){f(n.$$.fragment,s)},m(s,a){m(n,s,a),g=!0},p:H,i(s){g||(_(n.$$.fragment,s),g=!0)},o(s){b(n.$$.fragment,s),g=!1},d(s){v(n,s)}}}function Nw(M){let n,g;return n=new I({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMGxpc3RfcmVwb190cmVlJTBBcmVwb190cmVlJTIwJTNEJTIwbGlzdF9yZXBvX3RyZWUoJTIycHJvbXB0aGVybyUyRm9wZW5qb3VybmV5LXY0JTIyJTJDJTIwZXhwYW5kJTNEVHJ1ZSklMEFsaXN0KHJlcG9fdHJlZSk=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> list_repo_tree
<span class="hljs-meta">&gt;&gt;&gt; </span>repo_tree = list_repo_tree(<span class="hljs-string">&quot;prompthero/openjourney-v4&quot;</span>, expand=<span class="hljs-literal">True</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-built_in">list</span>(repo_tree)
[
    RepoFolder(
        path=<span class="hljs-string">&#x27;feature_extractor&#x27;</span>,
        tree_id=<span class="hljs-string">&#x27;aa536c4ea18073388b5b0bc791057a7296a00398&#x27;</span>,
        last_commit={
            <span class="hljs-string">&#x27;oid&#x27;</span>: <span class="hljs-string">&#x27;47b62b20b20e06b9de610e840282b7e6c3d51190&#x27;</span>,
            <span class="hljs-string">&#x27;title&#x27;</span>: <span class="hljs-string">&#x27;Upload diffusers weights (#48)&#x27;</span>,
            <span class="hljs-string">&#x27;date&#x27;</span>: datetime.datetime(<span class="hljs-number">2023</span>, <span class="hljs-number">3</span>, <span class="hljs-number">21</span>, <span class="hljs-number">9</span>, <span class="hljs-number">5</span>, <span class="hljs-number">27</span>, tzinfo=datetime.timezone.utc)
        }
    ),
    RepoFolder(
        path=<span class="hljs-string">&#x27;safety_checker&#x27;</span>,
        tree_id=<span class="hljs-string">&#x27;65aef9d787e5557373fdf714d6c34d4fcdd70440&#x27;</span>,
        last_commit={
            <span class="hljs-string">&#x27;oid&#x27;</span>: <span class="hljs-string">&#x27;47b62b20b20e06b9de610e840282b7e6c3d51190&#x27;</span>,
            <span class="hljs-string">&#x27;title&#x27;</span>: <span class="hljs-string">&#x27;Upload diffusers weights (#48)&#x27;</span>,
            <span class="hljs-string">&#x27;date&#x27;</span>: datetime.datetime(<span class="hljs-number">2023</span>, <span class="hljs-number">3</span>, <span class="hljs-number">21</span>, <span class="hljs-number">9</span>, <span class="hljs-number">5</span>, <span class="hljs-number">27</span>, tzinfo=datetime.timezone.utc)
        }
    ),
    RepoFile(
        path=<span class="hljs-string">&#x27;model_index.json&#x27;</span>,
        size=<span class="hljs-number">582</span>,
        blob_id=<span class="hljs-string">&#x27;d3d7c1e8c3e78eeb1640b8e2041ee256e24c9ee1&#x27;</span>,
        lfs=<span class="hljs-literal">None</span>,
        last_commit={
            <span class="hljs-string">&#x27;oid&#x27;</span>: <span class="hljs-string">&#x27;b195ed2d503f3eb29637050a886d77bd81d35f0e&#x27;</span>,
            <span class="hljs-string">&#x27;title&#x27;</span>: <span class="hljs-string">&#x27;Fix deprecation warning by changing \`CLIPFeatureExtractor\` to \`CLIPImageProcessor\`. (#54)&#x27;</span>,
            <span class="hljs-string">&#x27;date&#x27;</span>: datetime.datetime(<span class="hljs-number">2023</span>, <span class="hljs-number">5</span>, <span class="hljs-number">15</span>, <span class="hljs-number">21</span>, <span class="hljs-number">41</span>, <span class="hljs-number">59</span>, tzinfo=datetime.timezone.utc)
        },
        security={
            <span class="hljs-string">&#x27;safe&#x27;</span>: <span class="hljs-literal">True</span>,
            <span class="hljs-string">&#x27;av_scan&#x27;</span>: {<span class="hljs-string">&#x27;virusFound&#x27;</span>: <span class="hljs-literal">False</span>, <span class="hljs-string">&#x27;virusNames&#x27;</span>: <span class="hljs-literal">None</span>},
            <span class="hljs-string">&#x27;pickle_import_scan&#x27;</span>: <span class="hljs-literal">None</span>
        }
    )
    ...
]`,wrap:!1}}),{c(){h(n.$$.fragment)},l(s){f(n.$$.fragment,s)},m(s,a){m(n,s,a),g=!0},p:H,i(s){g||(_(n.$$.fragment,s),g=!0)},o(s){b(n.$$.fragment,s),g=!1},d(s){v(n,s)}}}function Ew(M){let n,g="Raises the following errors:",s,a,x=`<li><a href="https://requests.readthedocs.io/en/latest/api/#requests.HTTPError" rel="nofollow"><code>HTTPError</code></a>
if the HuggingFace API returned an error</li> <li><a href="https://docs.python.org/3/library/exceptions.html#ValueError" rel="nofollow"><code>ValueError</code></a>
if some parameter value is invalid</li> <li><a href="/docs/huggingface_hub/v0.20.3/en/package_reference/utilities#huggingface_hub.utils.RepositoryNotFoundError">RepositoryNotFoundError</a>
If the repository to download from cannot be found. This may be because it doesn’t exist,
or because it is set to <code>private</code> and you do not have access.</li>`;return{c(){n=c("p"),n.textContent=g,s=r(),a=c("ul"),a.innerHTML=x},l(e){n=l(e,"P",{"data-svelte-h":!0}),d(n)!=="svelte-182te9i"&&(n.textContent=g),s=i(e),a=l(e,"UL",{"data-svelte-h":!0}),d(a)!=="svelte-v54g60"&&(a.innerHTML=x)},m(e,y){$(e,n,y),$(e,s,y),$(e,a,y)},p:H,d(e){e&&(p(n),p(s),p(a))}}}function Rw(M){let n,g="Raises the following errors:",s,a,x=`<li><a href="/docs/huggingface_hub/v0.20.3/en/package_reference/utilities#huggingface_hub.utils.RepositoryNotFoundError">RepositoryNotFoundError</a>
If the repository to download from cannot be found. This may be because it doesn’t exist,
or because it is set to <code>private</code> and you do not have access.</li> <li><a href="/docs/huggingface_hub/v0.20.3/en/package_reference/utilities#huggingface_hub.utils.RevisionNotFoundError">RevisionNotFoundError</a>
If the revision to download from cannot be found.</li>`;return{c(){n=c("p"),n.textContent=g,s=r(),a=c("ul"),a.innerHTML=x},l(e){n=l(e,"P",{"data-svelte-h":!0}),d(n)!=="svelte-182te9i"&&(n.textContent=g),s=i(e),a=l(e,"UL",{"data-svelte-h":!0}),d(a)!=="svelte-3t7304"&&(a.innerHTML=x)},m(e,y){$(e,n,y),$(e,s,y),$(e,a,y)},p:H,d(e){e&&(p(n),p(s),p(a))}}}function Gw(M){let n,g="Raises the following errors:",s,a,x=`<li><a href="/docs/huggingface_hub/v0.20.3/en/package_reference/utilities#huggingface_hub.utils.RepositoryNotFoundError">RepositoryNotFoundError</a>
If the repository to download from cannot be found. This may be because it doesn’t exist,
or because it is set to <code>private</code> and you do not have access.</li>`;return{c(){n=c("p"),n.textContent=g,s=r(),a=c("ul"),a.innerHTML=x},l(e){n=l(e,"P",{"data-svelte-h":!0}),d(n)!=="svelte-182te9i"&&(n.textContent=g),s=i(e),a=l(e,"UL",{"data-svelte-h":!0}),d(a)!=="svelte-uonrzl"&&(a.innerHTML=x)},m(e,y){$(e,n,y),$(e,s,y),$(e,a,y)},p:H,d(e){e&&(p(n),p(s),p(a))}}}function Dw(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/v0.20.3/en/package_reference/hf_api#huggingface_hub.HfApi.create_commit">create_commit()</a> directly instead.`;return{c(){n=c("p"),n.innerHTML=g},l(s){n=l(s,"P",{"data-svelte-h":!0}),d(n)!=="svelte-azw8u2"&&(n.innerHTML=g)},m(s,a){$(s,n,a)},p:H,d(s){s&&p(n)}}}function Fw(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/v0.20.3/en/package_reference/hf_api#huggingface_hub.HfApi.create_commit">create_commit()</a>. If you don’t want to remove the attached content from the
commit operation object, pass <code>free_memory=False</code>.`;return{c(){n=c("p"),n.innerHTML=g},l(s){n=l(s,"P",{"data-svelte-h":!0}),d(n)!=="svelte-16597h1"&&(n.innerHTML=g)},m(s,a){$(s,n,a)},p:H,d(s){s&&p(n)}}}function Sw(M){let n,g="Example:",s,a,x;return a=new I({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMENvbW1pdE9wZXJhdGlvbkFkZCUyQyUyMHByZXVwbG9hZF9sZnNfZmlsZXMlMkMlMjBjcmVhdGVfY29tbWl0JTJDJTIwY3JlYXRlX3JlcG8lMEElMEFyZXBvX2lkJTIwJTNEJTIwY3JlYXRlX3JlcG8oJTIydGVzdF9wcmV1cGxvYWQlMjIpLnJlcG9faWQlMEElMEFvcGVyYXRpb25zJTIwJTNEJTIwJTVCJTVEJTIwJTIzJTIwTGlzdCUyMG9mJTIwYWxsJTIwJTYwQ29tbWl0T3BlcmF0aW9uQWRkJTYwJTIwb2JqZWN0cyUyMHRoYXQlMjB3aWxsJTIwYmUlMjBnZW5lcmF0ZWQlMEFmb3IlMjBpJTIwaW4lMjByYW5nZSg1KSUzQSUwQSUyMCUyMCUyMCUyMGNvbnRlbnQlMjAlM0QlMjAuLi4lMjAlMjMlMjBnZW5lcmF0ZSUyMGJpbmFyeSUyMGNvbnRlbnQlMEElMjAlMjAlMjAlMjBhZGRpdGlvbiUyMCUzRCUyMENvbW1pdE9wZXJhdGlvbkFkZChwYXRoX2luX3JlcG8lM0RmJTIyc2hhcmRfJTdCaSU3RF9vZl81LmJpbiUyMiUyQyUyMHBhdGhfb3JfZmlsZW9iaiUzRGNvbnRlbnQpJTBBJTIwJTIwJTIwJTIwcHJldXBsb2FkX2xmc19maWxlcyhyZXBvX2lkJTJDJTIwYWRkaXRpb25zJTNEJTVCYWRkaXRpb24lNUQpJTIwJTIzJTIwdXBsb2FkJTIwJTJCJTIwZnJlZSUyMG1lbW9yeSUwQSUyMCUyMCUyMCUyMG9wZXJhdGlvbnMuYXBwZW5kKGFkZGl0aW9uKSUwQSUwQWNyZWF0ZV9jb21taXQocmVwb19pZCUyQyUyMG9wZXJhdGlvbnMlM0RvcGVyYXRpb25zJTJDJTIwY29tbWl0X21lc3NhZ2UlM0QlMjJDb21taXQlMjBhbGwlMjBzaGFyZHMlMjIp",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> CommitOperationAdd, preupload_lfs_files, create_commit, create_repo

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

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

<span class="hljs-comment"># Create commit</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>create_commit(repo_id, operations=operations, commit_message=<span class="hljs-string">&quot;Commit all shards&quot;</span>)`,wrap:!1}}),{c(){n=c("p"),n.textContent=g,s=r(),h(a.$$.fragment)},l(e){n=l(e,"P",{"data-svelte-h":!0}),d(n)!=="svelte-11lpom8"&&(n.textContent=g),s=i(e),f(a.$$.fragment,e)},m(e,y){$(e,n,y),$(e,s,y),m(a,e,y),x=!0},p:H,i(e){x||(_(a.$$.fragment,e),x=!0)},o(e){b(a.$$.fragment,e),x=!1},d(e){e&&(p(n),p(s)),v(a,e)}}}function Zw(M){let n,g="Examples:",s,a,x;return a=new I({props:{code:"bmV3X3RpdGxlJTIwJTNEJTIwJTIyTmV3JTIwdGl0bGUlMkMlMjBmaXhpbmclMjBhJTIwdHlwbyUyMiUwQUhmQXBpKCkucmVuYW1lX2Rpc2N1c3Npb24oJTBBJTIwJTIwJTIwJTIwcmVwb19pZCUzRCUyMnVzZXJuYW1lJTJGcmVwb19uYW1lJTIyJTJDJTBBJTIwJTIwJTIwJTIwZGlzY3Vzc2lvbl9udW0lM0QzNCUwQSUyMCUyMCUyMCUyMG5ld190aXRsZSUzRG5ld190aXRsZSUwQSklMEE=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span>new_title = <span class="hljs-string">&quot;New title, fixing a typo&quot;</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>HfApi().rename_discussion(
<span class="hljs-meta">... </span>    repo_id=<span class="hljs-string">&quot;username/repo_name&quot;</span>,
<span class="hljs-meta">... </span>    discussion_num=<span class="hljs-number">34</span>
<span class="hljs-meta">... </span>    new_title=new_title
<span class="hljs-meta">... </span>)
<span class="hljs-comment"># DiscussionTitleChange(id=&#x27;deadbeef0000000&#x27;, type=&#x27;title-change&#x27;, ...)</span>
`,wrap:!1}}),{c(){n=c("p"),n.textContent=g,s=r(),h(a.$$.fragment)},l(e){n=l(e,"P",{"data-svelte-h":!0}),d(n)!=="svelte-kvfsh7"&&(n.textContent=g),s=i(e),f(a.$$.fragment,e)},m(e,y){$(e,n,y),$(e,s,y),m(a,e,y),x=!0},p:H,i(e){x||(_(a.$$.fragment,e),x=!0)},o(e){b(a.$$.fragment,e),x=!1},d(e){e&&(p(n),p(s)),v(a,e)}}}function Lw(M){let n,g="Raises the following errors:",s,a,x=`<li><a href="https://requests.readthedocs.io/en/latest/api/#requests.HTTPError" rel="nofollow"><code>HTTPError</code></a>
if the HuggingFace API returned an error</li> <li><a href="https://docs.python.org/3/library/exceptions.html#ValueError" rel="nofollow"><code>ValueError</code></a>
if some parameter value is invalid</li> <li><a href="/docs/huggingface_hub/v0.20.3/en/package_reference/utilities#huggingface_hub.utils.RepositoryNotFoundError">RepositoryNotFoundError</a>
If the repository to download from cannot be found. This may be because it doesn’t exist,
or because it is set to <code>private</code> and you do not have access.</li>`;return{c(){n=c("p"),n.textContent=g,s=r(),a=c("ul"),a.innerHTML=x},l(e){n=l(e,"P",{"data-svelte-h":!0}),d(n)!=="svelte-182te9i"&&(n.textContent=g),s=i(e),a=l(e,"UL",{"data-svelte-h":!0}),d(a)!=="svelte-v54g60"&&(a.innerHTML=x)},m(e,y){$(e,n,y),$(e,s,y),$(e,a,y)},p:H,d(e){e&&(p(n),p(s),p(a))}}}function Ww(M){let n,g="Examples:",s,a,x;return a=new I({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMHJlcG9fZXhpc3RzJTBBcmVwb19leGlzdHMoJTIyaHVnZ2luZ2ZhY2UlMkZ0cmFuc2Zvcm1lcnMlMjIpJTBBcmVwb19leGlzdHMoJTIyaHVnZ2luZ2ZhY2UlMkZub3QtYS1yZXBvJTIyKQ==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> repo_exists
<span class="hljs-meta">&gt;&gt;&gt; </span>repo_exists(<span class="hljs-string">&quot;huggingface/transformers&quot;</span>)
<span class="hljs-literal">True</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>repo_exists(<span class="hljs-string">&quot;huggingface/not-a-repo&quot;</span>)
<span class="hljs-literal">False</span>`,wrap:!1}}),{c(){n=c("p"),n.textContent=g,s=r(),h(a.$$.fragment)},l(e){n=l(e,"P",{"data-svelte-h":!0}),d(n)!=="svelte-kvfsh7"&&(n.textContent=g),s=i(e),f(a.$$.fragment,e)},m(e,y){$(e,n,y),$(e,s,y),m(a,e,y),x=!0},p:H,i(e){x||(_(a.$$.fragment,e),x=!0)},o(e){b(a.$$.fragment,e),x=!1},d(e){e&&(p(n),p(s)),v(a,e)}}}function Bw(M){let n,g;return n=new U({props:{anchor:"huggingface_hub.HfApi.repo_exists.example",$$slots:{default:[Ww]},$$scope:{ctx:M}}}),{c(){h(n.$$.fragment)},l(s){f(n.$$.fragment,s)},m(s,a){m(n,s,a),g=!0},p(s,a){const x={};a&2&&(x.$$scope={dirty:a,ctx:s}),n.$set(x)},i(s){g||(_(n.$$.fragment,s),g=!0)},o(s){b(n.$$.fragment,s),g=!1},d(s){v(n,s)}}}function Vw(M){let n,g="Raises the following errors:",s,a,x=`<li><a href="/docs/huggingface_hub/v0.20.3/en/package_reference/utilities#huggingface_hub.utils.RepositoryNotFoundError">RepositoryNotFoundError</a>
If the repository to download from cannot be found. This may be because it doesn’t exist,
or because it is set to <code>private</code> and you do not have access.</li> <li><a href="/docs/huggingface_hub/v0.20.3/en/package_reference/utilities#huggingface_hub.utils.RevisionNotFoundError">RevisionNotFoundError</a>
If the revision to download from cannot be found.</li>`;return{c(){n=c("p"),n.textContent=g,s=r(),a=c("ul"),a.innerHTML=x},l(e){n=l(e,"P",{"data-svelte-h":!0}),d(n)!=="svelte-182te9i"&&(n.textContent=g),s=i(e),a=l(e,"UL",{"data-svelte-h":!0}),d(a)!=="svelte-3t7304"&&(a.innerHTML=x)},m(e,y){$(e,n,y),$(e,s,y),$(e,a,y)},p:H,d(e){e&&(p(n),p(s),p(a))}}}function Xw(M){let n,g='It is also possible to request hardware directly when creating the Space repo! See <a href="/docs/huggingface_hub/v0.20.3/en/package_reference/hf_api#huggingface_hub.HfApi.create_repo">create_repo()</a> for details.';return{c(){n=c("p"),n.innerHTML=g},l(s){n=l(s,"P",{"data-svelte-h":!0}),d(n)!=="svelte-x064zx"&&(n.innerHTML=g)},m(s,a){$(s,n,a)},p:H,d(s){s&&p(n)}}}function Pw(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/v0.20.3/en/package_reference/hf_api#huggingface_hub.HfApi.delete_space_storage">delete_space_storage()</a>.`;return{c(){n=c("p"),n.innerHTML=g},l(s){n=l(s,"P",{"data-svelte-h":!0}),d(n)!=="svelte-1n35iyq"&&(n.innerHTML=g)},m(s,a){$(s,n,a)},p:H,d(s){s&&p(n)}}}function Yw(M){let n,g="Example:",s,a,x;return a=new I({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMEhmQXBpJTBBYXBpJTIwJTNEJTIwSGZBcGkoKSUwQWZ1dHVyZSUyMCUzRCUyMGFwaS5ydW5fYXNfZnV0dXJlKGFwaS53aG9hbWkpJTIwJTIzJTIwaW5zdGFudCUwQWZ1dHVyZS5kb25lKCklMEFmdXR1cmUucmVzdWx0KCklMjAlMjMlMjB3YWl0JTIwdW50aWwlMjBjb21wbGV0ZSUyMGFuZCUyMHJldHVybiUyMHJlc3VsdCUwQWZ1dHVyZS5kb25lKCk=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> HfApi
<span class="hljs-meta">&gt;&gt;&gt; </span>api = HfApi()
<span class="hljs-meta">&gt;&gt;&gt; </span>future = api.run_as_future(api.whoami) <span class="hljs-comment"># instant</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>future.done()
<span class="hljs-literal">False</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>future.result() <span class="hljs-comment"># wait until complete and return result</span>
(...)
<span class="hljs-meta">&gt;&gt;&gt; </span>future.done()
<span class="hljs-literal">True</span>`,wrap:!1}}),{c(){n=c("p"),n.textContent=g,s=r(),h(a.$$.fragment)},l(e){n=l(e,"P",{"data-svelte-h":!0}),d(n)!=="svelte-11lpom8"&&(n.textContent=g),s=i(e),f(a.$$.fragment,e)},m(e,y){$(e,n,y),$(e,s,y),m(a,e,y),x=!0},p:H,i(e){x||(_(a.$$.fragment,e),x=!0)},o(e){b(a.$$.fragment,e),x=!1},d(e){e&&(p(n),p(s)),v(a,e)}}}function zw(M){let n,g='It is also possible to set a custom sleep time when requesting hardware with <a href="/docs/huggingface_hub/v0.20.3/en/package_reference/hf_api#huggingface_hub.HfApi.request_space_hardware">request_space_hardware()</a>.';return{c(){n=c("p"),n.innerHTML=g},l(s){n=l(s,"P",{"data-svelte-h":!0}),d(n)!=="svelte-1mjslcu"&&(n.innerHTML=g)},m(s,a){$(s,n,a)},p:H,d(s){s&&p(n)}}}function Ow(M){let n,g="Raises the following errors:",s,a,x=`<li><a href="https://docs.python.org/3/library/exceptions.html#EnvironmentError" rel="nofollow"><code>EnvironmentError</code></a>
if <code>token=True</code> and the token cannot be found.</li> <li><a href="https://docs.python.org/3/library/exceptions.html#OSError" rel="nofollow"><code>OSError</code></a> if
ETag cannot be determined.</li> <li><a href="https://docs.python.org/3/library/exceptions.html#ValueError" rel="nofollow"><code>ValueError</code></a>
if some parameter value is invalid</li>`;return{c(){n=c("p"),n.textContent=g,s=r(),a=c("ul"),a.innerHTML=x},l(e){n=l(e,"P",{"data-svelte-h":!0}),d(n)!=="svelte-182te9i"&&(n.textContent=g),s=i(e),a=l(e,"UL",{"data-svelte-h":!0}),d(a)!=="svelte-1sqbgr0"&&(a.innerHTML=x)},m(e,y){$(e,n,y),$(e,s,y),$(e,a,y)},p:H,d(e){e&&(p(n),p(s),p(a))}}}function Qw(M){let n,g="Raises the following errors:",s,a,x=`<li><a href="/docs/huggingface_hub/v0.20.3/en/package_reference/utilities#huggingface_hub.utils.RepositoryNotFoundError">RepositoryNotFoundError</a>
If the repository to download from cannot be found. This may be because it doesn’t exist,
or because it is set to <code>private</code> and you do not have access.</li> <li><a href="/docs/huggingface_hub/v0.20.3/en/package_reference/utilities#huggingface_hub.utils.RevisionNotFoundError">RevisionNotFoundError</a>
If the revision to download from cannot be found.</li>`;return{c(){n=c("p"),n.textContent=g,s=r(),a=c("ul"),a.innerHTML=x},l(e){n=l(e,"P",{"data-svelte-h":!0}),d(n)!=="svelte-182te9i"&&(n.textContent=g),s=i(e),a=l(e,"UL",{"data-svelte-h":!0}),d(a)!=="svelte-3t7304"&&(a.innerHTML=x)},m(e,y){$(e,n,y),$(e,s,y),$(e,a,y)},p:H,d(e){e&&(p(n),p(s),p(a))}}}function Kw(M){let n,g="Once squashed, the commit history cannot be retrieved. This is a non-revertible operation.";return{c(){n=c("p"),n.textContent=g},l(s){n=l(s,"P",{"data-svelte-h":!0}),d(n)!=="svelte-16nd2e3"&&(n.textContent=g)},m(s,a){$(s,n,a)},p:H,d(s){s&&p(n)}}}function ej(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=c("p"),n.textContent=g},l(s){n=l(s,"P",{"data-svelte-h":!0}),d(n)!=="svelte-qbmppr"&&(n.textContent=g)},m(s,a){$(s,n,a)},p:H,d(s){s&&p(n)}}}function tj(M){let n,g="Example:",s,a,x;return a=new I({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMEhmQXBpJTBBYXBpJTIwJTNEJTIwSGZBcGkoKSUwQSUwQXJlcG9faWQlMjAlM0QlMjBhcGkuY3JlYXRlX3JlcG8oJTIydGVzdC1zcXVhc2glMjIpLnJlcG9faWQlMEElMEFhcGkudXBsb2FkX2ZpbGUocmVwb19pZCUzRHJlcG9faWQlMkMlMjBwYXRoX2luX3JlcG8lM0QlMjJmaWxlLnR4dCUyMiUyQyUyMHBhdGhfb3JfZmlsZW9iaiUzRGIlMjJjb250ZW50JTIyKSUwQWFwaS51cGxvYWRfZmlsZShyZXBvX2lkJTNEcmVwb19pZCUyQyUyMHBhdGhfaW5fcmVwbyUzRCUyMmxmcy5iaW4lMjIlMkMlMjBwYXRoX29yX2ZpbGVvYmolM0RiJTIyY29udGVudCUyMiklMEFhcGkudXBsb2FkX2ZpbGUocmVwb19pZCUzRHJlcG9faWQlMkMlMjBwYXRoX2luX3JlcG8lM0QlMjJmaWxlLnR4dCUyMiUyQyUyMHBhdGhfb3JfZmlsZW9iaiUzRGIlMjJhbm90aGVyX2NvbnRlbnQlMjIpJTBBJTBBYXBpLnN1cGVyX3NxdWFzaF9oaXN0b3J5KHJlcG9faWQlM0RyZXBvX2lkKQ==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> HfApi
<span class="hljs-meta">&gt;&gt;&gt; </span>api = HfApi()

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

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

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

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

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

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

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

<span class="hljs-meta">&gt;&gt;&gt; </span>upload_file(
<span class="hljs-meta">... </span>    path_or_fileobj=<span class="hljs-string">&quot;.\\\\local\\\\file\\\\path&quot;</span>,
<span class="hljs-meta">... </span>    path_in_repo=<span class="hljs-string">&quot;remote/file/path.h5&quot;</span>,
<span class="hljs-meta">... </span>    repo_id=<span class="hljs-string">&quot;username/my-model&quot;</span>,
<span class="hljs-meta">... </span>    token=<span class="hljs-string">&quot;my_token&quot;</span>,
<span class="hljs-meta">... </span>    create_pr=<span class="hljs-literal">True</span>,
<span class="hljs-meta">... </span>)
<span class="hljs-string">&quot;https://huggingface.co/username/my-model/blob/refs%2Fpr%2F1/remote/file/path.h5&quot;</span>`,wrap:!1}}),{c(){n=c("p"),n.textContent=g,s=r(),h(a.$$.fragment)},l(e){n=l(e,"P",{"data-svelte-h":!0}),d(n)!=="svelte-11lpom8"&&(n.textContent=g),s=i(e),f(a.$$.fragment,e)},m(e,y){$(e,n,y),$(e,s,y),m(a,e,y),x=!0},p:H,i(e){x||(_(a.$$.fragment,e),x=!0)},o(e){b(a.$$.fragment,e),x=!1},d(e){e&&(p(n),p(s)),v(a,e)}}}function lj(M){let n,g="Raises the following errors:",s,a,x=`<li><a href="https://requests.readthedocs.io/en/latest/api/#requests.HTTPError" rel="nofollow"><code>HTTPError</code></a>
if the HuggingFace API returned an error</li> <li><a href="https://docs.python.org/3/library/exceptions.html#ValueError" rel="nofollow"><code>ValueError</code></a>
if some parameter value is invalid</li>`;return{c(){n=c("p"),n.textContent=g,s=r(),a=c("ul"),a.innerHTML=x},l(e){n=l(e,"P",{"data-svelte-h":!0}),d(n)!=="svelte-182te9i"&&(n.textContent=g),s=i(e),a=l(e,"UL",{"data-svelte-h":!0}),d(a)!=="svelte-1l6tbi1"&&(a.innerHTML=x)},m(e,y){$(e,n,y),$(e,s,y),$(e,a,y)},p:H,d(e){e&&(p(n),p(s),p(a))}}}function pj(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/v0.20.3/en/package_reference/hf_api#huggingface_hub.HfApi.create_repo">create_repo()</a>.`;return{c(){n=c("p"),n.innerHTML=g},l(s){n=l(s,"P",{"data-svelte-h":!0}),d(n)!=="svelte-i5rb6p"&&(n.innerHTML=g)},m(s,a){$(s,n,a)},p:H,d(s){s&&p(n)}}}function dj(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=c("p"),n.innerHTML=g},l(s){n=l(s,"P",{"data-svelte-h":!0}),d(n)!=="svelte-1x7nnyi"&&(n.innerHTML=g)},m(s,a){$(s,n,a)},p:H,d(s){s&&p(n)}}}function gj(M){let n,g="Example:",s,a,x;return a=new I({props:{code:"dXBsb2FkX2ZvbGRlciglMEElMjAlMjAlMjAlMjBmb2xkZXJfcGF0aCUzRCUyMmxvY2FsJTJGY2hlY2twb2ludHMlMjIlMkMlMEElMjAlMjAlMjAlMjBwYXRoX2luX3JlcG8lM0QlMjJyZW1vdGUlMkZleHBlcmltZW50JTJGY2hlY2twb2ludHMlMjIlMkMlMEElMjAlMjAlMjAlMjByZXBvX2lkJTNEJTIydXNlcm5hbWUlMkZteS1kYXRhc2V0JTIyJTJDJTBBJTIwJTIwJTIwJTIwcmVwb190eXBlJTNEJTIyZGF0YXNldHMlMjIlMkMlMEElMjAlMjAlMjAlMjB0b2tlbiUzRCUyMm15X3Rva2VuJTIyJTJDJTBBJTIwJTIwJTIwJTIwaWdub3JlX3BhdHRlcm5zJTNEJTIyKiolMkZsb2dzJTJGKi50eHQlMjIlMkMlMEEpJTBBJTBBdXBsb2FkX2ZvbGRlciglMEElMjAlMjAlMjAlMjBmb2xkZXJfcGF0aCUzRCUyMmxvY2FsJTJGY2hlY2twb2ludHMlMjIlMkMlMEElMjAlMjAlMjAlMjBwYXRoX2luX3JlcG8lM0QlMjJyZW1vdGUlMkZleHBlcmltZW50JTJGY2hlY2twb2ludHMlMjIlMkMlMEElMjAlMjAlMjAlMjByZXBvX2lkJTNEJTIydXNlcm5hbWUlMkZteS1kYXRhc2V0JTIyJTJDJTBBJTIwJTIwJTIwJTIwcmVwb190eXBlJTNEJTIyZGF0YXNldHMlMjIlMkMlMEElMjAlMjAlMjAlMjB0b2tlbiUzRCUyMm15X3Rva2VuJTIyJTJDJTBBJTIwJTIwJTIwJTIwZGVsZXRlX3BhdHRlcm5zJTNEJTIyKiolMkZsb2dzJTJGKi50eHQlMjIlMkMlMEEpJTBBJTBBdXBsb2FkX2ZvbGRlciglMEElMjAlMjAlMjAlMjBmb2xkZXJfcGF0aCUzRCUyMmxvY2FsJTJGY2hlY2twb2ludHMlMjIlMkMlMEElMjAlMjAlMjAlMjBwYXRoX2luX3JlcG8lM0QlMjJyZW1vdGUlMkZleHBlcmltZW50JTJGY2hlY2twb2ludHMlMjIlMkMlMEElMjAlMjAlMjAlMjByZXBvX2lkJTNEJTIydXNlcm5hbWUlMkZteS1kYXRhc2V0JTIyJTJDJTBBJTIwJTIwJTIwJTIwcmVwb190eXBlJTNEJTIyZGF0YXNldHMlMjIlMkMlMEElMjAlMjAlMjAlMjB0b2tlbiUzRCUyMm15X3Rva2VuJTIyJTJDJTBBJTIwJTIwJTIwJTIwY3JlYXRlX3ByJTNEVHJ1ZSUyQyUwQSklMEE=",highlighted:`<span class="hljs-comment"># Upload checkpoints folder except the log files</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>upload_folder(
<span class="hljs-meta">... </span>    folder_path=<span class="hljs-string">&quot;local/checkpoints&quot;</span>,
<span class="hljs-meta">... </span>    path_in_repo=<span class="hljs-string">&quot;remote/experiment/checkpoints&quot;</span>,
<span class="hljs-meta">... </span>    repo_id=<span class="hljs-string">&quot;username/my-dataset&quot;</span>,
<span class="hljs-meta">... </span>    repo_type=<span class="hljs-string">&quot;datasets&quot;</span>,
<span class="hljs-meta">... </span>    token=<span class="hljs-string">&quot;my_token&quot;</span>,
<span class="hljs-meta">... </span>    ignore_patterns=<span class="hljs-string">&quot;**/logs/*.txt&quot;</span>,
<span class="hljs-meta">... </span>)
<span class="hljs-comment"># &quot;https://huggingface.co/datasets/username/my-dataset/tree/main/remote/experiment/checkpoints&quot;</span>

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

<span class="hljs-comment"># Upload checkpoints folder while creating a PR</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>upload_folder(
<span class="hljs-meta">... </span>    folder_path=<span class="hljs-string">&quot;local/checkpoints&quot;</span>,
<span class="hljs-meta">... </span>    path_in_repo=<span class="hljs-string">&quot;remote/experiment/checkpoints&quot;</span>,
<span class="hljs-meta">... </span>    repo_id=<span class="hljs-string">&quot;username/my-dataset&quot;</span>,
<span class="hljs-meta">... </span>    repo_type=<span class="hljs-string">&quot;datasets&quot;</span>,
<span class="hljs-meta">... </span>    token=<span class="hljs-string">&quot;my_token&quot;</span>,
<span class="hljs-meta">... </span>    create_pr=<span class="hljs-literal">True</span>,
<span class="hljs-meta">... </span>)
<span class="hljs-string">&quot;https://huggingface.co/datasets/username/my-dataset/tree/refs%2Fpr%2F1/remote/experiment/checkpoints&quot;</span>
`,wrap:!1}}),{c(){n=c("p"),n.textContent=g,s=r(),h(a.$$.fragment)},l(e){n=l(e,"P",{"data-svelte-h":!0}),d(n)!=="svelte-11lpom8"&&(n.textContent=g),s=i(e),f(a.$$.fragment,e)},m(e,y){$(e,n,y),$(e,s,y),m(a,e,y),x=!0},p:H,i(e){x||(_(a.$$.fragment,e),x=!0)},o(e){b(a.$$.fragment,e),x=!1},d(e){e&&(p(n),p(s)),v(a,e)}}}function uj(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=c("p"),n.innerHTML=g},l(s){n=l(s,"P",{"data-svelte-h":!0}),d(n)!=="svelte-ptumhw"&&(n.innerHTML=g)},m(s,a){$(s,n,a)},p:H,d(s){s&&p(n)}}}function hj(M){let n,g="Example:",s,a,x;return a=new I({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMEhmQXBpJTJDJTIwcGxhbl9tdWx0aV9jb21taXRzJTBBYWRkaXRpb25fY29tbWl0cyUyQyUyMGRlbGV0aW9uX2NvbW1pdHMlMjAlM0QlMjBwbGFuX211bHRpX2NvbW1pdHMoJTBBJTIwJTIwJTIwJTIwb3BlcmF0aW9ucyUzRCU1QiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMENvbW1pdE9wZXJhdGlvbkFkZCguLi4pJTJDJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwQ29tbWl0T3BlcmF0aW9uQWRkKC4uLiklMkMlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjBDb21taXRPcGVyYXRpb25EZWxldGUoLi4uKSUyQyUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMENvbW1pdE9wZXJhdGlvbkRlbGV0ZSguLi4pJTJDJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwQ29tbWl0T3BlcmF0aW9uQWRkKC4uLiklMkMlMEElMjAlMjAlMjAlMjAlNUQlMkMlMEEpJTBBSGZBcGkoKS5jcmVhdGVfY29tbWl0c19vbl9wciglMEElMjAlMjAlMjAlMjByZXBvX2lkJTNEJTIybXktY29vbC1tb2RlbCUyMiUyQyUwQSUyMCUyMCUyMCUyMGFkZGl0aW9uX2NvbW1pdHMlM0RhZGRpdGlvbl9jb21taXRzJTJDJTBBJTIwJTIwJTIwJTIwZGVsZXRpb25fY29tbWl0cyUzRGRlbGV0aW9uX2NvbW1pdHMlMkMlMEElMjAlMjAlMjAlMjAoLi4uKSUwQSUyMCUyMCUyMCUyMHZlcmJvc2UlM0RUcnVlJTJDJTBBKQ==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> HfApi, plan_multi_commits
<span class="hljs-meta">&gt;&gt;&gt; </span>addition_commits, deletion_commits = plan_multi_commits(
<span class="hljs-meta">... </span>    operations=[
<span class="hljs-meta">... </span>         CommitOperationAdd(...),
<span class="hljs-meta">... </span>         CommitOperationAdd(...),
<span class="hljs-meta">... </span>         CommitOperationDelete(...),
<span class="hljs-meta">... </span>         CommitOperationDelete(...),
<span class="hljs-meta">... </span>         CommitOperationAdd(...),
<span class="hljs-meta">... </span>    ],
<span class="hljs-meta">... </span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>HfApi().create_commits_on_pr(
<span class="hljs-meta">... </span>    repo_id=<span class="hljs-string">&quot;my-cool-model&quot;</span>,
<span class="hljs-meta">... </span>    addition_commits=addition_commits,
<span class="hljs-meta">... </span>    deletion_commits=deletion_commits,
<span class="hljs-meta">... </span>    (...)
<span class="hljs-meta">... </span>    verbose=<span class="hljs-literal">True</span>,
<span class="hljs-meta">... </span>)`,wrap:!1}}),{c(){n=c("p"),n.textContent=g,s=r(),h(a.$$.fragment)},l(e){n=l(e,"P",{"data-svelte-h":!0}),d(n)!=="svelte-11lpom8"&&(n.textContent=g),s=i(e),f(a.$$.fragment,e)},m(e,y){$(e,n,y),$(e,s,y),m(a,e,y),x=!0},p:H,i(e){x||(_(a.$$.fragment,e),x=!0)},o(e){b(a.$$.fragment,e),x=!1},d(e){e&&(p(n),p(s)),v(a,e)}}}function fj(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=c("p"),n.textContent=g},l(s){n=l(s,"P",{"data-svelte-h":!0}),d(n)!=="svelte-sg17jf"&&(n.textContent=g)},m(s,a){$(s,n,a)},p:H,d(s){s&&p(n)}}}function mj(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/v0.20.3/en/package_reference/hf_api#huggingface_hub.HfApi.list_datasets">list_datasets()</a> only a subset of the attributes are returned.`;return{c(){n=c("p"),n.innerHTML=g},l(s){n=l(s,"P",{"data-svelte-h":!0}),d(n)!=="svelte-a8k308"&&(n.innerHTML=g)},m(s,a){$(s,n,a)},p:H,d(s){s&&p(n)}}}function _j(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/v0.20.3/en/package_reference/hf_api#huggingface_hub.HfApi.list_models">list_models()</a> only a subset of the attributes are returned.`;return{c(){n=c("p"),n.innerHTML=g},l(s){n=l(s,"P",{"data-svelte-h":!0}),d(n)!=="svelte-th2htb"&&(n.innerHTML=g)},m(s,a){$(s,n,a)},p:H,d(s){s&&p(n)}}}function bj(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/v0.20.3/en/package_reference/hf_api#huggingface_hub.HfApi.list_models">list_models()</a>, <a href="/docs/huggingface_hub/v0.20.3/en/package_reference/hf_api#huggingface_hub.HfApi.list_datasets">list_datasets()</a> or <a href="/docs/huggingface_hub/v0.20.3/en/package_reference/hf_api#huggingface_hub.HfApi.list_spaces">list_spaces()</a>). If you need more
information like file size, blob id or lfs details, you must request them specifically from one repo at a time
(using <a href="/docs/huggingface_hub/v0.20.3/en/package_reference/hf_api#huggingface_hub.HfApi.model_info">model_info()</a>, <a href="/docs/huggingface_hub/v0.20.3/en/package_reference/hf_api#huggingface_hub.HfApi.dataset_info">dataset_info()</a> or <a href="/docs/huggingface_hub/v0.20.3/en/package_reference/hf_api#huggingface_hub.HfApi.space_info">space_info()</a>) as it adds more constraints on the backend server to
retrieve these.`;return{c(){n=c("p"),n.innerHTML=g},l(s){n=l(s,"P",{"data-svelte-h":!0}),d(n)!=="svelte-1up9nux"&&(n.innerHTML=g)},m(s,a){$(s,n,a)},p:H,d(s){s&&p(n)}}}function vj(M){let n,g="Example:",s,a,x;return a=new I({props:{code:"UmVwb1VybCgnaHR0cHMlM0ElMkYlMkZodWdnaW5nZmFjZS5jbyUyRmdwdDInKSUwQSUwQVJlcG9VcmwoJ2h0dHBzJTNBJTJGJTJGaHViLWNpLmh1Z2dpbmdmYWNlLmNvJTJGZGF0YXNldHMlMkZkdW1teV91c2VyJTJGZHVtbXlfZGF0YXNldCclMkMlMjBlbmRwb2ludCUzRCdodHRwcyUzQSUyRiUyRmh1Yi1jaS5odWdnaW5nZmFjZS5jbycpJTBBJTBBUmVwb1VybCgnaGYlM0ElMkYlMkZkYXRhc2V0cyUyRm15LXVzZXIlMkZteS1kYXRhc2V0JyklMEElMEFIZkFwaS5jcmVhdGVfcmVwbyglMjJkdW1teV9tb2RlbCUyMik=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span>RepoUrl(<span class="hljs-string">&#x27;https://huggingface.co/gpt2&#x27;</span>)
RepoUrl(<span class="hljs-string">&#x27;https://huggingface.co/gpt2&#x27;</span>, endpoint=<span class="hljs-string">&#x27;https://huggingface.co&#x27;</span>, repo_type=<span class="hljs-string">&#x27;model&#x27;</span>, repo_id=<span class="hljs-string">&#x27;gpt2&#x27;</span>)

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

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

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

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

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

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

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

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

<span class="hljs-comment"># Some time later (...)</span>
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">with</span> csv_path.<span class="hljs-built_in">open</span>(<span class="hljs-string">&quot;a&quot;</span>) <span class="hljs-keyword">as</span> f:
<span class="hljs-meta">... </span>    f.write(<span class="hljs-string">&quot;second line&quot;</span>)`,wrap:!1}}),{c(){n=c("p"),n.textContent=g,s=r(),h(a.$$.fragment)},l(e){n=l(e,"P",{"data-svelte-h":!0}),d(n)!=="svelte-11lpom8"&&(n.textContent=g),s=i(e),f(a.$$.fragment,e)},m(e,y){$(e,n,y),$(e,s,y),m(a,e,y),x=!0},p:H,i(e){x||(_(a.$$.fragment,e),x=!0)},o(e){b(a.$$.fragment,e),x=!1},d(e){e&&(p(n),p(s)),v(a,e)}}}function Mj(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=c("p"),n.textContent=g},l(s){n=l(s,"P",{"data-svelte-h":!0}),d(n)!=="svelte-1oh5a50"&&(n.textContent=g)},m(s,a){$(s,n,a)},p:H,d(s){s&&p(n)}}}function wj(M){let n,g="Examples:",s,a,x;return a=new I({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMERhdGFzZXRGaWx0ZXIlMEElMEElMjMlMjBVc2luZyUyMGF1dGhvciUwQW5ld19maWx0ZXIlMjAlM0QlMjBEYXRhc2V0RmlsdGVyKGF1dGhvciUzRCUyMmZhY2Vib29rJTIyKSUwQSUwQSUyMyUyMFVzaW5nJTIwYmVuY2htYXJrJTBBbmV3X2ZpbHRlciUyMCUzRCUyMERhdGFzZXRGaWx0ZXIoYmVuY2htYXJrJTNEJTIycmFmdCUyMiklMEElMEElMjMlMjBVc2luZyUyMGRhdGFzZXRfbmFtZSUwQW5ld19maWx0ZXIlMjAlM0QlMjBEYXRhc2V0RmlsdGVyKGRhdGFzZXRfbmFtZSUzRCUyMndpa2luZXVyYWwlMjIpJTBBJTBBJTIzJTIwVXNpbmclMjBsYW5ndWFnZV9jcmVhdG9yJTBBbmV3X2ZpbHRlciUyMCUzRCUyMERhdGFzZXRGaWx0ZXIobGFuZ3VhZ2VfY3JlYXRvciUzRCUyMmNyb3dkc291cmNlZCUyMiklMEElMEElMjMlMjBVc2luZyUyMGxhbmd1YWdlJTBBbmV3X2ZpbHRlciUyMCUzRCUyMERhdGFzZXRGaWx0ZXIobGFuZ3VhZ2UlM0QlMjJlbiUyMiklMEElMEElMjMlMjBVc2luZyUyMG11bHRpbGluZ3VhbGl0eSUwQW5ld19maWx0ZXIlMjAlM0QlMjBEYXRhc2V0RmlsdGVyKG11bHRpbGluZ3VhbGl0eSUzRCUyMm11bHRpbGluZ3VhbCUyMiklMEElMEElMjMlMjBVc2luZyUyMHNpemVfY2F0ZWdvcmllcyUwQW5ld19maWx0ZXIlMjAlM0QlMjBEYXRhc2V0RmlsdGVyKHNpemVfY2F0ZWdvcmllcyUzRCUyMjEwMEslM0NuJTNDMU0lMjIpJTBBJTBBJTIzJTIwVXNpbmclMjB0YXNrX2NhdGVnb3JpZXMlMEFuZXdfZmlsdGVyJTIwJTNEJTIwRGF0YXNldEZpbHRlcih0YXNrX2NhdGVnb3JpZXMlM0QlMjJhdWRpb19jbGFzc2lmaWNhdGlvbiUyMiklMEElMEElMjMlMjBVc2luZyUyMHRhc2tfaWRzJTBBbmV3X2ZpbHRlciUyMCUzRCUyMERhdGFzZXRGaWx0ZXIodGFza19pZHMlM0QlMjJwYXJhcGhyYXNlJTIyKQ==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> DatasetFilter

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

<span class="hljs-comment"># Or configure a HfApi client</span>
hf_api = HfApi(
    endpoint=<span class="hljs-string">&quot;https://huggingface.co&quot;</span>, <span class="hljs-comment"># Can be a Private Hub endpoint.</span>
    token=<span class="hljs-string">&quot;hf_xxx&quot;</span>, <span class="hljs-comment"># Token is not persisted on the machine.</span>
)
models = hf_api.list_models()`,wrap:!1}}),vs=new R({props:{title:"HfApi",local:"huggingface_hub.HfApi",headingTag:"h2"}}),xs=new C({props:{name:"class huggingface_hub.HfApi",anchor:"huggingface_hub.HfApi",parameters:[{name:"endpoint",val:": Optional[str] = None"},{name:"token",val:": Optional[str] = None"},{name:"library_name",val:": Optional[str] = None"},{name:"library_version",val:": Optional[str] = None"},{name:"user_agent",val:": Union[Dict, str, None] = None"}],source:"https://github.com/huggingface/huggingface_hub/blob/v0.20.3/src/huggingface_hub/hf_api.py#L1214"}}),ys=new C({props:{name:"accept_access_request",anchor:"huggingface_hub.HfApi.accept_access_request",parameters:[{name:"repo_id",val:": str"},{name:"user",val:": str"},{name:"repo_type",val:": Optional[str] = None"},{name:"token",val:": Optional[str] = None"}],parametersDescription:[{anchor:"huggingface_hub.HfApi.accept_access_request.repo_id",description:`<strong>repo_id</strong> (<code>str</code>) &#x2014;
The id of the repo to accept access request for.`,name:"repo_id"},{anchor:"huggingface_hub.HfApi.accept_access_request.user",description:`<strong>user</strong> (<code>str</code>) &#x2014;
The username of the user which access request should be accepted.`,name:"user"},{anchor:"huggingface_hub.HfApi.accept_access_request.repo_type",description:`<strong>repo_type</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The type of the repo to accept access request for. Must be one of <code>model</code>, <code>dataset</code> or <code>space</code>.
Defaults to <code>model</code>.`,name:"repo_type"},{anchor:"huggingface_hub.HfApi.accept_access_request.token",description:`<strong>token</strong> (<code>str</code>, <em>optional</em>) &#x2014;
A valid authentication token (see <a href="https://huggingface.co/settings/token" rel="nofollow">https://huggingface.co/settings/token</a>).`,name:"token"}],source:"https://github.com/huggingface/huggingface_hub/blob/v0.20.3/src/huggingface_hub/hf_api.py#L8025",raiseDescription:`<script context="module">export const metadata = 'undefined';<\/script>


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


<p><code>HTTPError</code></p>
`}}),$s=new C({props:{name:"add_collection_item",anchor:"huggingface_hub.HfApi.add_collection_item",parameters:[{name:"collection_slug",val:": str"},{name:"item_id",val:": str"},{name:"item_type",val:": CollectionItemType_T"},{name:"note",val:": Optional[str] = None"},{name:"exists_ok",val:": bool = False"},{name:"token",val:": Optional[str] = None"}],parametersDescription:[{anchor:"huggingface_hub.HfApi.add_collection_item.collection_slug",description:`<strong>collection_slug</strong> (<code>str</code>) &#x2014;
Slug of the collection to update. Example: <code>&quot;TheBloke/recent-models-64f9a55bb3115b4f513ec026&quot;</code>.`,name:"collection_slug"},{anchor:"huggingface_hub.HfApi.add_collection_item.item_id",description:`<strong>item_id</strong> (<code>str</code>) &#x2014;
ID of the item to add to the collection. It can be the ID of a repo on the Hub (e.g. <code>&quot;facebook/bart-large-mnli&quot;</code>)
or a paper id (e.g. <code>&quot;2307.09288&quot;</code>).`,name:"item_id"},{anchor:"huggingface_hub.HfApi.add_collection_item.item_type",description:`<strong>item_type</strong> (<code>str</code>) &#x2014;
Type of the item to add. Can be one of <code>&quot;model&quot;</code>, <code>&quot;dataset&quot;</code>, <code>&quot;space&quot;</code> or <code>&quot;paper&quot;</code>.`,name:"item_type"},{anchor:"huggingface_hub.HfApi.add_collection_item.note",description:`<strong>note</strong> (<code>str</code>, <em>optional</em>) &#x2014;
A note to attach to the item in the collection. The maximum size for a note is 500 characters.`,name:"note"},{anchor:"huggingface_hub.HfApi.add_collection_item.exists_ok",description:`<strong>exists_ok</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
If <code>True</code>, do not raise an error if item already exists.`,name:"exists_ok"},{anchor:"huggingface_hub.HfApi.add_collection_item.token",description:`<strong>token</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Hugging Face token. Will default to the locally saved token if not provided.`,name:"token"}],source:"https://github.com/huggingface/huggingface_hub/blob/v0.20.3/src/huggingface_hub/hf_api.py#L7607"}}),io=new U({props:{anchor:"huggingface_hub.HfApi.add_collection_item.example",$$slots:{default:[NM]},$$scope:{ctx:M}}}),Ms=new C({props:{name:"add_space_secret",anchor:"huggingface_hub.HfApi.add_space_secret",parameters:[{name:"repo_id",val:": str"},{name:"key",val:": str"},{name:"value",val:": str"},{name:"description",val:": Optional[str] = None"},{name:"token",val:": Optional[str] = None"}],parametersDescription:[{anchor:"huggingface_hub.HfApi.add_space_secret.repo_id",description:`<strong>repo_id</strong> (<code>str</code>) &#x2014;
ID of the repo to update. Example: <code>&quot;bigcode/in-the-stack&quot;</code>.`,name:"repo_id"},{anchor:"huggingface_hub.HfApi.add_space_secret.key",description:`<strong>key</strong> (<code>str</code>) &#x2014;
Secret key. Example: <code>&quot;GITHUB_API_KEY&quot;</code>`,name:"key"},{anchor:"huggingface_hub.HfApi.add_space_secret.value",description:`<strong>value</strong> (<code>str</code>) &#x2014;
Secret value. Example: <code>&quot;your_github_api_key&quot;</code>.`,name:"value"},{anchor:"huggingface_hub.HfApi.add_space_secret.description",description:`<strong>description</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Secret description. Example: <code>&quot;Github API key to access the Github API&quot;</code>.`,name:"description"},{anchor:"huggingface_hub.HfApi.add_space_secret.token",description:`<strong>token</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Hugging Face token. Will default to the locally saved token if not provided.`,name:"token"}],source:"https://github.com/huggingface/huggingface_hub/blob/v0.20.3/src/huggingface_hub/hf_api.py#L6367"}}),ws=new C({props:{name:"add_space_variable",anchor:"huggingface_hub.HfApi.add_space_variable",parameters:[{name:"repo_id",val:": str"},{name:"key",val:": str"},{name:"value",val:": str"},{name:"description",val:": Optional[str] = None"},{name:"token",val:": Optional[str] = None"}],parametersDescription:[{anchor:"huggingface_hub.HfApi.add_space_variable.repo_id",description:`<strong>repo_id</strong> (<code>str</code>) &#x2014;
ID of the repo to update. Example: <code>&quot;bigcode/in-the-stack&quot;</code>.`,name:"repo_id"},{anchor:"huggingface_hub.HfApi.add_space_variable.key",description:`<strong>key</strong> (<code>str</code>) &#x2014;
Variable key. Example: <code>&quot;MODEL_REPO_ID&quot;</code>`,name:"key"},{anchor:"huggingface_hub.HfApi.add_space_variable.value",description:`<strong>value</strong> (<code>str</code>) &#x2014;
Variable value. Example: <code>&quot;the_model_repo_id&quot;</code>.`,name:"value"},{anchor:"huggingface_hub.HfApi.add_space_variable.description",description:`<strong>description</strong> (<code>str</code>) &#x2014;
Description of the variable. Example: <code>&quot;Model Repo ID of the implemented model&quot;</code>.`,name:"description"},{anchor:"huggingface_hub.HfApi.add_space_variable.token",description:`<strong>token</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Hugging Face token. Will default to the locally saved token if not provided.`,name:"token"}],source:"https://github.com/huggingface/huggingface_hub/blob/v0.20.3/src/huggingface_hub/hf_api.py#L6440"}}),js=new C({props:{name:"cancel_access_request",anchor:"huggingface_hub.HfApi.cancel_access_request",parameters:[{name:"repo_id",val:": str"},{name:"user",val:": str"},{name:"repo_type",val:": Optional[str] = None"},{name:"token",val:": Optional[str] = None"}],parametersDescription:[{anchor:"huggingface_hub.HfApi.cancel_access_request.repo_id",description:`<strong>repo_id</strong> (<code>str</code>) &#x2014;
The id of the repo to cancel access request for.`,name:"repo_id"},{anchor:"huggingface_hub.HfApi.cancel_access_request.user",description:`<strong>user</strong> (<code>str</code>) &#x2014;
The username of the user which access request should be cancelled.`,name:"user"},{anchor:"huggingface_hub.HfApi.cancel_access_request.repo_type",description:`<strong>repo_type</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The type of the repo to cancel access request for. Must be one of <code>model</code>, <code>dataset</code> or <code>space</code>.
Defaults to <code>model</code>.`,name:"repo_type"},{anchor:"huggingface_hub.HfApi.cancel_access_request.token",description:`<strong>token</strong> (<code>str</code>, <em>optional</em>) &#x2014;
A valid authentication token (see <a href="https://huggingface.co/settings/token" rel="nofollow">https://huggingface.co/settings/token</a>).`,name:"token"}],source:"https://github.com/huggingface/huggingface_hub/blob/v0.20.3/src/huggingface_hub/hf_api.py#L7988",raiseDescription:`<script context="module">export const metadata = 'undefined';<\/script>


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


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


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


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


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


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


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


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


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


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


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


<p><code>ValueError</code> or <a
  href="/docs/huggingface_hub/v0.20.3/en/package_reference/utilities#huggingface_hub.utils.RepositoryNotFoundError"
>RepositoryNotFoundError</a></p>
`}}),fo=new q({props:{warning:!0,$$slots:{default:[SM]},$$scope:{ctx:M}}}),mo=new q({props:{warning:!0,$$slots:{default:[ZM]},$$scope:{ctx:M}}}),_o=new q({props:{warning:!0,$$slots:{default:[LM]},$$scope:{ctx:M}}}),Us=new C({props:{name:"create_commits_on_pr",anchor:"huggingface_hub.HfApi.create_commits_on_pr",parameters:[{name:"repo_id",val:": str"},{name:"addition_commits",val:": List[List[CommitOperationAdd]]"},{name:"deletion_commits",val:": List[List[CommitOperationDelete]]"},{name:"commit_message",val:": str"},{name:"commit_description",val:": Optional[str] = None"},{name:"token",val:": Optional[str] = None"},{name:"repo_type",val:": Optional[str] = None"},{name:"merge_pr",val:": bool = True"},{name:"num_threads",val:": int = 5"},{name:"verbose",val:": bool = False"}],parametersDescription:[{anchor:"huggingface_hub.HfApi.create_commits_on_pr.repo_id",description:`<strong>repo_id</strong> (<code>str</code>) &#x2014;
The repository in which the commits will be pushed. Example: <code>&quot;username/my-cool-model&quot;</code>.`,name:"repo_id"},{anchor:"huggingface_hub.HfApi.create_commits_on_pr.addition_commits",description:`<strong>addition_commits</strong> (<code>List</code> of <code>List</code> of <a href="/docs/huggingface_hub/v0.20.3/en/package_reference/hf_api#huggingface_hub.CommitOperationAdd">CommitOperationAdd</a>) &#x2014;
A list containing lists of <a href="/docs/huggingface_hub/v0.20.3/en/package_reference/hf_api#huggingface_hub.CommitOperationAdd">CommitOperationAdd</a>. Each sublist will result in a commit on the
PR.</p>
<p>deletion_commits &#x2014;
A list containing lists of <a href="/docs/huggingface_hub/v0.20.3/en/package_reference/hf_api#huggingface_hub.CommitOperationDelete">CommitOperationDelete</a>. Each sublist will result in a commit on
the PR. Deletion commits are pushed before addition commits.`,name:"addition_commits"},{anchor:"huggingface_hub.HfApi.create_commits_on_pr.commit_message",description:`<strong>commit_message</strong> (<code>str</code>) &#x2014;
The summary (first line) of the commit that will be created. Will also be the title of the PR.`,name:"commit_message"},{anchor:"huggingface_hub.HfApi.create_commits_on_pr.commit_description",description:`<strong>commit_description</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The description of the commit that will be created. The description will be added to the PR.`,name:"commit_description"},{anchor:"huggingface_hub.HfApi.create_commits_on_pr.token",description:`<strong>token</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Authentication token, obtained with <code>HfApi.login</code> method. Will default to the stored token.`,name:"token"},{anchor:"huggingface_hub.HfApi.create_commits_on_pr.repo_type",description:`<strong>repo_type</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Set to <code>&quot;dataset&quot;</code> or <code>&quot;space&quot;</code> if uploading to a dataset or space, <code>None</code> or <code>&quot;model&quot;</code> if uploading to
a model. Default is <code>None</code>.`,name:"repo_type"},{anchor:"huggingface_hub.HfApi.create_commits_on_pr.merge_pr",description:`<strong>merge_pr</strong> (<code>bool</code>) &#x2014;
If set to <code>True</code>, the Pull Request is merged at the end of the process. Defaults to <code>True</code>.`,name:"merge_pr"},{anchor:"huggingface_hub.HfApi.create_commits_on_pr.num_threads",description:`<strong>num_threads</strong> (<code>int</code>, <em>optional</em>) &#x2014;
Number of concurrent threads for uploading files. Defaults to 5.`,name:"num_threads"},{anchor:"huggingface_hub.HfApi.create_commits_on_pr.verbose",description:`<strong>verbose</strong> (<code>bool</code>) &#x2014;
If set to <code>True</code>, process will run on verbose mode i.e. print information about the ongoing tasks.
Defaults to <code>False</code>.`,name:"verbose"}],source:"https://github.com/huggingface/huggingface_hub/blob/v0.20.3/src/huggingface_hub/hf_api.py#L3625",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>
`}}),bo=new q({props:{warning:!0,$$slots:{default:[WM]},$$scope:{ctx:M}}}),vo=new q({props:{warning:!0,$$slots:{default:[BM]},$$scope:{ctx:M}}}),xo=new U({props:{anchor:"huggingface_hub.HfApi.create_commits_on_pr.example",$$slots:{default:[VM]},$$scope:{ctx:M}}}),qs=new C({props:{name:"create_discussion",anchor:"huggingface_hub.HfApi.create_discussion",parameters:[{name:"repo_id",val:": str"},{name:"title",val:": str"},{name:"token",val:": Optional[str] = None"},{name:"description",val:": Optional[str] = None"},{name:"repo_type",val:": Optional[str] = None"},{name:"pull_request",val:": bool = False"}],parametersDescription:[{anchor:"huggingface_hub.HfApi.create_discussion.repo_id",description:`<strong>repo_id</strong> (<code>str</code>) &#x2014;
A namespace (user or an organization) and a repo name separated
by a <code>/</code>.`,name:"repo_id"},{anchor:"huggingface_hub.HfApi.create_discussion.title",description:`<strong>title</strong> (<code>str</code>) &#x2014;
The title of the discussion. It can be up to 200 characters long,
and must be at least 3 characters long. Leading and trailing whitespaces
will be stripped.`,name:"title"},{anchor:"huggingface_hub.HfApi.create_discussion.token",description:`<strong>token</strong> (<code>str</code>, <em>optional</em>) &#x2014;
An authentication token (See <a href="https://huggingface.co/settings/token" rel="nofollow">https://huggingface.co/settings/token</a>)`,name:"token"},{anchor:"huggingface_hub.HfApi.create_discussion.description",description:`<strong>description</strong> (<code>str</code>, <em>optional</em>) &#x2014;
An optional description for the Pull Request.
Defaults to <code>&quot;Discussion opened with the huggingface_hub Python library&quot;</code>`,name:"description"},{anchor:"huggingface_hub.HfApi.create_discussion.pull_request",description:`<strong>pull_request</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether to create a Pull Request or discussion. If <code>True</code>, creates a Pull Request.
If <code>False</code>, creates a discussion. Defaults to <code>False</code>.`,name:"pull_request"},{anchor:"huggingface_hub.HfApi.create_discussion.repo_type",description:`<strong>repo_type</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Set to <code>&quot;dataset&quot;</code> or <code>&quot;space&quot;</code> if uploading to a dataset or
space, <code>None</code> or <code>&quot;model&quot;</code> if uploading to a model. Default is
<code>None</code>.`,name:"repo_type"}],source:"https://github.com/huggingface/huggingface_hub/blob/v0.20.3/src/huggingface_hub/hf_api.py#L5805"}}),yo=new q({props:{$$slots:{default:[XM]},$$scope:{ctx:M}}}),As=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/v0.20.3/src/huggingface_hub/hf_api.py#L6929",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


<p><a
  href="/docs/huggingface_hub/v0.20.3/en/package_reference/inference_endpoints#huggingface_hub.InferenceEndpoint"
>InferenceEndpoint</a></p>
`}}),Wo=new U({props:{anchor:"huggingface_hub.HfApi.get_inference_endpoint.example",$$slots:{default:[cw]},$$scope:{ctx:M}}}),ar=new C({props:{name:"get_model_tags",anchor:"huggingface_hub.HfApi.get_model_tags",parameters:[],source:"https://github.com/huggingface/huggingface_hub/blob/v0.20.3/src/huggingface_hub/hf_api.py#L1340"}}),sr=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/v0.20.3/en/package_reference/login#huggingface_hub.login">login()</a>), token will be
retrieved from the cache. If <code>False</code>, token is not sent in the request header.`,name:"token"}],source:"https://github.com/huggingface/huggingface_hub/blob/v0.20.3/src/huggingface_hub/hf_api.py#L2902",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


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


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


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


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


<p>An iterator of <a
  href="/docs/huggingface_hub/v0.20.3/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>
`}}),Xo=new U({props:{anchor:"huggingface_hub.HfApi.get_repo_discussions.example",$$slots:{default:[pw]},$$scope:{ctx:M}}}),Po=new U({props:{anchor:"huggingface_hub.HfApi.get_repo_discussions.example-2",$$slots:{default:[dw]},$$scope:{ctx:M}}}),ir=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/v0.20.3/en/package_reference/login#huggingface_hub.login">login()</a>), token will be
retrieved from the cache. If <code>False</code>, token is not sent in the request header.`,name:"token"}],source:"https://github.com/huggingface/huggingface_hub/blob/v0.20.3/src/huggingface_hub/hf_api.py#L5133",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>
`}}),Yo=new U({props:{anchor:"huggingface_hub.HfApi.get_safetensors_metadata.example",$$slots:{default:[gw]},$$scope:{ctx:M}}}),cr=new C({props:{name:"get_space_runtime",anchor:"huggingface_hub.HfApi.get_space_runtime",parameters:[{name:"repo_id",val:": str"},{name:"token",val:": Optional[str] = None"}],parametersDescription:[{anchor:"huggingface_hub.HfApi.get_space_runtime.repo_id",description:`<strong>repo_id</strong> (<code>str</code>) &#x2014;
ID of the repo to update. Example: <code>&quot;bigcode/in-the-stack&quot;</code>.`,name:"repo_id"},{anchor:"huggingface_hub.HfApi.get_space_runtime.token",description:`<strong>token</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Hugging Face token. Will default to the locally saved token if
not provided.`,name:"token"}],source:"https://github.com/huggingface/huggingface_hub/blob/v0.20.3/src/huggingface_hub/hf_api.py#L6497",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


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


<p><a
  href="/docs/huggingface_hub/v0.20.3/en/package_reference/space_runtime#huggingface_hub.SpaceRuntime"
>SpaceRuntime</a></p>
`}}),lr=new C({props:{name:"get_space_variables",anchor:"huggingface_hub.HfApi.get_space_variables",parameters:[{name:"repo_id",val:": str"},{name:"token",val:": Optional[str] = None"}],parametersDescription:[{anchor:"huggingface_hub.HfApi.get_space_variables.repo_id",description:`<strong>repo_id</strong> (<code>str</code>) &#x2014;
ID of the repo to query. Example: <code>&quot;bigcode/in-the-stack&quot;</code>.`,name:"repo_id"},{anchor:"huggingface_hub.HfApi.get_space_variables.token",description:`<strong>token</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Hugging Face token. Will default to the locally saved token if not provided.`,name:"token"}],source:"https://github.com/huggingface/huggingface_hub/blob/v0.20.3/src/huggingface_hub/hf_api.py#L6420"}}),pr=new C({props:{name:"get_token_permission",anchor:"huggingface_hub.HfApi.get_token_permission",parameters:[{name:"token",val:": Optional[str] = None"}],parametersDescription:[{anchor:"huggingface_hub.HfApi.get_token_permission.token",description:`<strong>token</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The token to check for validity. Defaults to the one saved locally.`,name:"token"}],source:"https://github.com/huggingface/huggingface_hub/blob/v0.20.3/src/huggingface_hub/hf_api.py#L1321",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>
`}}),dr=new C({props:{name:"grant_access",anchor:"huggingface_hub.HfApi.grant_access",parameters:[{name:"repo_id",val:": str"},{name:"user",val:": str"},{name:"repo_type",val:": Optional[str] = None"},{name:"token",val:": Optional[str] = None"}],parametersDescription:[{anchor:"huggingface_hub.HfApi.grant_access.repo_id",description:`<strong>repo_id</strong> (<code>str</code>) &#x2014;
The id of the repo to grant access to.`,name:"repo_id"},{anchor:"huggingface_hub.HfApi.grant_access.user",description:`<strong>user</strong> (<code>str</code>) &#x2014;
The username of the user to grant access.`,name:"user"},{anchor:"huggingface_hub.HfApi.grant_access.repo_type",description:`<strong>repo_type</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The type of the repo to grant access to. Must be one of <code>model</code>, <code>dataset</code> or <code>space</code>.
Defaults to <code>model</code>.`,name:"repo_type"},{anchor:"huggingface_hub.HfApi.grant_access.token",description:`<strong>token</strong> (<code>str</code>, <em>optional</em>) &#x2014;
A valid authentication token (see <a href="https://huggingface.co/settings/token" rel="nofollow">https://huggingface.co/settings/token</a>).`,name:"token"}],source:"https://github.com/huggingface/huggingface_hub/blob/v0.20.3/src/huggingface_hub/hf_api.py#L8124",raiseDescription:`<script context="module">export const metadata = 'undefined';<\/script>


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


<p><code>HTTPError</code></p>
`}}),gr=new C({props:{name:"hf_hub_download",anchor:"huggingface_hub.HfApi.hf_hub_download",parameters:[{name:"repo_id",val:": str"},{name:"filename",val:": str"},{name:"subfolder",val:": Optional[str] = None"},{name:"repo_type",val:": Optional[str] = None"},{name:"revision",val:": Optional[str] = None"},{name:"cache_dir",val:": Union[str, Path, None] = None"},{name:"local_dir",val:": Union[str, Path, None] = None"},{name:"local_dir_use_symlinks",val:": Union[bool, Literal['auto']] = 'auto'"},{name:"force_download",val:": bool = False"},{name:"force_filename",val:": Optional[str] = None"},{name:"proxies",val:": Optional[Dict] = None"},{name:"etag_timeout",val:": float = 10"},{name:"resume_download",val:": bool = False"},{name:"token",val:": Optional[Union[str, bool]] = None"},{name:"local_files_only",val:": bool = False"},{name:"legacy_cache_layout",val:": bool = False"}],parametersDescription:[{anchor:"huggingface_hub.HfApi.hf_hub_download.repo_id",description:`<strong>repo_id</strong> (<code>str</code>) &#x2014;
A user or an organization name and a repo name separated by a <code>/</code>.`,name:"repo_id"},{anchor:"huggingface_hub.HfApi.hf_hub_download.filename",description:`<strong>filename</strong> (<code>str</code>) &#x2014;
The name of the file in the repo.`,name:"filename"},{anchor:"huggingface_hub.HfApi.hf_hub_download.subfolder",description:`<strong>subfolder</strong> (<code>str</code>, <em>optional</em>) &#x2014;
An optional value corresponding to a folder inside the model repo.`,name:"subfolder"},{anchor:"huggingface_hub.HfApi.hf_hub_download.repo_type",description:`<strong>repo_type</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Set to <code>&quot;dataset&quot;</code> or <code>&quot;space&quot;</code> if downloading from a dataset or space,
<code>None</code> or <code>&quot;model&quot;</code> if downloading from a model. Default is <code>None</code>.`,name:"repo_type"},{anchor:"huggingface_hub.HfApi.hf_hub_download.revision",description:`<strong>revision</strong> (<code>str</code>, <em>optional</em>) &#x2014;
An optional Git revision id which can be a branch name, a tag, or a
commit hash.`,name:"revision"},{anchor:"huggingface_hub.HfApi.hf_hub_download.cache_dir",description:`<strong>cache_dir</strong> (<code>str</code>, <code>Path</code>, <em>optional</em>) &#x2014;
Path to the folder where cached files are stored.`,name:"cache_dir"},{anchor:"huggingface_hub.HfApi.hf_hub_download.local_dir",description:`<strong>local_dir</strong> (<code>str</code> or <code>Path</code>, <em>optional</em>) &#x2014;
If provided, the downloaded file will be placed under this directory, either as a symlink (default) or
a regular file (see description for more details).`,name:"local_dir"},{anchor:"huggingface_hub.HfApi.hf_hub_download.local_dir_use_symlinks",description:`<strong>local_dir_use_symlinks</strong> (<code>&quot;auto&quot;</code> or <code>bool</code>, defaults to <code>&quot;auto&quot;</code>) &#x2014;
To be used with <code>local_dir</code>. If set to &#x201C;auto&#x201D;, the cache directory will be used and the file will be either
duplicated or symlinked to the local directory depending on its size. It set to <code>True</code>, a symlink will be
created, no matter the file size. If set to <code>False</code>, the file will either be duplicated from cache (if
already exists) or downloaded from the Hub and not cached. See description for more details.`,name:"local_dir_use_symlinks"},{anchor:"huggingface_hub.HfApi.hf_hub_download.force_download",description:`<strong>force_download</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether the file should be downloaded even if it already exists in
the local cache.`,name:"force_download"},{anchor:"huggingface_hub.HfApi.hf_hub_download.proxies",description:`<strong>proxies</strong> (<code>dict</code>, <em>optional</em>) &#x2014;
Dictionary mapping protocol to the URL of the proxy passed to
<code>requests.request</code>.`,name:"proxies"},{anchor:"huggingface_hub.HfApi.hf_hub_download.etag_timeout",description:`<strong>etag_timeout</strong> (<code>float</code>, <em>optional</em>, defaults to <code>10</code>) &#x2014;
When fetching ETag, how many seconds to wait for the server to send
data before giving up which is passed to <code>requests.request</code>.`,name:"etag_timeout"},{anchor:"huggingface_hub.HfApi.hf_hub_download.resume_download",description:`<strong>resume_download</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
If <code>True</code>, resume a previously interrupted download.`,name:"resume_download"},{anchor:"huggingface_hub.HfApi.hf_hub_download.token",description:`<strong>token</strong> (<code>bool</code> or <code>str</code>, <em>optional</em>) &#x2014;
A valid authentication token (see <a href="https://huggingface.co/settings/token" rel="nofollow">https://huggingface.co/settings/token</a>).
If <code>None</code> or <code>True</code> and machine is logged in (through <code>huggingface-cli login</code>
or <a href="/docs/huggingface_hub/v0.20.3/en/package_reference/login#huggingface_hub.login">login()</a>), token will be retrieved from the cache.
If <code>False</code>, token is not sent in the request header.`,name:"token"},{anchor:"huggingface_hub.HfApi.hf_hub_download.local_files_only",description:`<strong>local_files_only</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
If <code>True</code>, avoid downloading the file and return the path to the
local cached file if it exists.`,name:"local_files_only"},{anchor:"huggingface_hub.HfApi.hf_hub_download.legacy_cache_layout",description:`<strong>legacy_cache_layout</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
If <code>True</code>, uses the legacy file cache layout i.e. just call <a href="/docs/huggingface_hub/v0.20.3/en/package_reference/file_download#huggingface_hub.hf_hub_url">hf_hub_url()</a>
then <code>cached_download</code>. This is deprecated as the new cache layout is
more powerful.`,name:"legacy_cache_layout"}],source:"https://github.com/huggingface/huggingface_hub/blob/v0.20.3/src/huggingface_hub/hf_api.py#L4823",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>Local path (string) of file or if networking is off, last version of
file cached on disk.</p>
`}}),Oo=new U({props:{anchor:"huggingface_hub.HfApi.hf_hub_download.example",$$slots:{default:[uw]},$$scope:{ctx:M}}}),Qo=new q({props:{$$slots:{default:[hw]},$$scope:{ctx:M}}}),ur=new C({props:{name:"hide_discussion_comment",anchor:"huggingface_hub.HfApi.hide_discussion_comment",parameters:[{name:"repo_id",val:": str"},{name:"discussion_num",val:": int"},{name:"comment_id",val:": str"},{name:"token",val:": Optional[str] = None"},{name:"repo_type",val:": Optional[str] = None"}],parametersDescription:[{anchor:"huggingface_hub.HfApi.hide_discussion_comment.repo_id",description:`<strong>repo_id</strong> (<code>str</code>) &#x2014;
A namespace (user or an organization) and a repo name separated
by a <code>/</code>.`,name:"repo_id"},{anchor:"huggingface_hub.HfApi.hide_discussion_comment.discussion_num",description:`<strong>discussion_num</strong> (<code>int</code>) &#x2014;
The number of the Discussion or Pull Request . Must be a strictly positive integer.`,name:"discussion_num"},{anchor:"huggingface_hub.HfApi.hide_discussion_comment.comment_id",description:`<strong>comment_id</strong> (<code>str</code>) &#x2014;
The ID of the comment to edit.`,name:"comment_id"},{anchor:"huggingface_hub.HfApi.hide_discussion_comment.repo_type",description:`<strong>repo_type</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Set to <code>&quot;dataset&quot;</code> or <code>&quot;space&quot;</code> if uploading to a dataset or
space, <code>None</code> or <code>&quot;model&quot;</code> if uploading to a model. Default is
<code>None</code>.`,name:"repo_type"},{anchor:"huggingface_hub.HfApi.hide_discussion_comment.token",description:`<strong>token</strong> (<code>str</code>, <em>optional</em>) &#x2014;
An authentication token (See <a href="https://huggingface.co/settings/token" rel="nofollow">https://huggingface.co/settings/token</a>)`,name:"token"}],source:"https://github.com/huggingface/huggingface_hub/blob/v0.20.3/src/huggingface_hub/hf_api.py#L6306",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


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


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


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


<p><a
  href="/docs/huggingface_hub/v0.20.3/en/package_reference/utilities#huggingface_hub.utils.RepositoryNotFoundError"
>RepositoryNotFoundError</a></p>
`}}),ta=new U({props:{anchor:"huggingface_hub.HfApi.like.example",$$slots:{default:[_w]},$$scope:{ctx:M}}}),fr=new C({props:{name:"list_accepted_access_requests",anchor:"huggingface_hub.HfApi.list_accepted_access_requests",parameters:[{name:"repo_id",val:": str"},{name:"repo_type",val:": Optional[str] = None"},{name:"token",val:": Optional[str] = None"}],parametersDescription:[{anchor:"huggingface_hub.HfApi.list_accepted_access_requests.repo_id",description:`<strong>repo_id</strong> (<code>str</code>) &#x2014;
The id of the repo to get access requests for.`,name:"repo_id"},{anchor:"huggingface_hub.HfApi.list_accepted_access_requests.repo_type",description:`<strong>repo_type</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The type of the repo to get access requests for. Must be one of <code>model</code>, <code>dataset</code> or <code>space</code>.
Defaults to <code>model</code>.`,name:"repo_type"},{anchor:"huggingface_hub.HfApi.list_accepted_access_requests.token",description:`<strong>token</strong> (<code>str</code>, <em>optional</em>) &#x2014;
A valid authentication token (see <a href="https://huggingface.co/settings/token" rel="nofollow">https://huggingface.co/settings/token</a>).`,name:"token"}],source:"https://github.com/huggingface/huggingface_hub/blob/v0.20.3/src/huggingface_hub/hf_api.py#L7841",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


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


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


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


<p><code>HTTPError</code></p>
`}}),na=new U({props:{anchor:"huggingface_hub.HfApi.list_accepted_access_requests.example",$$slots:{default:[bw]},$$scope:{ctx:M}}}),mr=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/v0.20.3/src/huggingface_hub/hf_api.py#L7347",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


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


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


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


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


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


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


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


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


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


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


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


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


<p>an iterable of <a
  href="/docs/huggingface_hub/v0.20.3/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>
`}}),ua=new U({props:{anchor:"huggingface_hub.HfApi.list_models.example",$$slots:{default:[Cw]},$$scope:{ctx:M}}}),ha=new U({props:{anchor:"huggingface_hub.HfApi.list_models.example-2",$$slots:{default:[Hw]},$$scope:{ctx:M}}}),Mr=new C({props:{name:"list_pending_access_requests",anchor:"huggingface_hub.HfApi.list_pending_access_requests",parameters:[{name:"repo_id",val:": str"},{name:"repo_type",val:": Optional[str] = None"},{name:"token",val:": Optional[str] = None"}],parametersDescription:[{anchor:"huggingface_hub.HfApi.list_pending_access_requests.repo_id",description:`<strong>repo_id</strong> (<code>str</code>) &#x2014;
The id of the repo to get access requests for.`,name:"repo_id"},{anchor:"huggingface_hub.HfApi.list_pending_access_requests.repo_type",description:`<strong>repo_type</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The type of the repo to get access requests for. Must be one of <code>model</code>, <code>dataset</code> or <code>space</code>.
Defaults to <code>model</code>.`,name:"repo_type"},{anchor:"huggingface_hub.HfApi.list_pending_access_requests.token",description:`<strong>token</strong> (<code>str</code>, <em>optional</em>) &#x2014;
A valid authentication token (see <a href="https://huggingface.co/settings/token" rel="nofollow">https://huggingface.co/settings/token</a>).`,name:"token"}],source:"https://github.com/huggingface/huggingface_hub/blob/v0.20.3/src/huggingface_hub/hf_api.py#L7780",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


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


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


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


<p><code>HTTPError</code></p>
`}}),fa=new U({props:{anchor:"huggingface_hub.HfApi.list_pending_access_requests.example",$$slots:{default:[Iw]},$$scope:{ctx:M}}}),wr=new C({props:{name:"list_rejected_access_requests",anchor:"huggingface_hub.HfApi.list_rejected_access_requests",parameters:[{name:"repo_id",val:": str"},{name:"repo_type",val:": Optional[str] = None"},{name:"token",val:": Optional[str] = None"}],parametersDescription:[{anchor:"huggingface_hub.HfApi.list_rejected_access_requests.repo_id",description:`<strong>repo_id</strong> (<code>str</code>) &#x2014;
The id of the repo to get access requests for.`,name:"repo_id"},{anchor:"huggingface_hub.HfApi.list_rejected_access_requests.repo_type",description:`<strong>repo_type</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The type of the repo to get access requests for. Must be one of <code>model</code>, <code>dataset</code> or <code>space</code>.
Defaults to <code>model</code>.`,name:"repo_type"},{anchor:"huggingface_hub.HfApi.list_rejected_access_requests.token",description:`<strong>token</strong> (<code>str</code>, <em>optional</em>) &#x2014;
A valid authentication token (see <a href="https://huggingface.co/settings/token" rel="nofollow">https://huggingface.co/settings/token</a>).`,name:"token"}],source:"https://github.com/huggingface/huggingface_hub/blob/v0.20.3/src/huggingface_hub/hf_api.py#L7900",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


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


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


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


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


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


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


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


<p><a
  href="/docs/huggingface_hub/v0.20.3/en/package_reference/utilities#huggingface_hub.utils.RepositoryNotFoundError"
>RepositoryNotFoundError</a> or <a
  href="/docs/huggingface_hub/v0.20.3/en/package_reference/utilities#huggingface_hub.utils.RevisionNotFoundError"
>RevisionNotFoundError</a></p>
`}}),_a=new U({props:{anchor:"huggingface_hub.HfApi.list_repo_commits.example",$$slots:{default:[qw]},$$scope:{ctx:M}}}),Tr=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/v0.20.3/en/package_reference/login#huggingface_hub.login">login()</a>), token will be
retrieved from the cache. If <code>False</code>, token is not sent in the request header.`,name:"token"}],source:"https://github.com/huggingface/huggingface_hub/blob/v0.20.3/src/huggingface_hub/hf_api.py#L2577",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>
`}}),kr=new C({props:{name:"list_repo_likers",anchor:"huggingface_hub.HfApi.list_repo_likers",parameters:[{name:"repo_id",val:": str"},{name:"repo_type",val:": Optional[str] = None"},{name:"token",val:": Optional[str] = None"}],parametersDescription:[{anchor:"huggingface_hub.HfApi.list_repo_likers.repo_id",description:`<strong>repo_id</strong> (<code>str</code>) &#x2014;
The repository to retrieve . Example: <code>&quot;user/my-cool-model&quot;</code>.`,name:"repo_id"},{anchor:"huggingface_hub.HfApi.list_repo_likers.token",description:`<strong>token</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Authentication token. Will default to the stored token.`,name:"token"},{anchor:"huggingface_hub.HfApi.list_repo_likers.repo_type",description:`<strong>repo_type</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Set to <code>&quot;dataset&quot;</code> or <code>&quot;space&quot;</code> if uploading to a dataset or
space, <code>None</code> or <code>&quot;model&quot;</code> if uploading to a model. Default is
<code>None</code>.`,name:"repo_type"}],source:"https://github.com/huggingface/huggingface_hub/blob/v0.20.3/src/huggingface_hub/hf_api.py#L1971",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


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


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


<p><a
  href="/docs/huggingface_hub/v0.20.3/en/package_reference/hf_api#huggingface_hub.GitRefs"
>GitRefs</a></p>
`}}),va=new U({props:{anchor:"huggingface_hub.HfApi.list_repo_refs.example",$$slots:{default:[Aw]},$$scope:{ctx:M}}}),Hr=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/v0.20.3/en/package_reference/login#huggingface_hub.login">login()</a>), token will be
retrieved from the cache. If <code>False</code>, token is not sent in the request header.`,name:"token"}],source:"https://github.com/huggingface/huggingface_hub/blob/v0.20.3/src/huggingface_hub/hf_api.py#L2613",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


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


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


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


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


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


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


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


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


<p><a
  href="/docs/huggingface_hub/v0.20.3/en/package_reference/hf_api#huggingface_hub.hf_api.ModelInfo"
>huggingface_hub.hf_api.ModelInfo</a></p>
`}}),wa=new q({props:{$$slots:{default:[Rw]},$$scope:{ctx:M}}}),Ar=new C({props:{name:"move_repo",anchor:"huggingface_hub.HfApi.move_repo",parameters:[{name:"from_id",val:": str"},{name:"to_id",val:": str"},{name:"repo_type",val:": Optional[str] = None"},{name:"token",val:": Optional[str] = None"}],parametersDescription:[{anchor:"huggingface_hub.HfApi.move_repo.from_id",description:`<strong>from_id</strong> (<code>str</code>) &#x2014;
A namespace (user or an organization) and a repo name separated
by a <code>/</code>. Original repository identifier.`,name:"from_id"},{anchor:"huggingface_hub.HfApi.move_repo.to_id",description:`<strong>to_id</strong> (<code>str</code>) &#x2014;
A namespace (user or an organization) and a repo name separated
by a <code>/</code>. Final repository identifier.`,name:"to_id"},{anchor:"huggingface_hub.HfApi.move_repo.repo_type",description:`<strong>repo_type</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Set to <code>&quot;dataset&quot;</code> or <code>&quot;space&quot;</code> if uploading to a dataset or
space, <code>None</code> or <code>&quot;model&quot;</code> if uploading to a model. Default is
<code>None</code>.`,name:"repo_type"},{anchor:"huggingface_hub.HfApi.move_repo.token",description:`<strong>token</strong> (<code>str</code>, <em>optional</em>) &#x2014;
An authentication token (See <a href="https://huggingface.co/settings/token" rel="nofollow">https://huggingface.co/settings/token</a>)`,name:"token"}],source:"https://github.com/huggingface/huggingface_hub/blob/v0.20.3/src/huggingface_hub/hf_api.py#L3305"}}),ja=new q({props:{$$slots:{default:[Gw]},$$scope:{ctx:M}}}),Jr=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/v0.20.3/en/package_reference/login#huggingface_hub.login">login()</a>), token will be
retrieved from the cache. If <code>False</code>, token is not sent in the request header.`,name:"token"}],source:"https://github.com/huggingface/huggingface_hub/blob/v0.20.3/src/huggingface_hub/hf_api.py#L5254",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>
`}}),Nr=new C({props:{name:"pause_inference_endpoint",anchor:"huggingface_hub.HfApi.pause_inference_endpoint",parameters:[{name:"name",val:": str"},{name:"namespace",val:": Optional[str] = None"},{name:"token",val:": Optional[str] = None"}],parametersDescription:[{anchor:"huggingface_hub.HfApi.pause_inference_endpoint.name",description:`<strong>name</strong> (<code>str</code>) &#x2014;
The name of the Inference Endpoint to pause.`,name:"name"},{anchor:"huggingface_hub.HfApi.pause_inference_endpoint.namespace",description:`<strong>namespace</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The namespace in which the Inference Endpoint is located. Defaults to the current user.`,name:"namespace"},{anchor:"huggingface_hub.HfApi.pause_inference_endpoint.token",description:`<strong>token</strong> (<code>str</code>, <em>optional</em>) &#x2014;
An authentication token (See <a href="https://huggingface.co/settings/token" rel="nofollow">https://huggingface.co/settings/token</a>).`,name:"token"}],source:"https://github.com/huggingface/huggingface_hub/blob/v0.20.3/src/huggingface_hub/hf_api.py#L7241",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


<p><a
  href="/docs/huggingface_hub/v0.20.3/en/package_reference/inference_endpoints#huggingface_hub.InferenceEndpoint"
>InferenceEndpoint</a></p>
`}}),Vr=new C({props:{name:"run_as_future",anchor:"huggingface_hub.HfApi.run_as_future",parameters:[{name:"fn",val:": Callable[..., R]"},{name:"*args",val:""},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"huggingface_hub.HfApi.run_as_future.fn",description:`<strong>fn</strong> (<code>Callable</code>) &#x2014;
The method to run in the background.`,name:"fn"},{anchor:"huggingface_hub.HfApi.run_as_future.*args,",description:`<strong>*args,</strong> **kwargs &#x2014;
Arguments with which the method will be called.`,name:"*args,"}],source:"https://github.com/huggingface/huggingface_hub/blob/v0.20.3/src/huggingface_hub/hf_api.py#L1251",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>a <a
  href="https://docs.python.org/3/library/concurrent.futures.html#future-objects"
  rel="nofollow"
>Future</a> instance to
get the result of the task.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>Future</code></p>
`}}),Na=new U({props:{anchor:"huggingface_hub.HfApi.run_as_future.example",$$slots:{default:[Yw]},$$scope:{ctx:M}}}),Xr=new C({props:{name:"scale_to_zero_inference_endpoint",anchor:"huggingface_hub.HfApi.scale_to_zero_inference_endpoint",parameters:[{name:"name",val:": str"},{name:"namespace",val:": Optional[str] = None"},{name:"token",val:": Optional[str] = None"}],parametersDescription:[{anchor:"huggingface_hub.HfApi.scale_to_zero_inference_endpoint.name",description:`<strong>name</strong> (<code>str</code>) &#x2014;
The name of the Inference Endpoint to scale to zero.`,name:"name"},{anchor:"huggingface_hub.HfApi.scale_to_zero_inference_endpoint.namespace",description:`<strong>namespace</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The namespace in which the Inference Endpoint is located. Defaults to the current user.`,name:"namespace"},{anchor:"huggingface_hub.HfApi.scale_to_zero_inference_endpoint.token",description:`<strong>token</strong> (<code>str</code>, <em>optional</em>) &#x2014;
An authentication token (See <a href="https://huggingface.co/settings/token" rel="nofollow">https://huggingface.co/settings/token</a>).`,name:"token"}],source:"https://github.com/huggingface/huggingface_hub/blob/v0.20.3/src/huggingface_hub/hf_api.py#L7301",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


<p><code>Tuple[List[List[CommitOperationAdd]], List[List[CommitOperationDelete]]]</code></p>
`}}),es=new q({props:{warning:!0,$$slots:{default:[uj]},$$scope:{ctx:M}}}),ts=new U({props:{anchor:"huggingface_hub.plan_multi_commits.example",$$slots:{default:[hj]},$$scope:{ctx:M}}}),ns=new q({props:{warning:!0,$$slots:{default:[fj]},$$scope:{ctx:M}}}),ii=new R({props:{title:"API Dataclasses",local:"api-dataclasses",headingTag:"h2"}}),ci=new R({props:{title:"AccessRequest",local:"huggingface_hub.hf_api.AccessRequest",headingTag:"h3"}}),li=new C({props:{name:"class huggingface_hub.hf_api.AccessRequest",anchor:"huggingface_hub.hf_api.AccessRequest",parameters:[{name:"username",val:": str"},{name:"fullname",val:": str"},{name:"email",val:": str"},{name:"timestamp",val:": datetime"},{name:"status",val:": Literal['pending', 'accepted', 'rejected']"},{name:"fields",val:": Optional[Dict[str, Any]] = None"}],parametersDescription:[{anchor:"huggingface_hub.hf_api.AccessRequest.username",description:`<strong>username</strong> (<code>str</code>) &#x2014;
Username of the user who requested access.`,name:"username"},{anchor:"huggingface_hub.hf_api.AccessRequest.fullname",description:`<strong>fullname</strong> (<code>str</code>) &#x2014;
Fullname of the user who requested access.`,name:"fullname"},{anchor:"huggingface_hub.hf_api.AccessRequest.email",description:`<strong>email</strong> (<code>str</code>) &#x2014;
Email of the user who requested access.`,name:"email"},{anchor:"huggingface_hub.hf_api.AccessRequest.timestamp",description:`<strong>timestamp</strong> (<code>datetime</code>) &#x2014;
Timestamp of the request.`,name:"timestamp"},{anchor:"huggingface_hub.hf_api.AccessRequest.status",description:`<strong>status</strong> (<code>Literal[&quot;pending&quot;, &quot;accepted&quot;, &quot;rejected&quot;]</code>) &#x2014;
Status of the request. Can be one of <code>[&quot;pending&quot;, &quot;accepted&quot;, &quot;rejected&quot;]</code>.`,name:"status"},{anchor:"huggingface_hub.hf_api.AccessRequest.fields",description:`<strong>fields</strong> (<code>Dict[str, Any]</code>, <em>optional</em>) &#x2014;
Additional fields filled by the user in the gate form.`,name:"fields"}],source:"https://github.com/huggingface/huggingface_hub/blob/v0.20.3/src/huggingface_hub/hf_api.py#L342"}}),pi=new R({props:{title:"CommitInfo",local:"huggingface_hub.CommitInfo",headingTag:"h3"}}),di=new C({props:{name:"class huggingface_hub.CommitInfo",anchor:"huggingface_hub.CommitInfo",parameters:[{name:"*args",val:""},{name:"commit_url",val:": str"},{name:"_url",val:": Optional[str] = None"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"huggingface_hub.CommitInfo.commit_url",description:`<strong>commit_url</strong> (<code>str</code>) &#x2014;
Url where to find the commit.`,name:"commit_url"},{anchor:"huggingface_hub.CommitInfo.commit_message",description:`<strong>commit_message</strong> (<code>str</code>) &#x2014;
The summary (first line) of the commit that has been created.`,name:"commit_message"},{anchor:"huggingface_hub.CommitInfo.commit_description",description:`<strong>commit_description</strong> (<code>str</code>) &#x2014;
Description of the commit that has been created. Can be empty.`,name:"commit_description"},{anchor:"huggingface_hub.CommitInfo.oid",description:`<strong>oid</strong> (<code>str</code>) &#x2014;
Commit hash id. Example: <code>&quot;91c54ad1727ee830252e457677f467be0bfd8a57&quot;</code>.`,name:"oid"},{anchor:"huggingface_hub.CommitInfo.pr_url",description:`<strong>pr_url</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Url to the PR that has been created, if any. Populated when <code>create_pr=True</code>
is passed.`,name:"pr_url"},{anchor:"huggingface_hub.CommitInfo.pr_revision",description:`<strong>pr_revision</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Revision of the PR that has been created, if any. Populated when
<code>create_pr=True</code> is passed. Example: <code>&quot;refs/pr/1&quot;</code>.`,name:"pr_revision"},{anchor:"huggingface_hub.CommitInfo.pr_num",description:`<strong>pr_num</strong> (<code>int</code>, <em>optional</em>) &#x2014;
Number of the PR discussion that has been created, if any. Populated when
<code>create_pr=True</code> is passed. Can be passed as <code>discussion_num</code> in
<a href="/docs/huggingface_hub/v0.20.3/en/package_reference/hf_api#huggingface_hub.HfApi.get_discussion_details">get_discussion_details()</a>. Example: <code>1</code>.`,name:"pr_num"},{anchor:"huggingface_hub.CommitInfo._url",description:`<strong>_url</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Legacy url for <code>str</code> compatibility. Can be the url to the uploaded file on the Hub (if returned by
<a href="/docs/huggingface_hub/v0.20.3/en/package_reference/hf_api#huggingface_hub.HfApi.upload_file">upload_file()</a>), to the uploaded folder on the Hub (if returned by <a href="/docs/huggingface_hub/v0.20.3/en/package_reference/hf_api#huggingface_hub.HfApi.upload_folder">upload_folder()</a>) or to the commit on
the Hub (if returned by <a href="/docs/huggingface_hub/v0.20.3/en/package_reference/hf_api#huggingface_hub.HfApi.create_commit">create_commit()</a>). Defaults to <code>commit_url</code>. It is deprecated to use this
attribute. Please use <code>commit_url</code> instead.`,name:"_url"}],source:"https://github.com/huggingface/huggingface_hub/blob/v0.20.3/src/huggingface_hub/hf_api.py#L272"}}),gi=new R({props:{title:"DatasetInfo",local:"huggingface_hub.hf_api.DatasetInfo",headingTag:"h3"}}),ui=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/v0.20.3/en/package_reference/cards#huggingface_hub.DatasetCardData">huggingface_hub.repocard_data.DatasetCardData</a> object.`,name:"card_data"},{anchor:"huggingface_hub.hf_api.DatasetInfo.siblings",description:`<strong>siblings</strong> (<code>List[RepoSibling]</code>) &#x2014;
List of <a href="/docs/huggingface_hub/v0.20.3/en/package_reference/hf_api#huggingface_hub.hf_api.RepoSibling">huggingface_hub.hf_api.RepoSibling</a> objects that constitute the dataset.`,name:"siblings"}],source:"https://github.com/huggingface/huggingface_hub/blob/v0.20.3/src/huggingface_hub/hf_api.py#L697"}}),os=new q({props:{$$slots:{default:[mj]},$$scope:{ctx:M}}}),hi=new R({props:{title:"GitRefInfo",local:"huggingface_hub.GitRefInfo",headingTag:"h3"}}),fi=new C({props:{name:"class huggingface_hub.GitRefInfo",anchor:"huggingface_hub.GitRefInfo",parameters:[{name:"name",val:": str"},{name:"ref",val:": str"},{name:"target_commit",val:": str"}],parametersDescription:[{anchor:"huggingface_hub.GitRefInfo.name",description:`<strong>name</strong> (<code>str</code>) &#x2014;
Name of the reference (e.g. tag name or branch name).`,name:"name"},{anchor:"huggingface_hub.GitRefInfo.ref",description:`<strong>ref</strong> (<code>str</code>) &#x2014;
Full git ref on the Hub (e.g. <code>&quot;refs/heads/main&quot;</code> or <code>&quot;refs/tags/v1.0&quot;</code>).`,name:"ref"},{anchor:"huggingface_hub.GitRefInfo.target_commit",description:`<strong>target_commit</strong> (<code>str</code>) &#x2014;
OID of the target commit for the ref (e.g. <code>&quot;e7da7f221d5bf496a48136c0cd264e630fe9fcc8&quot;</code>)`,name:"target_commit"}],source:"https://github.com/huggingface/huggingface_hub/blob/v0.20.3/src/huggingface_hub/hf_api.py#L1055"}}),mi=new R({props:{title:"GitCommitInfo",local:"huggingface_hub.GitCommitInfo",headingTag:"h3"}}),_i=new C({props:{name:"class huggingface_hub.GitCommitInfo",anchor:"huggingface_hub.GitCommitInfo",parameters:[{name:"commit_id",val:": str"},{name:"authors",val:": List[str]"},{name:"created_at",val:": datetime"},{name:"title",val:": str"},{name:"message",val:": str"},{name:"formatted_title",val:": Optional[str]"},{name:"formatted_message",val:": Optional[str]"}],parametersDescription:[{anchor:"huggingface_hub.GitCommitInfo.commit_id",description:`<strong>commit_id</strong> (<code>str</code>) &#x2014;
OID of the commit (e.g. <code>&quot;e7da7f221d5bf496a48136c0cd264e630fe9fcc8&quot;</code>)`,name:"commit_id"},{anchor:"huggingface_hub.GitCommitInfo.authors",description:`<strong>authors</strong> (<code>List[str]</code>) &#x2014;
List of authors of the commit.`,name:"authors"},{anchor:"huggingface_hub.GitCommitInfo.created_at",description:`<strong>created_at</strong> (<code>datetime</code>) &#x2014;
Datetime when the commit was created.`,name:"created_at"},{anchor:"huggingface_hub.GitCommitInfo.title",description:`<strong>title</strong> (<code>str</code>) &#x2014;
Title of the commit. This is a free-text value entered by the authors.`,name:"title"},{anchor:"huggingface_hub.GitCommitInfo.message",description:`<strong>message</strong> (<code>str</code>) &#x2014;
Description of the commit. This is a free-text value entered by the authors.`,name:"message"},{anchor:"huggingface_hub.GitCommitInfo.formatted_title",description:`<strong>formatted_title</strong> (<code>str</code>) &#x2014;
Title of the commit formatted as HTML. Only returned if <code>formatted=True</code> is set.`,name:"formatted_title"},{anchor:"huggingface_hub.GitCommitInfo.formatted_message",description:`<strong>formatted_message</strong> (<code>str</code>) &#x2014;
Description of the commit formatted as HTML. Only returned if <code>formatted=True</code> is set.`,name:"formatted_message"}],source:"https://github.com/huggingface/huggingface_hub/blob/v0.20.3/src/huggingface_hub/hf_api.py#L1100"}}),bi=new R({props:{title:"GitRefs",local:"huggingface_hub.GitRefs",headingTag:"h3"}}),vi=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/v0.20.3/en/package_reference/hf_api#huggingface_hub.GitRefInfo">GitRefInfo</a> containing information about branches on the repo.`,name:"branches"},{anchor:"huggingface_hub.GitRefs.converts",description:`<strong>converts</strong> (<code>List[GitRefInfo]</code>) &#x2014;
A list of <a href="/docs/huggingface_hub/v0.20.3/en/package_reference/hf_api#huggingface_hub.GitRefInfo">GitRefInfo</a> containing information about &#x201C;convert&#x201D; refs on the repo.
Converts are refs used (internally) to push preprocessed data in Dataset repos.`,name:"converts"},{anchor:"huggingface_hub.GitRefs.tags",description:`<strong>tags</strong> (<code>List[GitRefInfo]</code>) &#x2014;
A list of <a href="/docs/huggingface_hub/v0.20.3/en/package_reference/hf_api#huggingface_hub.GitRefInfo">GitRefInfo</a> containing information about tags on the repo.`,name:"tags"},{anchor:"huggingface_hub.GitRefs.pull_requests",description:`<strong>pull_requests</strong> (<code>List[GitRefInfo]</code>, <em>optional</em>) &#x2014;
A list of <a href="/docs/huggingface_hub/v0.20.3/en/package_reference/hf_api#huggingface_hub.GitRefInfo">GitRefInfo</a> containing information about pull requests on the repo.
Only returned if <code>include_prs=True</code> is set.`,name:"pull_requests"}],source:"https://github.com/huggingface/huggingface_hub/blob/v0.20.3/src/huggingface_hub/hf_api.py#L1074"}}),xi=new R({props:{title:"ModelInfo",local:"huggingface_hub.hf_api.ModelInfo",headingTag:"h3"}}),yi=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/v0.20.3/en/package_reference/cards#huggingface_hub.ModelCardData">huggingface_hub.repocard_data.ModelCardData</a> object.`,name:"card_data"},{anchor:"huggingface_hub.hf_api.ModelInfo.siblings",description:`<strong>siblings</strong> (<code>List[RepoSibling]</code>) &#x2014;
List of <a href="/docs/huggingface_hub/v0.20.3/en/package_reference/hf_api#huggingface_hub.hf_api.RepoSibling">huggingface_hub.hf_api.RepoSibling</a> objects that constitute the model.`,name:"siblings"},{anchor:"huggingface_hub.hf_api.ModelInfo.spaces",description:`<strong>spaces</strong> (<code>List[str]</code>, <em>optional</em>) &#x2014;
List of spaces using the model.`,name:"spaces"},{anchor:"huggingface_hub.hf_api.ModelInfo.safetensors",description:`<strong>safetensors</strong> (<code>SafeTensorsInfo</code>, <em>optional</em>) &#x2014;
Model&#x2019;s safetensors information.`,name:"safetensors"}],source:"https://github.com/huggingface/huggingface_hub/blob/v0.20.3/src/huggingface_hub/hf_api.py#L551"}}),as=new q({props:{$$slots:{default:[_j]},$$scope:{ctx:M}}}),$i=new R({props:{title:"RepoSibling",local:"huggingface_hub.hf_api.RepoSibling",headingTag:"h3"}}),Mi=new C({props:{name:"class huggingface_hub.hf_api.RepoSibling",anchor:"huggingface_hub.hf_api.RepoSibling",parameters:[{name:"rfilename",val:": str"},{name:"size",val:": Optional[int] = None"},{name:"blob_id",val:": Optional[str] = None"},{name:"lfs",val:": Optional[BlobLfsInfo] = None"}],parametersDescription:[{anchor:"huggingface_hub.hf_api.RepoSibling.rfilename",description:`<strong>rfilename</strong> (str) &#x2014;
file name, relative to the repo root.`,name:"rfilename"},{anchor:"huggingface_hub.hf_api.RepoSibling.size",description:`<strong>size</strong> (<code>int</code>, <em>optional</em>) &#x2014;
The file&#x2019;s size, in bytes. This attribute is defined when <code>files_metadata</code> argument of <a href="/docs/huggingface_hub/v0.20.3/en/package_reference/hf_api#huggingface_hub.HfApi.repo_info">repo_info()</a> is set
to <code>True</code>. It&#x2019;s <code>None</code> otherwise.`,name:"size"},{anchor:"huggingface_hub.hf_api.RepoSibling.blob_id",description:`<strong>blob_id</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The file&#x2019;s git OID. This attribute is defined when <code>files_metadata</code> argument of <a href="/docs/huggingface_hub/v0.20.3/en/package_reference/hf_api#huggingface_hub.HfApi.repo_info">repo_info()</a> is set to
<code>True</code>. It&#x2019;s <code>None</code> otherwise.`,name:"blob_id"},{anchor:"huggingface_hub.hf_api.RepoSibling.lfs",description:`<strong>lfs</strong> (<code>BlobLfsInfo</code>, <em>optional</em>) &#x2014;
The file&#x2019;s LFS metadata. This attribute is defined when<code>files_metadata</code> argument of <a href="/docs/huggingface_hub/v0.20.3/en/package_reference/hf_api#huggingface_hub.HfApi.repo_info">repo_info()</a> is set to
<code>True</code> and the file is stored with Git LFS. It&#x2019;s <code>None</code> otherwise.`,name:"lfs"}],source:"https://github.com/huggingface/huggingface_hub/blob/v0.20.3/src/huggingface_hub/hf_api.py#L431"}}),ss=new q({props:{$$slots:{default:[bj]},$$scope:{ctx:M}}}),wi=new R({props:{title:"RepoFile",local:"huggingface_hub.hf_api.RepoFile",headingTag:"h3"}}),ji=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/v0.20.3/en/package_reference/hf_api#huggingface_hub.HfApi.list_files_info">list_files_info()</a>, <a href="/docs/huggingface_hub/v0.20.3/en/package_reference/hf_api#huggingface_hub.HfApi.list_repo_tree">list_repo_tree()</a> and <a href="/docs/huggingface_hub/v0.20.3/en/package_reference/hf_api#huggingface_hub.HfApi.get_paths_info">get_paths_info()</a>
are called with <code>expand=True</code>.`,name:"last_commit"},{anchor:"huggingface_hub.hf_api.RepoFile.security",description:`<strong>security</strong> (<code>BlobSecurityInfo</code>, <em>optional</em>) &#x2014;
The file&#x2019;s security scan metadata. Only defined if <a href="/docs/huggingface_hub/v0.20.3/en/package_reference/hf_api#huggingface_hub.HfApi.list_files_info">list_files_info()</a>, <a href="/docs/huggingface_hub/v0.20.3/en/package_reference/hf_api#huggingface_hub.HfApi.list_repo_tree">list_repo_tree()</a> and <a href="/docs/huggingface_hub/v0.20.3/en/package_reference/hf_api#huggingface_hub.HfApi.get_paths_info">get_paths_info()</a>
are called with <code>expand=True</code>.`,name:"security"}],source:"https://github.com/huggingface/huggingface_hub/blob/v0.20.3/src/huggingface_hub/hf_api.py#L466"}}),Ti=new R({props:{title:"RepoUrl",local:"huggingface_hub.RepoUrl",headingTag:"h3"}}),ki=new C({props:{name:"class huggingface_hub.RepoUrl",anchor:"huggingface_hub.RepoUrl",parameters:[{name:"url",val:": Any"},{name:"endpoint",val:": Optional[str] = None"}],parametersDescription:[{anchor:"huggingface_hub.RepoUrl.url",description:`<strong>url</strong> (<code>Any</code>) &#x2014;
String value of the repo url.`,name:"url"},{anchor:"huggingface_hub.RepoUrl.endpoint",description:`<strong>endpoint</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Endpoint of the Hub. Defaults to <a href="https://huggingface.co" rel="nofollow">https://huggingface.co</a>.`,name:"endpoint"}],source:"https://github.com/huggingface/huggingface_hub/blob/v0.20.3/src/huggingface_hub/hf_api.py#L371",raiseDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<ul>
<li><ul>
<li>— <a
  href="https://docs.python.org/3/library/exceptions.html#ValueError"
  rel="nofollow"
><code>ValueError</code></a>
If URL cannot be parsed.</li>
</ul></li>
<li><ul>
<li>— <a
  href="https://docs.python.org/3/library/exceptions.html#ValueError"
  rel="nofollow"
><code>ValueError</code></a>
If <code>repo_type</code> is unknown.</li>
</ul></li>
</ul>
`,raiseType:`<script context="module">export const metadata = 'undefined';<\/script>


<ul>
<li></li>
</ul>
`}}),rs=new U({props:{anchor:"huggingface_hub.RepoUrl.example",$$slots:{default:[vj]},$$scope:{ctx:M}}}),Ci=new R({props:{title:"SafetensorsRepoMetadata",local:"huggingface_hub.utils.SafetensorsRepoMetadata",headingTag:"h3"}}),Hi=new C({props:{name:"class huggingface_hub.utils.SafetensorsRepoMetadata",anchor:"huggingface_hub.utils.SafetensorsRepoMetadata",parameters:[{name:"metadata",val:": Optional"},{name:"sharded",val:": bool"},{name:"weight_map",val:": Dict"},{name:"files_metadata",val:": Dict"}],parametersDescription:[{anchor:"huggingface_hub.utils.SafetensorsRepoMetadata.metadata",description:`<strong>metadata</strong> (<code>Dict</code>, <em>optional</em>) &#x2014;
The metadata contained in the &#x2018;model.safetensors.index.json&#x2019; file, if it exists. Only populated for sharded
models.`,name:"metadata"},{anchor:"huggingface_hub.utils.SafetensorsRepoMetadata.sharded",description:`<strong>sharded</strong> (<code>bool</code>) &#x2014;
Whether the repo contains a sharded model or not.`,name:"sharded"},{anchor:"huggingface_hub.utils.SafetensorsRepoMetadata.weight_map",description:`<strong>weight_map</strong> (<code>Dict[str, str]</code>) &#x2014;
A map of all weights. Keys are tensor names and values are filenames of the files containing the tensors.`,name:"weight_map"},{anchor:"huggingface_hub.utils.SafetensorsRepoMetadata.files_metadata",description:`<strong>files_metadata</strong> (<code>Dict[str, SafetensorsFileMetadata]</code>) &#x2014;
A map of all files metadata. Keys are filenames and values are the metadata of the corresponding file, as
a <code>SafetensorsFileMetadata</code> object.`,name:"files_metadata"},{anchor:"huggingface_hub.utils.SafetensorsRepoMetadata.parameter_count",description:`<strong>parameter_count</strong> (<code>Dict[str, int]</code>) &#x2014;
A map of the number of parameters per data type. Keys are data types and values are the number of parameters
of that data type.`,name:"parameter_count"}],source:"https://github.com/huggingface/huggingface_hub/blob/v0.20.3/src/huggingface_hub/utils/_safetensors.py#L86"}}),Ii=new R({props:{title:"SafetensorsFileMetadata",local:"huggingface_hub.utils.SafetensorsFileMetadata",headingTag:"h3"}}),Ui=new C({props:{name:"class huggingface_hub.utils.SafetensorsFileMetadata",anchor:"huggingface_hub.utils.SafetensorsFileMetadata",parameters:[{name:"metadata",val:": Dict"},{name:"tensors",val:": Dict"}],parametersDescription:[{anchor:"huggingface_hub.utils.SafetensorsFileMetadata.metadata",description:`<strong>metadata</strong> (<code>Dict</code>) &#x2014;
The metadata contained in the file.`,name:"metadata"},{anchor:"huggingface_hub.utils.SafetensorsFileMetadata.tensors",description:`<strong>tensors</strong> (<code>Dict[str, TensorInfo]</code>) &#x2014;
A map of all tensors. Keys are tensor names and values are information about the corresponding tensor, as a
<code>TensorInfo</code> object.`,name:"tensors"},{anchor:"huggingface_hub.utils.SafetensorsFileMetadata.parameter_count",description:`<strong>parameter_count</strong> (<code>Dict[str, int]</code>) &#x2014;
A map of the number of parameters per data type. Keys are data types and values are the number of parameters
of that data type.`,name:"parameter_count"}],source:"https://github.com/huggingface/huggingface_hub/blob/v0.20.3/src/huggingface_hub/utils/_safetensors.py#L56"}}),qi=new R({props:{title:"SpaceInfo",local:"huggingface_hub.hf_api.SpaceInfo",headingTag:"h3"}}),Ai=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/v0.20.3/en/package_reference/hf_api#huggingface_hub.hf_api.RepoSibling">huggingface_hub.hf_api.RepoSibling</a> objects that constitute the Space.`,name:"siblings"},{anchor:"huggingface_hub.hf_api.SpaceInfo.card_data",description:`<strong>card_data</strong> (<code>SpaceCardData</code>, <em>optional</em>) &#x2014;
Space Card Metadata  as a <a href="/docs/huggingface_hub/v0.20.3/en/package_reference/cards#huggingface_hub.SpaceCardData">huggingface_hub.repocard_data.SpaceCardData</a> object.`,name:"card_data"},{anchor:"huggingface_hub.hf_api.SpaceInfo.runtime",description:`<strong>runtime</strong> (<code>SpaceRuntime</code>, <em>optional</em>) &#x2014;
Space runtime information as a <a href="/docs/huggingface_hub/v0.20.3/en/package_reference/space_runtime#huggingface_hub.SpaceRuntime">huggingface_hub.hf_api.SpaceRuntime</a> object.`,name:"runtime"},{anchor:"huggingface_hub.hf_api.SpaceInfo.sdk",description:`<strong>sdk</strong> (<code>str</code>, <em>optional</em>) &#x2014;
SDK used by the Space.`,name:"sdk"},{anchor:"huggingface_hub.hf_api.SpaceInfo.models",description:`<strong>models</strong> (<code>List[str]</code>, <em>optional</em>) &#x2014;
List of models used by the Space.`,name:"models"},{anchor:"huggingface_hub.hf_api.SpaceInfo.datasets",description:`<strong>datasets</strong> (<code>List[str]</code>, <em>optional</em>) &#x2014;
List of datasets used by the Space.`,name:"datasets"}],source:"https://github.com/huggingface/huggingface_hub/blob/v0.20.3/src/huggingface_hub/hf_api.py#L804"}}),is=new q({props:{$$slots:{default:[xj]},$$scope:{ctx:M}}}),Ji=new R({props:{title:"TensorInfo",local:"huggingface_hub.utils.TensorInfo",headingTag:"h3"}}),Ni=new C({props:{name:"class huggingface_hub.utils.TensorInfo",anchor:"huggingface_hub.utils.TensorInfo",parameters:[{name:"dtype",val:": Literal"},{name:"shape",val:": List"},{name:"data_offsets",val:": Tuple"}],parametersDescription:[{anchor:"huggingface_hub.utils.TensorInfo.dtype",description:`<strong>dtype</strong> (<code>str</code>) &#x2014;
The data type of the tensor (&#x201C;F64&#x201D;, &#x201C;F32&#x201D;, &#x201C;F16&#x201D;, &#x201C;BF16&#x201D;, &#x201C;I64&#x201D;, &#x201C;I32&#x201D;, &#x201C;I16&#x201D;, &#x201C;I8&#x201D;, &#x201C;U8&#x201D;, &#x201C;BOOL&#x201D;).`,name:"dtype"},{anchor:"huggingface_hub.utils.TensorInfo.shape",description:`<strong>shape</strong> (<code>List[int]</code>) &#x2014;
The shape of the tensor.`,name:"shape"},{anchor:"huggingface_hub.utils.TensorInfo.data_offsets",description:`<strong>data_offsets</strong> (<code>Tuple[int, int]</code>) &#x2014;
The offsets of the data in the file as a tuple <code>[BEGIN, END]</code>.`,name:"data_offsets"},{anchor:"huggingface_hub.utils.TensorInfo.parameter_count",description:`<strong>parameter_count</strong> (<code>int</code>) &#x2014;
The number of parameters in the tensor.`,name:"parameter_count"}],source:"https://github.com/huggingface/huggingface_hub/blob/v0.20.3/src/huggingface_hub/utils/_safetensors.py#L26"}}),Ei=new R({props:{title:"User",local:"huggingface_hub.User",headingTag:"h3"}}),Ri=new C({props:{name:"class huggingface_hub.User",anchor:"huggingface_hub.User",parameters:[{name:"avatar_url",val:": str"},{name:"username",val:": str"},{name:"fullname",val:": str"}],parametersDescription:[{anchor:"huggingface_hub.User.avatar_url",description:`<strong>avatar_url</strong> (<code>str</code>) &#x2014;
URL of the user&#x2019;s avatar.`,name:"avatar_url"},{anchor:"huggingface_hub.User.username",description:`<strong>username</strong> (<code>str</code>) &#x2014;
Name of the user on the Hub (unique).`,name:"username"},{anchor:"huggingface_hub.User.fullname",description:`<strong>fullname</strong> (<code>str</code>) &#x2014;
User&#x2019;s full name.`,name:"fullname"}],source:"https://github.com/huggingface/huggingface_hub/blob/v0.20.3/src/huggingface_hub/hf_api.py#L1161"}}),Gi=new R({props:{title:"UserLikes",local:"huggingface_hub.UserLikes",headingTag:"h3"}}),Di=new C({props:{name:"class huggingface_hub.UserLikes",anchor:"huggingface_hub.UserLikes",parameters:[{name:"user",val:": str"},{name:"total",val:": int"},{name:"datasets",val:": List[str]"},{name:"models",val:": List[str]"},{name:"spaces",val:": List[str]"}],parametersDescription:[{anchor:"huggingface_hub.UserLikes.user",description:`<strong>user</strong> (<code>str</code>) &#x2014;
Name of the user for which we fetched the likes.`,name:"user"},{anchor:"huggingface_hub.UserLikes.total",description:`<strong>total</strong> (<code>int</code>) &#x2014;
Total number of likes.`,name:"total"},{anchor:"huggingface_hub.UserLikes.datasets",description:`<strong>datasets</strong> (<code>List[str]</code>) &#x2014;
List of datasets liked by the user (as repo_ids).`,name:"datasets"},{anchor:"huggingface_hub.UserLikes.models",description:`<strong>models</strong> (<code>List[str]</code>) &#x2014;
List of models liked by the user (as repo_ids).`,name:"models"},{anchor:"huggingface_hub.UserLikes.spaces",description:`<strong>spaces</strong> (<code>List[str]</code>) &#x2014;
List of spaces liked by the user (as repo_ids).`,name:"spaces"}],source:"https://github.com/huggingface/huggingface_hub/blob/v0.20.3/src/huggingface_hub/hf_api.py#L1133"}}),Fi=new R({props:{title:"CommitOperation",local:"huggingface_hub.CommitOperationAdd",headingTag:"h2"}}),Zi=new C({props:{name:"class huggingface_hub.CommitOperationAdd",anchor:"huggingface_hub.CommitOperationAdd",parameters:[{name:"path_in_repo",val:": str"},{name:"path_or_fileobj",val:": Union"}],parametersDescription:[{anchor:"huggingface_hub.CommitOperationAdd.path_in_repo",description:`<strong>path_in_repo</strong> (<code>str</code>) &#x2014;
Relative filepath in the repo, for example: <code>&quot;checkpoints/1fec34a/weights.bin&quot;</code>`,name:"path_in_repo"},{anchor:"huggingface_hub.CommitOperationAdd.path_or_fileobj",description:`<strong>path_or_fileobj</strong> (<code>str</code>, <code>Path</code>, <code>bytes</code>, or <code>BinaryIO</code>) &#x2014;
Either:<ul>
<li>a path to a local file (as <code>str</code> or <code>pathlib.Path</code>) to upload</li>
<li>a buffer of bytes (<code>bytes</code>) holding the content of the file to upload</li>
<li>a &#x201C;file object&#x201D; (subclass of <code>io.BufferedIOBase</code>), typically obtained
with <code>open(path, &quot;rb&quot;)</code>. It must support <code>seek()</code> and <code>tell()</code> methods.</li>
</ul>`,name:"path_or_fileobj"}],source:"https://github.com/huggingface/huggingface_hub/blob/v0.20.3/src/huggingface_hub/_commit_api.py#L110",raiseDescription:`<script context="module">export const metadata = 'undefined';<\/script>


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


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