import{s as Sd,o as Xd,n as J}from"../chunks/scheduler.6062bdaf.js";import{S as zd,i as Od,g as p,s as r,r as h,A as Kd,h as g,f as c,c as l,j as I,u as m,x as T,k as M,y as a,a as j,v as f,d as b,t as _,w as y}from"../chunks/index.4bca734e.js";import{T as se}from"../chunks/Tip.b9ac1f03.js";import{D as v}from"../chunks/Docstring.ed07512f.js";import{C as q}from"../chunks/CodeBlock.fa01571c.js";import{E as Z}from"../chunks/ExampleCodeBlock.823fb173.js";import{H as _o}from"../chunks/Heading.723dceba.js";function eh($){let n,x="Example:",o,s,i;return s=new q({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMEluZmVyZW5jZUNsaWVudCUwQWNsaWVudCUyMCUzRCUyMEluZmVyZW5jZUNsaWVudCgpJTBBY2xpZW50LmF1ZGlvX2NsYXNzaWZpY2F0aW9uKCUyMmF1ZGlvLmZsYWMlMjIp",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> InferenceClient
<span class="hljs-meta">&gt;&gt;&gt; </span>client = InferenceClient()
<span class="hljs-meta">&gt;&gt;&gt; </span>client.audio_classification(<span class="hljs-string">&quot;audio.flac&quot;</span>)
[{<span class="hljs-string">&#x27;score&#x27;</span>: <span class="hljs-number">0.4976358711719513</span>, <span class="hljs-string">&#x27;label&#x27;</span>: <span class="hljs-string">&#x27;hap&#x27;</span>}, {<span class="hljs-string">&#x27;score&#x27;</span>: <span class="hljs-number">0.3677836060523987</span>, <span class="hljs-string">&#x27;label&#x27;</span>: <span class="hljs-string">&#x27;neu&#x27;</span>},...]`,wrap:!1}}),{c(){n=p("p"),n.textContent=x,o=r(),h(s.$$.fragment)},l(e){n=g(e,"P",{"data-svelte-h":!0}),T(n)!=="svelte-11lpom8"&&(n.textContent=x),o=l(e),m(s.$$.fragment,e)},m(e,u){j(e,n,u),j(e,o,u),f(s,e,u),i=!0},p:J,i(e){i||(b(s.$$.fragment,e),i=!0)},o(e){_(s.$$.fragment,e),i=!1},d(e){e&&(c(n),c(o)),y(s,e)}}}function nh($){let n,x="Example:",o,s,i;return s=new q({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMEluZmVyZW5jZUNsaWVudCUwQWNsaWVudCUyMCUzRCUyMEluZmVyZW5jZUNsaWVudCgpJTBBY2xpZW50LmF1dG9tYXRpY19zcGVlY2hfcmVjb2duaXRpb24oJTIyaGVsbG9fd29ybGQuZmxhYyUyMik=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> InferenceClient
<span class="hljs-meta">&gt;&gt;&gt; </span>client = InferenceClient()
<span class="hljs-meta">&gt;&gt;&gt; </span>client.automatic_speech_recognition(<span class="hljs-string">&quot;hello_world.flac&quot;</span>)
<span class="hljs-string">&quot;hello world&quot;</span>`,wrap:!1}}),{c(){n=p("p"),n.textContent=x,o=r(),h(s.$$.fragment)},l(e){n=g(e,"P",{"data-svelte-h":!0}),T(n)!=="svelte-11lpom8"&&(n.textContent=x),o=l(e),m(s.$$.fragment,e)},m(e,u){j(e,n,u),j(e,o,u),f(s,e,u),i=!0},p:J,i(e){i||(b(s.$$.fragment,e),i=!0)},o(e){_(s.$$.fragment,e),i=!1},d(e){e&&(c(n),c(o)),y(s,e)}}}function th($){let n,x="Example:",o,s,i;return s=new q({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMEluZmVyZW5jZUNsaWVudCUwQWNsaWVudCUyMCUzRCUyMEluZmVyZW5jZUNsaWVudCgpJTBBb3V0cHV0JTIwJTNEJTIwY2xpZW50LmNvbnZlcnNhdGlvbmFsKCUyMkhpJTJDJTIwd2hvJTIwYXJlJTIweW91JTNGJTIyKSUwQW91dHB1dCUwQWNsaWVudC5jb252ZXJzYXRpb25hbCglMEElMjAlMjAlMjAlMjAlMjJXb3clMkMlMjB0aGF0J3MlMjBzY2FyeSElMjIlMkMlMEElMjAlMjAlMjAlMjBnZW5lcmF0ZWRfcmVzcG9uc2VzJTNEb3V0cHV0JTVCJTIyY29udmVyc2F0aW9uJTIyJTVEJTVCJTIyZ2VuZXJhdGVkX3Jlc3BvbnNlcyUyMiU1RCUyQyUwQSUyMCUyMCUyMCUyMHBhc3RfdXNlcl9pbnB1dHMlM0RvdXRwdXQlNUIlMjJjb252ZXJzYXRpb24lMjIlNUQlNUIlMjJwYXN0X3VzZXJfaW5wdXRzJTIyJTVEJTJDJTBBKQ==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> InferenceClient
<span class="hljs-meta">&gt;&gt;&gt; </span>client = InferenceClient()
<span class="hljs-meta">&gt;&gt;&gt; </span>output = client.conversational(<span class="hljs-string">&quot;Hi, who are you?&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>output
{<span class="hljs-string">&#x27;generated_text&#x27;</span>: <span class="hljs-string">&#x27;I am the one who knocks.&#x27;</span>, <span class="hljs-string">&#x27;conversation&#x27;</span>: {<span class="hljs-string">&#x27;generated_responses&#x27;</span>: [<span class="hljs-string">&#x27;I am the one who knocks.&#x27;</span>], <span class="hljs-string">&#x27;past_user_inputs&#x27;</span>: [<span class="hljs-string">&#x27;Hi, who are you?&#x27;</span>]}, <span class="hljs-string">&#x27;warnings&#x27;</span>: [<span class="hljs-string">&#x27;Setting \`pad_token_id\` to \`eos_token_id\`:50256 for open-end generation.&#x27;</span>]}
<span class="hljs-meta">&gt;&gt;&gt; </span>client.conversational(
<span class="hljs-meta">... </span>    <span class="hljs-string">&quot;Wow, that&#x27;s scary!&quot;</span>,
<span class="hljs-meta">... </span>    generated_responses=output[<span class="hljs-string">&quot;conversation&quot;</span>][<span class="hljs-string">&quot;generated_responses&quot;</span>],
<span class="hljs-meta">... </span>    past_user_inputs=output[<span class="hljs-string">&quot;conversation&quot;</span>][<span class="hljs-string">&quot;past_user_inputs&quot;</span>],
<span class="hljs-meta">... </span>)`,wrap:!1}}),{c(){n=p("p"),n.textContent=x,o=r(),h(s.$$.fragment)},l(e){n=g(e,"P",{"data-svelte-h":!0}),T(n)!=="svelte-11lpom8"&&(n.textContent=x),o=l(e),m(s.$$.fragment,e)},m(e,u){j(e,n,u),j(e,o,u),f(s,e,u),i=!0},p:J,i(e){i||(b(s.$$.fragment,e),i=!0)},o(e){_(s.$$.fragment,e),i=!1},d(e){e&&(c(n),c(o)),y(s,e)}}}function sh($){let n,x="Example:",o,s,i;return s=new q({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMEluZmVyZW5jZUNsaWVudCUwQWNsaWVudCUyMCUzRCUyMEluZmVyZW5jZUNsaWVudCgpJTBBY2xpZW50LmRvY3VtZW50X3F1ZXN0aW9uX2Fuc3dlcmluZyhpbWFnZSUzRCUyMmh0dHBzJTNBJTJGJTJGaHVnZ2luZ2ZhY2UuY28lMkZzcGFjZXMlMkZpbXBpcmElMkZkb2NxdWVyeSUyRnJlc29sdmUlMkYyMzU5MjIzYzE4MzdhNzU4NzQwMmJkYTBmMjY0MzM4MmE2ZWVmZWFiJTJGaW52b2ljZS5wbmclMjIlMkMlMjBxdWVzdGlvbiUzRCUyMldoYXQlMjBpcyUyMHRoZSUyMGludm9pY2UlMjBudW1iZXIlM0YlMjIp",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> InferenceClient
<span class="hljs-meta">&gt;&gt;&gt; </span>client = InferenceClient()
<span class="hljs-meta">&gt;&gt;&gt; </span>client.document_question_answering(image=<span class="hljs-string">&quot;https://huggingface.co/spaces/impira/docquery/resolve/2359223c1837a7587402bda0f2643382a6eefeab/invoice.png&quot;</span>, question=<span class="hljs-string">&quot;What is the invoice number?&quot;</span>)
[{<span class="hljs-string">&#x27;score&#x27;</span>: <span class="hljs-number">0.42515629529953003</span>, <span class="hljs-string">&#x27;answer&#x27;</span>: <span class="hljs-string">&#x27;us-001&#x27;</span>, <span class="hljs-string">&#x27;start&#x27;</span>: <span class="hljs-number">16</span>, <span class="hljs-string">&#x27;end&#x27;</span>: <span class="hljs-number">16</span>}]`,wrap:!1}}),{c(){n=p("p"),n.textContent=x,o=r(),h(s.$$.fragment)},l(e){n=g(e,"P",{"data-svelte-h":!0}),T(n)!=="svelte-11lpom8"&&(n.textContent=x),o=l(e),m(s.$$.fragment,e)},m(e,u){j(e,n,u),j(e,o,u),f(s,e,u),i=!0},p:J,i(e){i||(b(s.$$.fragment,e),i=!0)},o(e){_(s.$$.fragment,e),i=!1},d(e){e&&(c(n),c(o)),y(s,e)}}}function ah($){let n,x="Example:",o,s,i;return s=new q({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMEluZmVyZW5jZUNsaWVudCUwQWNsaWVudCUyMCUzRCUyMEluZmVyZW5jZUNsaWVudCgpJTBBY2xpZW50LmZlYXR1cmVfZXh0cmFjdGlvbiglMjJIaSUyQyUyMHdobyUyMGFyZSUyMHlvdSUzRiUyMik=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> InferenceClient
<span class="hljs-meta">&gt;&gt;&gt; </span>client = InferenceClient()
<span class="hljs-meta">&gt;&gt;&gt; </span>client.feature_extraction(<span class="hljs-string">&quot;Hi, who are you?&quot;</span>)
array([[ <span class="hljs-number">2.424802</span>  ,  <span class="hljs-number">2.93384</span>   ,  <span class="hljs-number">1.1750331</span> , ...,  <span class="hljs-number">1.240499</span>, -<span class="hljs-number">0.13776633</span>, -<span class="hljs-number">0.7889173</span> ],
[-<span class="hljs-number">0.42943227</span>, -<span class="hljs-number">0.6364878</span> , -<span class="hljs-number">1.693462</span>  , ...,  <span class="hljs-number">0.41978157</span>, -<span class="hljs-number">2.4336355</span> ,  <span class="hljs-number">0.6162071</span> ],
...,
[ <span class="hljs-number">0.28552425</span>, -<span class="hljs-number">0.928395</span>  , -<span class="hljs-number">1.2077185</span> , ...,  <span class="hljs-number">0.76810825</span>, -<span class="hljs-number">2.1069427</span> ,  <span class="hljs-number">0.6236161</span> ]], dtype=float32)`,wrap:!1}}),{c(){n=p("p"),n.textContent=x,o=r(),h(s.$$.fragment)},l(e){n=g(e,"P",{"data-svelte-h":!0}),T(n)!=="svelte-11lpom8"&&(n.textContent=x),o=l(e),m(s.$$.fragment,e)},m(e,u){j(e,n,u),j(e,o,u),f(s,e,u),i=!0},p:J,i(e){i||(b(s.$$.fragment,e),i=!0)},o(e){_(s.$$.fragment,e),i=!1},d(e){e&&(c(n),c(o)),y(s,e)}}}function oh($){let n,x="Example:",o,s,i;return s=new q({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMEluZmVyZW5jZUNsaWVudCUwQWNsaWVudCUyMCUzRCUyMEluZmVyZW5jZUNsaWVudCgpJTBBY2xpZW50LmZpbGxfbWFzayglMjJUaGUlMjBnb2FsJTIwb2YlMjBsaWZlJTIwaXMlMjAlM0NtYXNrJTNFLiUyMik=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> InferenceClient
<span class="hljs-meta">&gt;&gt;&gt; </span>client = InferenceClient()
<span class="hljs-meta">&gt;&gt;&gt; </span>client.fill_mask(<span class="hljs-string">&quot;The goal of life is &lt;mask&gt;.&quot;</span>)
[{<span class="hljs-string">&#x27;score&#x27;</span>: <span class="hljs-number">0.06897063553333282</span>,
<span class="hljs-string">&#x27;token&#x27;</span>: <span class="hljs-number">11098</span>,
<span class="hljs-string">&#x27;token_str&#x27;</span>: <span class="hljs-string">&#x27; happiness&#x27;</span>,
<span class="hljs-string">&#x27;sequence&#x27;</span>: <span class="hljs-string">&#x27;The goal of life is happiness.&#x27;</span>},
{<span class="hljs-string">&#x27;score&#x27;</span>: <span class="hljs-number">0.06554922461509705</span>,
<span class="hljs-string">&#x27;token&#x27;</span>: <span class="hljs-number">45075</span>,
<span class="hljs-string">&#x27;token_str&#x27;</span>: <span class="hljs-string">&#x27; immortality&#x27;</span>,
<span class="hljs-string">&#x27;sequence&#x27;</span>: <span class="hljs-string">&#x27;The goal of life is immortality.&#x27;</span>}]`,wrap:!1}}),{c(){n=p("p"),n.textContent=x,o=r(),h(s.$$.fragment)},l(e){n=g(e,"P",{"data-svelte-h":!0}),T(n)!=="svelte-11lpom8"&&(n.textContent=x),o=l(e),m(s.$$.fragment,e)},m(e,u){j(e,n,u),j(e,o,u),f(s,e,u),i=!0},p:J,i(e){i||(b(s.$$.fragment,e),i=!0)},o(e){_(s.$$.fragment,e),i=!1},d(e){e&&(c(n),c(o)),y(s,e)}}}function rh($){let n,x=`This endpoint is mostly useful when you already know which model you want to use and want to check its
availability. If you want to discover already deployed models, you should rather use <a href="/docs/huggingface_hub/v0.18.0.rc0/en/package_reference/inference_client#huggingface_hub.InferenceClient.list_deployed_models">list_deployed_models()</a>.`;return{c(){n=p("p"),n.innerHTML=x},l(o){n=g(o,"P",{"data-svelte-h":!0}),T(n)!=="svelte-17g0vya"&&(n.innerHTML=x)},m(o,s){j(o,n,s)},p:J,d(o){o&&c(n)}}}function lh($){let n,x="Example:",o,s,i;return s=new q({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMEluZmVyZW5jZUNsaWVudCUwQWNsaWVudCUyMCUzRCUyMEluZmVyZW5jZUNsaWVudCgpJTBBY2xpZW50LmdldF9tb2RlbF9zdGF0dXMoJTIyYmlnY29kZSUyRnN0YXJjb2RlciUyMik=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> InferenceClient
<span class="hljs-meta">&gt;&gt;&gt; </span>client = InferenceClient()
<span class="hljs-meta">&gt;&gt;&gt; </span>client.get_model_status(<span class="hljs-string">&quot;bigcode/starcoder&quot;</span>)
ModelStatus(loaded=<span class="hljs-literal">True</span>, state=<span class="hljs-string">&#x27;Loaded&#x27;</span>, compute_type=<span class="hljs-string">&#x27;gpu&#x27;</span>, framework=<span class="hljs-string">&#x27;text-generation-inference&#x27;</span>)`,wrap:!1}}),{c(){n=p("p"),n.textContent=x,o=r(),h(s.$$.fragment)},l(e){n=g(e,"P",{"data-svelte-h":!0}),T(n)!=="svelte-11lpom8"&&(n.textContent=x),o=l(e),m(s.$$.fragment,e)},m(e,u){j(e,n,u),j(e,o,u),f(s,e,u),i=!0},p:J,i(e){i||(b(s.$$.fragment,e),i=!0)},o(e){_(s.$$.fragment,e),i=!1},d(e){e&&(c(n),c(o)),y(s,e)}}}function ih($){let n,x="Example:",o,s,i;return s=new q({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMEluZmVyZW5jZUNsaWVudCUwQWNsaWVudCUyMCUzRCUyMEluZmVyZW5jZUNsaWVudCgpJTBBY2xpZW50LmltYWdlX2NsYXNzaWZpY2F0aW9uKCUyMmh0dHBzJTNBJTJGJTJGdXBsb2FkLndpa2ltZWRpYS5vcmclMkZ3aWtpcGVkaWElMkZjb21tb25zJTJGdGh1bWIlMkY0JTJGNDMlMkZDdXRlX2RvZy5qcGclMkYzMjBweC1DdXRlX2RvZy5qcGclMjIp",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> InferenceClient
<span class="hljs-meta">&gt;&gt;&gt; </span>client = InferenceClient()
<span class="hljs-meta">&gt;&gt;&gt; </span>client.image_classification(<span class="hljs-string">&quot;https://upload.wikimedia.org/wikipedia/commons/thumb/4/43/Cute_dog.jpg/320px-Cute_dog.jpg&quot;</span>)
[{<span class="hljs-string">&#x27;score&#x27;</span>: <span class="hljs-number">0.9779096841812134</span>, <span class="hljs-string">&#x27;label&#x27;</span>: <span class="hljs-string">&#x27;Blenheim spaniel&#x27;</span>}, ...]`,wrap:!1}}),{c(){n=p("p"),n.textContent=x,o=r(),h(s.$$.fragment)},l(e){n=g(e,"P",{"data-svelte-h":!0}),T(n)!=="svelte-11lpom8"&&(n.textContent=x),o=l(e),m(s.$$.fragment,e)},m(e,u){j(e,n,u),j(e,o,u),f(s,e,u),i=!0},p:J,i(e){i||(b(s.$$.fragment,e),i=!0)},o(e){_(s.$$.fragment,e),i=!1},d(e){e&&(c(n),c(o)),y(s,e)}}}function ch($){let n,x="You must have <code>PIL</code> installed if you want to work with images (<code>pip install Pillow</code>).";return{c(){n=p("p"),n.innerHTML=x},l(o){n=g(o,"P",{"data-svelte-h":!0}),T(n)!=="svelte-s2e3n9"&&(n.innerHTML=x)},m(o,s){j(o,n,s)},p:J,d(o){o&&c(n)}}}function ph($){let n,x="Example:",o,s,i;return s=new q({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMEluZmVyZW5jZUNsaWVudCUwQWNsaWVudCUyMCUzRCUyMEluZmVyZW5jZUNsaWVudCgpJTBBY2xpZW50LmltYWdlX3NlZ21lbnRhdGlvbiglMjJjYXQuanBnJTIyKSUzQQ==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> InferenceClient
<span class="hljs-meta">&gt;&gt;&gt; </span>client = InferenceClient()
<span class="hljs-meta">&gt;&gt;&gt; </span>client.image_segmentation(<span class="hljs-string">&quot;cat.jpg&quot;</span>):
[{<span class="hljs-string">&#x27;score&#x27;</span>: <span class="hljs-number">0.989008</span>, <span class="hljs-string">&#x27;label&#x27;</span>: <span class="hljs-string">&#x27;LABEL_184&#x27;</span>, <span class="hljs-string">&#x27;mask&#x27;</span>: &lt;PIL.PngImagePlugin.PngImageFile image mode=L size=400x300 at <span class="hljs-number">0x7FDD2B129CC0</span>&gt;}, ...]`,wrap:!1}}),{c(){n=p("p"),n.textContent=x,o=r(),h(s.$$.fragment)},l(e){n=g(e,"P",{"data-svelte-h":!0}),T(n)!=="svelte-11lpom8"&&(n.textContent=x),o=l(e),m(s.$$.fragment,e)},m(e,u){j(e,n,u),j(e,o,u),f(s,e,u),i=!0},p:J,i(e){i||(b(s.$$.fragment,e),i=!0)},o(e){_(s.$$.fragment,e),i=!1},d(e){e&&(c(n),c(o)),y(s,e)}}}function gh($){let n,x="You must have <code>PIL</code> installed if you want to work with images (<code>pip install Pillow</code>).";return{c(){n=p("p"),n.innerHTML=x},l(o){n=g(o,"P",{"data-svelte-h":!0}),T(n)!=="svelte-s2e3n9"&&(n.innerHTML=x)},m(o,s){j(o,n,s)},p:J,d(o){o&&c(n)}}}function uh($){let n,x="Example:",o,s,i;return s=new q({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMEluZmVyZW5jZUNsaWVudCUwQWNsaWVudCUyMCUzRCUyMEluZmVyZW5jZUNsaWVudCgpJTBBaW1hZ2UlMjAlM0QlMjBjbGllbnQuaW1hZ2VfdG9faW1hZ2UoJTIyY2F0LmpwZyUyMiUyQyUyMHByb21wdCUzRCUyMnR1cm4lMjB0aGUlMjBjYXQlMjBpbnRvJTIwYSUyMHRpZ2VyJTIyKSUwQWltYWdlLnNhdmUoJTIydGlnZXIuanBnJTIyKQ==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> InferenceClient
<span class="hljs-meta">&gt;&gt;&gt; </span>client = InferenceClient()
<span class="hljs-meta">&gt;&gt;&gt; </span>image = client.image_to_image(<span class="hljs-string">&quot;cat.jpg&quot;</span>, prompt=<span class="hljs-string">&quot;turn the cat into a tiger&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>image.save(<span class="hljs-string">&quot;tiger.jpg&quot;</span>)`,wrap:!1}}),{c(){n=p("p"),n.textContent=x,o=r(),h(s.$$.fragment)},l(e){n=g(e,"P",{"data-svelte-h":!0}),T(n)!=="svelte-11lpom8"&&(n.textContent=x),o=l(e),m(s.$$.fragment,e)},m(e,u){j(e,n,u),j(e,o,u),f(s,e,u),i=!0},p:J,i(e){i||(b(s.$$.fragment,e),i=!0)},o(e){_(s.$$.fragment,e),i=!1},d(e){e&&(c(n),c(o)),y(s,e)}}}function dh($){let n,x="Example:",o,s,i;return s=new q({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMEluZmVyZW5jZUNsaWVudCUwQWNsaWVudCUyMCUzRCUyMEluZmVyZW5jZUNsaWVudCgpJTBBY2xpZW50LmltYWdlX3RvX3RleHQoJTIyY2F0LmpwZyUyMiklMEFjbGllbnQuaW1hZ2VfdG9fdGV4dCglMjJodHRwcyUzQSUyRiUyRnVwbG9hZC53aWtpbWVkaWEub3JnJTJGd2lraXBlZGlhJTJGY29tbW9ucyUyRnRodW1iJTJGNCUyRjQzJTJGQ3V0ZV9kb2cuanBnJTJGMzIwcHgtQ3V0ZV9kb2cuanBnJTIyKQ==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> InferenceClient
<span class="hljs-meta">&gt;&gt;&gt; </span>client = InferenceClient()
<span class="hljs-meta">&gt;&gt;&gt; </span>client.image_to_text(<span class="hljs-string">&quot;cat.jpg&quot;</span>)
<span class="hljs-string">&#x27;a cat standing in a grassy field &#x27;</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>client.image_to_text(<span class="hljs-string">&quot;https://upload.wikimedia.org/wikipedia/commons/thumb/4/43/Cute_dog.jpg/320px-Cute_dog.jpg&quot;</span>)
<span class="hljs-string">&#x27;a dog laying on the grass next to a flower pot &#x27;</span>`,wrap:!1}}),{c(){n=p("p"),n.textContent=x,o=r(),h(s.$$.fragment)},l(e){n=g(e,"P",{"data-svelte-h":!0}),T(n)!=="svelte-11lpom8"&&(n.textContent=x),o=l(e),m(s.$$.fragment,e)},m(e,u){j(e,n,u),j(e,o,u),f(s,e,u),i=!0},p:J,i(e){i||(b(s.$$.fragment,e),i=!0)},o(e){_(s.$$.fragment,e),i=!1},d(e){e&&(c(n),c(o)),y(s,e)}}}function hh($){let n,x=`This endpoint is mostly useful for discoverability. If you already know which model you want to use and want to
check its availability, you can directly use <a href="/docs/huggingface_hub/v0.18.0.rc0/en/package_reference/inference_client#huggingface_hub.InferenceClient.get_model_status">get_model_status()</a>.`;return{c(){n=p("p"),n.innerHTML=x},l(o){n=g(o,"P",{"data-svelte-h":!0}),T(n)!=="svelte-1bitoyu"&&(n.innerHTML=x)},m(o,s){j(o,n,s)},p:J,d(o){o&&c(n)}}}function mh($){let n,x="Example:",o,s,i;return s=new q({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMEluZmVyZW5jZUNsaWVudCUwQWNsaWVudCUyMCUzRCUyMEluZmVyZW5jZUNsaWVudCgpJTBBJTBBbW9kZWxzJTIwJTNEJTIwY2xpZW50Lmxpc3RfZGVwbG95ZWRfbW9kZWxzKCklMEFtb2RlbHMlNUIlMjJ6ZXJvLXNob3QtY2xhc3NpZmljYXRpb24lMjIlNUQlMEElMEFjbGllbnQubGlzdF9kZXBsb3llZF9tb2RlbHMoJTIydGV4dC1nZW5lcmF0aW9uLWluZmVyZW5jZSUyMik=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> InferenceClient
<span class="hljs-meta">&gt;&gt;&gt; </span>client = InferenceClient()

<span class="hljs-comment"># Discover zero-shot-classification models currently deployed</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>models = client.list_deployed_models()
<span class="hljs-meta">&gt;&gt;&gt; </span>models[<span class="hljs-string">&quot;zero-shot-classification&quot;</span>]
[<span class="hljs-string">&#x27;Narsil/deberta-large-mnli-zero-cls&#x27;</span>, <span class="hljs-string">&#x27;facebook/bart-large-mnli&#x27;</span>, ...]

<span class="hljs-comment"># List from only 1 framework</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>client.list_deployed_models(<span class="hljs-string">&quot;text-generation-inference&quot;</span>)
{<span class="hljs-string">&#x27;text-generation&#x27;</span>: [<span class="hljs-string">&#x27;bigcode/starcoder&#x27;</span>, <span class="hljs-string">&#x27;meta-llama/Llama-2-70b-chat-hf&#x27;</span>, ...], ...}`,wrap:!1}}),{c(){n=p("p"),n.textContent=x,o=r(),h(s.$$.fragment)},l(e){n=g(e,"P",{"data-svelte-h":!0}),T(n)!=="svelte-11lpom8"&&(n.textContent=x),o=l(e),m(s.$$.fragment,e)},m(e,u){j(e,n,u),j(e,o,u),f(s,e,u),i=!0},p:J,i(e){i||(b(s.$$.fragment,e),i=!0)},o(e){_(s.$$.fragment,e),i=!1},d(e){e&&(c(n),c(o)),y(s,e)}}}function fh($){let n,x="You must have <code>PIL</code> installed if you want to work with images (<code>pip install Pillow</code>).";return{c(){n=p("p"),n.innerHTML=x},l(o){n=g(o,"P",{"data-svelte-h":!0}),T(n)!=="svelte-s2e3n9"&&(n.innerHTML=x)},m(o,s){j(o,n,s)},p:J,d(o){o&&c(n)}}}function bh($){let n,x="Example:",o,s,i;return s=new q({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMEluZmVyZW5jZUNsaWVudCUwQWNsaWVudCUyMCUzRCUyMEluZmVyZW5jZUNsaWVudCgpJTBBY2xpZW50Lm9iamVjdF9kZXRlY3Rpb24oJTIycGVvcGxlLmpwZyUyMiklM0E=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> InferenceClient
<span class="hljs-meta">&gt;&gt;&gt; </span>client = InferenceClient()
<span class="hljs-meta">&gt;&gt;&gt; </span>client.object_detection(<span class="hljs-string">&quot;people.jpg&quot;</span>):
[{<span class="hljs-string">&quot;score&quot;</span>:<span class="hljs-number">0.9486683011054993</span>,<span class="hljs-string">&quot;label&quot;</span>:<span class="hljs-string">&quot;person&quot;</span>,<span class="hljs-string">&quot;box&quot;</span>:{<span class="hljs-string">&quot;xmin&quot;</span>:<span class="hljs-number">59</span>,<span class="hljs-string">&quot;ymin&quot;</span>:<span class="hljs-number">39</span>,<span class="hljs-string">&quot;xmax&quot;</span>:<span class="hljs-number">420</span>,<span class="hljs-string">&quot;ymax&quot;</span>:<span class="hljs-number">510</span>}}, ... ]`,wrap:!1}}),{c(){n=p("p"),n.textContent=x,o=r(),h(s.$$.fragment)},l(e){n=g(e,"P",{"data-svelte-h":!0}),T(n)!=="svelte-11lpom8"&&(n.textContent=x),o=l(e),m(s.$$.fragment,e)},m(e,u){j(e,n,u),j(e,o,u),f(s,e,u),i=!0},p:J,i(e){i||(b(s.$$.fragment,e),i=!0)},o(e){_(s.$$.fragment,e),i=!1},d(e){e&&(c(n),c(o)),y(s,e)}}}function _h($){let n,x="Example:",o,s,i;return s=new q({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMEluZmVyZW5jZUNsaWVudCUwQWNsaWVudCUyMCUzRCUyMEluZmVyZW5jZUNsaWVudCgpJTBBY2xpZW50LnF1ZXN0aW9uX2Fuc3dlcmluZyhxdWVzdGlvbiUzRCUyMldoYXQncyUyMG15JTIwbmFtZSUzRiUyMiUyQyUyMGNvbnRleHQlM0QlMjJNeSUyMG5hbWUlMjBpcyUyMENsYXJhJTIwYW5kJTIwSSUyMGxpdmUlMjBpbiUyMEJlcmtlbGV5LiUyMik=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> InferenceClient
<span class="hljs-meta">&gt;&gt;&gt; </span>client = InferenceClient()
<span class="hljs-meta">&gt;&gt;&gt; </span>client.question_answering(question=<span class="hljs-string">&quot;What&#x27;s my name?&quot;</span>, context=<span class="hljs-string">&quot;My name is Clara and I live in Berkeley.&quot;</span>)
{<span class="hljs-string">&#x27;score&#x27;</span>: <span class="hljs-number">0.9326562285423279</span>, <span class="hljs-string">&#x27;start&#x27;</span>: <span class="hljs-number">11</span>, <span class="hljs-string">&#x27;end&#x27;</span>: <span class="hljs-number">16</span>, <span class="hljs-string">&#x27;answer&#x27;</span>: <span class="hljs-string">&#x27;Clara&#x27;</span>}`,wrap:!1}}),{c(){n=p("p"),n.textContent=x,o=r(),h(s.$$.fragment)},l(e){n=g(e,"P",{"data-svelte-h":!0}),T(n)!=="svelte-11lpom8"&&(n.textContent=x),o=l(e),m(s.$$.fragment,e)},m(e,u){j(e,n,u),j(e,o,u),f(s,e,u),i=!0},p:J,i(e){i||(b(s.$$.fragment,e),i=!0)},o(e){_(s.$$.fragment,e),i=!1},d(e){e&&(c(n),c(o)),y(s,e)}}}function yh($){let n,x="Example:",o,s,i;return s=new q({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMEluZmVyZW5jZUNsaWVudCUwQWNsaWVudCUyMCUzRCUyMEluZmVyZW5jZUNsaWVudCgpJTBBY2xpZW50LnNlbnRlbmNlX3NpbWlsYXJpdHkoJTBBJTIwJTIwJTIwJTIwJTIyTWFjaGluZSUyMGxlYXJuaW5nJTIwaXMlMjBzbyUyMGVhc3kuJTIyJTJDJTBBJTIwJTIwJTIwJTIwb3RoZXJfc2VudGVuY2VzJTNEJTVCJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIyRGVlcCUyMGxlYXJuaW5nJTIwaXMlMjBzbyUyMHN0cmFpZ2h0Zm9yd2FyZC4lMjIlMkMlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjJUaGlzJTIwaXMlMjBzbyUyMGRpZmZpY3VsdCUyQyUyMGxpa2UlMjByb2NrZXQlMjBzY2llbmNlLiUyMiUyQyUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMkklMjBjYW4ndCUyMGJlbGlldmUlMjBob3clMjBtdWNoJTIwSSUyMHN0cnVnZ2xlZCUyMHdpdGglMjB0aGlzLiUyMiUyQyUwQSUyMCUyMCUyMCUyMCU1RCUyQyUwQSk=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> InferenceClient
<span class="hljs-meta">&gt;&gt;&gt; </span>client = InferenceClient()
<span class="hljs-meta">&gt;&gt;&gt; </span>client.sentence_similarity(
<span class="hljs-meta">... </span>    <span class="hljs-string">&quot;Machine learning is so easy.&quot;</span>,
<span class="hljs-meta">... </span>    other_sentences=[
<span class="hljs-meta">... </span>        <span class="hljs-string">&quot;Deep learning is so straightforward.&quot;</span>,
<span class="hljs-meta">... </span>        <span class="hljs-string">&quot;This is so difficult, like rocket science.&quot;</span>,
<span class="hljs-meta">... </span>        <span class="hljs-string">&quot;I can&#x27;t believe how much I struggled with this.&quot;</span>,
<span class="hljs-meta">... </span>    ],
<span class="hljs-meta">... </span>)
[<span class="hljs-number">0.7785726189613342</span>, <span class="hljs-number">0.45876261591911316</span>, <span class="hljs-number">0.2906220555305481</span>]`,wrap:!1}}),{c(){n=p("p"),n.textContent=x,o=r(),h(s.$$.fragment)},l(e){n=g(e,"P",{"data-svelte-h":!0}),T(n)!=="svelte-11lpom8"&&(n.textContent=x),o=l(e),m(s.$$.fragment,e)},m(e,u){j(e,n,u),j(e,o,u),f(s,e,u),i=!0},p:J,i(e){i||(b(s.$$.fragment,e),i=!0)},o(e){_(s.$$.fragment,e),i=!1},d(e){e&&(c(n),c(o)),y(s,e)}}}function xh($){let n,x="Example:",o,s,i;return s=new q({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMEluZmVyZW5jZUNsaWVudCUwQWNsaWVudCUyMCUzRCUyMEluZmVyZW5jZUNsaWVudCgpJTBBY2xpZW50LnN1bW1hcml6YXRpb24oJTIyVGhlJTIwRWlmZmVsJTIwdG93ZXIuLi4lMjIp",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> InferenceClient
<span class="hljs-meta">&gt;&gt;&gt; </span>client = InferenceClient()
<span class="hljs-meta">&gt;&gt;&gt; </span>client.summarization(<span class="hljs-string">&quot;The Eiffel tower...&quot;</span>)
<span class="hljs-string">&#x27;The Eiffel tower is one of the most famous landmarks in the world....&#x27;</span>`,wrap:!1}}),{c(){n=p("p"),n.textContent=x,o=r(),h(s.$$.fragment)},l(e){n=g(e,"P",{"data-svelte-h":!0}),T(n)!=="svelte-11lpom8"&&(n.textContent=x),o=l(e),m(s.$$.fragment,e)},m(e,u){j(e,n,u),j(e,o,u),f(s,e,u),i=!0},p:J,i(e){i||(b(s.$$.fragment,e),i=!0)},o(e){_(s.$$.fragment,e),i=!1},d(e){e&&(c(n),c(o)),y(s,e)}}}function jh($){let n,x="Example:",o,s,i;return s=new q({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMEluZmVyZW5jZUNsaWVudCUwQWNsaWVudCUyMCUzRCUyMEluZmVyZW5jZUNsaWVudCgpJTBBcXVlcnklMjAlM0QlMjAlMjJIb3clMjBtYW55JTIwc3RhcnMlMjBkb2VzJTIwdGhlJTIwdHJhbnNmb3JtZXJzJTIwcmVwb3NpdG9yeSUyMGhhdmUlM0YlMjIlMEF0YWJsZSUyMCUzRCUyMCU3QiUyMlJlcG9zaXRvcnklMjIlM0ElMjAlNUIlMjJUcmFuc2Zvcm1lcnMlMjIlMkMlMjAlMjJEYXRhc2V0cyUyMiUyQyUyMCUyMlRva2VuaXplcnMlMjIlNUQlMkMlMjAlMjJTdGFycyUyMiUzQSUyMCU1QiUyMjM2NTQyJTIyJTJDJTIwJTIyNDUxMiUyMiUyQyUyMCUyMjM5MzQlMjIlNUQlN0QlMEFjbGllbnQudGFibGVfcXVlc3Rpb25fYW5zd2VyaW5nKHRhYmxlJTJDJTIwcXVlcnklMkMlMjBtb2RlbCUzRCUyMmdvb2dsZSUyRnRhcGFzLWJhc2UtZmluZXR1bmVkLXd0cSUyMik=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> InferenceClient
<span class="hljs-meta">&gt;&gt;&gt; </span>client = InferenceClient()
<span class="hljs-meta">&gt;&gt;&gt; </span>query = <span class="hljs-string">&quot;How many stars does the transformers repository have?&quot;</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>table = {<span class="hljs-string">&quot;Repository&quot;</span>: [<span class="hljs-string">&quot;Transformers&quot;</span>, <span class="hljs-string">&quot;Datasets&quot;</span>, <span class="hljs-string">&quot;Tokenizers&quot;</span>], <span class="hljs-string">&quot;Stars&quot;</span>: [<span class="hljs-string">&quot;36542&quot;</span>, <span class="hljs-string">&quot;4512&quot;</span>, <span class="hljs-string">&quot;3934&quot;</span>]}
<span class="hljs-meta">&gt;&gt;&gt; </span>client.table_question_answering(table, query, model=<span class="hljs-string">&quot;google/tapas-base-finetuned-wtq&quot;</span>)
{<span class="hljs-string">&#x27;answer&#x27;</span>: <span class="hljs-string">&#x27;AVERAGE &gt; 36542&#x27;</span>, <span class="hljs-string">&#x27;coordinates&#x27;</span>: [[<span class="hljs-number">0</span>, <span class="hljs-number">1</span>]], <span class="hljs-string">&#x27;cells&#x27;</span>: [<span class="hljs-string">&#x27;36542&#x27;</span>], <span class="hljs-string">&#x27;aggregator&#x27;</span>: <span class="hljs-string">&#x27;AVERAGE&#x27;</span>}`,wrap:!1}}),{c(){n=p("p"),n.textContent=x,o=r(),h(s.$$.fragment)},l(e){n=g(e,"P",{"data-svelte-h":!0}),T(n)!=="svelte-11lpom8"&&(n.textContent=x),o=l(e),m(s.$$.fragment,e)},m(e,u){j(e,n,u),j(e,o,u),f(s,e,u),i=!0},p:J,i(e){i||(b(s.$$.fragment,e),i=!0)},o(e){_(s.$$.fragment,e),i=!1},d(e){e&&(c(n),c(o)),y(s,e)}}}function Th($){let n,x="Example:",o,s,i;return s=new q({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMEluZmVyZW5jZUNsaWVudCUwQWNsaWVudCUyMCUzRCUyMEluZmVyZW5jZUNsaWVudCgpJTBBdGFibGUlMjAlM0QlMjAlN0IlMEElMjAlMjAlMjAlMjAlMjJmaXhlZF9hY2lkaXR5JTIyJTNBJTIwJTVCJTIyNy40JTIyJTJDJTIwJTIyNy44JTIyJTJDJTIwJTIyMTAuMyUyMiU1RCUyQyUwQSUyMCUyMCUyMCUyMCUyMnZvbGF0aWxlX2FjaWRpdHklMjIlM0ElMjAlNUIlMjIwLjclMjIlMkMlMjAlMjIwLjg4JTIyJTJDJTIwJTIyMC4zMiUyMiU1RCUyQyUwQSUyMCUyMCUyMCUyMCUyMmNpdHJpY19hY2lkJTIyJTNBJTIwJTVCJTIyMCUyMiUyQyUyMCUyMjAlMjIlMkMlMjAlMjIwLjQ1JTIyJTVEJTJDJTBBJTIwJTIwJTIwJTIwJTIycmVzaWR1YWxfc3VnYXIlMjIlM0ElMjAlNUIlMjIxLjklMjIlMkMlMjAlMjIyLjYlMjIlMkMlMjAlMjI2LjQlMjIlNUQlMkMlMEElMjAlMjAlMjAlMjAlMjJjaGxvcmlkZXMlMjIlM0ElMjAlNUIlMjIwLjA3NiUyMiUyQyUyMCUyMjAuMDk4JTIyJTJDJTIwJTIyMC4wNzMlMjIlNUQlMkMlMEElMjAlMjAlMjAlMjAlMjJmcmVlX3N1bGZ1cl9kaW94aWRlJTIyJTNBJTIwJTVCJTIyMTElMjIlMkMlMjAlMjIyNSUyMiUyQyUyMCUyMjUlMjIlNUQlMkMlMEElMjAlMjAlMjAlMjAlMjJ0b3RhbF9zdWxmdXJfZGlveGlkZSUyMiUzQSUyMCU1QiUyMjM0JTIyJTJDJTIwJTIyNjclMjIlMkMlMjAlMjIxMyUyMiU1RCUyQyUwQSUyMCUyMCUyMCUyMCUyMmRlbnNpdHklMjIlM0ElMjAlNUIlMjIwLjk5NzglMjIlMkMlMjAlMjIwLjk5NjglMjIlMkMlMjAlMjIwLjk5NzYlMjIlNUQlMkMlMEElMjAlMjAlMjAlMjAlMjJwSCUyMiUzQSUyMCU1QiUyMjMuNTElMjIlMkMlMjAlMjIzLjIlMjIlMkMlMjAlMjIzLjIzJTIyJTVEJTJDJTBBJTIwJTIwJTIwJTIwJTIyc3VscGhhdGVzJTIyJTNBJTIwJTVCJTIyMC41NiUyMiUyQyUyMCUyMjAuNjglMjIlMkMlMjAlMjIwLjgyJTIyJTVEJTJDJTBBJTIwJTIwJTIwJTIwJTIyYWxjb2hvbCUyMiUzQSUyMCU1QiUyMjkuNCUyMiUyQyUyMCUyMjkuOCUyMiUyQyUyMCUyMjEyLjYlMjIlNUQlMkMlMEElN0QlMEFjbGllbnQudGFidWxhcl9jbGFzc2lmaWNhdGlvbih0YWJsZSUzRHRhYmxlJTJDJTIwbW9kZWwlM0QlMjJqdWxpZW4tYyUyRndpbmUtcXVhbGl0eSUyMik=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> InferenceClient
<span class="hljs-meta">&gt;&gt;&gt; </span>client = InferenceClient()
<span class="hljs-meta">&gt;&gt;&gt; </span>table = {
<span class="hljs-meta">... </span>    <span class="hljs-string">&quot;fixed_acidity&quot;</span>: [<span class="hljs-string">&quot;7.4&quot;</span>, <span class="hljs-string">&quot;7.8&quot;</span>, <span class="hljs-string">&quot;10.3&quot;</span>],
<span class="hljs-meta">... </span>    <span class="hljs-string">&quot;volatile_acidity&quot;</span>: [<span class="hljs-string">&quot;0.7&quot;</span>, <span class="hljs-string">&quot;0.88&quot;</span>, <span class="hljs-string">&quot;0.32&quot;</span>],
<span class="hljs-meta">... </span>    <span class="hljs-string">&quot;citric_acid&quot;</span>: [<span class="hljs-string">&quot;0&quot;</span>, <span class="hljs-string">&quot;0&quot;</span>, <span class="hljs-string">&quot;0.45&quot;</span>],
<span class="hljs-meta">... </span>    <span class="hljs-string">&quot;residual_sugar&quot;</span>: [<span class="hljs-string">&quot;1.9&quot;</span>, <span class="hljs-string">&quot;2.6&quot;</span>, <span class="hljs-string">&quot;6.4&quot;</span>],
<span class="hljs-meta">... </span>    <span class="hljs-string">&quot;chlorides&quot;</span>: [<span class="hljs-string">&quot;0.076&quot;</span>, <span class="hljs-string">&quot;0.098&quot;</span>, <span class="hljs-string">&quot;0.073&quot;</span>],
<span class="hljs-meta">... </span>    <span class="hljs-string">&quot;free_sulfur_dioxide&quot;</span>: [<span class="hljs-string">&quot;11&quot;</span>, <span class="hljs-string">&quot;25&quot;</span>, <span class="hljs-string">&quot;5&quot;</span>],
<span class="hljs-meta">... </span>    <span class="hljs-string">&quot;total_sulfur_dioxide&quot;</span>: [<span class="hljs-string">&quot;34&quot;</span>, <span class="hljs-string">&quot;67&quot;</span>, <span class="hljs-string">&quot;13&quot;</span>],
<span class="hljs-meta">... </span>    <span class="hljs-string">&quot;density&quot;</span>: [<span class="hljs-string">&quot;0.9978&quot;</span>, <span class="hljs-string">&quot;0.9968&quot;</span>, <span class="hljs-string">&quot;0.9976&quot;</span>],
<span class="hljs-meta">... </span>    <span class="hljs-string">&quot;pH&quot;</span>: [<span class="hljs-string">&quot;3.51&quot;</span>, <span class="hljs-string">&quot;3.2&quot;</span>, <span class="hljs-string">&quot;3.23&quot;</span>],
<span class="hljs-meta">... </span>    <span class="hljs-string">&quot;sulphates&quot;</span>: [<span class="hljs-string">&quot;0.56&quot;</span>, <span class="hljs-string">&quot;0.68&quot;</span>, <span class="hljs-string">&quot;0.82&quot;</span>],
<span class="hljs-meta">... </span>    <span class="hljs-string">&quot;alcohol&quot;</span>: [<span class="hljs-string">&quot;9.4&quot;</span>, <span class="hljs-string">&quot;9.8&quot;</span>, <span class="hljs-string">&quot;12.6&quot;</span>],
<span class="hljs-meta">... </span>}
<span class="hljs-meta">&gt;&gt;&gt; </span>client.tabular_classification(table=table, model=<span class="hljs-string">&quot;julien-c/wine-quality&quot;</span>)
[<span class="hljs-string">&quot;5&quot;</span>, <span class="hljs-string">&quot;5&quot;</span>, <span class="hljs-string">&quot;5&quot;</span>]`,wrap:!1}}),{c(){n=p("p"),n.textContent=x,o=r(),h(s.$$.fragment)},l(e){n=g(e,"P",{"data-svelte-h":!0}),T(n)!=="svelte-11lpom8"&&(n.textContent=x),o=l(e),m(s.$$.fragment,e)},m(e,u){j(e,n,u),j(e,o,u),f(s,e,u),i=!0},p:J,i(e){i||(b(s.$$.fragment,e),i=!0)},o(e){_(s.$$.fragment,e),i=!1},d(e){e&&(c(n),c(o)),y(s,e)}}}function $h($){let n,x="Example:",o,s,i;return s=new q({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMEluZmVyZW5jZUNsaWVudCUwQWNsaWVudCUyMCUzRCUyMEluZmVyZW5jZUNsaWVudCgpJTBBdGFibGUlMjAlM0QlMjAlN0IlMEElMjAlMjAlMjAlMjAlMjJIZWlnaHQlMjIlM0ElMjAlNUIlMjIxMS41MiUyMiUyQyUyMCUyMjEyLjQ4JTIyJTJDJTIwJTIyMTIuMzc3OCUyMiU1RCUyQyUwQSUyMCUyMCUyMCUyMCUyMkxlbmd0aDElMjIlM0ElMjAlNUIlMjIyMy4yJTIyJTJDJTIwJTIyMjQlMjIlMkMlMjAlMjIyMy45JTIyJTVEJTJDJTBBJTIwJTIwJTIwJTIwJTIyTGVuZ3RoMiUyMiUzQSUyMCU1QiUyMjI1LjQlMjIlMkMlMjAlMjIyNi4zJTIyJTJDJTIwJTIyMjYuNSUyMiU1RCUyQyUwQSUyMCUyMCUyMCUyMCUyMkxlbmd0aDMlMjIlM0ElMjAlNUIlMjIzMCUyMiUyQyUyMCUyMjMxLjIlMjIlMkMlMjAlMjIzMS4xJTIyJTVEJTJDJTBBJTIwJTIwJTIwJTIwJTIyU3BlY2llcyUyMiUzQSUyMCU1QiUyMkJyZWFtJTIyJTJDJTIwJTIyQnJlYW0lMjIlMkMlMjAlMjJCcmVhbSUyMiU1RCUyQyUwQSUyMCUyMCUyMCUyMCUyMldpZHRoJTIyJTNBJTIwJTVCJTIyNC4wMiUyMiUyQyUyMCUyMjQuMzA1NiUyMiUyQyUyMCUyMjQuNjk2MSUyMiU1RCUyQyUwQSU3RCUwQWNsaWVudC50YWJ1bGFyX3JlZ3Jlc3Npb24odGFibGUlMkMlMjBtb2RlbCUzRCUyMnNjaWtpdC1sZWFybiUyRkZpc2gtV2VpZ2h0JTIyKQ==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> InferenceClient
<span class="hljs-meta">&gt;&gt;&gt; </span>client = InferenceClient()
<span class="hljs-meta">&gt;&gt;&gt; </span>table = {
<span class="hljs-meta">... </span>    <span class="hljs-string">&quot;Height&quot;</span>: [<span class="hljs-string">&quot;11.52&quot;</span>, <span class="hljs-string">&quot;12.48&quot;</span>, <span class="hljs-string">&quot;12.3778&quot;</span>],
<span class="hljs-meta">... </span>    <span class="hljs-string">&quot;Length1&quot;</span>: [<span class="hljs-string">&quot;23.2&quot;</span>, <span class="hljs-string">&quot;24&quot;</span>, <span class="hljs-string">&quot;23.9&quot;</span>],
<span class="hljs-meta">... </span>    <span class="hljs-string">&quot;Length2&quot;</span>: [<span class="hljs-string">&quot;25.4&quot;</span>, <span class="hljs-string">&quot;26.3&quot;</span>, <span class="hljs-string">&quot;26.5&quot;</span>],
<span class="hljs-meta">... </span>    <span class="hljs-string">&quot;Length3&quot;</span>: [<span class="hljs-string">&quot;30&quot;</span>, <span class="hljs-string">&quot;31.2&quot;</span>, <span class="hljs-string">&quot;31.1&quot;</span>],
<span class="hljs-meta">... </span>    <span class="hljs-string">&quot;Species&quot;</span>: [<span class="hljs-string">&quot;Bream&quot;</span>, <span class="hljs-string">&quot;Bream&quot;</span>, <span class="hljs-string">&quot;Bream&quot;</span>],
<span class="hljs-meta">... </span>    <span class="hljs-string">&quot;Width&quot;</span>: [<span class="hljs-string">&quot;4.02&quot;</span>, <span class="hljs-string">&quot;4.3056&quot;</span>, <span class="hljs-string">&quot;4.6961&quot;</span>],
<span class="hljs-meta">... </span>}
<span class="hljs-meta">&gt;&gt;&gt; </span>client.tabular_regression(table, model=<span class="hljs-string">&quot;scikit-learn/Fish-Weight&quot;</span>)
[<span class="hljs-number">110</span>, <span class="hljs-number">120</span>, <span class="hljs-number">130</span>]`,wrap:!1}}),{c(){n=p("p"),n.textContent=x,o=r(),h(s.$$.fragment)},l(e){n=g(e,"P",{"data-svelte-h":!0}),T(n)!=="svelte-11lpom8"&&(n.textContent=x),o=l(e),m(s.$$.fragment,e)},m(e,u){j(e,n,u),j(e,o,u),f(s,e,u),i=!0},p:J,i(e){i||(b(s.$$.fragment,e),i=!0)},o(e){_(s.$$.fragment,e),i=!1},d(e){e&&(c(n),c(o)),y(s,e)}}}function Ih($){let n,x="Example:",o,s,i;return s=new q({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMEluZmVyZW5jZUNsaWVudCUwQWNsaWVudCUyMCUzRCUyMEluZmVyZW5jZUNsaWVudCgpJTBBY2xpZW50LnRleHRfY2xhc3NpZmljYXRpb24oJTIySSUyMGxpa2UlMjB5b3UlMjIp",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> InferenceClient
<span class="hljs-meta">&gt;&gt;&gt; </span>client = InferenceClient()
<span class="hljs-meta">&gt;&gt;&gt; </span>client.text_classification(<span class="hljs-string">&quot;I like you&quot;</span>)
[{<span class="hljs-string">&#x27;label&#x27;</span>: <span class="hljs-string">&#x27;POSITIVE&#x27;</span>, <span class="hljs-string">&#x27;score&#x27;</span>: <span class="hljs-number">0.9998695850372314</span>}, {<span class="hljs-string">&#x27;label&#x27;</span>: <span class="hljs-string">&#x27;NEGATIVE&#x27;</span>, <span class="hljs-string">&#x27;score&#x27;</span>: <span class="hljs-number">0.0001304351753788069</span>}]`,wrap:!1}}),{c(){n=p("p"),n.textContent=x,o=r(),h(s.$$.fragment)},l(e){n=g(e,"P",{"data-svelte-h":!0}),T(n)!=="svelte-11lpom8"&&(n.textContent=x),o=l(e),m(s.$$.fragment,e)},m(e,u){j(e,n,u),j(e,o,u),f(s,e,u),i=!0},p:J,i(e){i||(b(s.$$.fragment,e),i=!0)},o(e){_(s.$$.fragment,e),i=!1},d(e){e&&(c(n),c(o)),y(s,e)}}}function Mh($){let n,x="Example:",o,s,i;return s=new q({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMEluZmVyZW5jZUNsaWVudCUwQWNsaWVudCUyMCUzRCUyMEluZmVyZW5jZUNsaWVudCgpJTBBJTBBY2xpZW50LnRleHRfZ2VuZXJhdGlvbiglMjJUaGUlMjBodWdnaW5nZmFjZV9odWIlMjBsaWJyYXJ5JTIwaXMlMjAlMjIlMkMlMjBtYXhfbmV3X3Rva2VucyUzRDEyKSUwQSUwQWZvciUyMHRva2VuJTIwaW4lMjBjbGllbnQudGV4dF9nZW5lcmF0aW9uKCUyMlRoZSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGxpYnJhcnklMjBpcyUyMCUyMiUyQyUyMG1heF9uZXdfdG9rZW5zJTNEMTIlMkMlMjBzdHJlYW0lM0RUcnVlKSUzQSUwQSUyMCUyMCUyMCUyMHByaW50KHRva2VuKSUwQSUwQWNsaWVudC50ZXh0X2dlbmVyYXRpb24oJTIyVGhlJTIwaHVnZ2luZ2ZhY2VfaHViJTIwbGlicmFyeSUyMGlzJTIwJTIyJTJDJTIwbWF4X25ld190b2tlbnMlM0QxMiUyQyUyMGRldGFpbHMlM0RUcnVlKSUwQSUwQWZvciUyMGRldGFpbHMlMjBpbiUyMGNsaWVudC50ZXh0X2dlbmVyYXRpb24oJTIyVGhlJTIwaHVnZ2luZ2ZhY2VfaHViJTIwbGlicmFyeSUyMGlzJTIwJTIyJTJDJTIwbWF4X25ld190b2tlbnMlM0QxMiUyQyUyMGRldGFpbHMlM0RUcnVlJTJDJTIwc3RyZWFtJTNEVHJ1ZSklM0ElMEElMjAlMjAlMjAlMjBwcmludChkZXRhaWxzKQ==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> InferenceClient
<span class="hljs-meta">&gt;&gt;&gt; </span>client = InferenceClient()

<span class="hljs-comment"># Case 1: generate text</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>client.text_generation(<span class="hljs-string">&quot;The huggingface_hub library is &quot;</span>, max_new_tokens=<span class="hljs-number">12</span>)
<span class="hljs-string">&#x27;100% open source and built to be easy to use.&#x27;</span>

<span class="hljs-comment"># Case 2: iterate over the generated tokens. Useful for large generation.</span>
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">for</span> token <span class="hljs-keyword">in</span> client.text_generation(<span class="hljs-string">&quot;The huggingface_hub library is &quot;</span>, max_new_tokens=<span class="hljs-number">12</span>, stream=<span class="hljs-literal">True</span>):
<span class="hljs-meta">... </span>    <span class="hljs-built_in">print</span>(token)
<span class="hljs-number">100</span>
%
<span class="hljs-built_in">open</span>
source
<span class="hljs-keyword">and</span>
built
to
be
easy
to
use
.

<span class="hljs-comment"># Case 3: get more details about the generation process.</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>client.text_generation(<span class="hljs-string">&quot;The huggingface_hub library is &quot;</span>, max_new_tokens=<span class="hljs-number">12</span>, details=<span class="hljs-literal">True</span>)
TextGenerationResponse(
    generated_text=<span class="hljs-string">&#x27;100% open source and built to be easy to use.&#x27;</span>,
    details=Details(
        finish_reason=&lt;FinishReason.Length: <span class="hljs-string">&#x27;length&#x27;</span>&gt;,
        generated_tokens=<span class="hljs-number">12</span>,
        seed=<span class="hljs-literal">None</span>,
        prefill=[
            InputToken(<span class="hljs-built_in">id</span>=<span class="hljs-number">487</span>, text=<span class="hljs-string">&#x27;The&#x27;</span>, logprob=<span class="hljs-literal">None</span>),
            InputToken(<span class="hljs-built_in">id</span>=<span class="hljs-number">53789</span>, text=<span class="hljs-string">&#x27; hugging&#x27;</span>, logprob=-<span class="hljs-number">13.171875</span>),
            (...)
            InputToken(<span class="hljs-built_in">id</span>=<span class="hljs-number">204</span>, text=<span class="hljs-string">&#x27; &#x27;</span>, logprob=-<span class="hljs-number">7.0390625</span>)
        ],
        tokens=[
            Token(<span class="hljs-built_in">id</span>=<span class="hljs-number">1425</span>, text=<span class="hljs-string">&#x27;100&#x27;</span>, logprob=-<span class="hljs-number">1.0175781</span>, special=<span class="hljs-literal">False</span>),
            Token(<span class="hljs-built_in">id</span>=<span class="hljs-number">16</span>, text=<span class="hljs-string">&#x27;%&#x27;</span>, logprob=-<span class="hljs-number">0.0463562</span>, special=<span class="hljs-literal">False</span>),
            (...)
            Token(<span class="hljs-built_in">id</span>=<span class="hljs-number">25</span>, text=<span class="hljs-string">&#x27;.&#x27;</span>, logprob=-<span class="hljs-number">0.5703125</span>, special=<span class="hljs-literal">False</span>)
        ],
        best_of_sequences=<span class="hljs-literal">None</span>
    )
)

<span class="hljs-comment"># Case 4: iterate over the generated tokens with more details.</span>
<span class="hljs-comment"># Last object is more complete, containing the full generated text and the finish reason.</span>
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">for</span> details <span class="hljs-keyword">in</span> client.text_generation(<span class="hljs-string">&quot;The huggingface_hub library is &quot;</span>, max_new_tokens=<span class="hljs-number">12</span>, details=<span class="hljs-literal">True</span>, stream=<span class="hljs-literal">True</span>):
<span class="hljs-meta">... </span>    <span class="hljs-built_in">print</span>(details)
...
TextGenerationStreamResponse(token=Token(<span class="hljs-built_in">id</span>=<span class="hljs-number">1425</span>, text=<span class="hljs-string">&#x27;100&#x27;</span>, logprob=-<span class="hljs-number">1.0175781</span>, special=<span class="hljs-literal">False</span>), generated_text=<span class="hljs-literal">None</span>, details=<span class="hljs-literal">None</span>)
TextGenerationStreamResponse(token=Token(<span class="hljs-built_in">id</span>=<span class="hljs-number">16</span>, text=<span class="hljs-string">&#x27;%&#x27;</span>, logprob=-<span class="hljs-number">0.0463562</span>, special=<span class="hljs-literal">False</span>), generated_text=<span class="hljs-literal">None</span>, details=<span class="hljs-literal">None</span>)
TextGenerationStreamResponse(token=Token(<span class="hljs-built_in">id</span>=<span class="hljs-number">1314</span>, text=<span class="hljs-string">&#x27; open&#x27;</span>, logprob=-<span class="hljs-number">1.3359375</span>, special=<span class="hljs-literal">False</span>), generated_text=<span class="hljs-literal">None</span>, details=<span class="hljs-literal">None</span>)
TextGenerationStreamResponse(token=Token(<span class="hljs-built_in">id</span>=<span class="hljs-number">3178</span>, text=<span class="hljs-string">&#x27; source&#x27;</span>, logprob=-<span class="hljs-number">0.28100586</span>, special=<span class="hljs-literal">False</span>), generated_text=<span class="hljs-literal">None</span>, details=<span class="hljs-literal">None</span>)
TextGenerationStreamResponse(token=Token(<span class="hljs-built_in">id</span>=<span class="hljs-number">273</span>, text=<span class="hljs-string">&#x27; and&#x27;</span>, logprob=-<span class="hljs-number">0.5961914</span>, special=<span class="hljs-literal">False</span>), generated_text=<span class="hljs-literal">None</span>, details=<span class="hljs-literal">None</span>)
TextGenerationStreamResponse(token=Token(<span class="hljs-built_in">id</span>=<span class="hljs-number">3426</span>, text=<span class="hljs-string">&#x27; built&#x27;</span>, logprob=-<span class="hljs-number">1.9423828</span>, special=<span class="hljs-literal">False</span>), generated_text=<span class="hljs-literal">None</span>, details=<span class="hljs-literal">None</span>)
TextGenerationStreamResponse(token=Token(<span class="hljs-built_in">id</span>=<span class="hljs-number">271</span>, text=<span class="hljs-string">&#x27; to&#x27;</span>, logprob=-<span class="hljs-number">1.4121094</span>, special=<span class="hljs-literal">False</span>), generated_text=<span class="hljs-literal">None</span>, details=<span class="hljs-literal">None</span>)
TextGenerationStreamResponse(token=Token(<span class="hljs-built_in">id</span>=<span class="hljs-number">314</span>, text=<span class="hljs-string">&#x27; be&#x27;</span>, logprob=-<span class="hljs-number">1.5224609</span>, special=<span class="hljs-literal">False</span>), generated_text=<span class="hljs-literal">None</span>, details=<span class="hljs-literal">None</span>)
TextGenerationStreamResponse(token=Token(<span class="hljs-built_in">id</span>=<span class="hljs-number">1833</span>, text=<span class="hljs-string">&#x27; easy&#x27;</span>, logprob=-<span class="hljs-number">2.1132812</span>, special=<span class="hljs-literal">False</span>), generated_text=<span class="hljs-literal">None</span>, details=<span class="hljs-literal">None</span>)
TextGenerationStreamResponse(token=Token(<span class="hljs-built_in">id</span>=<span class="hljs-number">271</span>, text=<span class="hljs-string">&#x27; to&#x27;</span>, logprob=-<span class="hljs-number">0.08520508</span>, special=<span class="hljs-literal">False</span>), generated_text=<span class="hljs-literal">None</span>, details=<span class="hljs-literal">None</span>)
TextGenerationStreamResponse(token=Token(<span class="hljs-built_in">id</span>=<span class="hljs-number">745</span>, text=<span class="hljs-string">&#x27; use&#x27;</span>, logprob=-<span class="hljs-number">0.39453125</span>, special=<span class="hljs-literal">False</span>), generated_text=<span class="hljs-literal">None</span>, details=<span class="hljs-literal">None</span>)
TextGenerationStreamResponse(token=Token(
    <span class="hljs-built_in">id</span>=<span class="hljs-number">25</span>,
    text=<span class="hljs-string">&#x27;.&#x27;</span>,
    logprob=-<span class="hljs-number">0.5703125</span>,
    special=<span class="hljs-literal">False</span>),
    generated_text=<span class="hljs-string">&#x27;100% open source and built to be easy to use.&#x27;</span>,
    details=StreamDetails(finish_reason=&lt;FinishReason.Length: <span class="hljs-string">&#x27;length&#x27;</span>&gt;, generated_tokens=<span class="hljs-number">12</span>, seed=<span class="hljs-literal">None</span>)
)`,wrap:!1}}),{c(){n=p("p"),n.textContent=x,o=r(),h(s.$$.fragment)},l(e){n=g(e,"P",{"data-svelte-h":!0}),T(n)!=="svelte-11lpom8"&&(n.textContent=x),o=l(e),m(s.$$.fragment,e)},m(e,u){j(e,n,u),j(e,o,u),f(s,e,u),i=!0},p:J,i(e){i||(b(s.$$.fragment,e),i=!0)},o(e){_(s.$$.fragment,e),i=!1},d(e){e&&(c(n),c(o)),y(s,e)}}}function vh($){let n,x="You must have <code>PIL</code> installed if you want to work with images (<code>pip install Pillow</code>).";return{c(){n=p("p"),n.innerHTML=x},l(o){n=g(o,"P",{"data-svelte-h":!0}),T(n)!=="svelte-s2e3n9"&&(n.innerHTML=x)},m(o,s){j(o,n,s)},p:J,d(o){o&&c(n)}}}function wh($){let n,x="Example:",o,s,i;return s=new q({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMEluZmVyZW5jZUNsaWVudCUwQWNsaWVudCUyMCUzRCUyMEluZmVyZW5jZUNsaWVudCgpJTBBJTBBaW1hZ2UlMjAlM0QlMjBjbGllbnQudGV4dF90b19pbWFnZSglMjJBbiUyMGFzdHJvbmF1dCUyMHJpZGluZyUyMGElMjBob3JzZSUyMG9uJTIwdGhlJTIwbW9vbi4lMjIpJTBBaW1hZ2Uuc2F2ZSglMjJhc3Ryb25hdXQucG5nJTIyKSUwQSUwQWltYWdlJTIwJTNEJTIwY2xpZW50LnRleHRfdG9faW1hZ2UoJTBBJTIwJTIwJTIwJTIwJTIyQW4lMjBhc3Ryb25hdXQlMjByaWRpbmclMjBhJTIwaG9yc2UlMjBvbiUyMHRoZSUyMG1vb24uJTIyJTJDJTBBJTIwJTIwJTIwJTIwbmVnYXRpdmVfcHJvbXB0JTNEJTIybG93JTIwcmVzb2x1dGlvbiUyQyUyMGJsdXJyeSUyMiUyQyUwQSUyMCUyMCUyMCUyMG1vZGVsJTNEJTIyc3RhYmlsaXR5YWklMkZzdGFibGUtZGlmZnVzaW9uLTItMSUyMiUyQyUwQSklMEFpbWFnZS5zYXZlKCUyMmJldHRlcl9hc3Ryb25hdXQucG5nJTIyKQ==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> InferenceClient
<span class="hljs-meta">&gt;&gt;&gt; </span>client = InferenceClient()

<span class="hljs-meta">&gt;&gt;&gt; </span>image = client.text_to_image(<span class="hljs-string">&quot;An astronaut riding a horse on the moon.&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>image.save(<span class="hljs-string">&quot;astronaut.png&quot;</span>)

<span class="hljs-meta">&gt;&gt;&gt; </span>image = client.text_to_image(
<span class="hljs-meta">... </span>    <span class="hljs-string">&quot;An astronaut riding a horse on the moon.&quot;</span>,
<span class="hljs-meta">... </span>    negative_prompt=<span class="hljs-string">&quot;low resolution, blurry&quot;</span>,
<span class="hljs-meta">... </span>    model=<span class="hljs-string">&quot;stabilityai/stable-diffusion-2-1&quot;</span>,
<span class="hljs-meta">... </span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>image.save(<span class="hljs-string">&quot;better_astronaut.png&quot;</span>)`,wrap:!1}}),{c(){n=p("p"),n.textContent=x,o=r(),h(s.$$.fragment)},l(e){n=g(e,"P",{"data-svelte-h":!0}),T(n)!=="svelte-11lpom8"&&(n.textContent=x),o=l(e),m(s.$$.fragment,e)},m(e,u){j(e,n,u),j(e,o,u),f(s,e,u),i=!0},p:J,i(e){i||(b(s.$$.fragment,e),i=!0)},o(e){_(s.$$.fragment,e),i=!1},d(e){e&&(c(n),c(o)),y(s,e)}}}function Ch($){let n,x="Example:",o,s,i;return s=new q({props:{code:"ZnJvbSUyMHBhdGhsaWIlMjBpbXBvcnQlMjBQYXRoJTBBZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMEluZmVyZW5jZUNsaWVudCUwQWNsaWVudCUyMCUzRCUyMEluZmVyZW5jZUNsaWVudCgpJTBBJTBBYXVkaW8lMjAlM0QlMjBjbGllbnQudGV4dF90b19zcGVlY2goJTIySGVsbG8lMjB3b3JsZCUyMiklMEFQYXRoKCUyMmhlbGxvX3dvcmxkLmZsYWMlMjIpLndyaXRlX2J5dGVzKGF1ZGlvKQ==",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> InferenceClient
<span class="hljs-meta">&gt;&gt;&gt; </span>client = InferenceClient()

<span class="hljs-meta">&gt;&gt;&gt; </span>audio = client.text_to_speech(<span class="hljs-string">&quot;Hello world&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>Path(<span class="hljs-string">&quot;hello_world.flac&quot;</span>).write_bytes(audio)`,wrap:!1}}),{c(){n=p("p"),n.textContent=x,o=r(),h(s.$$.fragment)},l(e){n=g(e,"P",{"data-svelte-h":!0}),T(n)!=="svelte-11lpom8"&&(n.textContent=x),o=l(e),m(s.$$.fragment,e)},m(e,u){j(e,n,u),j(e,o,u),f(s,e,u),i=!0},p:J,i(e){i||(b(s.$$.fragment,e),i=!0)},o(e){_(s.$$.fragment,e),i=!1},d(e){e&&(c(n),c(o)),y(s,e)}}}function Jh($){let n,x="Example:",o,s,i;return s=new q({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMEluZmVyZW5jZUNsaWVudCUwQWNsaWVudCUyMCUzRCUyMEluZmVyZW5jZUNsaWVudCgpJTBBY2xpZW50LnRva2VuX2NsYXNzaWZpY2F0aW9uKCUyMk15JTIwbmFtZSUyMGlzJTIwU2FyYWglMjBKZXNzaWNhJTIwUGFya2VyJTIwYnV0JTIweW91JTIwY2FuJTIwY2FsbCUyMG1lJTIwSmVzc2ljYSUyMik=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> InferenceClient
<span class="hljs-meta">&gt;&gt;&gt; </span>client = InferenceClient()
<span class="hljs-meta">&gt;&gt;&gt; </span>client.token_classification(<span class="hljs-string">&quot;My name is Sarah Jessica Parker but you can call me Jessica&quot;</span>)
[{<span class="hljs-string">&#x27;entity_group&#x27;</span>: <span class="hljs-string">&#x27;PER&#x27;</span>,
<span class="hljs-string">&#x27;score&#x27;</span>: <span class="hljs-number">0.9971321225166321</span>,
<span class="hljs-string">&#x27;word&#x27;</span>: <span class="hljs-string">&#x27;Sarah Jessica Parker&#x27;</span>,
<span class="hljs-string">&#x27;start&#x27;</span>: <span class="hljs-number">11</span>,
<span class="hljs-string">&#x27;end&#x27;</span>: <span class="hljs-number">31</span>},
{<span class="hljs-string">&#x27;entity_group&#x27;</span>: <span class="hljs-string">&#x27;PER&#x27;</span>,
<span class="hljs-string">&#x27;score&#x27;</span>: <span class="hljs-number">0.9773476123809814</span>,
<span class="hljs-string">&#x27;word&#x27;</span>: <span class="hljs-string">&#x27;Jessica&#x27;</span>,
<span class="hljs-string">&#x27;start&#x27;</span>: <span class="hljs-number">52</span>,
<span class="hljs-string">&#x27;end&#x27;</span>: <span class="hljs-number">59</span>}]`,wrap:!1}}),{c(){n=p("p"),n.textContent=x,o=r(),h(s.$$.fragment)},l(e){n=g(e,"P",{"data-svelte-h":!0}),T(n)!=="svelte-11lpom8"&&(n.textContent=x),o=l(e),m(s.$$.fragment,e)},m(e,u){j(e,n,u),j(e,o,u),f(s,e,u),i=!0},p:J,i(e){i||(b(s.$$.fragment,e),i=!0)},o(e){_(s.$$.fragment,e),i=!1},d(e){e&&(c(n),c(o)),y(s,e)}}}function Uh($){let n,x="Example:",o,s,i;return s=new q({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMEluZmVyZW5jZUNsaWVudCUwQWNsaWVudCUyMCUzRCUyMEluZmVyZW5jZUNsaWVudCgpJTBBY2xpZW50LnRyYW5zbGF0aW9uKCUyMk15JTIwbmFtZSUyMGlzJTIwV29sZmdhbmclMjBhbmQlMjBJJTIwbGl2ZSUyMGluJTIwQmVybGluJTIyKSUwQWNsaWVudC50cmFuc2xhdGlvbiglMjJNeSUyMG5hbWUlMjBpcyUyMFdvbGZnYW5nJTIwYW5kJTIwSSUyMGxpdmUlMjBpbiUyMEJlcmxpbiUyMiUyQyUyMG1vZGVsJTNEJTIySGVsc2lua2ktTkxQJTJGb3B1cy1tdC1lbi1mciUyMik=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> InferenceClient
<span class="hljs-meta">&gt;&gt;&gt; </span>client = InferenceClient()
<span class="hljs-meta">&gt;&gt;&gt; </span>client.translation(<span class="hljs-string">&quot;My name is Wolfgang and I live in Berlin&quot;</span>)
<span class="hljs-string">&#x27;Mein Name ist Wolfgang und ich lebe in Berlin.&#x27;</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>client.translation(<span class="hljs-string">&quot;My name is Wolfgang and I live in Berlin&quot;</span>, model=<span class="hljs-string">&quot;Helsinki-NLP/opus-mt-en-fr&quot;</span>)
<span class="hljs-string">&quot;Je m&#x27;appelle Wolfgang et je vis à Berlin.&quot;</span>`,wrap:!1}}),{c(){n=p("p"),n.textContent=x,o=r(),h(s.$$.fragment)},l(e){n=g(e,"P",{"data-svelte-h":!0}),T(n)!=="svelte-11lpom8"&&(n.textContent=x),o=l(e),m(s.$$.fragment,e)},m(e,u){j(e,n,u),j(e,o,u),f(s,e,u),i=!0},p:J,i(e){i||(b(s.$$.fragment,e),i=!0)},o(e){_(s.$$.fragment,e),i=!1},d(e){e&&(c(n),c(o)),y(s,e)}}}function kh($){let n,x="Example:",o,s,i;return s=new q({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMEluZmVyZW5jZUNsaWVudCUwQWNsaWVudCUyMCUzRCUyMEluZmVyZW5jZUNsaWVudCgpJTBBY2xpZW50LnZpc3VhbF9xdWVzdGlvbl9hbnN3ZXJpbmcoJTBBJTIwJTIwJTIwJTIwaW1hZ2UlM0QlMjJodHRwcyUzQSUyRiUyRmh1Z2dpbmdmYWNlLmNvJTJGZGF0YXNldHMlMkZtaXNoaWclMkZzYW1wbGVfaW1hZ2VzJTJGcmVzb2x2ZSUyRm1haW4lMkZ0aWdlci5qcGclMjIlMkMlMEElMjAlMjAlMjAlMjBxdWVzdGlvbiUzRCUyMldoYXQlMjBpcyUyMHRoZSUyMGFuaW1hbCUyMGRvaW5nJTNGJTIyJTBBKQ==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> InferenceClient
<span class="hljs-meta">&gt;&gt;&gt; </span>client = InferenceClient()
<span class="hljs-meta">&gt;&gt;&gt; </span>client.visual_question_answering(
<span class="hljs-meta">... </span>    image=<span class="hljs-string">&quot;https://huggingface.co/datasets/mishig/sample_images/resolve/main/tiger.jpg&quot;</span>,
<span class="hljs-meta">... </span>    question=<span class="hljs-string">&quot;What is the animal doing?&quot;</span>
<span class="hljs-meta">... </span>)
[{<span class="hljs-string">&#x27;score&#x27;</span>: <span class="hljs-number">0.778609573841095</span>, <span class="hljs-string">&#x27;answer&#x27;</span>: <span class="hljs-string">&#x27;laying down&#x27;</span>},{<span class="hljs-string">&#x27;score&#x27;</span>: <span class="hljs-number">0.6957435607910156</span>, <span class="hljs-string">&#x27;answer&#x27;</span>: <span class="hljs-string">&#x27;sitting&#x27;</span>}, ...]`,wrap:!1}}),{c(){n=p("p"),n.textContent=x,o=r(),h(s.$$.fragment)},l(e){n=g(e,"P",{"data-svelte-h":!0}),T(n)!=="svelte-11lpom8"&&(n.textContent=x),o=l(e),m(s.$$.fragment,e)},m(e,u){j(e,n,u),j(e,o,u),f(s,e,u),i=!0},p:J,i(e){i||(b(s.$$.fragment,e),i=!0)},o(e){_(s.$$.fragment,e),i=!1},d(e){e&&(c(n),c(o)),y(s,e)}}}function qh($){let n,x="Example:",o,s,i;return s=new q({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMEluZmVyZW5jZUNsaWVudCUwQWNsaWVudCUyMCUzRCUyMEluZmVyZW5jZUNsaWVudCgpJTBBdGV4dCUyMCUzRCUyMCglMEElMjAlMjAlMjAlMjAlMjJBJTIwbmV3JTIwbW9kZWwlMjBvZmZlcnMlMjBhbiUyMGV4cGxhbmF0aW9uJTIwZm9yJTIwaG93JTIwdGhlJTIwR2FsaWxlYW4lMjBzYXRlbGxpdGVzJTIwZm9ybWVkJTIwYXJvdW5kJTIwdGhlJTIwc29sYXIlMjBzeXN0ZW0ncyUyMiUwQSUyMCUyMCUyMCUyMCUyMmxhcmdlc3QlMjB3b3JsZC4lMjBLb25zdGFudGluJTIwQmF0eWdpbiUyMGRpZCUyMG5vdCUyMHNldCUyMG91dCUyMHRvJTIwc29sdmUlMjBvbmUlMjBvZiUyMHRoZSUyMHNvbGFyJTIwc3lzdGVtJ3MlMjBtb3N0JTIwcHV6emxpbmclMjIlMEElMjAlMjAlMjAlMjAlMjIlMjBteXN0ZXJpZXMlMjB3aGVuJTIwaGUlMjB3ZW50JTIwZm9yJTIwYSUyMHJ1biUyMHVwJTIwYSUyMGhpbGwlMjBpbiUyME5pY2UlMkMlMjBGcmFuY2UuJTIyJTBBKSUwQWxhYmVscyUyMCUzRCUyMCU1QiUyMnNwYWNlJTIwJTI2JTIwY29zbW9zJTIyJTJDJTIwJTIyc2NpZW50aWZpYyUyMGRpc2NvdmVyeSUyMiUyQyUyMCUyMm1pY3JvYmlvbG9neSUyMiUyQyUyMCUyMnJvYm90cyUyMiUyQyUyMCUyMmFyY2hlb2xvZ3klMjIlNUQlMEFjbGllbnQuemVyb19zaG90X2NsYXNzaWZpY2F0aW9uKHRleHQlMkMlMjBsYWJlbHMpJTBBY2xpZW50Lnplcm9fc2hvdF9jbGFzc2lmaWNhdGlvbih0ZXh0JTJDJTIwbGFiZWxzJTJDJTIwbXVsdGlfbGFiZWwlM0RUcnVlKQ==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> InferenceClient
<span class="hljs-meta">&gt;&gt;&gt; </span>client = InferenceClient()
<span class="hljs-meta">&gt;&gt;&gt; </span>text = (
<span class="hljs-meta">... </span>    <span class="hljs-string">&quot;A new model offers an explanation for how the Galilean satellites formed around the solar system&#x27;s&quot;</span>
<span class="hljs-meta">... </span>    <span class="hljs-string">&quot;largest world. Konstantin Batygin did not set out to solve one of the solar system&#x27;s most puzzling&quot;</span>
<span class="hljs-meta">... </span>    <span class="hljs-string">&quot; mysteries when he went for a run up a hill in Nice, France.&quot;</span>
<span class="hljs-meta">... </span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>labels = [<span class="hljs-string">&quot;space &amp; cosmos&quot;</span>, <span class="hljs-string">&quot;scientific discovery&quot;</span>, <span class="hljs-string">&quot;microbiology&quot;</span>, <span class="hljs-string">&quot;robots&quot;</span>, <span class="hljs-string">&quot;archeology&quot;</span>]
<span class="hljs-meta">&gt;&gt;&gt; </span>client.zero_shot_classification(text, labels)
[
    {<span class="hljs-string">&quot;label&quot;</span>: <span class="hljs-string">&quot;scientific discovery&quot;</span>, <span class="hljs-string">&quot;score&quot;</span>: <span class="hljs-number">0.7961668968200684</span>},
    {<span class="hljs-string">&quot;label&quot;</span>: <span class="hljs-string">&quot;space &amp; cosmos&quot;</span>, <span class="hljs-string">&quot;score&quot;</span>: <span class="hljs-number">0.18570658564567566</span>},
    {<span class="hljs-string">&quot;label&quot;</span>: <span class="hljs-string">&quot;microbiology&quot;</span>, <span class="hljs-string">&quot;score&quot;</span>: <span class="hljs-number">0.00730885099619627</span>},
    {<span class="hljs-string">&quot;label&quot;</span>: <span class="hljs-string">&quot;archeology&quot;</span>, <span class="hljs-string">&quot;score&quot;</span>: <span class="hljs-number">0.006258360575884581</span>},
    {<span class="hljs-string">&quot;label&quot;</span>: <span class="hljs-string">&quot;robots&quot;</span>, <span class="hljs-string">&quot;score&quot;</span>: <span class="hljs-number">0.004559356719255447</span>},
]
<span class="hljs-meta">&gt;&gt;&gt; </span>client.zero_shot_classification(text, labels, multi_label=<span class="hljs-literal">True</span>)
[
    {<span class="hljs-string">&quot;label&quot;</span>: <span class="hljs-string">&quot;scientific discovery&quot;</span>, <span class="hljs-string">&quot;score&quot;</span>: <span class="hljs-number">0.9829297661781311</span>},
    {<span class="hljs-string">&quot;label&quot;</span>: <span class="hljs-string">&quot;space &amp; cosmos&quot;</span>, <span class="hljs-string">&quot;score&quot;</span>: <span class="hljs-number">0.755190908908844</span>},
    {<span class="hljs-string">&quot;label&quot;</span>: <span class="hljs-string">&quot;microbiology&quot;</span>, <span class="hljs-string">&quot;score&quot;</span>: <span class="hljs-number">0.0005462635890580714</span>},
    {<span class="hljs-string">&quot;label&quot;</span>: <span class="hljs-string">&quot;archeology&quot;</span>, <span class="hljs-string">&quot;score&quot;</span>: <span class="hljs-number">0.00047131875180639327</span>},
    {<span class="hljs-string">&quot;label&quot;</span>: <span class="hljs-string">&quot;robots&quot;</span>, <span class="hljs-string">&quot;score&quot;</span>: <span class="hljs-number">0.00030448526376858354</span>},
]`,wrap:!1}}),{c(){n=p("p"),n.textContent=x,o=r(),h(s.$$.fragment)},l(e){n=g(e,"P",{"data-svelte-h":!0}),T(n)!=="svelte-11lpom8"&&(n.textContent=x),o=l(e),m(s.$$.fragment,e)},m(e,u){j(e,n,u),j(e,o,u),f(s,e,u),i=!0},p:J,i(e){i||(b(s.$$.fragment,e),i=!0)},o(e){_(s.$$.fragment,e),i=!1},d(e){e&&(c(n),c(o)),y(s,e)}}}function Zh($){let n,x="Example:",o,s,i;return s=new q({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMEluZmVyZW5jZUNsaWVudCUwQWNsaWVudCUyMCUzRCUyMEluZmVyZW5jZUNsaWVudCgpJTBBJTBBY2xpZW50Lnplcm9fc2hvdF9pbWFnZV9jbGFzc2lmaWNhdGlvbiglMEElMjAlMjAlMjAlMjAlMjJodHRwcyUzQSUyRiUyRnVwbG9hZC53aWtpbWVkaWEub3JnJTJGd2lraXBlZGlhJTJGY29tbW9ucyUyRnRodW1iJTJGNCUyRjQzJTJGQ3V0ZV9kb2cuanBnJTJGMzIwcHgtQ3V0ZV9kb2cuanBnJTIyJTJDJTBBJTIwJTIwJTIwJTIwbGFiZWxzJTNEJTVCJTIyZG9nJTIyJTJDJTIwJTIyY2F0JTIyJTJDJTIwJTIyaG9yc2UlMjIlNUQlMkMlMEEp",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> InferenceClient
<span class="hljs-meta">&gt;&gt;&gt; </span>client = InferenceClient()

<span class="hljs-meta">&gt;&gt;&gt; </span>client.zero_shot_image_classification(
<span class="hljs-meta">... </span>    <span class="hljs-string">&quot;https://upload.wikimedia.org/wikipedia/commons/thumb/4/43/Cute_dog.jpg/320px-Cute_dog.jpg&quot;</span>,
<span class="hljs-meta">... </span>    labels=[<span class="hljs-string">&quot;dog&quot;</span>, <span class="hljs-string">&quot;cat&quot;</span>, <span class="hljs-string">&quot;horse&quot;</span>],
<span class="hljs-meta">... </span>)
[{<span class="hljs-string">&quot;label&quot;</span>: <span class="hljs-string">&quot;dog&quot;</span>, <span class="hljs-string">&quot;score&quot;</span>: <span class="hljs-number">0.956</span>}, ...]`,wrap:!1}}),{c(){n=p("p"),n.textContent=x,o=r(),h(s.$$.fragment)},l(e){n=g(e,"P",{"data-svelte-h":!0}),T(n)!=="svelte-11lpom8"&&(n.textContent=x),o=l(e),m(s.$$.fragment,e)},m(e,u){j(e,n,u),j(e,o,u),f(s,e,u),i=!0},p:J,i(e){i||(b(s.$$.fragment,e),i=!0)},o(e){_(s.$$.fragment,e),i=!1},d(e){e&&(c(n),c(o)),y(s,e)}}}function Eh($){let n,x="Example:",o,s,i;return s=new q({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMEFzeW5jSW5mZXJlbmNlQ2xpZW50JTBBY2xpZW50JTIwJTNEJTIwQXN5bmNJbmZlcmVuY2VDbGllbnQoKSUwQWF3YWl0JTIwY2xpZW50LmF1ZGlvX2NsYXNzaWZpY2F0aW9uKCUyMmF1ZGlvLmZsYWMlMjIp",highlighted:`<span class="hljs-comment"># Must be run in an async context</span>
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> AsyncInferenceClient
<span class="hljs-meta">&gt;&gt;&gt; </span>client = AsyncInferenceClient()
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">await</span> client.audio_classification(<span class="hljs-string">&quot;audio.flac&quot;</span>)
[{<span class="hljs-string">&#x27;score&#x27;</span>: <span class="hljs-number">0.4976358711719513</span>, <span class="hljs-string">&#x27;label&#x27;</span>: <span class="hljs-string">&#x27;hap&#x27;</span>}, {<span class="hljs-string">&#x27;score&#x27;</span>: <span class="hljs-number">0.3677836060523987</span>, <span class="hljs-string">&#x27;label&#x27;</span>: <span class="hljs-string">&#x27;neu&#x27;</span>},...]`,wrap:!1}}),{c(){n=p("p"),n.textContent=x,o=r(),h(s.$$.fragment)},l(e){n=g(e,"P",{"data-svelte-h":!0}),T(n)!=="svelte-11lpom8"&&(n.textContent=x),o=l(e),m(s.$$.fragment,e)},m(e,u){j(e,n,u),j(e,o,u),f(s,e,u),i=!0},p:J,i(e){i||(b(s.$$.fragment,e),i=!0)},o(e){_(s.$$.fragment,e),i=!1},d(e){e&&(c(n),c(o)),y(s,e)}}}function Wh($){let n,x="Example:",o,s,i;return s=new q({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMEFzeW5jSW5mZXJlbmNlQ2xpZW50JTBBY2xpZW50JTIwJTNEJTIwQXN5bmNJbmZlcmVuY2VDbGllbnQoKSUwQWF3YWl0JTIwY2xpZW50LmF1dG9tYXRpY19zcGVlY2hfcmVjb2duaXRpb24oJTIyaGVsbG9fd29ybGQuZmxhYyUyMik=",highlighted:`<span class="hljs-comment"># Must be run in an async context</span>
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> AsyncInferenceClient
<span class="hljs-meta">&gt;&gt;&gt; </span>client = AsyncInferenceClient()
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">await</span> client.automatic_speech_recognition(<span class="hljs-string">&quot;hello_world.flac&quot;</span>)
<span class="hljs-string">&quot;hello world&quot;</span>`,wrap:!1}}),{c(){n=p("p"),n.textContent=x,o=r(),h(s.$$.fragment)},l(e){n=g(e,"P",{"data-svelte-h":!0}),T(n)!=="svelte-11lpom8"&&(n.textContent=x),o=l(e),m(s.$$.fragment,e)},m(e,u){j(e,n,u),j(e,o,u),f(s,e,u),i=!0},p:J,i(e){i||(b(s.$$.fragment,e),i=!0)},o(e){_(s.$$.fragment,e),i=!1},d(e){e&&(c(n),c(o)),y(s,e)}}}function Nh($){let n,x="Example:",o,s,i;return s=new q({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMEFzeW5jSW5mZXJlbmNlQ2xpZW50JTBBY2xpZW50JTIwJTNEJTIwQXN5bmNJbmZlcmVuY2VDbGllbnQoKSUwQW91dHB1dCUyMCUzRCUyMGF3YWl0JTIwY2xpZW50LmNvbnZlcnNhdGlvbmFsKCUyMkhpJTJDJTIwd2hvJTIwYXJlJTIweW91JTNGJTIyKSUwQW91dHB1dCUwQWF3YWl0JTIwY2xpZW50LmNvbnZlcnNhdGlvbmFsKCUwQSUyMCUyMCUyMCUyMCUyMldvdyUyQyUyMHRoYXQncyUyMHNjYXJ5ISUyMiUyQyUwQSUyMCUyMCUyMCUyMGdlbmVyYXRlZF9yZXNwb25zZXMlM0RvdXRwdXQlNUIlMjJjb252ZXJzYXRpb24lMjIlNUQlNUIlMjJnZW5lcmF0ZWRfcmVzcG9uc2VzJTIyJTVEJTJDJTBBJTIwJTIwJTIwJTIwcGFzdF91c2VyX2lucHV0cyUzRG91dHB1dCU1QiUyMmNvbnZlcnNhdGlvbiUyMiU1RCU1QiUyMnBhc3RfdXNlcl9pbnB1dHMlMjIlNUQlMkMlMEEp",highlighted:`<span class="hljs-comment"># Must be run in an async context</span>
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> AsyncInferenceClient
<span class="hljs-meta">&gt;&gt;&gt; </span>client = AsyncInferenceClient()
<span class="hljs-meta">&gt;&gt;&gt; </span>output = <span class="hljs-keyword">await</span> client.conversational(<span class="hljs-string">&quot;Hi, who are you?&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>output
{<span class="hljs-string">&#x27;generated_text&#x27;</span>: <span class="hljs-string">&#x27;I am the one who knocks.&#x27;</span>, <span class="hljs-string">&#x27;conversation&#x27;</span>: {<span class="hljs-string">&#x27;generated_responses&#x27;</span>: [<span class="hljs-string">&#x27;I am the one who knocks.&#x27;</span>], <span class="hljs-string">&#x27;past_user_inputs&#x27;</span>: [<span class="hljs-string">&#x27;Hi, who are you?&#x27;</span>]}, <span class="hljs-string">&#x27;warnings&#x27;</span>: [<span class="hljs-string">&#x27;Setting \`pad_token_id\` to \`eos_token_id\`:50256 async for open-end generation.&#x27;</span>]}
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">await</span> client.conversational(
<span class="hljs-meta">... </span>    <span class="hljs-string">&quot;Wow, that&#x27;s scary!&quot;</span>,
<span class="hljs-meta">... </span>    generated_responses=output[<span class="hljs-string">&quot;conversation&quot;</span>][<span class="hljs-string">&quot;generated_responses&quot;</span>],
<span class="hljs-meta">... </span>    past_user_inputs=output[<span class="hljs-string">&quot;conversation&quot;</span>][<span class="hljs-string">&quot;past_user_inputs&quot;</span>],
<span class="hljs-meta">... </span>)`,wrap:!1}}),{c(){n=p("p"),n.textContent=x,o=r(),h(s.$$.fragment)},l(e){n=g(e,"P",{"data-svelte-h":!0}),T(n)!=="svelte-11lpom8"&&(n.textContent=x),o=l(e),m(s.$$.fragment,e)},m(e,u){j(e,n,u),j(e,o,u),f(s,e,u),i=!0},p:J,i(e){i||(b(s.$$.fragment,e),i=!0)},o(e){_(s.$$.fragment,e),i=!1},d(e){e&&(c(n),c(o)),y(s,e)}}}function Gh($){let n,x="Example:",o,s,i;return s=new q({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMEFzeW5jSW5mZXJlbmNlQ2xpZW50JTBBY2xpZW50JTIwJTNEJTIwQXN5bmNJbmZlcmVuY2VDbGllbnQoKSUwQWF3YWl0JTIwY2xpZW50LmRvY3VtZW50X3F1ZXN0aW9uX2Fuc3dlcmluZyhpbWFnZSUzRCUyMmh0dHBzJTNBJTJGJTJGaHVnZ2luZ2ZhY2UuY28lMkZzcGFjZXMlMkZpbXBpcmElMkZkb2NxdWVyeSUyRnJlc29sdmUlMkYyMzU5MjIzYzE4MzdhNzU4NzQwMmJkYTBmMjY0MzM4MmE2ZWVmZWFiJTJGaW52b2ljZS5wbmclMjIlMkMlMjBxdWVzdGlvbiUzRCUyMldoYXQlMjBpcyUyMHRoZSUyMGludm9pY2UlMjBudW1iZXIlM0YlMjIp",highlighted:`<span class="hljs-comment"># Must be run in an async context</span>
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> AsyncInferenceClient
<span class="hljs-meta">&gt;&gt;&gt; </span>client = AsyncInferenceClient()
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">await</span> client.document_question_answering(image=<span class="hljs-string">&quot;https://huggingface.co/spaces/impira/docquery/resolve/2359223c1837a7587402bda0f2643382a6eefeab/invoice.png&quot;</span>, question=<span class="hljs-string">&quot;What is the invoice number?&quot;</span>)
[{<span class="hljs-string">&#x27;score&#x27;</span>: <span class="hljs-number">0.42515629529953003</span>, <span class="hljs-string">&#x27;answer&#x27;</span>: <span class="hljs-string">&#x27;us-001&#x27;</span>, <span class="hljs-string">&#x27;start&#x27;</span>: <span class="hljs-number">16</span>, <span class="hljs-string">&#x27;end&#x27;</span>: <span class="hljs-number">16</span>}]`,wrap:!1}}),{c(){n=p("p"),n.textContent=x,o=r(),h(s.$$.fragment)},l(e){n=g(e,"P",{"data-svelte-h":!0}),T(n)!=="svelte-11lpom8"&&(n.textContent=x),o=l(e),m(s.$$.fragment,e)},m(e,u){j(e,n,u),j(e,o,u),f(s,e,u),i=!0},p:J,i(e){i||(b(s.$$.fragment,e),i=!0)},o(e){_(s.$$.fragment,e),i=!1},d(e){e&&(c(n),c(o)),y(s,e)}}}function Vh($){let n,x="Example:",o,s,i;return s=new q({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMEFzeW5jSW5mZXJlbmNlQ2xpZW50JTBBY2xpZW50JTIwJTNEJTIwQXN5bmNJbmZlcmVuY2VDbGllbnQoKSUwQWF3YWl0JTIwY2xpZW50LmZlYXR1cmVfZXh0cmFjdGlvbiglMjJIaSUyQyUyMHdobyUyMGFyZSUyMHlvdSUzRiUyMik=",highlighted:`<span class="hljs-comment"># Must be run in an async context</span>
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> AsyncInferenceClient
<span class="hljs-meta">&gt;&gt;&gt; </span>client = AsyncInferenceClient()
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">await</span> client.feature_extraction(<span class="hljs-string">&quot;Hi, who are you?&quot;</span>)
array([[ <span class="hljs-number">2.424802</span>  ,  <span class="hljs-number">2.93384</span>   ,  <span class="hljs-number">1.1750331</span> , ...,  <span class="hljs-number">1.240499</span>, -<span class="hljs-number">0.13776633</span>, -<span class="hljs-number">0.7889173</span> ],
[-<span class="hljs-number">0.42943227</span>, -<span class="hljs-number">0.6364878</span> , -<span class="hljs-number">1.693462</span>  , ...,  <span class="hljs-number">0.41978157</span>, -<span class="hljs-number">2.4336355</span> ,  <span class="hljs-number">0.6162071</span> ],
...,
[ <span class="hljs-number">0.28552425</span>, -<span class="hljs-number">0.928395</span>  , -<span class="hljs-number">1.2077185</span> , ...,  <span class="hljs-number">0.76810825</span>, -<span class="hljs-number">2.1069427</span> ,  <span class="hljs-number">0.6236161</span> ]], dtype=float32)`,wrap:!1}}),{c(){n=p("p"),n.textContent=x,o=r(),h(s.$$.fragment)},l(e){n=g(e,"P",{"data-svelte-h":!0}),T(n)!=="svelte-11lpom8"&&(n.textContent=x),o=l(e),m(s.$$.fragment,e)},m(e,u){j(e,n,u),j(e,o,u),f(s,e,u),i=!0},p:J,i(e){i||(b(s.$$.fragment,e),i=!0)},o(e){_(s.$$.fragment,e),i=!1},d(e){e&&(c(n),c(o)),y(s,e)}}}function Dh($){let n,x="Example:",o,s,i;return s=new q({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMEFzeW5jSW5mZXJlbmNlQ2xpZW50JTBBY2xpZW50JTIwJTNEJTIwQXN5bmNJbmZlcmVuY2VDbGllbnQoKSUwQWF3YWl0JTIwY2xpZW50LmZpbGxfbWFzayglMjJUaGUlMjBnb2FsJTIwb2YlMjBsaWZlJTIwaXMlMjAlM0NtYXNrJTNFLiUyMik=",highlighted:`<span class="hljs-comment"># Must be run in an async context</span>
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> AsyncInferenceClient
<span class="hljs-meta">&gt;&gt;&gt; </span>client = AsyncInferenceClient()
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">await</span> client.fill_mask(<span class="hljs-string">&quot;The goal of life is &lt;mask&gt;.&quot;</span>)
[{<span class="hljs-string">&#x27;score&#x27;</span>: <span class="hljs-number">0.06897063553333282</span>,
<span class="hljs-string">&#x27;token&#x27;</span>: <span class="hljs-number">11098</span>,
<span class="hljs-string">&#x27;token_str&#x27;</span>: <span class="hljs-string">&#x27; happiness&#x27;</span>,
<span class="hljs-string">&#x27;sequence&#x27;</span>: <span class="hljs-string">&#x27;The goal of life is happiness.&#x27;</span>},
{<span class="hljs-string">&#x27;score&#x27;</span>: <span class="hljs-number">0.06554922461509705</span>,
<span class="hljs-string">&#x27;token&#x27;</span>: <span class="hljs-number">45075</span>,
<span class="hljs-string">&#x27;token_str&#x27;</span>: <span class="hljs-string">&#x27; immortality&#x27;</span>,
<span class="hljs-string">&#x27;sequence&#x27;</span>: <span class="hljs-string">&#x27;The goal of life is immortality.&#x27;</span>}]`,wrap:!1}}),{c(){n=p("p"),n.textContent=x,o=r(),h(s.$$.fragment)},l(e){n=g(e,"P",{"data-svelte-h":!0}),T(n)!=="svelte-11lpom8"&&(n.textContent=x),o=l(e),m(s.$$.fragment,e)},m(e,u){j(e,n,u),j(e,o,u),f(s,e,u),i=!0},p:J,i(e){i||(b(s.$$.fragment,e),i=!0)},o(e){_(s.$$.fragment,e),i=!1},d(e){e&&(c(n),c(o)),y(s,e)}}}function Rh($){let n,x=`This endpoint is mostly useful when you already know which model you want to use and want to check its
availability. If you want to discover already deployed models, you should rather use <a href="/docs/huggingface_hub/v0.18.0.rc0/en/package_reference/inference_client#huggingface_hub.InferenceClient.list_deployed_models">list_deployed_models()</a>.`;return{c(){n=p("p"),n.innerHTML=x},l(o){n=g(o,"P",{"data-svelte-h":!0}),T(n)!=="svelte-17g0vya"&&(n.innerHTML=x)},m(o,s){j(o,n,s)},p:J,d(o){o&&c(n)}}}function Yh($){let n,x="Example:",o,s,i;return s=new q({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMEFzeW5jSW5mZXJlbmNlQ2xpZW50JTBBY2xpZW50JTIwJTNEJTIwQXN5bmNJbmZlcmVuY2VDbGllbnQoKSUwQWF3YWl0JTIwY2xpZW50LmdldF9tb2RlbF9zdGF0dXMoJTIyYmlnY29kZSUyRnN0YXJjb2RlciUyMik=",highlighted:`<span class="hljs-comment"># Must be run in an async context</span>
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> AsyncInferenceClient
<span class="hljs-meta">&gt;&gt;&gt; </span>client = AsyncInferenceClient()
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">await</span> client.get_model_status(<span class="hljs-string">&quot;bigcode/starcoder&quot;</span>)
ModelStatus(loaded=<span class="hljs-literal">True</span>, state=<span class="hljs-string">&#x27;Loaded&#x27;</span>, compute_type=<span class="hljs-string">&#x27;gpu&#x27;</span>, framework=<span class="hljs-string">&#x27;text-generation-inference&#x27;</span>)`,wrap:!1}}),{c(){n=p("p"),n.textContent=x,o=r(),h(s.$$.fragment)},l(e){n=g(e,"P",{"data-svelte-h":!0}),T(n)!=="svelte-11lpom8"&&(n.textContent=x),o=l(e),m(s.$$.fragment,e)},m(e,u){j(e,n,u),j(e,o,u),f(s,e,u),i=!0},p:J,i(e){i||(b(s.$$.fragment,e),i=!0)},o(e){_(s.$$.fragment,e),i=!1},d(e){e&&(c(n),c(o)),y(s,e)}}}function Bh($){let n,x="Example:",o,s,i;return s=new q({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMEFzeW5jSW5mZXJlbmNlQ2xpZW50JTBBY2xpZW50JTIwJTNEJTIwQXN5bmNJbmZlcmVuY2VDbGllbnQoKSUwQWF3YWl0JTIwY2xpZW50LmltYWdlX2NsYXNzaWZpY2F0aW9uKCUyMmh0dHBzJTNBJTJGJTJGdXBsb2FkLndpa2ltZWRpYS5vcmclMkZ3aWtpcGVkaWElMkZjb21tb25zJTJGdGh1bWIlMkY0JTJGNDMlMkZDdXRlX2RvZy5qcGclMkYzMjBweC1DdXRlX2RvZy5qcGclMjIp",highlighted:`<span class="hljs-comment"># Must be run in an async context</span>
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> AsyncInferenceClient
<span class="hljs-meta">&gt;&gt;&gt; </span>client = AsyncInferenceClient()
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">await</span> client.image_classification(<span class="hljs-string">&quot;https://upload.wikimedia.org/wikipedia/commons/thumb/4/43/Cute_dog.jpg/320px-Cute_dog.jpg&quot;</span>)
[{<span class="hljs-string">&#x27;score&#x27;</span>: <span class="hljs-number">0.9779096841812134</span>, <span class="hljs-string">&#x27;label&#x27;</span>: <span class="hljs-string">&#x27;Blenheim spaniel&#x27;</span>}, ...]`,wrap:!1}}),{c(){n=p("p"),n.textContent=x,o=r(),h(s.$$.fragment)},l(e){n=g(e,"P",{"data-svelte-h":!0}),T(n)!=="svelte-11lpom8"&&(n.textContent=x),o=l(e),m(s.$$.fragment,e)},m(e,u){j(e,n,u),j(e,o,u),f(s,e,u),i=!0},p:J,i(e){i||(b(s.$$.fragment,e),i=!0)},o(e){_(s.$$.fragment,e),i=!1},d(e){e&&(c(n),c(o)),y(s,e)}}}function Ah($){let n,x="You must have <code>PIL</code> installed if you want to work with images (<code>pip install Pillow</code>).";return{c(){n=p("p"),n.innerHTML=x},l(o){n=g(o,"P",{"data-svelte-h":!0}),T(n)!=="svelte-s2e3n9"&&(n.innerHTML=x)},m(o,s){j(o,n,s)},p:J,d(o){o&&c(n)}}}function Hh($){let n,x="Example:",o,s,i;return s=new q({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMEFzeW5jSW5mZXJlbmNlQ2xpZW50JTBBY2xpZW50JTIwJTNEJTIwQXN5bmNJbmZlcmVuY2VDbGllbnQoKSUwQWF3YWl0JTIwY2xpZW50LmltYWdlX3NlZ21lbnRhdGlvbiglMjJjYXQuanBnJTIyKSUzQQ==",highlighted:`<span class="hljs-comment"># Must be run in an async context</span>
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> AsyncInferenceClient
<span class="hljs-meta">&gt;&gt;&gt; </span>client = AsyncInferenceClient()
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">await</span> client.image_segmentation(<span class="hljs-string">&quot;cat.jpg&quot;</span>):
[{<span class="hljs-string">&#x27;score&#x27;</span>: <span class="hljs-number">0.989008</span>, <span class="hljs-string">&#x27;label&#x27;</span>: <span class="hljs-string">&#x27;LABEL_184&#x27;</span>, <span class="hljs-string">&#x27;mask&#x27;</span>: &lt;PIL.PngImagePlugin.PngImageFile image mode=L size=400x300 at <span class="hljs-number">0x7FDD2B129CC0</span>&gt;}, ...]`,wrap:!1}}),{c(){n=p("p"),n.textContent=x,o=r(),h(s.$$.fragment)},l(e){n=g(e,"P",{"data-svelte-h":!0}),T(n)!=="svelte-11lpom8"&&(n.textContent=x),o=l(e),m(s.$$.fragment,e)},m(e,u){j(e,n,u),j(e,o,u),f(s,e,u),i=!0},p:J,i(e){i||(b(s.$$.fragment,e),i=!0)},o(e){_(s.$$.fragment,e),i=!1},d(e){e&&(c(n),c(o)),y(s,e)}}}function Ph($){let n,x="You must have <code>PIL</code> installed if you want to work with images (<code>pip install Pillow</code>).";return{c(){n=p("p"),n.innerHTML=x},l(o){n=g(o,"P",{"data-svelte-h":!0}),T(n)!=="svelte-s2e3n9"&&(n.innerHTML=x)},m(o,s){j(o,n,s)},p:J,d(o){o&&c(n)}}}function Lh($){let n,x="Example:",o,s,i;return s=new q({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMEFzeW5jSW5mZXJlbmNlQ2xpZW50JTBBY2xpZW50JTIwJTNEJTIwQXN5bmNJbmZlcmVuY2VDbGllbnQoKSUwQWltYWdlJTIwJTNEJTIwYXdhaXQlMjBjbGllbnQuaW1hZ2VfdG9faW1hZ2UoJTIyY2F0LmpwZyUyMiUyQyUyMHByb21wdCUzRCUyMnR1cm4lMjB0aGUlMjBjYXQlMjBpbnRvJTIwYSUyMHRpZ2VyJTIyKSUwQWltYWdlLnNhdmUoJTIydGlnZXIuanBnJTIyKQ==",highlighted:`<span class="hljs-comment"># Must be run in an async context</span>
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> AsyncInferenceClient
<span class="hljs-meta">&gt;&gt;&gt; </span>client = AsyncInferenceClient()
<span class="hljs-meta">&gt;&gt;&gt; </span>image = <span class="hljs-keyword">await</span> client.image_to_image(<span class="hljs-string">&quot;cat.jpg&quot;</span>, prompt=<span class="hljs-string">&quot;turn the cat into a tiger&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>image.save(<span class="hljs-string">&quot;tiger.jpg&quot;</span>)`,wrap:!1}}),{c(){n=p("p"),n.textContent=x,o=r(),h(s.$$.fragment)},l(e){n=g(e,"P",{"data-svelte-h":!0}),T(n)!=="svelte-11lpom8"&&(n.textContent=x),o=l(e),m(s.$$.fragment,e)},m(e,u){j(e,n,u),j(e,o,u),f(s,e,u),i=!0},p:J,i(e){i||(b(s.$$.fragment,e),i=!0)},o(e){_(s.$$.fragment,e),i=!1},d(e){e&&(c(n),c(o)),y(s,e)}}}function Qh($){let n,x="Example:",o,s,i;return s=new q({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMEFzeW5jSW5mZXJlbmNlQ2xpZW50JTBBY2xpZW50JTIwJTNEJTIwQXN5bmNJbmZlcmVuY2VDbGllbnQoKSUwQWF3YWl0JTIwY2xpZW50LmltYWdlX3RvX3RleHQoJTIyY2F0LmpwZyUyMiklMEFhd2FpdCUyMGNsaWVudC5pbWFnZV90b190ZXh0KCUyMmh0dHBzJTNBJTJGJTJGdXBsb2FkLndpa2ltZWRpYS5vcmclMkZ3aWtpcGVkaWElMkZjb21tb25zJTJGdGh1bWIlMkY0JTJGNDMlMkZDdXRlX2RvZy5qcGclMkYzMjBweC1DdXRlX2RvZy5qcGclMjIp",highlighted:`<span class="hljs-comment"># Must be run in an async context</span>
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> AsyncInferenceClient
<span class="hljs-meta">&gt;&gt;&gt; </span>client = AsyncInferenceClient()
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">await</span> client.image_to_text(<span class="hljs-string">&quot;cat.jpg&quot;</span>)
<span class="hljs-string">&#x27;a cat standing in a grassy field &#x27;</span>
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">await</span> client.image_to_text(<span class="hljs-string">&quot;https://upload.wikimedia.org/wikipedia/commons/thumb/4/43/Cute_dog.jpg/320px-Cute_dog.jpg&quot;</span>)
<span class="hljs-string">&#x27;a dog laying on the grass next to a flower pot &#x27;</span>`,wrap:!1}}),{c(){n=p("p"),n.textContent=x,o=r(),h(s.$$.fragment)},l(e){n=g(e,"P",{"data-svelte-h":!0}),T(n)!=="svelte-11lpom8"&&(n.textContent=x),o=l(e),m(s.$$.fragment,e)},m(e,u){j(e,n,u),j(e,o,u),f(s,e,u),i=!0},p:J,i(e){i||(b(s.$$.fragment,e),i=!0)},o(e){_(s.$$.fragment,e),i=!1},d(e){e&&(c(n),c(o)),y(s,e)}}}function Fh($){let n,x=`This endpoint is mostly useful for discoverability. If you already know which model you want to use and want to
check its availability, you can directly use <a href="/docs/huggingface_hub/v0.18.0.rc0/en/package_reference/inference_client#huggingface_hub.InferenceClient.get_model_status">get_model_status()</a>.`;return{c(){n=p("p"),n.innerHTML=x},l(o){n=g(o,"P",{"data-svelte-h":!0}),T(n)!=="svelte-1bitoyu"&&(n.innerHTML=x)},m(o,s){j(o,n,s)},p:J,d(o){o&&c(n)}}}function Sh($){let n,x="Example:",o,s,i;return s=new q({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMEFzeW5jSW5mZXJlbmNlQ2xpZW50JTBBY2xpZW50JTIwJTNEJTIwQXN5bmNJbmZlcmVuY2VDbGllbnQoKSUwQSUwQW1vZGVscyUyMCUzRCUyMGF3YWl0JTIwY2xpZW50Lmxpc3RfZGVwbG95ZWRfbW9kZWxzKCklMEFtb2RlbHMlNUIlMjJ6ZXJvLXNob3QtY2xhc3NpZmljYXRpb24lMjIlNUQlMEElMEFhd2FpdCUyMGNsaWVudC5saXN0X2RlcGxveWVkX21vZGVscyglMjJ0ZXh0LWdlbmVyYXRpb24taW5mZXJlbmNlJTIyKQ==",highlighted:`<span class="hljs-comment"># Must be run in an async contextthon</span>
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> AsyncInferenceClient
<span class="hljs-meta">&gt;&gt;&gt; </span>client = AsyncInferenceClient()

<span class="hljs-comment"># Discover zero-shot-classification models currently deployed</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>models = <span class="hljs-keyword">await</span> client.list_deployed_models()
<span class="hljs-meta">&gt;&gt;&gt; </span>models[<span class="hljs-string">&quot;zero-shot-classification&quot;</span>]
[<span class="hljs-string">&#x27;Narsil/deberta-large-mnli-zero-cls&#x27;</span>, <span class="hljs-string">&#x27;facebook/bart-large-mnli&#x27;</span>, ...]

<span class="hljs-comment"># List from only 1 framework</span>
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">await</span> client.list_deployed_models(<span class="hljs-string">&quot;text-generation-inference&quot;</span>)
{<span class="hljs-string">&#x27;text-generation&#x27;</span>: [<span class="hljs-string">&#x27;bigcode/starcoder&#x27;</span>, <span class="hljs-string">&#x27;meta-llama/Llama-2-70b-chat-hf&#x27;</span>, ...], ...}`,wrap:!1}}),{c(){n=p("p"),n.textContent=x,o=r(),h(s.$$.fragment)},l(e){n=g(e,"P",{"data-svelte-h":!0}),T(n)!=="svelte-11lpom8"&&(n.textContent=x),o=l(e),m(s.$$.fragment,e)},m(e,u){j(e,n,u),j(e,o,u),f(s,e,u),i=!0},p:J,i(e){i||(b(s.$$.fragment,e),i=!0)},o(e){_(s.$$.fragment,e),i=!1},d(e){e&&(c(n),c(o)),y(s,e)}}}function Xh($){let n,x="You must have <code>PIL</code> installed if you want to work with images (<code>pip install Pillow</code>).";return{c(){n=p("p"),n.innerHTML=x},l(o){n=g(o,"P",{"data-svelte-h":!0}),T(n)!=="svelte-s2e3n9"&&(n.innerHTML=x)},m(o,s){j(o,n,s)},p:J,d(o){o&&c(n)}}}function zh($){let n,x="Example:",o,s,i;return s=new q({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMEFzeW5jSW5mZXJlbmNlQ2xpZW50JTBBY2xpZW50JTIwJTNEJTIwQXN5bmNJbmZlcmVuY2VDbGllbnQoKSUwQWF3YWl0JTIwY2xpZW50Lm9iamVjdF9kZXRlY3Rpb24oJTIycGVvcGxlLmpwZyUyMiklM0E=",highlighted:`<span class="hljs-comment"># Must be run in an async context</span>
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> AsyncInferenceClient
<span class="hljs-meta">&gt;&gt;&gt; </span>client = AsyncInferenceClient()
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">await</span> client.object_detection(<span class="hljs-string">&quot;people.jpg&quot;</span>):
[{<span class="hljs-string">&quot;score&quot;</span>:<span class="hljs-number">0.9486683011054993</span>,<span class="hljs-string">&quot;label&quot;</span>:<span class="hljs-string">&quot;person&quot;</span>,<span class="hljs-string">&quot;box&quot;</span>:{<span class="hljs-string">&quot;xmin&quot;</span>:<span class="hljs-number">59</span>,<span class="hljs-string">&quot;ymin&quot;</span>:<span class="hljs-number">39</span>,<span class="hljs-string">&quot;xmax&quot;</span>:<span class="hljs-number">420</span>,<span class="hljs-string">&quot;ymax&quot;</span>:<span class="hljs-number">510</span>}}, ... ]`,wrap:!1}}),{c(){n=p("p"),n.textContent=x,o=r(),h(s.$$.fragment)},l(e){n=g(e,"P",{"data-svelte-h":!0}),T(n)!=="svelte-11lpom8"&&(n.textContent=x),o=l(e),m(s.$$.fragment,e)},m(e,u){j(e,n,u),j(e,o,u),f(s,e,u),i=!0},p:J,i(e){i||(b(s.$$.fragment,e),i=!0)},o(e){_(s.$$.fragment,e),i=!1},d(e){e&&(c(n),c(o)),y(s,e)}}}function Oh($){let n,x="Example:",o,s,i;return s=new q({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMEFzeW5jSW5mZXJlbmNlQ2xpZW50JTBBY2xpZW50JTIwJTNEJTIwQXN5bmNJbmZlcmVuY2VDbGllbnQoKSUwQWF3YWl0JTIwY2xpZW50LnF1ZXN0aW9uX2Fuc3dlcmluZyhxdWVzdGlvbiUzRCUyMldoYXQncyUyMG15JTIwbmFtZSUzRiUyMiUyQyUyMGNvbnRleHQlM0QlMjJNeSUyMG5hbWUlMjBpcyUyMENsYXJhJTIwYW5kJTIwSSUyMGxpdmUlMjBpbiUyMEJlcmtlbGV5LiUyMik=",highlighted:`<span class="hljs-comment"># Must be run in an async context</span>
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> AsyncInferenceClient
<span class="hljs-meta">&gt;&gt;&gt; </span>client = AsyncInferenceClient()
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">await</span> client.question_answering(question=<span class="hljs-string">&quot;What&#x27;s my name?&quot;</span>, context=<span class="hljs-string">&quot;My name is Clara and I live in Berkeley.&quot;</span>)
{<span class="hljs-string">&#x27;score&#x27;</span>: <span class="hljs-number">0.9326562285423279</span>, <span class="hljs-string">&#x27;start&#x27;</span>: <span class="hljs-number">11</span>, <span class="hljs-string">&#x27;end&#x27;</span>: <span class="hljs-number">16</span>, <span class="hljs-string">&#x27;answer&#x27;</span>: <span class="hljs-string">&#x27;Clara&#x27;</span>}`,wrap:!1}}),{c(){n=p("p"),n.textContent=x,o=r(),h(s.$$.fragment)},l(e){n=g(e,"P",{"data-svelte-h":!0}),T(n)!=="svelte-11lpom8"&&(n.textContent=x),o=l(e),m(s.$$.fragment,e)},m(e,u){j(e,n,u),j(e,o,u),f(s,e,u),i=!0},p:J,i(e){i||(b(s.$$.fragment,e),i=!0)},o(e){_(s.$$.fragment,e),i=!1},d(e){e&&(c(n),c(o)),y(s,e)}}}function Kh($){let n,x="Example:",o,s,i;return s=new q({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMEFzeW5jSW5mZXJlbmNlQ2xpZW50JTBBY2xpZW50JTIwJTNEJTIwQXN5bmNJbmZlcmVuY2VDbGllbnQoKSUwQWF3YWl0JTIwY2xpZW50LnNlbnRlbmNlX3NpbWlsYXJpdHkoJTBBJTIwJTIwJTIwJTIwJTIyTWFjaGluZSUyMGxlYXJuaW5nJTIwaXMlMjBzbyUyMGVhc3kuJTIyJTJDJTBBJTIwJTIwJTIwJTIwb3RoZXJfc2VudGVuY2VzJTNEJTVCJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIyRGVlcCUyMGxlYXJuaW5nJTIwaXMlMjBzbyUyMHN0cmFpZ2h0Zm9yd2FyZC4lMjIlMkMlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjJUaGlzJTIwaXMlMjBzbyUyMGRpZmZpY3VsdCUyQyUyMGxpa2UlMjByb2NrZXQlMjBzY2llbmNlLiUyMiUyQyUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMkklMjBjYW4ndCUyMGJlbGlldmUlMjBob3clMjBtdWNoJTIwSSUyMHN0cnVnZ2xlZCUyMHdpdGglMjB0aGlzLiUyMiUyQyUwQSUyMCUyMCUyMCUyMCU1RCUyQyUwQSk=",highlighted:`<span class="hljs-comment"># Must be run in an async context</span>
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> AsyncInferenceClient
<span class="hljs-meta">&gt;&gt;&gt; </span>client = AsyncInferenceClient()
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">await</span> client.sentence_similarity(
<span class="hljs-meta">... </span>    <span class="hljs-string">&quot;Machine learning is so easy.&quot;</span>,
<span class="hljs-meta">... </span>    other_sentences=[
<span class="hljs-meta">... </span>        <span class="hljs-string">&quot;Deep learning is so straightforward.&quot;</span>,
<span class="hljs-meta">... </span>        <span class="hljs-string">&quot;This is so difficult, like rocket science.&quot;</span>,
<span class="hljs-meta">... </span>        <span class="hljs-string">&quot;I can&#x27;t believe how much I struggled with this.&quot;</span>,
<span class="hljs-meta">... </span>    ],
<span class="hljs-meta">... </span>)
[<span class="hljs-number">0.7785726189613342</span>, <span class="hljs-number">0.45876261591911316</span>, <span class="hljs-number">0.2906220555305481</span>]`,wrap:!1}}),{c(){n=p("p"),n.textContent=x,o=r(),h(s.$$.fragment)},l(e){n=g(e,"P",{"data-svelte-h":!0}),T(n)!=="svelte-11lpom8"&&(n.textContent=x),o=l(e),m(s.$$.fragment,e)},m(e,u){j(e,n,u),j(e,o,u),f(s,e,u),i=!0},p:J,i(e){i||(b(s.$$.fragment,e),i=!0)},o(e){_(s.$$.fragment,e),i=!1},d(e){e&&(c(n),c(o)),y(s,e)}}}function em($){let n,x="Example:",o,s,i;return s=new q({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMEFzeW5jSW5mZXJlbmNlQ2xpZW50JTBBY2xpZW50JTIwJTNEJTIwQXN5bmNJbmZlcmVuY2VDbGllbnQoKSUwQWF3YWl0JTIwY2xpZW50LnN1bW1hcml6YXRpb24oJTIyVGhlJTIwRWlmZmVsJTIwdG93ZXIuLi4lMjIp",highlighted:`<span class="hljs-comment"># Must be run in an async context</span>
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> AsyncInferenceClient
<span class="hljs-meta">&gt;&gt;&gt; </span>client = AsyncInferenceClient()
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">await</span> client.summarization(<span class="hljs-string">&quot;The Eiffel tower...&quot;</span>)
<span class="hljs-string">&#x27;The Eiffel tower is one of the most famous landmarks in the world....&#x27;</span>`,wrap:!1}}),{c(){n=p("p"),n.textContent=x,o=r(),h(s.$$.fragment)},l(e){n=g(e,"P",{"data-svelte-h":!0}),T(n)!=="svelte-11lpom8"&&(n.textContent=x),o=l(e),m(s.$$.fragment,e)},m(e,u){j(e,n,u),j(e,o,u),f(s,e,u),i=!0},p:J,i(e){i||(b(s.$$.fragment,e),i=!0)},o(e){_(s.$$.fragment,e),i=!1},d(e){e&&(c(n),c(o)),y(s,e)}}}function nm($){let n,x="Example:",o,s,i;return s=new q({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMEFzeW5jSW5mZXJlbmNlQ2xpZW50JTBBY2xpZW50JTIwJTNEJTIwQXN5bmNJbmZlcmVuY2VDbGllbnQoKSUwQXF1ZXJ5JTIwJTNEJTIwJTIySG93JTIwbWFueSUyMHN0YXJzJTIwZG9lcyUyMHRoZSUyMHRyYW5zZm9ybWVycyUyMHJlcG9zaXRvcnklMjBoYXZlJTNGJTIyJTBBdGFibGUlMjAlM0QlMjAlN0IlMjJSZXBvc2l0b3J5JTIyJTNBJTIwJTVCJTIyVHJhbnNmb3JtZXJzJTIyJTJDJTIwJTIyRGF0YXNldHMlMjIlMkMlMjAlMjJUb2tlbml6ZXJzJTIyJTVEJTJDJTIwJTIyU3RhcnMlMjIlM0ElMjAlNUIlMjIzNjU0MiUyMiUyQyUyMCUyMjQ1MTIlMjIlMkMlMjAlMjIzOTM0JTIyJTVEJTdEJTBBYXdhaXQlMjBjbGllbnQudGFibGVfcXVlc3Rpb25fYW5zd2VyaW5nKHRhYmxlJTJDJTIwcXVlcnklMkMlMjBtb2RlbCUzRCUyMmdvb2dsZSUyRnRhcGFzLWJhc2UtZmluZXR1bmVkLXd0cSUyMik=",highlighted:`<span class="hljs-comment"># Must be run in an async context</span>
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> AsyncInferenceClient
<span class="hljs-meta">&gt;&gt;&gt; </span>client = AsyncInferenceClient()
<span class="hljs-meta">&gt;&gt;&gt; </span>query = <span class="hljs-string">&quot;How many stars does the transformers repository have?&quot;</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>table = {<span class="hljs-string">&quot;Repository&quot;</span>: [<span class="hljs-string">&quot;Transformers&quot;</span>, <span class="hljs-string">&quot;Datasets&quot;</span>, <span class="hljs-string">&quot;Tokenizers&quot;</span>], <span class="hljs-string">&quot;Stars&quot;</span>: [<span class="hljs-string">&quot;36542&quot;</span>, <span class="hljs-string">&quot;4512&quot;</span>, <span class="hljs-string">&quot;3934&quot;</span>]}
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">await</span> client.table_question_answering(table, query, model=<span class="hljs-string">&quot;google/tapas-base-finetuned-wtq&quot;</span>)
{<span class="hljs-string">&#x27;answer&#x27;</span>: <span class="hljs-string">&#x27;AVERAGE &gt; 36542&#x27;</span>, <span class="hljs-string">&#x27;coordinates&#x27;</span>: [[<span class="hljs-number">0</span>, <span class="hljs-number">1</span>]], <span class="hljs-string">&#x27;cells&#x27;</span>: [<span class="hljs-string">&#x27;36542&#x27;</span>], <span class="hljs-string">&#x27;aggregator&#x27;</span>: <span class="hljs-string">&#x27;AVERAGE&#x27;</span>}`,wrap:!1}}),{c(){n=p("p"),n.textContent=x,o=r(),h(s.$$.fragment)},l(e){n=g(e,"P",{"data-svelte-h":!0}),T(n)!=="svelte-11lpom8"&&(n.textContent=x),o=l(e),m(s.$$.fragment,e)},m(e,u){j(e,n,u),j(e,o,u),f(s,e,u),i=!0},p:J,i(e){i||(b(s.$$.fragment,e),i=!0)},o(e){_(s.$$.fragment,e),i=!1},d(e){e&&(c(n),c(o)),y(s,e)}}}function tm($){let n,x="Example:",o,s,i;return s=new q({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMEFzeW5jSW5mZXJlbmNlQ2xpZW50JTBBY2xpZW50JTIwJTNEJTIwQXN5bmNJbmZlcmVuY2VDbGllbnQoKSUwQXRhYmxlJTIwJTNEJTIwJTdCJTBBJTIwJTIwJTIwJTIwJTIyZml4ZWRfYWNpZGl0eSUyMiUzQSUyMCU1QiUyMjcuNCUyMiUyQyUyMCUyMjcuOCUyMiUyQyUyMCUyMjEwLjMlMjIlNUQlMkMlMEElMjAlMjAlMjAlMjAlMjJ2b2xhdGlsZV9hY2lkaXR5JTIyJTNBJTIwJTVCJTIyMC43JTIyJTJDJTIwJTIyMC44OCUyMiUyQyUyMCUyMjAuMzIlMjIlNUQlMkMlMEElMjAlMjAlMjAlMjAlMjJjaXRyaWNfYWNpZCUyMiUzQSUyMCU1QiUyMjAlMjIlMkMlMjAlMjIwJTIyJTJDJTIwJTIyMC40NSUyMiU1RCUyQyUwQSUyMCUyMCUyMCUyMCUyMnJlc2lkdWFsX3N1Z2FyJTIyJTNBJTIwJTVCJTIyMS45JTIyJTJDJTIwJTIyMi42JTIyJTJDJTIwJTIyNi40JTIyJTVEJTJDJTBBJTIwJTIwJTIwJTIwJTIyY2hsb3JpZGVzJTIyJTNBJTIwJTVCJTIyMC4wNzYlMjIlMkMlMjAlMjIwLjA5OCUyMiUyQyUyMCUyMjAuMDczJTIyJTVEJTJDJTBBJTIwJTIwJTIwJTIwJTIyZnJlZV9zdWxmdXJfZGlveGlkZSUyMiUzQSUyMCU1QiUyMjExJTIyJTJDJTIwJTIyMjUlMjIlMkMlMjAlMjI1JTIyJTVEJTJDJTBBJTIwJTIwJTIwJTIwJTIydG90YWxfc3VsZnVyX2Rpb3hpZGUlMjIlM0ElMjAlNUIlMjIzNCUyMiUyQyUyMCUyMjY3JTIyJTJDJTIwJTIyMTMlMjIlNUQlMkMlMEElMjAlMjAlMjAlMjAlMjJkZW5zaXR5JTIyJTNBJTIwJTVCJTIyMC45OTc4JTIyJTJDJTIwJTIyMC45OTY4JTIyJTJDJTIwJTIyMC45OTc2JTIyJTVEJTJDJTBBJTIwJTIwJTIwJTIwJTIycEglMjIlM0ElMjAlNUIlMjIzLjUxJTIyJTJDJTIwJTIyMy4yJTIyJTJDJTIwJTIyMy4yMyUyMiU1RCUyQyUwQSUyMCUyMCUyMCUyMCUyMnN1bHBoYXRlcyUyMiUzQSUyMCU1QiUyMjAuNTYlMjIlMkMlMjAlMjIwLjY4JTIyJTJDJTIwJTIyMC44MiUyMiU1RCUyQyUwQSUyMCUyMCUyMCUyMCUyMmFsY29ob2wlMjIlM0ElMjAlNUIlMjI5LjQlMjIlMkMlMjAlMjI5LjglMjIlMkMlMjAlMjIxMi42JTIyJTVEJTJDJTBBJTdEJTBBYXdhaXQlMjBjbGllbnQudGFidWxhcl9jbGFzc2lmaWNhdGlvbih0YWJsZSUzRHRhYmxlJTJDJTIwbW9kZWwlM0QlMjJqdWxpZW4tYyUyRndpbmUtcXVhbGl0eSUyMik=",highlighted:`<span class="hljs-comment"># Must be run in an async context</span>
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> AsyncInferenceClient
<span class="hljs-meta">&gt;&gt;&gt; </span>client = AsyncInferenceClient()
<span class="hljs-meta">&gt;&gt;&gt; </span>table = {
<span class="hljs-meta">... </span>    <span class="hljs-string">&quot;fixed_acidity&quot;</span>: [<span class="hljs-string">&quot;7.4&quot;</span>, <span class="hljs-string">&quot;7.8&quot;</span>, <span class="hljs-string">&quot;10.3&quot;</span>],
<span class="hljs-meta">... </span>    <span class="hljs-string">&quot;volatile_acidity&quot;</span>: [<span class="hljs-string">&quot;0.7&quot;</span>, <span class="hljs-string">&quot;0.88&quot;</span>, <span class="hljs-string">&quot;0.32&quot;</span>],
<span class="hljs-meta">... </span>    <span class="hljs-string">&quot;citric_acid&quot;</span>: [<span class="hljs-string">&quot;0&quot;</span>, <span class="hljs-string">&quot;0&quot;</span>, <span class="hljs-string">&quot;0.45&quot;</span>],
<span class="hljs-meta">... </span>    <span class="hljs-string">&quot;residual_sugar&quot;</span>: [<span class="hljs-string">&quot;1.9&quot;</span>, <span class="hljs-string">&quot;2.6&quot;</span>, <span class="hljs-string">&quot;6.4&quot;</span>],
<span class="hljs-meta">... </span>    <span class="hljs-string">&quot;chlorides&quot;</span>: [<span class="hljs-string">&quot;0.076&quot;</span>, <span class="hljs-string">&quot;0.098&quot;</span>, <span class="hljs-string">&quot;0.073&quot;</span>],
<span class="hljs-meta">... </span>    <span class="hljs-string">&quot;free_sulfur_dioxide&quot;</span>: [<span class="hljs-string">&quot;11&quot;</span>, <span class="hljs-string">&quot;25&quot;</span>, <span class="hljs-string">&quot;5&quot;</span>],
<span class="hljs-meta">... </span>    <span class="hljs-string">&quot;total_sulfur_dioxide&quot;</span>: [<span class="hljs-string">&quot;34&quot;</span>, <span class="hljs-string">&quot;67&quot;</span>, <span class="hljs-string">&quot;13&quot;</span>],
<span class="hljs-meta">... </span>    <span class="hljs-string">&quot;density&quot;</span>: [<span class="hljs-string">&quot;0.9978&quot;</span>, <span class="hljs-string">&quot;0.9968&quot;</span>, <span class="hljs-string">&quot;0.9976&quot;</span>],
<span class="hljs-meta">... </span>    <span class="hljs-string">&quot;pH&quot;</span>: [<span class="hljs-string">&quot;3.51&quot;</span>, <span class="hljs-string">&quot;3.2&quot;</span>, <span class="hljs-string">&quot;3.23&quot;</span>],
<span class="hljs-meta">... </span>    <span class="hljs-string">&quot;sulphates&quot;</span>: [<span class="hljs-string">&quot;0.56&quot;</span>, <span class="hljs-string">&quot;0.68&quot;</span>, <span class="hljs-string">&quot;0.82&quot;</span>],
<span class="hljs-meta">... </span>    <span class="hljs-string">&quot;alcohol&quot;</span>: [<span class="hljs-string">&quot;9.4&quot;</span>, <span class="hljs-string">&quot;9.8&quot;</span>, <span class="hljs-string">&quot;12.6&quot;</span>],
<span class="hljs-meta">... </span>}
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">await</span> client.tabular_classification(table=table, model=<span class="hljs-string">&quot;julien-c/wine-quality&quot;</span>)
[<span class="hljs-string">&quot;5&quot;</span>, <span class="hljs-string">&quot;5&quot;</span>, <span class="hljs-string">&quot;5&quot;</span>]`,wrap:!1}}),{c(){n=p("p"),n.textContent=x,o=r(),h(s.$$.fragment)},l(e){n=g(e,"P",{"data-svelte-h":!0}),T(n)!=="svelte-11lpom8"&&(n.textContent=x),o=l(e),m(s.$$.fragment,e)},m(e,u){j(e,n,u),j(e,o,u),f(s,e,u),i=!0},p:J,i(e){i||(b(s.$$.fragment,e),i=!0)},o(e){_(s.$$.fragment,e),i=!1},d(e){e&&(c(n),c(o)),y(s,e)}}}function sm($){let n,x="Example:",o,s,i;return s=new q({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMEFzeW5jSW5mZXJlbmNlQ2xpZW50JTBBY2xpZW50JTIwJTNEJTIwQXN5bmNJbmZlcmVuY2VDbGllbnQoKSUwQXRhYmxlJTIwJTNEJTIwJTdCJTBBJTIwJTIwJTIwJTIwJTIySGVpZ2h0JTIyJTNBJTIwJTVCJTIyMTEuNTIlMjIlMkMlMjAlMjIxMi40OCUyMiUyQyUyMCUyMjEyLjM3NzglMjIlNUQlMkMlMEElMjAlMjAlMjAlMjAlMjJMZW5ndGgxJTIyJTNBJTIwJTVCJTIyMjMuMiUyMiUyQyUyMCUyMjI0JTIyJTJDJTIwJTIyMjMuOSUyMiU1RCUyQyUwQSUyMCUyMCUyMCUyMCUyMkxlbmd0aDIlMjIlM0ElMjAlNUIlMjIyNS40JTIyJTJDJTIwJTIyMjYuMyUyMiUyQyUyMCUyMjI2LjUlMjIlNUQlMkMlMEElMjAlMjAlMjAlMjAlMjJMZW5ndGgzJTIyJTNBJTIwJTVCJTIyMzAlMjIlMkMlMjAlMjIzMS4yJTIyJTJDJTIwJTIyMzEuMSUyMiU1RCUyQyUwQSUyMCUyMCUyMCUyMCUyMlNwZWNpZXMlMjIlM0ElMjAlNUIlMjJCcmVhbSUyMiUyQyUyMCUyMkJyZWFtJTIyJTJDJTIwJTIyQnJlYW0lMjIlNUQlMkMlMEElMjAlMjAlMjAlMjAlMjJXaWR0aCUyMiUzQSUyMCU1QiUyMjQuMDIlMjIlMkMlMjAlMjI0LjMwNTYlMjIlMkMlMjAlMjI0LjY5NjElMjIlNUQlMkMlMEElN0QlMEFhd2FpdCUyMGNsaWVudC50YWJ1bGFyX3JlZ3Jlc3Npb24odGFibGUlMkMlMjBtb2RlbCUzRCUyMnNjaWtpdC1sZWFybiUyRkZpc2gtV2VpZ2h0JTIyKQ==",highlighted:`<span class="hljs-comment"># Must be run in an async context</span>
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> AsyncInferenceClient
<span class="hljs-meta">&gt;&gt;&gt; </span>client = AsyncInferenceClient()
<span class="hljs-meta">&gt;&gt;&gt; </span>table = {
<span class="hljs-meta">... </span>    <span class="hljs-string">&quot;Height&quot;</span>: [<span class="hljs-string">&quot;11.52&quot;</span>, <span class="hljs-string">&quot;12.48&quot;</span>, <span class="hljs-string">&quot;12.3778&quot;</span>],
<span class="hljs-meta">... </span>    <span class="hljs-string">&quot;Length1&quot;</span>: [<span class="hljs-string">&quot;23.2&quot;</span>, <span class="hljs-string">&quot;24&quot;</span>, <span class="hljs-string">&quot;23.9&quot;</span>],
<span class="hljs-meta">... </span>    <span class="hljs-string">&quot;Length2&quot;</span>: [<span class="hljs-string">&quot;25.4&quot;</span>, <span class="hljs-string">&quot;26.3&quot;</span>, <span class="hljs-string">&quot;26.5&quot;</span>],
<span class="hljs-meta">... </span>    <span class="hljs-string">&quot;Length3&quot;</span>: [<span class="hljs-string">&quot;30&quot;</span>, <span class="hljs-string">&quot;31.2&quot;</span>, <span class="hljs-string">&quot;31.1&quot;</span>],
<span class="hljs-meta">... </span>    <span class="hljs-string">&quot;Species&quot;</span>: [<span class="hljs-string">&quot;Bream&quot;</span>, <span class="hljs-string">&quot;Bream&quot;</span>, <span class="hljs-string">&quot;Bream&quot;</span>],
<span class="hljs-meta">... </span>    <span class="hljs-string">&quot;Width&quot;</span>: [<span class="hljs-string">&quot;4.02&quot;</span>, <span class="hljs-string">&quot;4.3056&quot;</span>, <span class="hljs-string">&quot;4.6961&quot;</span>],
<span class="hljs-meta">... </span>}
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">await</span> client.tabular_regression(table, model=<span class="hljs-string">&quot;scikit-learn/Fish-Weight&quot;</span>)
[<span class="hljs-number">110</span>, <span class="hljs-number">120</span>, <span class="hljs-number">130</span>]`,wrap:!1}}),{c(){n=p("p"),n.textContent=x,o=r(),h(s.$$.fragment)},l(e){n=g(e,"P",{"data-svelte-h":!0}),T(n)!=="svelte-11lpom8"&&(n.textContent=x),o=l(e),m(s.$$.fragment,e)},m(e,u){j(e,n,u),j(e,o,u),f(s,e,u),i=!0},p:J,i(e){i||(b(s.$$.fragment,e),i=!0)},o(e){_(s.$$.fragment,e),i=!1},d(e){e&&(c(n),c(o)),y(s,e)}}}function am($){let n,x="Example:",o,s,i;return s=new q({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMEFzeW5jSW5mZXJlbmNlQ2xpZW50JTBBY2xpZW50JTIwJTNEJTIwQXN5bmNJbmZlcmVuY2VDbGllbnQoKSUwQWF3YWl0JTIwY2xpZW50LnRleHRfY2xhc3NpZmljYXRpb24oJTIySSUyMGxpa2UlMjB5b3UlMjIp",highlighted:`<span class="hljs-comment"># Must be run in an async context</span>
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> AsyncInferenceClient
<span class="hljs-meta">&gt;&gt;&gt; </span>client = AsyncInferenceClient()
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">await</span> client.text_classification(<span class="hljs-string">&quot;I like you&quot;</span>)
[{<span class="hljs-string">&#x27;label&#x27;</span>: <span class="hljs-string">&#x27;POSITIVE&#x27;</span>, <span class="hljs-string">&#x27;score&#x27;</span>: <span class="hljs-number">0.9998695850372314</span>}, {<span class="hljs-string">&#x27;label&#x27;</span>: <span class="hljs-string">&#x27;NEGATIVE&#x27;</span>, <span class="hljs-string">&#x27;score&#x27;</span>: <span class="hljs-number">0.0001304351753788069</span>}]`,wrap:!1}}),{c(){n=p("p"),n.textContent=x,o=r(),h(s.$$.fragment)},l(e){n=g(e,"P",{"data-svelte-h":!0}),T(n)!=="svelte-11lpom8"&&(n.textContent=x),o=l(e),m(s.$$.fragment,e)},m(e,u){j(e,n,u),j(e,o,u),f(s,e,u),i=!0},p:J,i(e){i||(b(s.$$.fragment,e),i=!0)},o(e){_(s.$$.fragment,e),i=!1},d(e){e&&(c(n),c(o)),y(s,e)}}}function om($){let n,x="Example:",o,s,i;return s=new q({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMEFzeW5jSW5mZXJlbmNlQ2xpZW50JTBBY2xpZW50JTIwJTNEJTIwQXN5bmNJbmZlcmVuY2VDbGllbnQoKSUwQSUwQWF3YWl0JTIwY2xpZW50LnRleHRfZ2VuZXJhdGlvbiglMjJUaGUlMjBodWdnaW5nZmFjZV9odWIlMjBsaWJyYXJ5JTIwaXMlMjAlMjIlMkMlMjBtYXhfbmV3X3Rva2VucyUzRDEyKSUwQSUwQWFzeW5jJTIwZm9yJTIwdG9rZW4lMjBpbiUyMGF3YWl0JTIwY2xpZW50LnRleHRfZ2VuZXJhdGlvbiglMjJUaGUlMjBodWdnaW5nZmFjZV9odWIlMjBsaWJyYXJ5JTIwaXMlMjAlMjIlMkMlMjBtYXhfbmV3X3Rva2VucyUzRDEyJTJDJTIwc3RyZWFtJTNEVHJ1ZSklM0ElMEElMjAlMjAlMjAlMjBwcmludCh0b2tlbiklMEElMEFhd2FpdCUyMGNsaWVudC50ZXh0X2dlbmVyYXRpb24oJTIyVGhlJTIwaHVnZ2luZ2ZhY2VfaHViJTIwbGlicmFyeSUyMGlzJTIwJTIyJTJDJTIwbWF4X25ld190b2tlbnMlM0QxMiUyQyUyMGRldGFpbHMlM0RUcnVlKSUwQSUwQWFzeW5jJTIwZm9yJTIwZGV0YWlscyUyMGluJTIwYXdhaXQlMjBjbGllbnQudGV4dF9nZW5lcmF0aW9uKCUyMlRoZSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGxpYnJhcnklMjBpcyUyMCUyMiUyQyUyMG1heF9uZXdfdG9rZW5zJTNEMTIlMkMlMjBkZXRhaWxzJTNEVHJ1ZSUyQyUyMHN0cmVhbSUzRFRydWUpJTNBJTBBJTIwJTIwJTIwJTIwcHJpbnQoZGV0YWlscyk=",highlighted:`<span class="hljs-comment"># Must be run in an async context</span>
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> AsyncInferenceClient
<span class="hljs-meta">&gt;&gt;&gt; </span>client = AsyncInferenceClient()

<span class="hljs-comment"># Case 1: generate text</span>
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">await</span> client.text_generation(<span class="hljs-string">&quot;The huggingface_hub library is &quot;</span>, max_new_tokens=<span class="hljs-number">12</span>)
<span class="hljs-string">&#x27;100% open source and built to be easy to use.&#x27;</span>

<span class="hljs-comment"># Case 2: iterate over the generated tokens. Useful async for large generation.</span>
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">async</span> <span class="hljs-keyword">for</span> token <span class="hljs-keyword">in</span> <span class="hljs-keyword">await</span> client.text_generation(<span class="hljs-string">&quot;The huggingface_hub library is &quot;</span>, max_new_tokens=<span class="hljs-number">12</span>, stream=<span class="hljs-literal">True</span>):
<span class="hljs-meta">... </span>    <span class="hljs-built_in">print</span>(token)
<span class="hljs-number">100</span>
%
<span class="hljs-built_in">open</span>
source
<span class="hljs-keyword">and</span>
built
to
be
easy
to
use
.

<span class="hljs-comment"># Case 3: get more details about the generation process.</span>
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">await</span> client.text_generation(<span class="hljs-string">&quot;The huggingface_hub library is &quot;</span>, max_new_tokens=<span class="hljs-number">12</span>, details=<span class="hljs-literal">True</span>)
TextGenerationResponse(
    generated_text=<span class="hljs-string">&#x27;100% open source and built to be easy to use.&#x27;</span>,
    details=Details(
        finish_reason=&lt;FinishReason.Length: <span class="hljs-string">&#x27;length&#x27;</span>&gt;,
        generated_tokens=<span class="hljs-number">12</span>,
        seed=<span class="hljs-literal">None</span>,
        prefill=[
            InputToken(<span class="hljs-built_in">id</span>=<span class="hljs-number">487</span>, text=<span class="hljs-string">&#x27;The&#x27;</span>, logprob=<span class="hljs-literal">None</span>),
            InputToken(<span class="hljs-built_in">id</span>=<span class="hljs-number">53789</span>, text=<span class="hljs-string">&#x27; hugging&#x27;</span>, logprob=-<span class="hljs-number">13.171875</span>),
            (...)
            InputToken(<span class="hljs-built_in">id</span>=<span class="hljs-number">204</span>, text=<span class="hljs-string">&#x27; &#x27;</span>, logprob=-<span class="hljs-number">7.0390625</span>)
        ],
        tokens=[
            Token(<span class="hljs-built_in">id</span>=<span class="hljs-number">1425</span>, text=<span class="hljs-string">&#x27;100&#x27;</span>, logprob=-<span class="hljs-number">1.0175781</span>, special=<span class="hljs-literal">False</span>),
            Token(<span class="hljs-built_in">id</span>=<span class="hljs-number">16</span>, text=<span class="hljs-string">&#x27;%&#x27;</span>, logprob=-<span class="hljs-number">0.0463562</span>, special=<span class="hljs-literal">False</span>),
            (...)
            Token(<span class="hljs-built_in">id</span>=<span class="hljs-number">25</span>, text=<span class="hljs-string">&#x27;.&#x27;</span>, logprob=-<span class="hljs-number">0.5703125</span>, special=<span class="hljs-literal">False</span>)
        ],
        best_of_sequences=<span class="hljs-literal">None</span>
    )
)

<span class="hljs-comment"># Case 4: iterate over the generated tokens with more details.</span>
<span class="hljs-comment"># Last object is more complete, containing the full generated text and the finish reason.</span>
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">async</span> <span class="hljs-keyword">for</span> details <span class="hljs-keyword">in</span> <span class="hljs-keyword">await</span> client.text_generation(<span class="hljs-string">&quot;The huggingface_hub library is &quot;</span>, max_new_tokens=<span class="hljs-number">12</span>, details=<span class="hljs-literal">True</span>, stream=<span class="hljs-literal">True</span>):
<span class="hljs-meta">... </span>    <span class="hljs-built_in">print</span>(details)
...
TextGenerationStreamResponse(token=Token(<span class="hljs-built_in">id</span>=<span class="hljs-number">1425</span>, text=<span class="hljs-string">&#x27;100&#x27;</span>, logprob=-<span class="hljs-number">1.0175781</span>, special=<span class="hljs-literal">False</span>), generated_text=<span class="hljs-literal">None</span>, details=<span class="hljs-literal">None</span>)
TextGenerationStreamResponse(token=Token(<span class="hljs-built_in">id</span>=<span class="hljs-number">16</span>, text=<span class="hljs-string">&#x27;%&#x27;</span>, logprob=-<span class="hljs-number">0.0463562</span>, special=<span class="hljs-literal">False</span>), generated_text=<span class="hljs-literal">None</span>, details=<span class="hljs-literal">None</span>)
TextGenerationStreamResponse(token=Token(<span class="hljs-built_in">id</span>=<span class="hljs-number">1314</span>, text=<span class="hljs-string">&#x27; open&#x27;</span>, logprob=-<span class="hljs-number">1.3359375</span>, special=<span class="hljs-literal">False</span>), generated_text=<span class="hljs-literal">None</span>, details=<span class="hljs-literal">None</span>)
TextGenerationStreamResponse(token=Token(<span class="hljs-built_in">id</span>=<span class="hljs-number">3178</span>, text=<span class="hljs-string">&#x27; source&#x27;</span>, logprob=-<span class="hljs-number">0.28100586</span>, special=<span class="hljs-literal">False</span>), generated_text=<span class="hljs-literal">None</span>, details=<span class="hljs-literal">None</span>)
TextGenerationStreamResponse(token=Token(<span class="hljs-built_in">id</span>=<span class="hljs-number">273</span>, text=<span class="hljs-string">&#x27; and&#x27;</span>, logprob=-<span class="hljs-number">0.5961914</span>, special=<span class="hljs-literal">False</span>), generated_text=<span class="hljs-literal">None</span>, details=<span class="hljs-literal">None</span>)
TextGenerationStreamResponse(token=Token(<span class="hljs-built_in">id</span>=<span class="hljs-number">3426</span>, text=<span class="hljs-string">&#x27; built&#x27;</span>, logprob=-<span class="hljs-number">1.9423828</span>, special=<span class="hljs-literal">False</span>), generated_text=<span class="hljs-literal">None</span>, details=<span class="hljs-literal">None</span>)
TextGenerationStreamResponse(token=Token(<span class="hljs-built_in">id</span>=<span class="hljs-number">271</span>, text=<span class="hljs-string">&#x27; to&#x27;</span>, logprob=-<span class="hljs-number">1.4121094</span>, special=<span class="hljs-literal">False</span>), generated_text=<span class="hljs-literal">None</span>, details=<span class="hljs-literal">None</span>)
TextGenerationStreamResponse(token=Token(<span class="hljs-built_in">id</span>=<span class="hljs-number">314</span>, text=<span class="hljs-string">&#x27; be&#x27;</span>, logprob=-<span class="hljs-number">1.5224609</span>, special=<span class="hljs-literal">False</span>), generated_text=<span class="hljs-literal">None</span>, details=<span class="hljs-literal">None</span>)
TextGenerationStreamResponse(token=Token(<span class="hljs-built_in">id</span>=<span class="hljs-number">1833</span>, text=<span class="hljs-string">&#x27; easy&#x27;</span>, logprob=-<span class="hljs-number">2.1132812</span>, special=<span class="hljs-literal">False</span>), generated_text=<span class="hljs-literal">None</span>, details=<span class="hljs-literal">None</span>)
TextGenerationStreamResponse(token=Token(<span class="hljs-built_in">id</span>=<span class="hljs-number">271</span>, text=<span class="hljs-string">&#x27; to&#x27;</span>, logprob=-<span class="hljs-number">0.08520508</span>, special=<span class="hljs-literal">False</span>), generated_text=<span class="hljs-literal">None</span>, details=<span class="hljs-literal">None</span>)
TextGenerationStreamResponse(token=Token(<span class="hljs-built_in">id</span>=<span class="hljs-number">745</span>, text=<span class="hljs-string">&#x27; use&#x27;</span>, logprob=-<span class="hljs-number">0.39453125</span>, special=<span class="hljs-literal">False</span>), generated_text=<span class="hljs-literal">None</span>, details=<span class="hljs-literal">None</span>)
TextGenerationStreamResponse(token=Token(
    <span class="hljs-built_in">id</span>=<span class="hljs-number">25</span>,
    text=<span class="hljs-string">&#x27;.&#x27;</span>,
    logprob=-<span class="hljs-number">0.5703125</span>,
    special=<span class="hljs-literal">False</span>),
    generated_text=<span class="hljs-string">&#x27;100% open source and built to be easy to use.&#x27;</span>,
    details=StreamDetails(finish_reason=&lt;FinishReason.Length: <span class="hljs-string">&#x27;length&#x27;</span>&gt;, generated_tokens=<span class="hljs-number">12</span>, seed=<span class="hljs-literal">None</span>)
)`,wrap:!1}}),{c(){n=p("p"),n.textContent=x,o=r(),h(s.$$.fragment)},l(e){n=g(e,"P",{"data-svelte-h":!0}),T(n)!=="svelte-11lpom8"&&(n.textContent=x),o=l(e),m(s.$$.fragment,e)},m(e,u){j(e,n,u),j(e,o,u),f(s,e,u),i=!0},p:J,i(e){i||(b(s.$$.fragment,e),i=!0)},o(e){_(s.$$.fragment,e),i=!1},d(e){e&&(c(n),c(o)),y(s,e)}}}function rm($){let n,x="You must have <code>PIL</code> installed if you want to work with images (<code>pip install Pillow</code>).";return{c(){n=p("p"),n.innerHTML=x},l(o){n=g(o,"P",{"data-svelte-h":!0}),T(n)!=="svelte-s2e3n9"&&(n.innerHTML=x)},m(o,s){j(o,n,s)},p:J,d(o){o&&c(n)}}}function lm($){let n,x="Example:",o,s,i;return s=new q({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMEFzeW5jSW5mZXJlbmNlQ2xpZW50JTBBY2xpZW50JTIwJTNEJTIwQXN5bmNJbmZlcmVuY2VDbGllbnQoKSUwQSUwQWltYWdlJTIwJTNEJTIwYXdhaXQlMjBjbGllbnQudGV4dF90b19pbWFnZSglMjJBbiUyMGFzdHJvbmF1dCUyMHJpZGluZyUyMGElMjBob3JzZSUyMG9uJTIwdGhlJTIwbW9vbi4lMjIpJTBBaW1hZ2Uuc2F2ZSglMjJhc3Ryb25hdXQucG5nJTIyKSUwQSUwQWltYWdlJTIwJTNEJTIwYXdhaXQlMjBjbGllbnQudGV4dF90b19pbWFnZSglMEElMjAlMjAlMjAlMjAlMjJBbiUyMGFzdHJvbmF1dCUyMHJpZGluZyUyMGElMjBob3JzZSUyMG9uJTIwdGhlJTIwbW9vbi4lMjIlMkMlMEElMjAlMjAlMjAlMjBuZWdhdGl2ZV9wcm9tcHQlM0QlMjJsb3clMjByZXNvbHV0aW9uJTJDJTIwYmx1cnJ5JTIyJTJDJTBBJTIwJTIwJTIwJTIwbW9kZWwlM0QlMjJzdGFiaWxpdHlhaSUyRnN0YWJsZS1kaWZmdXNpb24tMi0xJTIyJTJDJTBBKSUwQWltYWdlLnNhdmUoJTIyYmV0dGVyX2FzdHJvbmF1dC5wbmclMjIp",highlighted:`<span class="hljs-comment"># Must be run in an async context</span>
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> AsyncInferenceClient
<span class="hljs-meta">&gt;&gt;&gt; </span>client = AsyncInferenceClient()

<span class="hljs-meta">&gt;&gt;&gt; </span>image = <span class="hljs-keyword">await</span> client.text_to_image(<span class="hljs-string">&quot;An astronaut riding a horse on the moon.&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>image.save(<span class="hljs-string">&quot;astronaut.png&quot;</span>)

<span class="hljs-meta">&gt;&gt;&gt; </span>image = <span class="hljs-keyword">await</span> client.text_to_image(
<span class="hljs-meta">... </span>    <span class="hljs-string">&quot;An astronaut riding a horse on the moon.&quot;</span>,
<span class="hljs-meta">... </span>    negative_prompt=<span class="hljs-string">&quot;low resolution, blurry&quot;</span>,
<span class="hljs-meta">... </span>    model=<span class="hljs-string">&quot;stabilityai/stable-diffusion-2-1&quot;</span>,
<span class="hljs-meta">... </span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>image.save(<span class="hljs-string">&quot;better_astronaut.png&quot;</span>)`,wrap:!1}}),{c(){n=p("p"),n.textContent=x,o=r(),h(s.$$.fragment)},l(e){n=g(e,"P",{"data-svelte-h":!0}),T(n)!=="svelte-11lpom8"&&(n.textContent=x),o=l(e),m(s.$$.fragment,e)},m(e,u){j(e,n,u),j(e,o,u),f(s,e,u),i=!0},p:J,i(e){i||(b(s.$$.fragment,e),i=!0)},o(e){_(s.$$.fragment,e),i=!1},d(e){e&&(c(n),c(o)),y(s,e)}}}function im($){let n,x="Example:",o,s,i;return s=new q({props:{code:"ZnJvbSUyMHBhdGhsaWIlMjBpbXBvcnQlMjBQYXRoJTBBZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMEFzeW5jSW5mZXJlbmNlQ2xpZW50JTBBY2xpZW50JTIwJTNEJTIwQXN5bmNJbmZlcmVuY2VDbGllbnQoKSUwQSUwQWF1ZGlvJTIwJTNEJTIwYXdhaXQlMjBjbGllbnQudGV4dF90b19zcGVlY2goJTIySGVsbG8lMjB3b3JsZCUyMiklMEFQYXRoKCUyMmhlbGxvX3dvcmxkLmZsYWMlMjIpLndyaXRlX2J5dGVzKGF1ZGlvKQ==",highlighted:`<span class="hljs-comment"># Must be run in an async context</span>
<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> AsyncInferenceClient
<span class="hljs-meta">&gt;&gt;&gt; </span>client = AsyncInferenceClient()

<span class="hljs-meta">&gt;&gt;&gt; </span>audio = <span class="hljs-keyword">await</span> client.text_to_speech(<span class="hljs-string">&quot;Hello world&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>Path(<span class="hljs-string">&quot;hello_world.flac&quot;</span>).write_bytes(audio)`,wrap:!1}}),{c(){n=p("p"),n.textContent=x,o=r(),h(s.$$.fragment)},l(e){n=g(e,"P",{"data-svelte-h":!0}),T(n)!=="svelte-11lpom8"&&(n.textContent=x),o=l(e),m(s.$$.fragment,e)},m(e,u){j(e,n,u),j(e,o,u),f(s,e,u),i=!0},p:J,i(e){i||(b(s.$$.fragment,e),i=!0)},o(e){_(s.$$.fragment,e),i=!1},d(e){e&&(c(n),c(o)),y(s,e)}}}function cm($){let n,x="Example:",o,s,i;return s=new q({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMEFzeW5jSW5mZXJlbmNlQ2xpZW50JTBBY2xpZW50JTIwJTNEJTIwQXN5bmNJbmZlcmVuY2VDbGllbnQoKSUwQWF3YWl0JTIwY2xpZW50LnRva2VuX2NsYXNzaWZpY2F0aW9uKCUyMk15JTIwbmFtZSUyMGlzJTIwU2FyYWglMjBKZXNzaWNhJTIwUGFya2VyJTIwYnV0JTIweW91JTIwY2FuJTIwY2FsbCUyMG1lJTIwSmVzc2ljYSUyMik=",highlighted:`<span class="hljs-comment"># Must be run in an async context</span>
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> AsyncInferenceClient
<span class="hljs-meta">&gt;&gt;&gt; </span>client = AsyncInferenceClient()
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">await</span> client.token_classification(<span class="hljs-string">&quot;My name is Sarah Jessica Parker but you can call me Jessica&quot;</span>)
[{<span class="hljs-string">&#x27;entity_group&#x27;</span>: <span class="hljs-string">&#x27;PER&#x27;</span>,
<span class="hljs-string">&#x27;score&#x27;</span>: <span class="hljs-number">0.9971321225166321</span>,
<span class="hljs-string">&#x27;word&#x27;</span>: <span class="hljs-string">&#x27;Sarah Jessica Parker&#x27;</span>,
<span class="hljs-string">&#x27;start&#x27;</span>: <span class="hljs-number">11</span>,
<span class="hljs-string">&#x27;end&#x27;</span>: <span class="hljs-number">31</span>},
{<span class="hljs-string">&#x27;entity_group&#x27;</span>: <span class="hljs-string">&#x27;PER&#x27;</span>,
<span class="hljs-string">&#x27;score&#x27;</span>: <span class="hljs-number">0.9773476123809814</span>,
<span class="hljs-string">&#x27;word&#x27;</span>: <span class="hljs-string">&#x27;Jessica&#x27;</span>,
<span class="hljs-string">&#x27;start&#x27;</span>: <span class="hljs-number">52</span>,
<span class="hljs-string">&#x27;end&#x27;</span>: <span class="hljs-number">59</span>}]`,wrap:!1}}),{c(){n=p("p"),n.textContent=x,o=r(),h(s.$$.fragment)},l(e){n=g(e,"P",{"data-svelte-h":!0}),T(n)!=="svelte-11lpom8"&&(n.textContent=x),o=l(e),m(s.$$.fragment,e)},m(e,u){j(e,n,u),j(e,o,u),f(s,e,u),i=!0},p:J,i(e){i||(b(s.$$.fragment,e),i=!0)},o(e){_(s.$$.fragment,e),i=!1},d(e){e&&(c(n),c(o)),y(s,e)}}}function pm($){let n,x="Example:",o,s,i;return s=new q({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMEFzeW5jSW5mZXJlbmNlQ2xpZW50JTBBY2xpZW50JTIwJTNEJTIwQXN5bmNJbmZlcmVuY2VDbGllbnQoKSUwQWF3YWl0JTIwY2xpZW50LnRyYW5zbGF0aW9uKCUyMk15JTIwbmFtZSUyMGlzJTIwV29sZmdhbmclMjBhbmQlMjBJJTIwbGl2ZSUyMGluJTIwQmVybGluJTIyKSUwQWF3YWl0JTIwY2xpZW50LnRyYW5zbGF0aW9uKCUyMk15JTIwbmFtZSUyMGlzJTIwV29sZmdhbmclMjBhbmQlMjBJJTIwbGl2ZSUyMGluJTIwQmVybGluJTIyJTJDJTIwbW9kZWwlM0QlMjJIZWxzaW5raS1OTFAlMkZvcHVzLW10LWVuLWZyJTIyKQ==",highlighted:`<span class="hljs-comment"># Must be run in an async context</span>
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> AsyncInferenceClient
<span class="hljs-meta">&gt;&gt;&gt; </span>client = AsyncInferenceClient()
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">await</span> client.translation(<span class="hljs-string">&quot;My name is Wolfgang and I live in Berlin&quot;</span>)
<span class="hljs-string">&#x27;Mein Name ist Wolfgang und ich lebe in Berlin.&#x27;</span>
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">await</span> client.translation(<span class="hljs-string">&quot;My name is Wolfgang and I live in Berlin&quot;</span>, model=<span class="hljs-string">&quot;Helsinki-NLP/opus-mt-en-fr&quot;</span>)
<span class="hljs-string">&quot;Je m&#x27;appelle Wolfgang et je vis à Berlin.&quot;</span>`,wrap:!1}}),{c(){n=p("p"),n.textContent=x,o=r(),h(s.$$.fragment)},l(e){n=g(e,"P",{"data-svelte-h":!0}),T(n)!=="svelte-11lpom8"&&(n.textContent=x),o=l(e),m(s.$$.fragment,e)},m(e,u){j(e,n,u),j(e,o,u),f(s,e,u),i=!0},p:J,i(e){i||(b(s.$$.fragment,e),i=!0)},o(e){_(s.$$.fragment,e),i=!1},d(e){e&&(c(n),c(o)),y(s,e)}}}function gm($){let n,x="Example:",o,s,i;return s=new q({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMEFzeW5jSW5mZXJlbmNlQ2xpZW50JTBBY2xpZW50JTIwJTNEJTIwQXN5bmNJbmZlcmVuY2VDbGllbnQoKSUwQWF3YWl0JTIwY2xpZW50LnZpc3VhbF9xdWVzdGlvbl9hbnN3ZXJpbmcoJTBBJTIwJTIwJTIwJTIwaW1hZ2UlM0QlMjJodHRwcyUzQSUyRiUyRmh1Z2dpbmdmYWNlLmNvJTJGZGF0YXNldHMlMkZtaXNoaWclMkZzYW1wbGVfaW1hZ2VzJTJGcmVzb2x2ZSUyRm1haW4lMkZ0aWdlci5qcGclMjIlMkMlMEElMjAlMjAlMjAlMjBxdWVzdGlvbiUzRCUyMldoYXQlMjBpcyUyMHRoZSUyMGFuaW1hbCUyMGRvaW5nJTNGJTIyJTBBKQ==",highlighted:`<span class="hljs-comment"># Must be run in an async context</span>
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> AsyncInferenceClient
<span class="hljs-meta">&gt;&gt;&gt; </span>client = AsyncInferenceClient()
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">await</span> client.visual_question_answering(
<span class="hljs-meta">... </span>    image=<span class="hljs-string">&quot;https://huggingface.co/datasets/mishig/sample_images/resolve/main/tiger.jpg&quot;</span>,
<span class="hljs-meta">... </span>    question=<span class="hljs-string">&quot;What is the animal doing?&quot;</span>
<span class="hljs-meta">... </span>)
[{<span class="hljs-string">&#x27;score&#x27;</span>: <span class="hljs-number">0.778609573841095</span>, <span class="hljs-string">&#x27;answer&#x27;</span>: <span class="hljs-string">&#x27;laying down&#x27;</span>},{<span class="hljs-string">&#x27;score&#x27;</span>: <span class="hljs-number">0.6957435607910156</span>, <span class="hljs-string">&#x27;answer&#x27;</span>: <span class="hljs-string">&#x27;sitting&#x27;</span>}, ...]`,wrap:!1}}),{c(){n=p("p"),n.textContent=x,o=r(),h(s.$$.fragment)},l(e){n=g(e,"P",{"data-svelte-h":!0}),T(n)!=="svelte-11lpom8"&&(n.textContent=x),o=l(e),m(s.$$.fragment,e)},m(e,u){j(e,n,u),j(e,o,u),f(s,e,u),i=!0},p:J,i(e){i||(b(s.$$.fragment,e),i=!0)},o(e){_(s.$$.fragment,e),i=!1},d(e){e&&(c(n),c(o)),y(s,e)}}}function um($){let n,x="Example:",o,s,i;return s=new q({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMEFzeW5jSW5mZXJlbmNlQ2xpZW50JTBBY2xpZW50JTIwJTNEJTIwQXN5bmNJbmZlcmVuY2VDbGllbnQoKSUwQXRleHQlMjAlM0QlMjAoJTBBJTIwJTIwJTIwJTIwJTIyQSUyMG5ldyUyMG1vZGVsJTIwb2ZmZXJzJTIwYW4lMjBleHBsYW5hdGlvbiUyMGFzeW5jJTIwZm9yJTIwaG93JTIwdGhlJTIwR2FsaWxlYW4lMjBzYXRlbGxpdGVzJTIwZm9ybWVkJTIwYXJvdW5kJTIwdGhlJTIwc29sYXIlMjBzeXN0ZW0ncyUyMiUwQSUyMCUyMCUyMCUyMCUyMmxhcmdlc3QlMjB3b3JsZC4lMjBLb25zdGFudGluJTIwQmF0eWdpbiUyMGRpZCUyMG5vdCUyMHNldCUyMG91dCUyMHRvJTIwc29sdmUlMjBvbmUlMjBvZiUyMHRoZSUyMHNvbGFyJTIwc3lzdGVtJ3MlMjBtb3N0JTIwcHV6emxpbmclMjIlMEElMjAlMjAlMjAlMjAlMjIlMjBteXN0ZXJpZXMlMjB3aGVuJTIwaGUlMjB3ZW50JTIwYXN5bmMlMjBmb3IlMjBhJTIwcnVuJTIwdXAlMjBhJTIwaGlsbCUyMGluJTIwTmljZSUyQyUyMEZyYW5jZS4lMjIlMEEpJTBBbGFiZWxzJTIwJTNEJTIwJTVCJTIyc3BhY2UlMjAlMjYlMjBjb3Ntb3MlMjIlMkMlMjAlMjJzY2llbnRpZmljJTIwZGlzY292ZXJ5JTIyJTJDJTIwJTIybWljcm9iaW9sb2d5JTIyJTJDJTIwJTIycm9ib3RzJTIyJTJDJTIwJTIyYXJjaGVvbG9neSUyMiU1RCUwQWF3YWl0JTIwY2xpZW50Lnplcm9fc2hvdF9jbGFzc2lmaWNhdGlvbih0ZXh0JTJDJTIwbGFiZWxzKSUwQWF3YWl0JTIwY2xpZW50Lnplcm9fc2hvdF9jbGFzc2lmaWNhdGlvbih0ZXh0JTJDJTIwbGFiZWxzJTJDJTIwbXVsdGlfbGFiZWwlM0RUcnVlKQ==",highlighted:`<span class="hljs-comment"># Must be run in an async context</span>
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> AsyncInferenceClient
<span class="hljs-meta">&gt;&gt;&gt; </span>client = AsyncInferenceClient()
<span class="hljs-meta">&gt;&gt;&gt; </span>text = (
<span class="hljs-meta">... </span>    <span class="hljs-string">&quot;A new model offers an explanation async for how the Galilean satellites formed around the solar system&#x27;s&quot;</span>
<span class="hljs-meta">... </span>    <span class="hljs-string">&quot;largest world. Konstantin Batygin did not set out to solve one of the solar system&#x27;s most puzzling&quot;</span>
<span class="hljs-meta">... </span>    <span class="hljs-string">&quot; mysteries when he went async for a run up a hill in Nice, France.&quot;</span>
<span class="hljs-meta">... </span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>labels = [<span class="hljs-string">&quot;space &amp; cosmos&quot;</span>, <span class="hljs-string">&quot;scientific discovery&quot;</span>, <span class="hljs-string">&quot;microbiology&quot;</span>, <span class="hljs-string">&quot;robots&quot;</span>, <span class="hljs-string">&quot;archeology&quot;</span>]
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">await</span> client.zero_shot_classification(text, labels)
[
    {<span class="hljs-string">&quot;label&quot;</span>: <span class="hljs-string">&quot;scientific discovery&quot;</span>, <span class="hljs-string">&quot;score&quot;</span>: <span class="hljs-number">0.7961668968200684</span>},
    {<span class="hljs-string">&quot;label&quot;</span>: <span class="hljs-string">&quot;space &amp; cosmos&quot;</span>, <span class="hljs-string">&quot;score&quot;</span>: <span class="hljs-number">0.18570658564567566</span>},
    {<span class="hljs-string">&quot;label&quot;</span>: <span class="hljs-string">&quot;microbiology&quot;</span>, <span class="hljs-string">&quot;score&quot;</span>: <span class="hljs-number">0.00730885099619627</span>},
    {<span class="hljs-string">&quot;label&quot;</span>: <span class="hljs-string">&quot;archeology&quot;</span>, <span class="hljs-string">&quot;score&quot;</span>: <span class="hljs-number">0.006258360575884581</span>},
    {<span class="hljs-string">&quot;label&quot;</span>: <span class="hljs-string">&quot;robots&quot;</span>, <span class="hljs-string">&quot;score&quot;</span>: <span class="hljs-number">0.004559356719255447</span>},
]
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">await</span> client.zero_shot_classification(text, labels, multi_label=<span class="hljs-literal">True</span>)
[
    {<span class="hljs-string">&quot;label&quot;</span>: <span class="hljs-string">&quot;scientific discovery&quot;</span>, <span class="hljs-string">&quot;score&quot;</span>: <span class="hljs-number">0.9829297661781311</span>},
    {<span class="hljs-string">&quot;label&quot;</span>: <span class="hljs-string">&quot;space &amp; cosmos&quot;</span>, <span class="hljs-string">&quot;score&quot;</span>: <span class="hljs-number">0.755190908908844</span>},
    {<span class="hljs-string">&quot;label&quot;</span>: <span class="hljs-string">&quot;microbiology&quot;</span>, <span class="hljs-string">&quot;score&quot;</span>: <span class="hljs-number">0.0005462635890580714</span>},
    {<span class="hljs-string">&quot;label&quot;</span>: <span class="hljs-string">&quot;archeology&quot;</span>, <span class="hljs-string">&quot;score&quot;</span>: <span class="hljs-number">0.00047131875180639327</span>},
    {<span class="hljs-string">&quot;label&quot;</span>: <span class="hljs-string">&quot;robots&quot;</span>, <span class="hljs-string">&quot;score&quot;</span>: <span class="hljs-number">0.00030448526376858354</span>},
]`,wrap:!1}}),{c(){n=p("p"),n.textContent=x,o=r(),h(s.$$.fragment)},l(e){n=g(e,"P",{"data-svelte-h":!0}),T(n)!=="svelte-11lpom8"&&(n.textContent=x),o=l(e),m(s.$$.fragment,e)},m(e,u){j(e,n,u),j(e,o,u),f(s,e,u),i=!0},p:J,i(e){i||(b(s.$$.fragment,e),i=!0)},o(e){_(s.$$.fragment,e),i=!1},d(e){e&&(c(n),c(o)),y(s,e)}}}function dm($){let n,x="Example:",o,s,i;return s=new q({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMEFzeW5jSW5mZXJlbmNlQ2xpZW50JTBBY2xpZW50JTIwJTNEJTIwQXN5bmNJbmZlcmVuY2VDbGllbnQoKSUwQSUwQWF3YWl0JTIwY2xpZW50Lnplcm9fc2hvdF9pbWFnZV9jbGFzc2lmaWNhdGlvbiglMEElMjAlMjAlMjAlMjAlMjJodHRwcyUzQSUyRiUyRnVwbG9hZC53aWtpbWVkaWEub3JnJTJGd2lraXBlZGlhJTJGY29tbW9ucyUyRnRodW1iJTJGNCUyRjQzJTJGQ3V0ZV9kb2cuanBnJTJGMzIwcHgtQ3V0ZV9kb2cuanBnJTIyJTJDJTBBJTIwJTIwJTIwJTIwbGFiZWxzJTNEJTVCJTIyZG9nJTIyJTJDJTIwJTIyY2F0JTIyJTJDJTIwJTIyaG9yc2UlMjIlNUQlMkMlMEEp",highlighted:`<span class="hljs-comment"># Must be run in an async context</span>
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> AsyncInferenceClient
<span class="hljs-meta">&gt;&gt;&gt; </span>client = AsyncInferenceClient()

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">await</span> client.zero_shot_image_classification(
<span class="hljs-meta">... </span>    <span class="hljs-string">&quot;https://upload.wikimedia.org/wikipedia/commons/thumb/4/43/Cute_dog.jpg/320px-Cute_dog.jpg&quot;</span>,
<span class="hljs-meta">... </span>    labels=[<span class="hljs-string">&quot;dog&quot;</span>, <span class="hljs-string">&quot;cat&quot;</span>, <span class="hljs-string">&quot;horse&quot;</span>],
<span class="hljs-meta">... </span>)
[{<span class="hljs-string">&quot;label&quot;</span>: <span class="hljs-string">&quot;dog&quot;</span>, <span class="hljs-string">&quot;score&quot;</span>: <span class="hljs-number">0.956</span>}, ...]`,wrap:!1}}),{c(){n=p("p"),n.textContent=x,o=r(),h(s.$$.fragment)},l(e){n=g(e,"P",{"data-svelte-h":!0}),T(n)!=="svelte-11lpom8"&&(n.textContent=x),o=l(e),m(s.$$.fragment,e)},m(e,u){j(e,n,u),j(e,o,u),f(s,e,u),i=!0},p:J,i(e){i||(b(s.$$.fragment,e),i=!0)},o(e){_(s.$$.fragment,e),i=!1},d(e){e&&(c(n),c(o)),y(s,e)}}}function hm($){let n,x="Example:",o,s,i;return s=new q({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1Yi5pbmZlcmVuY2VfYXBpJTIwaW1wb3J0JTIwSW5mZXJlbmNlQXBpJTBBJTBBJTIzJTIwTWFzay1maWxsJTIwZXhhbXBsZSUwQWluZmVyZW5jZSUyMCUzRCUyMEluZmVyZW5jZUFwaSglMjJiZXJ0LWJhc2UtdW5jYXNlZCUyMiklMEFpbmZlcmVuY2UoaW5wdXRzJTNEJTIyVGhlJTIwZ29hbCUyMG9mJTIwbGlmZSUyMGlzJTIwJTVCTUFTSyU1RC4lMjIpJTBBJTBBJTIzJTIwUXVlc3Rpb24lMjBBbnN3ZXJpbmclMjBleGFtcGxlJTBBaW5mZXJlbmNlJTIwJTNEJTIwSW5mZXJlbmNlQXBpKCUyMmRlZXBzZXQlMkZyb2JlcnRhLWJhc2Utc3F1YWQyJTIyKSUwQWlucHV0cyUyMCUzRCUyMCU3QiUwQSUyMCUyMCUyMCUyMCUyMnF1ZXN0aW9uJTIyJTNBJTIwJTIyV2hhdCdzJTIwbXklMjBuYW1lJTNGJTIyJTJDJTBBJTIwJTIwJTIwJTIwJTIyY29udGV4dCUyMiUzQSUyMCUyMk15JTIwbmFtZSUyMGlzJTIwQ2xhcmElMjBhbmQlMjBJJTIwbGl2ZSUyMGluJTIwQmVya2VsZXkuJTIyJTJDJTBBJTdEJTBBaW5mZXJlbmNlKGlucHV0cyklMEElMEElMjMlMjBaZXJvLXNob3QlMjBleGFtcGxlJTBBaW5mZXJlbmNlJTIwJTNEJTIwSW5mZXJlbmNlQXBpKCUyMnR5cGVmb3JtJTJGZGlzdGlsYmVydC1iYXNlLXVuY2FzZWQtbW5saSUyMiklMEFpbnB1dHMlMjAlM0QlMjAlMjJIaSUyQyUyMEklMjByZWNlbnRseSUyMGJvdWdodCUyMGElMjBkZXZpY2UlMjBmcm9tJTIweW91ciUyMGNvbXBhbnklMjBidXQlMjBpdCUyMGlzJTIwbm90JTIwd29ya2luZyUyMGFzJTIwYWR2ZXJ0aXNlZCUyMGFuZCUyMEklMjB3b3VsZCUyMGxpa2UlMjB0byUyMGdldCUyMHJlaW1idXJzZWQhJTIyJTBBcGFyYW1zJTIwJTNEJTIwJTdCJTIyY2FuZGlkYXRlX2xhYmVscyUyMiUzQSUyMCU1QiUyMnJlZnVuZCUyMiUyQyUyMCUyMmxlZ2FsJTIyJTJDJTIwJTIyZmFxJTIyJTVEJTdEJTBBaW5mZXJlbmNlKGlucHV0cyUyQyUyMHBhcmFtcyklMEElMEElMjMlMjBPdmVycmlkaW5nJTIwY29uZmlndXJlZCUyMHRhc2slMEFpbmZlcmVuY2UlMjAlM0QlMjBJbmZlcmVuY2VBcGkoJTIyYmVydC1iYXNlLXVuY2FzZWQlMjIlMkMlMjB0YXNrJTNEJTIyZmVhdHVyZS1leHRyYWN0aW9uJTIyKSUwQSUwQSUyMyUyMFRleHQtdG8taW1hZ2UlMEFpbmZlcmVuY2UlMjAlM0QlMjBJbmZlcmVuY2VBcGkoJTIyc3RhYmlsaXR5YWklMkZzdGFibGUtZGlmZnVzaW9uLTItMSUyMiklMEFpbmZlcmVuY2UoJTIyY2F0JTIyKSUwQSUwQSUyMyUyMFJldHVybiUyMGFzJTIwcmF3JTIwcmVzcG9uc2UlMjB0byUyMHBhcnNlJTIwdGhlJTIwb3V0cHV0JTIweW91cnNlbGYlMEFpbmZlcmVuY2UlMjAlM0QlMjBJbmZlcmVuY2VBcGkoJTIybWlvJTJGYW1hZGV1cyUyMiklMEFyZXNwb25zZSUyMCUzRCUyMGluZmVyZW5jZSglMjJoZWxsbyUyMHdvcmxkJTIyJTJDJTIwcmF3X3Jlc3BvbnNlJTNEVHJ1ZSklMEFyZXNwb25zZS5oZWFkZXJzJTBBcmVzcG9uc2UuY29udGVudCUyMCUyMyUyMHJhdyUyMGJ5dGVzJTIwZnJvbSUyMHNlcnZlcg==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> huggingface_hub.inference_api <span class="hljs-keyword">import</span> InferenceApi

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># Mask-fill example</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>inference = InferenceApi(<span class="hljs-string">&quot;bert-base-uncased&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>inference(inputs=<span class="hljs-string">&quot;The goal of life is [MASK].&quot;</span>)
[{<span class="hljs-string">&#x27;sequence&#x27;</span>: <span class="hljs-string">&#x27;the goal of life is life.&#x27;</span>, <span class="hljs-string">&#x27;score&#x27;</span>: <span class="hljs-number">0.10933292657136917</span>, <span class="hljs-string">&#x27;token&#x27;</span>: <span class="hljs-number">2166</span>, <span class="hljs-string">&#x27;token_str&#x27;</span>: <span class="hljs-string">&#x27;life&#x27;</span>}]

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># Question Answering example</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>inference = InferenceApi(<span class="hljs-string">&quot;deepset/roberta-base-squad2&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>inputs = {
<span class="hljs-meta">... </span>    <span class="hljs-string">&quot;question&quot;</span>: <span class="hljs-string">&quot;What&#x27;s my name?&quot;</span>,
<span class="hljs-meta">... </span>    <span class="hljs-string">&quot;context&quot;</span>: <span class="hljs-string">&quot;My name is Clara and I live in Berkeley.&quot;</span>,
<span class="hljs-meta">... </span>}
<span class="hljs-meta">&gt;&gt;&gt; </span>inference(inputs)
{<span class="hljs-string">&#x27;score&#x27;</span>: <span class="hljs-number">0.9326569437980652</span>, <span class="hljs-string">&#x27;start&#x27;</span>: <span class="hljs-number">11</span>, <span class="hljs-string">&#x27;end&#x27;</span>: <span class="hljs-number">16</span>, <span class="hljs-string">&#x27;answer&#x27;</span>: <span class="hljs-string">&#x27;Clara&#x27;</span>}

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># Zero-shot example</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>inference = InferenceApi(<span class="hljs-string">&quot;typeform/distilbert-base-uncased-mnli&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>inputs = <span class="hljs-string">&quot;Hi, I recently bought a device from your company but it is not working as advertised and I would like to get reimbursed!&quot;</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>params = {<span class="hljs-string">&quot;candidate_labels&quot;</span>: [<span class="hljs-string">&quot;refund&quot;</span>, <span class="hljs-string">&quot;legal&quot;</span>, <span class="hljs-string">&quot;faq&quot;</span>]}
<span class="hljs-meta">&gt;&gt;&gt; </span>inference(inputs, params)
{<span class="hljs-string">&#x27;sequence&#x27;</span>: <span class="hljs-string">&#x27;Hi, I recently bought a device from your company but it is not working as advertised and I would like to get reimbursed!&#x27;</span>, <span class="hljs-string">&#x27;labels&#x27;</span>: [<span class="hljs-string">&#x27;refund&#x27;</span>, <span class="hljs-string">&#x27;faq&#x27;</span>, <span class="hljs-string">&#x27;legal&#x27;</span>], <span class="hljs-string">&#x27;scores&#x27;</span>: [<span class="hljs-number">0.9378499388694763</span>, <span class="hljs-number">0.04914155602455139</span>, <span class="hljs-number">0.013008488342165947</span>]}

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># Overriding configured task</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>inference = InferenceApi(<span class="hljs-string">&quot;bert-base-uncased&quot;</span>, task=<span class="hljs-string">&quot;feature-extraction&quot;</span>)

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># Text-to-image</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>inference = InferenceApi(<span class="hljs-string">&quot;stabilityai/stable-diffusion-2-1&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>inference(<span class="hljs-string">&quot;cat&quot;</span>)
&lt;PIL.PngImagePlugin.PngImageFile image (...)&gt;

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># Return as raw response to parse the output yourself</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>inference = InferenceApi(<span class="hljs-string">&quot;mio/amadeus&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>response = inference(<span class="hljs-string">&quot;hello world&quot;</span>, raw_response=<span class="hljs-literal">True</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>response.headers
{<span class="hljs-string">&quot;Content-Type&quot;</span>: <span class="hljs-string">&quot;audio/flac&quot;</span>, ...}
<span class="hljs-meta">&gt;&gt;&gt; </span>response.content <span class="hljs-comment"># raw bytes from server</span>
<span class="hljs-string">b&#x27;(...)&#x27;</span>`,wrap:!1}}),{c(){n=p("p"),n.textContent=x,o=r(),h(s.$$.fragment)},l(e){n=g(e,"P",{"data-svelte-h":!0}),T(n)!=="svelte-11lpom8"&&(n.textContent=x),o=l(e),m(s.$$.fragment,e)},m(e,u){j(e,n,u),j(e,o,u),f(s,e,u),i=!0},p:J,i(e){i||(b(s.$$.fragment,e),i=!0)},o(e){_(s.$$.fragment,e),i=!1},d(e){e&&(c(n),c(o)),y(s,e)}}}function mm($){let n,x,o,s,i,e,u,nu=`Inference is the process of using a trained model to make predictions on new data. As this process can be compute-intensive,
running on a dedicated server can be an interesting option. The <code>huggingface_hub</code> library provides an easy way to call a
service that runs inference for hosted models. There are several services you can connect to:`,rl,Is,tu=`<li><a href="https://huggingface.co/docs/api-inference/index" rel="nofollow">Inference API</a>: a service that allows you to run accelerated inference
on Hugging Face’s infrastructure for free. This service is a fast way to get started, test different models, and
prototype AI products.</li> <li><a href="https://huggingface.co/inference-endpoints" rel="nofollow">Inference Endpoints</a>: a product to easily deploy models to production.
Inference is run by Hugging Face in a dedicated, fully managed infrastructure on a cloud provider of your choice.</li>`,ll,Ms,su=`These services can be called with the <a href="/docs/huggingface_hub/v0.18.0.rc0/en/package_reference/inference_client#huggingface_hub.InferenceClient">InferenceClient</a> object. Please refer to <a href="../guides/inference">this guide</a>
for more information on how to use it.`,il,vs,cl,w,ws,Fl,yo,au="Initialize a new Inference Client.",Sl,xo,ou=`<a href="/docs/huggingface_hub/v0.18.0.rc0/en/package_reference/inference_client#huggingface_hub.InferenceClient">InferenceClient</a> aims to provide a unified experience to perform inference. The client can be used
seamlessly with either the (free) Inference API or self-hosted Inference Endpoints.`,Xl,xe,Cs,zl,jo,ru="Perform audio classification on the provided audio content.",Ol,ot,Kl,je,Js,ei,To,lu="Perform automatic speech recognition (ASR or audio-to-text) on the given audio content.",ni,rt,ti,Te,Us,si,$o,iu="Generate conversational responses based on the given input text (i.e. chat with the API).",ai,lt,oi,$e,ks,ri,Io,cu="Answer questions on document images.",li,it,ii,Ie,qs,ci,Mo,pu="Generate embeddings for a given text.",pi,ct,gi,Me,Zs,ui,vo,gu="Fill in a hole with a missing word (token to be precise).",di,pt,hi,A,Es,mi,wo,uu="Get the status of a model hosted on the Inference API.",fi,gt,bi,ut,_i,ve,Ws,yi,Co,du="Perform image classification on the given image using the specified model.",xi,dt,ji,H,Ns,Ti,Jo,hu="Perform image segmentation on the given image using the specified model.",$i,ht,Ii,mt,Mi,P,Gs,vi,Uo,mu="Perform image-to-image translation using a specified model.",wi,ft,Ci,bt,Ji,L,Vs,Ui,ko,fu="Takes an input image and return text.",ki,qo,bu=`Models can have very different outputs depending on your use case (image captioning, optical character recognition
(OCR), Pix2Struct, etc). Please have a look to the model card to learn more about a model’s specificities.`,qi,_t,Zi,D,Ds,Ei,Zo,_u="List models currently deployed on the Inference API service.",Wi,Eo,yu=`This helper checks deployed models framework by framework. By default, it will check the 4 main frameworks that
are supported and account for 95% of the hosted models. However, if you want a complete list of models you can
specify <code>frameworks=&quot;all&quot;</code> as input. Alternatively, if you know before-hand which framework you are interested
in, you can also restrict to search to this one (e.g. <code>frameworks=&quot;text-generation-inference&quot;</code>). The more
frameworks are checked, the more time it will take.`,Ni,yt,Gi,xt,Vi,Q,Rs,Di,Wo,xu="Perform object detection on the given image using the specified model.",Ri,jt,Yi,Tt,Bi,$t,Ys,Ai,No,ju="Make a POST request to the inference server.",Hi,we,Bs,Pi,Go,Tu="Retrieve the answer to a question from a given text.",Li,It,Qi,Ce,As,Fi,Vo,$u="Compute the semantic similarity between a sentence and a list of other sentences by comparing their embeddings.",Si,Mt,Xi,Je,Hs,zi,Do,Iu="Generate a summary of a given text using a specified model.",Oi,vt,Ki,Ue,Ps,ec,Ro,Mu="Retrieve the answer to a question from information given in a table.",nc,wt,tc,ke,Ls,sc,Yo,vu="Classifying a target category (a group) based on a set of attributes.",ac,Ct,oc,qe,Qs,rc,Bo,wu="Predicting a numerical target value given a set of attributes/features in a table.",lc,Jt,ic,Ze,Fs,cc,Ao,Cu="Perform text classification (e.g. sentiment-analysis) on the given text.",pc,Ut,gc,E,Ss,uc,Ho,Ju="Given a prompt, generate the following text.",dc,Po,Uu=`It is recommended to have Pydantic installed in order to get inputs validated. This is preferable as it allow
early failures.`,hc,Lo,ku=`API endpoint is supposed to run with the <code>text-generation-inference</code> backend (TGI). This backend is the
go-to solution to run large language models at scale. However, for some smaller models (e.g. “gpt2”) the
default <code>transformers</code> + <code>api-inference</code> solution is still in use. Both approaches have very similar APIs, but
not exactly the same. This method is compatible with both approaches but some parameters are only available for
<code>text-generation-inference</code>. If some parameters are ignored, a warning message is triggered but the process
continues correctly.`,mc,Qo,qu='To learn more about the TGI project, please refer to <a href="https://github.com/huggingface/text-generation-inference" rel="nofollow">https://github.com/huggingface/text-generation-inference</a>.',fc,kt,bc,F,Xs,_c,Fo,Zu="Generate an image based on a given text using a specified model.",yc,qt,xc,Zt,jc,Ee,zs,Tc,So,Eu="Synthesize an audio of a voice pronouncing a given text.",$c,Et,Ic,We,Os,Mc,Xo,Wu=`Perform token classification on the given text.
Usually used for sentence parsing, either grammatical, or Named Entity Recognition (NER) to understand keywords contained within text.`,vc,Wt,wc,S,Ks,Cc,zo,Nu="Convert text from one language to another.",Jc,Oo,Gu=`Check out <a href="https://huggingface.co/tasks/translation" rel="nofollow">https://huggingface.co/tasks/translation</a> for more information on how to choose the best model for
your specific use case. Source and target languages usually depends on the model.`,Uc,Nt,kc,Ne,ea,qc,Ko,Vu="Answering open-ended questions based on an image.",Zc,Gt,Ec,Ge,na,Wc,er,Du="Provide as input a text and a set of candidate labels to classify the input text.",Nc,Vt,Gc,Ve,ta,Vc,nr,Ru="Provide input image and text labels to predict text labels for the image.",Dc,Dt,pl,sa,gl,aa,Yu=`An async version of the client is also provided, based on <code>asyncio</code> and <code>aiohttp</code>.
To use it, you can either install <code>aiohttp</code> directly or use the <code>[inference]</code> extra:`,ul,oa,dl,C,ra,Rc,tr,Bu="Initialize a new Inference Client.",Yc,sr,Au=`<a href="/docs/huggingface_hub/v0.18.0.rc0/en/package_reference/inference_client#huggingface_hub.InferenceClient">InferenceClient</a> aims to provide a unified experience to perform inference. The client can be used
seamlessly with either the (free) Inference API or self-hosted Inference Endpoints.`,Bc,De,la,Ac,ar,Hu="Perform audio classification on the provided audio content.",Hc,Rt,Pc,Re,ia,Lc,or,Pu="Perform automatic speech recognition (ASR or audio-to-text) on the given audio content.",Qc,Yt,Fc,Ye,ca,Sc,rr,Lu="Generate conversational responses based on the given input text (i.e. chat with the API).",Xc,Bt,zc,Be,pa,Oc,lr,Qu="Answer questions on document images.",Kc,At,ep,Ae,ga,np,ir,Fu="Generate embeddings for a given text.",tp,Ht,sp,He,ua,ap,cr,Su="Fill in a hole with a missing word (token to be precise).",op,Pt,rp,X,da,lp,pr,Xu="Get the status of a model hosted on the Inference API.",ip,Lt,cp,Qt,pp,Pe,ha,gp,gr,zu="Perform image classification on the given image using the specified model.",up,Ft,dp,z,ma,hp,ur,Ou="Perform image segmentation on the given image using the specified model.",mp,St,fp,Xt,bp,O,fa,_p,dr,Ku="Perform image-to-image translation using a specified model.",yp,zt,xp,Ot,jp,K,ba,Tp,hr,ed="Takes an input image and return text.",$p,mr,nd=`Models can have very different outputs depending on your use case (image captioning, optical character recognition
(OCR), Pix2Struct, etc). Please have a look to the model card to learn more about a model’s specificities.`,Ip,Kt,Mp,R,_a,vp,fr,td="List models currently deployed on the Inference API service.",wp,br,sd=`This helper checks deployed models framework by framework. By default, it will check the 4 main frameworks that
are supported and account for 95% of the hosted models. However, if you want a complete list of models you can
specify <code>frameworks=&quot;all&quot;</code> as input. Alternatively, if you know before-hand which framework you are interested
in, you can also restrict to search to this one (e.g. <code>frameworks=&quot;text-generation-inference&quot;</code>). The more
frameworks are checked, the more time it will take.`,Cp,es,Jp,ns,Up,ee,ya,kp,_r,ad="Perform object detection on the given image using the specified model.",qp,ts,Zp,ss,Ep,as,xa,Wp,yr,od="Make a POST request to the inference server.",Np,Le,ja,Gp,xr,rd="Retrieve the answer to a question from a given text.",Vp,os,Dp,Qe,Ta,Rp,jr,ld="Compute the semantic similarity between a sentence and a list of other sentences by comparing their embeddings.",Yp,rs,Bp,Fe,$a,Ap,Tr,id="Generate a summary of a given text using a specified model.",Hp,ls,Pp,Se,Ia,Lp,$r,cd="Retrieve the answer to a question from information given in a table.",Qp,is,Fp,Xe,Ma,Sp,Ir,pd="Classifying a target category (a group) based on a set of attributes.",Xp,cs,zp,ze,va,Op,Mr,gd="Predicting a numerical target value given a set of attributes/features in a table.",Kp,ps,eg,Oe,wa,ng,vr,ud="Perform text classification (e.g. sentiment-analysis) on the given text.",tg,gs,sg,W,Ca,ag,wr,dd="Given a prompt, generate the following text.",og,Cr,hd=`It is recommended to have Pydantic installed in order to get inputs validated. This is preferable as it allow
early failures.`,rg,Jr,md=`API endpoint is supposed to run with the <code>text-generation-inference</code> backend (TGI). This backend is the
go-to solution to run large language models at scale. However, for some smaller models (e.g. “gpt2”) the
default <code>transformers</code> + <code>api-inference</code> solution is still in use. Both approaches have very similar APIs, but
not exactly the same. This method is compatible with both approaches but some parameters are only available for
<code>text-generation-inference</code>. If some parameters are ignored, a warning message is triggered but the process
continues correctly.`,lg,Ur,fd='To learn more about the TGI project, please refer to <a href="https://github.com/huggingface/text-generation-inference" rel="nofollow">https://github.com/huggingface/text-generation-inference</a>.',ig,us,cg,ne,Ja,pg,kr,bd="Generate an image based on a given text using a specified model.",gg,ds,ug,hs,dg,Ke,Ua,hg,qr,_d="Synthesize an audio of a voice pronouncing a given text.",mg,ms,fg,en,ka,bg,Zr,yd=`Perform token classification on the given text.
Usually used for sentence parsing, either grammatical, or Named Entity Recognition (NER) to understand keywords contained within text.`,_g,fs,yg,te,qa,xg,Er,xd="Convert text from one language to another.",jg,Wr,jd=`Check out <a href="https://huggingface.co/tasks/translation" rel="nofollow">https://huggingface.co/tasks/translation</a> for more information on how to choose the best model for
your specific use case. Source and target languages usually depends on the model.`,Tg,bs,$g,nn,Za,Ig,Nr,Td="Answering open-ended questions based on an image.",Mg,_s,vg,tn,Ea,wg,Gr,$d="Provide as input a text and a set of candidate labels to classify the input text.",Cg,ys,Jg,sn,Wa,Ug,Vr,Id="Provide input image and text labels to predict text labels for the image.",kg,xs,hl,Na,ml,on,Ga,qg,Dr,Md="Error raised when a model is unavailable or the request times out.",fl,Va,bl,Da,vd="For most tasks, the return value has a built-in type (string, list, image…). Here is a list for the more complex types.",_l,rn,Ra,Zg,Rr,wd='Dictionary containing the output of a <a href="/docs/huggingface_hub/v0.18.0.rc0/en/package_reference/inference_client#huggingface_hub.InferenceClient.audio_classification">audio_classification()</a> and  <a href="/docs/huggingface_hub/v0.18.0.rc0/en/package_reference/inference_client#huggingface_hub.InferenceClient.image_classification">image_classification()</a> task.',yl,ln,Ya,Eg,Yr,Cd='Dictionary containing the “conversation” part of a <a href="/docs/huggingface_hub/v0.18.0.rc0/en/package_reference/inference_client#huggingface_hub.InferenceClient.conversational">conversational()</a> task.',xl,cn,Ba,Wg,Br,Jd='Dictionary containing the output of a  <a href="/docs/huggingface_hub/v0.18.0.rc0/en/package_reference/inference_client#huggingface_hub.InferenceClient.conversational">conversational()</a> task.',jl,pn,Aa,Ng,Ar,Ud=`Dictionary containing information about a <a href="/docs/huggingface_hub/v0.18.0.rc0/en/package_reference/inference_client#huggingface_hub.InferenceClient.image_segmentation">image_segmentation()</a> task. In practice, image segmentation returns a
list of <code>ImageSegmentationOutput</code> with 1 item per mask.`,Tl,gn,Ha,Gg,Hr,kd='Dictionary containing the output of a <a href="/docs/huggingface_hub/v0.18.0.rc0/en/package_reference/inference_client#huggingface_hub.InferenceClient.token_classification">token_classification()</a> task.',$l,Pa,Il,La,qd=`<a href="/docs/huggingface_hub/v0.18.0.rc0/en/package_reference/inference_client#huggingface_hub.InferenceClient.text_generation">text_generation()</a> task has a greater support than other tasks in <code>InferenceClient</code>. In
particular, user inputs and server outputs are validated using <a href="https://docs.pydantic.dev/latest/" rel="nofollow">Pydantic</a>
if this package is installed. Therefore, we recommend installing it (<code>pip install pydantic</code>)
for a better user experience.`,Ml,Qa,Zd=`You can find below the dataclasses used to validate data and in particular <a href="/docs/huggingface_hub/v0.18.0.rc0/en/package_reference/inference_client#huggingface_hub.inference._text_generation.TextGenerationParameters">TextGenerationParameters</a> (input),
<a href="/docs/huggingface_hub/v0.18.0.rc0/en/package_reference/inference_client#huggingface_hub.inference._text_generation.TextGenerationResponse">TextGenerationResponse</a> (output) and
<a href="/docs/huggingface_hub/v0.18.0.rc0/en/package_reference/inference_client#huggingface_hub.inference._text_generation.TextGenerationStreamResponse">TextGenerationStreamResponse</a> (streaming output).`,vl,un,Fa,Vg,Pr,Ed="Parameters for text generation.",wl,ae,Sa,Dg,Lr,Wd="Represents a response for text generation.",Rg,Qr,Nd="Only returned when <code>details=True</code>, otherwise a string is returned.",Cl,oe,Xa,Yg,Fr,Gd="Represents a response for streaming text generation.",Bg,Sr,Vd="Only returned when <code>details=True</code> and <code>stream=True</code>.",Jl,dn,za,Ag,Xr,Dd="Represents an input token.",Ul,hn,Oa,Hg,zr,Rd="Represents a token.",kl,mn,Ka,Pg,Or,Yd="An enumeration.",ql,fn,eo,Lg,Kr,Bd="Represents a best-of sequence generated during text generation.",Zl,bn,no,Qg,el,Ad="Represents details of a text generation.",El,_n,to,Fg,nl,Hd="Represents details of a text generation stream.",Wl,so,Nl,ao,Pd=`<code>InferenceAPI</code> is the legacy way to call the Inference API. The interface is more simplistic and requires knowing
the input parameters and output format for each task. It also lacks the ability to connect to other services like
Inference Endpoints or AWS SageMaker. <code>InferenceAPI</code> will soon be deprecated so we recommend using <a href="/docs/huggingface_hub/v0.18.0.rc0/en/package_reference/inference_client#huggingface_hub.InferenceClient">InferenceClient</a>
whenever possible. Check out <a href="../guides/inference#legacy-inferenceapi-client">this guide</a> to learn how to switch from
<code>InferenceAPI</code> to <a href="/docs/huggingface_hub/v0.18.0.rc0/en/package_reference/inference_client#huggingface_hub.InferenceClient">InferenceClient</a> in your scripts.`,Gl,N,oo,Sg,tl,Ld="Client to configure requests and make calls to the HuggingFace Inference API.",Xg,js,zg,Ts,ro,Og,sl,Qd="Inits headers and API call information.",Kg,$s,lo,eu,al,Fd="Make a call to the Inference API.",Vl,ol,Dl;return i=new _o({props:{title:"Inference",local:"inference",headingTag:"h1"}}),vs=new _o({props:{title:"Inference Client",local:"huggingface_hub.InferenceClient",headingTag:"h2"}}),ws=new v({props:{name:"class huggingface_hub.InferenceClient",anchor:"huggingface_hub.InferenceClient",parameters:[{name:"model",val:": typing.Optional[str] = None"},{name:"token",val:": typing.Union[str, bool, NoneType] = None"},{name:"timeout",val:": typing.Optional[float] = None"},{name:"headers",val:": typing.Union[typing.Dict[str, str], NoneType] = None"},{name:"cookies",val:": typing.Union[typing.Dict[str, str], NoneType] = None"}],parametersDescription:[{anchor:"huggingface_hub.InferenceClient.model",description:`<strong>model</strong> (<code>str</code>, <code>optional</code>) &#x2014;
The model to run inference with. Can be a model id hosted on the Hugging Face Hub, e.g. <code>bigcode/starcoder</code>
or a URL to a deployed Inference Endpoint. Defaults to None, in which case a recommended model is
automatically selected for the task.`,name:"model"},{anchor:"huggingface_hub.InferenceClient.token",description:`<strong>token</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Hugging Face token. Will default to the locally saved token. Pass <code>token=False</code> if you don&#x2019;t want to send
your token to the server.`,name:"token"},{anchor:"huggingface_hub.InferenceClient.timeout",description:`<strong>timeout</strong> (<code>float</code>, <code>optional</code>) &#x2014;
The maximum number of seconds to wait for a response from the server. Loading a new model in Inference
API can take up to several minutes. Defaults to None, meaning it will loop until the server is available.`,name:"timeout"},{anchor:"huggingface_hub.InferenceClient.headers",description:`<strong>headers</strong> (<code>Dict[str, str]</code>, <code>optional</code>) &#x2014;
Additional headers to send to the server. By default only the authorization and user-agent headers are sent.
Values in this dictionary will override the default values.`,name:"headers"},{anchor:"huggingface_hub.InferenceClient.cookies",description:`<strong>cookies</strong> (<code>Dict[str, str]</code>, <code>optional</code>) &#x2014;
Additional cookies to send to the server.`,name:"cookies"}],source:"https://github.com/huggingface/huggingface_hub/blob/v0.18.0.rc0/src/huggingface_hub/inference/_client.py#L105"}}),Cs=new v({props:{name:"audio_classification",anchor:"huggingface_hub.InferenceClient.audio_classification",parameters:[{name:"audio",val:": typing.Union[bytes, typing.BinaryIO, str, pathlib.Path]"},{name:"model",val:": typing.Optional[str] = None"}],parametersDescription:[{anchor:"huggingface_hub.InferenceClient.audio_classification.audio",description:`<strong>audio</strong> (Union[str, Path, bytes, BinaryIO]) &#x2014;
The audio content to classify. It can be raw audio bytes, a local audio file, or a URL pointing to an
audio file.`,name:"audio"},{anchor:"huggingface_hub.InferenceClient.audio_classification.model",description:`<strong>model</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The model to use for audio classification. Can be a model ID hosted on the Hugging Face Hub
or a URL to a deployed Inference Endpoint. If not provided, the default recommended model for
audio classification will be used.`,name:"model"}],source:"https://github.com/huggingface/huggingface_hub/blob/v0.18.0.rc0/src/huggingface_hub/inference/_client.py#L258",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>The classification output containing the predicted label and its confidence.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


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


<ul>
<li><a
  href="/docs/huggingface_hub/v0.18.0.rc0/en/package_reference/inference_client#huggingface_hub.InferenceTimeoutError"
>InferenceTimeoutError</a> —
If the model is unavailable or the request times out.</li>
<li><code>HTTPError</code> —
If the request fails with an HTTP error status code other than HTTP 503.</li>
</ul>
`,raiseType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/huggingface_hub/v0.18.0.rc0/en/package_reference/inference_client#huggingface_hub.InferenceTimeoutError"
>InferenceTimeoutError</a> or <code>HTTPError</code></p>
`}}),ot=new Z({props:{anchor:"huggingface_hub.InferenceClient.audio_classification.example",$$slots:{default:[eh]},$$scope:{ctx:$}}}),Js=new v({props:{name:"automatic_speech_recognition",anchor:"huggingface_hub.InferenceClient.automatic_speech_recognition",parameters:[{name:"audio",val:": typing.Union[bytes, typing.BinaryIO, str, pathlib.Path]"},{name:"model",val:": typing.Optional[str] = None"}],parametersDescription:[{anchor:"huggingface_hub.InferenceClient.automatic_speech_recognition.audio",description:`<strong>audio</strong> (Union[str, Path, bytes, BinaryIO]) &#x2014;
The content to transcribe. It can be raw audio bytes, local audio file, or a URL to an audio file.`,name:"audio"},{anchor:"huggingface_hub.InferenceClient.automatic_speech_recognition.model",description:`<strong>model</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The model to use for ASR. Can be a model ID hosted on the Hugging Face Hub or a URL to a deployed
Inference Endpoint. If not provided, the default recommended model for ASR will be used.`,name:"model"}],source:"https://github.com/huggingface/huggingface_hub/blob/v0.18.0.rc0/src/huggingface_hub/inference/_client.py#L296",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


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


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


<ul>
<li><a
  href="/docs/huggingface_hub/v0.18.0.rc0/en/package_reference/inference_client#huggingface_hub.InferenceTimeoutError"
>InferenceTimeoutError</a> —
If the model is unavailable or the request times out.</li>
<li><code>HTTPError</code> —
If the request fails with an HTTP error status code other than HTTP 503.</li>
</ul>
`,raiseType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/huggingface_hub/v0.18.0.rc0/en/package_reference/inference_client#huggingface_hub.InferenceTimeoutError"
>InferenceTimeoutError</a> or <code>HTTPError</code></p>
`}}),rt=new Z({props:{anchor:"huggingface_hub.InferenceClient.automatic_speech_recognition.example",$$slots:{default:[nh]},$$scope:{ctx:$}}}),Us=new v({props:{name:"conversational",anchor:"huggingface_hub.InferenceClient.conversational",parameters:[{name:"text",val:": str"},{name:"generated_responses",val:": typing.Optional[typing.List[str]] = None"},{name:"past_user_inputs",val:": typing.Optional[typing.List[str]] = None"},{name:"parameters",val:": typing.Union[typing.Dict[str, typing.Any], NoneType] = None"},{name:"model",val:": typing.Optional[str] = None"}],parametersDescription:[{anchor:"huggingface_hub.InferenceClient.conversational.text",description:`<strong>text</strong> (<code>str</code>) &#x2014;
The last input from the user in the conversation.`,name:"text"},{anchor:"huggingface_hub.InferenceClient.conversational.generated_responses",description:`<strong>generated_responses</strong> (<code>List[str]</code>, <em>optional</em>) &#x2014;
A list of strings corresponding to the earlier replies from the model. Defaults to None.`,name:"generated_responses"},{anchor:"huggingface_hub.InferenceClient.conversational.past_user_inputs",description:`<strong>past_user_inputs</strong> (<code>List[str]</code>, <em>optional</em>) &#x2014;
A list of strings corresponding to the earlier replies from the user. Should be the same length as
<code>generated_responses</code>. Defaults to None.`,name:"past_user_inputs"},{anchor:"huggingface_hub.InferenceClient.conversational.parameters",description:`<strong>parameters</strong> (<code>Dict[str, Any]</code>, <em>optional</em>) &#x2014;
Additional parameters for the conversational task. Defaults to None. For more details about the available
parameters, please refer to <a href="https://huggingface.co/docs/api-inference/detailed_parameters#conversational-task" rel="nofollow">this page</a>`,name:"parameters"},{anchor:"huggingface_hub.InferenceClient.conversational.model",description:`<strong>model</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The model to use for the conversational task. Can be a model ID hosted on the Hugging Face Hub or a URL to
a deployed Inference Endpoint. If not provided, the default recommended conversational model will be used.
Defaults to None.`,name:"model"}],source:"https://github.com/huggingface/huggingface_hub/blob/v0.18.0.rc0/src/huggingface_hub/inference/_client.py#L332",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>The generated conversational output.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


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


<ul>
<li><a
  href="/docs/huggingface_hub/v0.18.0.rc0/en/package_reference/inference_client#huggingface_hub.InferenceTimeoutError"
>InferenceTimeoutError</a> —
If the model is unavailable or the request times out.</li>
<li><code>HTTPError</code> —
If the request fails with an HTTP error status code other than HTTP 503.</li>
</ul>
`,raiseType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/huggingface_hub/v0.18.0.rc0/en/package_reference/inference_client#huggingface_hub.InferenceTimeoutError"
>InferenceTimeoutError</a> or <code>HTTPError</code></p>
`}}),lt=new Z({props:{anchor:"huggingface_hub.InferenceClient.conversational.example",$$slots:{default:[th]},$$scope:{ctx:$}}}),ks=new v({props:{name:"document_question_answering",anchor:"huggingface_hub.InferenceClient.document_question_answering",parameters:[{name:"image",val:": typing.Union[bytes, typing.BinaryIO, str, pathlib.Path]"},{name:"question",val:": str"},{name:"model",val:": typing.Optional[str] = None"}],parametersDescription:[{anchor:"huggingface_hub.InferenceClient.document_question_answering.image",description:`<strong>image</strong> (<code>Union[str, Path, bytes, BinaryIO]</code>) &#x2014;
The input image for the context. It can be raw bytes, an image file, or a URL to an online image.`,name:"image"},{anchor:"huggingface_hub.InferenceClient.document_question_answering.question",description:`<strong>question</strong> (<code>str</code>) &#x2014;
Question to be answered.`,name:"question"},{anchor:"huggingface_hub.InferenceClient.document_question_answering.model",description:`<strong>model</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The model to use for the document question answering task. Can be a model ID hosted on the Hugging Face Hub or a URL to
a deployed Inference Endpoint. If not provided, the default recommended document question answering model will be used.
Defaults to None.`,name:"model"}],source:"https://github.com/huggingface/huggingface_hub/blob/v0.18.0.rc0/src/huggingface_hub/inference/_client.py#L437",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>a list of dictionaries containing the predicted label, associated probability, word ids, and page number.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


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


<ul>
<li><a
  href="/docs/huggingface_hub/v0.18.0.rc0/en/package_reference/inference_client#huggingface_hub.InferenceTimeoutError"
>InferenceTimeoutError</a> —
If the model is unavailable or the request times out.</li>
<li><code>HTTPError</code> —
If the request fails with an HTTP error status code other than HTTP 503.</li>
</ul>
`,raiseType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/huggingface_hub/v0.18.0.rc0/en/package_reference/inference_client#huggingface_hub.InferenceTimeoutError"
>InferenceTimeoutError</a> or <code>HTTPError</code></p>
`}}),it=new Z({props:{anchor:"huggingface_hub.InferenceClient.document_question_answering.example",$$slots:{default:[sh]},$$scope:{ctx:$}}}),qs=new v({props:{name:"feature_extraction",anchor:"huggingface_hub.InferenceClient.feature_extraction",parameters:[{name:"text",val:": str"},{name:"model",val:": typing.Optional[str] = None"}],parametersDescription:[{anchor:"huggingface_hub.InferenceClient.feature_extraction.text",description:`<strong>text</strong> (<code>str</code>) &#x2014;
The text to embed.`,name:"text"},{anchor:"huggingface_hub.InferenceClient.feature_extraction.model",description:`<strong>model</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The model to use for the conversational task. Can be a model ID hosted on the Hugging Face Hub or a URL to
a deployed Inference Endpoint. If not provided, the default recommended conversational model will be used.
Defaults to None.`,name:"model"}],source:"https://github.com/huggingface/huggingface_hub/blob/v0.18.0.rc0/src/huggingface_hub/inference/_client.py#L478",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>The embedding representing the input text as a float32 numpy array.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


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


<ul>
<li><a
  href="/docs/huggingface_hub/v0.18.0.rc0/en/package_reference/inference_client#huggingface_hub.InferenceTimeoutError"
>InferenceTimeoutError</a> —
If the model is unavailable or the request times out.</li>
<li><code>HTTPError</code> —
If the request fails with an HTTP error status code other than HTTP 503.</li>
</ul>
`,raiseType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/huggingface_hub/v0.18.0.rc0/en/package_reference/inference_client#huggingface_hub.InferenceTimeoutError"
>InferenceTimeoutError</a> or <code>HTTPError</code></p>
`}}),ct=new Z({props:{anchor:"huggingface_hub.InferenceClient.feature_extraction.example",$$slots:{default:[ah]},$$scope:{ctx:$}}}),Zs=new v({props:{name:"fill_mask",anchor:"huggingface_hub.InferenceClient.fill_mask",parameters:[{name:"text",val:": str"},{name:"model",val:": typing.Optional[str] = None"}],parametersDescription:[{anchor:"huggingface_hub.InferenceClient.fill_mask.text",description:`<strong>text</strong> (<code>str</code>) &#x2014;
a string to be filled from, must contain the [MASK] token (check model card for exact name of the mask).`,name:"text"},{anchor:"huggingface_hub.InferenceClient.fill_mask.model",description:`<strong>model</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The model to use for the fill mask task. Can be a model ID hosted on the Hugging Face Hub or a URL to
a deployed Inference Endpoint. If not provided, the default recommended fill mask model will be used.
Defaults to None.`,name:"model"}],source:"https://github.com/huggingface/huggingface_hub/blob/v0.18.0.rc0/src/huggingface_hub/inference/_client.py#L514",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>a list of fill mask output dictionaries containing the predicted label, associated
probability, token reference, and completed text.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


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


<ul>
<li><a
  href="/docs/huggingface_hub/v0.18.0.rc0/en/package_reference/inference_client#huggingface_hub.InferenceTimeoutError"
>InferenceTimeoutError</a> —
If the model is unavailable or the request times out.</li>
<li><code>HTTPError</code> —
If the request fails with an HTTP error status code other than HTTP 503.</li>
</ul>
`,raiseType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/huggingface_hub/v0.18.0.rc0/en/package_reference/inference_client#huggingface_hub.InferenceTimeoutError"
>InferenceTimeoutError</a> or <code>HTTPError</code></p>
`}}),pt=new Z({props:{anchor:"huggingface_hub.InferenceClient.fill_mask.example",$$slots:{default:[oh]},$$scope:{ctx:$}}}),Es=new v({props:{name:"get_model_status",anchor:"huggingface_hub.InferenceClient.get_model_status",parameters:[{name:"model",val:": typing.Optional[str] = None"}],parametersDescription:[{anchor:"huggingface_hub.InferenceClient.get_model_status.model",description:`<strong>model</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Identifier of the model for witch the status gonna be checked. If model is not provided,
the model associated with this instance of <a href="/docs/huggingface_hub/v0.18.0.rc0/en/package_reference/inference_client#huggingface_hub.InferenceClient">InferenceClient</a> will be used. Only InferenceAPI service can be checked so the
identifier cannot be a URL.`,name:"model"}],source:"https://github.com/huggingface/huggingface_hub/blob/v0.18.0.rc0/src/huggingface_hub/inference/_client.py#L1878",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>An instance of ModelStatus dataclass, containing information,
about the state of the model: load, state, compute type and framework.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>ModelStatus</code></p>
`}}),gt=new se({props:{$$slots:{default:[rh]},$$scope:{ctx:$}}}),ut=new Z({props:{anchor:"huggingface_hub.InferenceClient.get_model_status.example",$$slots:{default:[lh]},$$scope:{ctx:$}}}),Ws=new v({props:{name:"image_classification",anchor:"huggingface_hub.InferenceClient.image_classification",parameters:[{name:"image",val:": typing.Union[bytes, typing.BinaryIO, str, pathlib.Path]"},{name:"model",val:": typing.Optional[str] = None"}],parametersDescription:[{anchor:"huggingface_hub.InferenceClient.image_classification.image",description:`<strong>image</strong> (<code>Union[str, Path, bytes, BinaryIO]</code>) &#x2014;
The image to classify. It can be raw bytes, an image file, or a URL to an online image.`,name:"image"},{anchor:"huggingface_hub.InferenceClient.image_classification.model",description:`<strong>model</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The model to use for image classification. Can be a model ID hosted on the Hugging Face Hub or a URL to a
deployed Inference Endpoint. If not provided, the default recommended model for image classification will be used.`,name:"model"}],source:"https://github.com/huggingface/huggingface_hub/blob/v0.18.0.rc0/src/huggingface_hub/inference/_client.py#L554",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>a list of dictionaries containing the predicted label and associated probability.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


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


<ul>
<li><a
  href="/docs/huggingface_hub/v0.18.0.rc0/en/package_reference/inference_client#huggingface_hub.InferenceTimeoutError"
>InferenceTimeoutError</a> —
If the model is unavailable or the request times out.</li>
<li><code>HTTPError</code> —
If the request fails with an HTTP error status code other than HTTP 503.</li>
</ul>
`,raiseType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/huggingface_hub/v0.18.0.rc0/en/package_reference/inference_client#huggingface_hub.InferenceTimeoutError"
>InferenceTimeoutError</a> or <code>HTTPError</code></p>
`}}),dt=new Z({props:{anchor:"huggingface_hub.InferenceClient.image_classification.example",$$slots:{default:[ih]},$$scope:{ctx:$}}}),Ns=new v({props:{name:"image_segmentation",anchor:"huggingface_hub.InferenceClient.image_segmentation",parameters:[{name:"image",val:": typing.Union[bytes, typing.BinaryIO, str, pathlib.Path]"},{name:"model",val:": typing.Optional[str] = None"}],parametersDescription:[{anchor:"huggingface_hub.InferenceClient.image_segmentation.image",description:`<strong>image</strong> (<code>Union[str, Path, bytes, BinaryIO]</code>) &#x2014;
The image to segment. It can be raw bytes, an image file, or a URL to an online image.`,name:"image"},{anchor:"huggingface_hub.InferenceClient.image_segmentation.model",description:`<strong>model</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The model to use for image segmentation. Can be a model ID hosted on the Hugging Face Hub or a URL to a
deployed Inference Endpoint. If not provided, the default recommended model for image segmentation will be used.`,name:"model"}],source:"https://github.com/huggingface/huggingface_hub/blob/v0.18.0.rc0/src/huggingface_hub/inference/_client.py#L590",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>A list of dictionaries containing the segmented masks and associated attributes.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


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


<ul>
<li><a
  href="/docs/huggingface_hub/v0.18.0.rc0/en/package_reference/inference_client#huggingface_hub.InferenceTimeoutError"
>InferenceTimeoutError</a> —
If the model is unavailable or the request times out.</li>
<li><code>HTTPError</code> —
If the request fails with an HTTP error status code other than HTTP 503.</li>
</ul>
`,raiseType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/huggingface_hub/v0.18.0.rc0/en/package_reference/inference_client#huggingface_hub.InferenceTimeoutError"
>InferenceTimeoutError</a> or <code>HTTPError</code></p>
`}}),ht=new se({props:{warning:!0,$$slots:{default:[ch]},$$scope:{ctx:$}}}),mt=new Z({props:{anchor:"huggingface_hub.InferenceClient.image_segmentation.example",$$slots:{default:[ph]},$$scope:{ctx:$}}}),Gs=new v({props:{name:"image_to_image",anchor:"huggingface_hub.InferenceClient.image_to_image",parameters:[{name:"image",val:": typing.Union[bytes, typing.BinaryIO, str, pathlib.Path]"},{name:"prompt",val:": typing.Optional[str] = None"},{name:"negative_prompt",val:": typing.Optional[str] = None"},{name:"height",val:": typing.Optional[int] = None"},{name:"width",val:": typing.Optional[int] = None"},{name:"num_inference_steps",val:": typing.Optional[int] = None"},{name:"guidance_scale",val:": typing.Optional[float] = None"},{name:"model",val:": typing.Optional[str] = None"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"huggingface_hub.InferenceClient.image_to_image.image",description:`<strong>image</strong> (<code>Union[str, Path, bytes, BinaryIO]</code>) &#x2014;
The input image for translation. It can be raw bytes, an image file, or a URL to an online image.`,name:"image"},{anchor:"huggingface_hub.InferenceClient.image_to_image.prompt",description:`<strong>prompt</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The text prompt to guide the image generation.`,name:"prompt"},{anchor:"huggingface_hub.InferenceClient.image_to_image.negative_prompt",description:`<strong>negative_prompt</strong> (<code>str</code>, <em>optional</em>) &#x2014;
A negative prompt to guide the translation process.`,name:"negative_prompt"},{anchor:"huggingface_hub.InferenceClient.image_to_image.height",description:`<strong>height</strong> (<code>int</code>, <em>optional</em>) &#x2014;
The height in pixels of the generated image.`,name:"height"},{anchor:"huggingface_hub.InferenceClient.image_to_image.width",description:`<strong>width</strong> (<code>int</code>, <em>optional</em>) &#x2014;
The width in pixels of the generated image.`,name:"width"},{anchor:"huggingface_hub.InferenceClient.image_to_image.num_inference_steps",description:`<strong>num_inference_steps</strong> (<code>int</code>, <em>optional</em>) &#x2014;
The number of denoising steps. More denoising steps usually lead to a higher quality image at the
expense of slower inference.`,name:"num_inference_steps"},{anchor:"huggingface_hub.InferenceClient.image_to_image.guidance_scale",description:`<strong>guidance_scale</strong> (<code>float</code>, <em>optional</em>) &#x2014;
Higher guidance scale encourages to generate images that are closely linked to the text <code>prompt</code>,
usually at the expense of lower image quality.`,name:"guidance_scale"},{anchor:"huggingface_hub.InferenceClient.image_to_image.model",description:`<strong>model</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The model to use for inference. Can be a model ID hosted on the Hugging Face Hub or a URL to a deployed
Inference Endpoint. This parameter overrides the model defined at the instance level. Defaults to None.`,name:"model"}],source:"https://github.com/huggingface/huggingface_hub/blob/v0.18.0.rc0/src/huggingface_hub/inference/_client.py#L641",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


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


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


<ul>
<li><a
  href="/docs/huggingface_hub/v0.18.0.rc0/en/package_reference/inference_client#huggingface_hub.InferenceTimeoutError"
>InferenceTimeoutError</a> —
If the model is unavailable or the request times out.</li>
<li><code>HTTPError</code> —
If the request fails with an HTTP error status code other than HTTP 503.</li>
</ul>
`,raiseType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/huggingface_hub/v0.18.0.rc0/en/package_reference/inference_client#huggingface_hub.InferenceTimeoutError"
>InferenceTimeoutError</a> or <code>HTTPError</code></p>
`}}),ft=new se({props:{warning:!0,$$slots:{default:[gh]},$$scope:{ctx:$}}}),bt=new Z({props:{anchor:"huggingface_hub.InferenceClient.image_to_image.example",$$slots:{default:[uh]},$$scope:{ctx:$}}}),Vs=new v({props:{name:"image_to_text",anchor:"huggingface_hub.InferenceClient.image_to_text",parameters:[{name:"image",val:": typing.Union[bytes, typing.BinaryIO, str, pathlib.Path]"},{name:"model",val:": typing.Optional[str] = None"}],parametersDescription:[{anchor:"huggingface_hub.InferenceClient.image_to_text.image",description:`<strong>image</strong> (<code>Union[str, Path, bytes, BinaryIO]</code>) &#x2014;
The input image to caption. It can be raw bytes, an image file, or a URL to an online image..`,name:"image"},{anchor:"huggingface_hub.InferenceClient.image_to_text.model",description:`<strong>model</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The model to use for inference. Can be a model ID hosted on the Hugging Face Hub or a URL to a deployed
Inference Endpoint. This parameter overrides the model defined at the instance level. Defaults to None.`,name:"model"}],source:"https://github.com/huggingface/huggingface_hub/blob/v0.18.0.rc0/src/huggingface_hub/inference/_client.py#L725",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>The generated text.</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><a
  href="/docs/huggingface_hub/v0.18.0.rc0/en/package_reference/inference_client#huggingface_hub.InferenceTimeoutError"
>InferenceTimeoutError</a> —
If the model is unavailable or the request times out.</li>
<li><code>HTTPError</code> —
If the request fails with an HTTP error status code other than HTTP 503.</li>
</ul>
`,raiseType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/huggingface_hub/v0.18.0.rc0/en/package_reference/inference_client#huggingface_hub.InferenceTimeoutError"
>InferenceTimeoutError</a> or <code>HTTPError</code></p>
`}}),_t=new Z({props:{anchor:"huggingface_hub.InferenceClient.image_to_text.example",$$slots:{default:[dh]},$$scope:{ctx:$}}}),Ds=new v({props:{name:"list_deployed_models",anchor:"huggingface_hub.InferenceClient.list_deployed_models",parameters:[{name:"frameworks",val:": typing.Union[NoneType, str, typing.Literal['all'], typing.List[str]] = None"}],parametersDescription:[{anchor:"huggingface_hub.InferenceClient.list_deployed_models.frameworks",description:`<strong>frameworks</strong> (<code>Literal[&quot;all&quot;]</code> or <code>List[str]</code> or <code>str</code>, <em>optional</em>) &#x2014;
The frameworks to filter on. By default only a subset of the available frameworks are tested. If set to
&#x201C;all&#x201D;, all available frameworks will be tested. It is also possible to provide a single framework or a
custom set of frameworks to check.`,name:"frameworks"}],source:"https://github.com/huggingface/huggingface_hub/blob/v0.18.0.rc0/src/huggingface_hub/inference/_client.py#L761",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>A dictionary mapping task names to a sorted list of model IDs.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>Dict[str, List[str]]</code></p>
`}}),yt=new se({props:{$$slots:{default:[hh]},$$scope:{ctx:$}}}),xt=new Z({props:{anchor:"huggingface_hub.InferenceClient.list_deployed_models.example",$$slots:{default:[mh]},$$scope:{ctx:$}}}),Rs=new v({props:{name:"object_detection",anchor:"huggingface_hub.InferenceClient.object_detection",parameters:[{name:"image",val:": typing.Union[bytes, typing.BinaryIO, str, pathlib.Path]"},{name:"model",val:": typing.Optional[str] = None"}],parametersDescription:[{anchor:"huggingface_hub.InferenceClient.object_detection.image",description:`<strong>image</strong> (<code>Union[str, Path, bytes, BinaryIO]</code>) &#x2014;
The image to detect objects on. It can be raw bytes, an image file, or a URL to an online image.`,name:"image"},{anchor:"huggingface_hub.InferenceClient.object_detection.model",description:`<strong>model</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The model to use for object detection. Can be a model ID hosted on the Hugging Face Hub or a URL to a
deployed Inference Endpoint. If not provided, the default recommended model for object detection (DETR) will be used.`,name:"model"}],source:"https://github.com/huggingface/huggingface_hub/blob/v0.18.0.rc0/src/huggingface_hub/inference/_client.py#L836",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>A list of dictionaries containing the bounding boxes and associated attributes.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


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


<ul>
<li><a
  href="/docs/huggingface_hub/v0.18.0.rc0/en/package_reference/inference_client#huggingface_hub.InferenceTimeoutError"
>InferenceTimeoutError</a> —
If the model is unavailable or the request times out.</li>
<li><code>HTTPError</code> —
If the request fails with an HTTP error status code other than HTTP 503.</li>
<li><code>ValueError</code> —
If the request output is not a List.</li>
</ul>
`,raiseType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/huggingface_hub/v0.18.0.rc0/en/package_reference/inference_client#huggingface_hub.InferenceTimeoutError"
>InferenceTimeoutError</a> or <code>HTTPError</code> or <code>ValueError</code></p>
`}}),jt=new se({props:{warning:!0,$$slots:{default:[fh]},$$scope:{ctx:$}}}),Tt=new Z({props:{anchor:"huggingface_hub.InferenceClient.object_detection.example",$$slots:{default:[bh]},$$scope:{ctx:$}}}),Ys=new v({props:{name:"post",anchor:"huggingface_hub.InferenceClient.post",parameters:[{name:"json",val:": typing.Union[str, typing.Dict, typing.List, NoneType] = None"},{name:"data",val:": typing.Union[bytes, typing.BinaryIO, str, pathlib.Path, NoneType] = None"},{name:"model",val:": typing.Optional[str] = None"},{name:"task",val:": typing.Optional[str] = None"},{name:"stream",val:": bool = False"}],parametersDescription:[{anchor:"huggingface_hub.InferenceClient.post.json",description:`<strong>json</strong> (<code>Union[str, Dict, List]</code>, <em>optional</em>) &#x2014;
The JSON data to send in the request body. Defaults to None.`,name:"json"},{anchor:"huggingface_hub.InferenceClient.post.data",description:`<strong>data</strong> (<code>Union[str, Path, bytes, BinaryIO]</code>, <em>optional</em>) &#x2014;
The content to send in the request body. It can be raw bytes, a pointer to an opened file, a local file
path, or a URL to an online resource (image, audio file,&#x2026;). If both <code>json</code> and <code>data</code> are passed,
<code>data</code> will take precedence. At least <code>json</code> or <code>data</code> must be provided. Defaults to None.`,name:"data"},{anchor:"huggingface_hub.InferenceClient.post.model",description:`<strong>model</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The model to use for inference. Can be a model ID hosted on the Hugging Face Hub or a URL to a deployed
Inference Endpoint. Will override the model defined at the instance level. Defaults to None.`,name:"model"},{anchor:"huggingface_hub.InferenceClient.post.task",description:`<strong>task</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The task to perform on the inference. Used only to default to a recommended model if <code>model</code> is not
provided. At least <code>model</code> or <code>task</code> must be provided. Defaults to None.`,name:"task"},{anchor:"huggingface_hub.InferenceClient.post.stream",description:`<strong>stream</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether to iterate over streaming APIs.`,name:"stream"}],source:"https://github.com/huggingface/huggingface_hub/blob/v0.18.0.rc0/src/huggingface_hub/inference/_client.py#L172",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>The raw bytes returned by the server.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


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


<ul>
<li><a
  href="/docs/huggingface_hub/v0.18.0.rc0/en/package_reference/inference_client#huggingface_hub.InferenceTimeoutError"
>InferenceTimeoutError</a> —
If the model is unavailable or the request times out.</li>
<li><code>HTTPError</code> —
If the request fails with an HTTP error status code other than HTTP 503.</li>
</ul>
`,raiseType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/huggingface_hub/v0.18.0.rc0/en/package_reference/inference_client#huggingface_hub.InferenceTimeoutError"
>InferenceTimeoutError</a> or <code>HTTPError</code></p>
`}}),Bs=new v({props:{name:"question_answering",anchor:"huggingface_hub.InferenceClient.question_answering",parameters:[{name:"question",val:": str"},{name:"context",val:": str"},{name:"model",val:": typing.Optional[str] = None"}],parametersDescription:[{anchor:"huggingface_hub.InferenceClient.question_answering.question",description:`<strong>question</strong> (<code>str</code>) &#x2014;
Question to be answered.`,name:"question"},{anchor:"huggingface_hub.InferenceClient.question_answering.context",description:`<strong>context</strong> (<code>str</code>) &#x2014;
The context of the question.`,name:"context"},{anchor:"huggingface_hub.InferenceClient.question_answering.model",description:`<strong>model</strong> (<code>str</code>) &#x2014;
The model to use for the question answering task. Can be a model ID hosted on the Hugging Face Hub or a URL to
a deployed Inference Endpoint.`,name:"model"}],source:"https://github.com/huggingface/huggingface_hub/blob/v0.18.0.rc0/src/huggingface_hub/inference/_client.py#L884",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>a dictionary of question answering output containing the score, start index, end index, and answer.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


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


<ul>
<li><a
  href="/docs/huggingface_hub/v0.18.0.rc0/en/package_reference/inference_client#huggingface_hub.InferenceTimeoutError"
>InferenceTimeoutError</a> —
If the model is unavailable or the request times out.</li>
<li><code>HTTPError</code> —
If the request fails with an HTTP error status code other than HTTP 503.</li>
</ul>
`,raiseType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/huggingface_hub/v0.18.0.rc0/en/package_reference/inference_client#huggingface_hub.InferenceTimeoutError"
>InferenceTimeoutError</a> or <code>HTTPError</code></p>
`}}),It=new Z({props:{anchor:"huggingface_hub.InferenceClient.question_answering.example",$$slots:{default:[_h]},$$scope:{ctx:$}}}),As=new v({props:{name:"sentence_similarity",anchor:"huggingface_hub.InferenceClient.sentence_similarity",parameters:[{name:"sentence",val:": str"},{name:"other_sentences",val:": typing.List[str]"},{name:"model",val:": typing.Optional[str] = None"}],parametersDescription:[{anchor:"huggingface_hub.InferenceClient.sentence_similarity.sentence",description:`<strong>sentence</strong> (<code>str</code>) &#x2014;
The main sentence to compare to others.`,name:"sentence"},{anchor:"huggingface_hub.InferenceClient.sentence_similarity.other_sentences",description:`<strong>other_sentences</strong> (<code>List[str]</code>) &#x2014;
The list of sentences to compare to.`,name:"other_sentences"},{anchor:"huggingface_hub.InferenceClient.sentence_similarity.model",description:`<strong>model</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The model to use for the conversational task. Can be a model ID hosted on the Hugging Face Hub or a URL to
a deployed Inference Endpoint. If not provided, the default recommended conversational model will be used.
Defaults to None.`,name:"model"}],source:"https://github.com/huggingface/huggingface_hub/blob/v0.18.0.rc0/src/huggingface_hub/inference/_client.py#L925",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>The embedding representing the input text.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


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


<ul>
<li><a
  href="/docs/huggingface_hub/v0.18.0.rc0/en/package_reference/inference_client#huggingface_hub.InferenceTimeoutError"
>InferenceTimeoutError</a> —
If the model is unavailable or the request times out.</li>
<li><code>HTTPError</code> —
If the request fails with an HTTP error status code other than HTTP 503.</li>
</ul>
`,raiseType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/huggingface_hub/v0.18.0.rc0/en/package_reference/inference_client#huggingface_hub.InferenceTimeoutError"
>InferenceTimeoutError</a> or <code>HTTPError</code></p>
`}}),Mt=new Z({props:{anchor:"huggingface_hub.InferenceClient.sentence_similarity.example",$$slots:{default:[yh]},$$scope:{ctx:$}}}),Hs=new v({props:{name:"summarization",anchor:"huggingface_hub.InferenceClient.summarization",parameters:[{name:"text",val:": str"},{name:"parameters",val:": typing.Union[typing.Dict[str, typing.Any], NoneType] = None"},{name:"model",val:": typing.Optional[str] = None"}],parametersDescription:[{anchor:"huggingface_hub.InferenceClient.summarization.text",description:`<strong>text</strong> (<code>str</code>) &#x2014;
The input text to summarize.`,name:"text"},{anchor:"huggingface_hub.InferenceClient.summarization.parameters",description:`<strong>parameters</strong> (<code>Dict[str, Any]</code>, <em>optional</em>) &#x2014;
Additional parameters for summarization. Check out this <a href="https://huggingface.co/docs/api-inference/detailed_parameters#summarization-task" rel="nofollow">page</a>
for more details.`,name:"parameters"},{anchor:"huggingface_hub.InferenceClient.summarization.model",description:`<strong>model</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The model to use for inference. Can be a model ID hosted on the Hugging Face Hub or a URL to a deployed
Inference Endpoint. This parameter overrides the model defined at the instance level. Defaults to None.`,name:"model"}],source:"https://github.com/huggingface/huggingface_hub/blob/v0.18.0.rc0/src/huggingface_hub/inference/_client.py#L972",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>The generated summary text.</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><a
  href="/docs/huggingface_hub/v0.18.0.rc0/en/package_reference/inference_client#huggingface_hub.InferenceTimeoutError"
>InferenceTimeoutError</a> —
If the model is unavailable or the request times out.</li>
<li><code>HTTPError</code> —
If the request fails with an HTTP error status code other than HTTP 503.</li>
</ul>
`,raiseType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/huggingface_hub/v0.18.0.rc0/en/package_reference/inference_client#huggingface_hub.InferenceTimeoutError"
>InferenceTimeoutError</a> or <code>HTTPError</code></p>
`}}),vt=new Z({props:{anchor:"huggingface_hub.InferenceClient.summarization.example",$$slots:{default:[xh]},$$scope:{ctx:$}}}),Ps=new v({props:{name:"table_question_answering",anchor:"huggingface_hub.InferenceClient.table_question_answering",parameters:[{name:"table",val:": typing.Dict[str, typing.Any]"},{name:"query",val:": str"},{name:"model",val:": typing.Optional[str] = None"}],parametersDescription:[{anchor:"huggingface_hub.InferenceClient.table_question_answering.table",description:`<strong>table</strong> (<code>str</code>) &#x2014;
A table of data represented as a dict of lists where entries are headers and the lists are all the
values, all lists must have the same size.`,name:"table"},{anchor:"huggingface_hub.InferenceClient.table_question_answering.query",description:`<strong>query</strong> (<code>str</code>) &#x2014;
The query in plain text that you want to ask the table.`,name:"query"},{anchor:"huggingface_hub.InferenceClient.table_question_answering.model",description:`<strong>model</strong> (<code>str</code>) &#x2014;
The model to use for the table-question-answering task. Can be a model ID hosted on the Hugging Face
Hub or a URL to a deployed Inference Endpoint.`,name:"model"}],source:"https://github.com/huggingface/huggingface_hub/blob/v0.18.0.rc0/src/huggingface_hub/inference/_client.py#L1015",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>a dictionary of table question answering output containing the answer, coordinates, cells and the aggregator used.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


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


<ul>
<li><a
  href="/docs/huggingface_hub/v0.18.0.rc0/en/package_reference/inference_client#huggingface_hub.InferenceTimeoutError"
>InferenceTimeoutError</a> —
If the model is unavailable or the request times out.</li>
<li><code>HTTPError</code> —
If the request fails with an HTTP error status code other than HTTP 503.</li>
</ul>
`,raiseType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/huggingface_hub/v0.18.0.rc0/en/package_reference/inference_client#huggingface_hub.InferenceTimeoutError"
>InferenceTimeoutError</a> or <code>HTTPError</code></p>
`}}),wt=new Z({props:{anchor:"huggingface_hub.InferenceClient.table_question_answering.example",$$slots:{default:[jh]},$$scope:{ctx:$}}}),Ls=new v({props:{name:"tabular_classification",anchor:"huggingface_hub.InferenceClient.tabular_classification",parameters:[{name:"table",val:": typing.Dict[str, typing.Any]"},{name:"model",val:": str"}],parametersDescription:[{anchor:"huggingface_hub.InferenceClient.tabular_classification.table",description:`<strong>table</strong> (<code>Dict[str, Any]</code>) &#x2014;
Set of attributes to classify.`,name:"table"},{anchor:"huggingface_hub.InferenceClient.tabular_classification.model",description:`<strong>model</strong> (<code>str</code>) &#x2014;
The model to use for the tabular-classification task. Can be a model ID hosted on the Hugging Face Hub or a URL to
a deployed Inference Endpoint.`,name:"model"}],source:"https://github.com/huggingface/huggingface_hub/blob/v0.18.0.rc0/src/huggingface_hub/inference/_client.py#L1060",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>a list of labels, one per row in the initial table.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


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


<ul>
<li><a
  href="/docs/huggingface_hub/v0.18.0.rc0/en/package_reference/inference_client#huggingface_hub.InferenceTimeoutError"
>InferenceTimeoutError</a> —
If the model is unavailable or the request times out.</li>
<li><code>HTTPError</code> —
If the request fails with an HTTP error status code other than HTTP 503.</li>
</ul>
`,raiseType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/huggingface_hub/v0.18.0.rc0/en/package_reference/inference_client#huggingface_hub.InferenceTimeoutError"
>InferenceTimeoutError</a> or <code>HTTPError</code></p>
`}}),Ct=new Z({props:{anchor:"huggingface_hub.InferenceClient.tabular_classification.example",$$slots:{default:[Th]},$$scope:{ctx:$}}}),Qs=new v({props:{name:"tabular_regression",anchor:"huggingface_hub.InferenceClient.tabular_regression",parameters:[{name:"table",val:": typing.Dict[str, typing.Any]"},{name:"model",val:": str"}],parametersDescription:[{anchor:"huggingface_hub.InferenceClient.tabular_regression.table",description:`<strong>table</strong> (<code>Dict[str, Any]</code>) &#x2014;
Set of attributes stored in a table. The attributes used to predict the target can be both numerical and categorical.`,name:"table"},{anchor:"huggingface_hub.InferenceClient.tabular_regression.model",description:`<strong>model</strong> (<code>str</code>) &#x2014;
The model to use for the tabular-regression task. Can be a model ID hosted on the Hugging Face Hub or a URL to
a deployed Inference Endpoint.`,name:"model"}],source:"https://github.com/huggingface/huggingface_hub/blob/v0.18.0.rc0/src/huggingface_hub/inference/_client.py#L1104",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>a list of predicted numerical target values.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


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


<ul>
<li><a
  href="/docs/huggingface_hub/v0.18.0.rc0/en/package_reference/inference_client#huggingface_hub.InferenceTimeoutError"
>InferenceTimeoutError</a> —
If the model is unavailable or the request times out.</li>
<li><code>HTTPError</code> —
If the request fails with an HTTP error status code other than HTTP 503.</li>
</ul>
`,raiseType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/huggingface_hub/v0.18.0.rc0/en/package_reference/inference_client#huggingface_hub.InferenceTimeoutError"
>InferenceTimeoutError</a> or <code>HTTPError</code></p>
`}}),Jt=new Z({props:{anchor:"huggingface_hub.InferenceClient.tabular_regression.example",$$slots:{default:[$h]},$$scope:{ctx:$}}}),Fs=new v({props:{name:"text_classification",anchor:"huggingface_hub.InferenceClient.text_classification",parameters:[{name:"text",val:": str"},{name:"model",val:": typing.Optional[str] = None"}],parametersDescription:[{anchor:"huggingface_hub.InferenceClient.text_classification.text",description:`<strong>text</strong> (<code>str</code>) &#x2014;
A string to be classified.`,name:"text"},{anchor:"huggingface_hub.InferenceClient.text_classification.model",description:`<strong>model</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The model to use for the text classification task. Can be a model ID hosted on the Hugging Face Hub or a URL to
a deployed Inference Endpoint. If not provided, the default recommended text classification model will be used.
Defaults to None.`,name:"model"}],source:"https://github.com/huggingface/huggingface_hub/blob/v0.18.0.rc0/src/huggingface_hub/inference/_client.py#L1143",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>a list of dictionaries containing the predicted label and associated probability.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


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


<ul>
<li><a
  href="/docs/huggingface_hub/v0.18.0.rc0/en/package_reference/inference_client#huggingface_hub.InferenceTimeoutError"
>InferenceTimeoutError</a> —
If the model is unavailable or the request times out.</li>
<li><code>HTTPError</code> —
If the request fails with an HTTP error status code other than HTTP 503.</li>
</ul>
`,raiseType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/huggingface_hub/v0.18.0.rc0/en/package_reference/inference_client#huggingface_hub.InferenceTimeoutError"
>InferenceTimeoutError</a> or <code>HTTPError</code></p>
`}}),Ut=new Z({props:{anchor:"huggingface_hub.InferenceClient.text_classification.example",$$slots:{default:[Ih]},$$scope:{ctx:$}}}),Ss=new v({props:{name:"text_generation",anchor:"huggingface_hub.InferenceClient.text_generation",parameters:[{name:"prompt",val:": str"},{name:"details",val:": bool = False"},{name:"stream",val:": bool = False"},{name:"model",val:": typing.Optional[str] = None"},{name:"do_sample",val:": bool = False"},{name:"max_new_tokens",val:": int = 20"},{name:"best_of",val:": typing.Optional[int] = None"},{name:"repetition_penalty",val:": typing.Optional[float] = None"},{name:"return_full_text",val:": bool = False"},{name:"seed",val:": typing.Optional[int] = None"},{name:"stop_sequences",val:": typing.Optional[typing.List[str]] = None"},{name:"temperature",val:": typing.Optional[float] = None"},{name:"top_k",val:": typing.Optional[int] = None"},{name:"top_p",val:": typing.Optional[float] = None"},{name:"truncate",val:": typing.Optional[int] = None"},{name:"typical_p",val:": typing.Optional[float] = None"},{name:"watermark",val:": bool = False"},{name:"decoder_input_details",val:": bool = False"}],parametersDescription:[{anchor:"huggingface_hub.InferenceClient.text_generation.prompt",description:`<strong>prompt</strong> (<code>str</code>) &#x2014;
Input text.`,name:"prompt"},{anchor:"huggingface_hub.InferenceClient.text_generation.details",description:`<strong>details</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
By default, text_generation returns a string. Pass <code>details=True</code> if you want a detailed output (tokens,
probabilities, seed, finish reason, etc.). Only available for models running on with the
<code>text-generation-inference</code> backend.`,name:"details"},{anchor:"huggingface_hub.InferenceClient.text_generation.stream",description:`<strong>stream</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
By default, text_generation returns the full generated text. Pass <code>stream=True</code> if you want a stream of
tokens to be returned. Only available for models running on with the <code>text-generation-inference</code>
backend.`,name:"stream"},{anchor:"huggingface_hub.InferenceClient.text_generation.model",description:`<strong>model</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The model to use for inference. Can be a model ID hosted on the Hugging Face Hub or a URL to a deployed
Inference Endpoint. This parameter overrides the model defined at the instance level. Defaults to None.`,name:"model"},{anchor:"huggingface_hub.InferenceClient.text_generation.do_sample",description:`<strong>do_sample</strong> (<code>bool</code>) &#x2014;
Activate logits sampling`,name:"do_sample"},{anchor:"huggingface_hub.InferenceClient.text_generation.max_new_tokens",description:`<strong>max_new_tokens</strong> (<code>int</code>) &#x2014;
Maximum number of generated tokens`,name:"max_new_tokens"},{anchor:"huggingface_hub.InferenceClient.text_generation.best_of",description:`<strong>best_of</strong> (<code>int</code>) &#x2014;
Generate best_of sequences and return the one if the highest token logprobs`,name:"best_of"},{anchor:"huggingface_hub.InferenceClient.text_generation.repetition_penalty",description:`<strong>repetition_penalty</strong> (<code>float</code>) &#x2014;
The parameter for repetition penalty. 1.0 means no penalty. See <a href="https://arxiv.org/pdf/1909.05858.pdf" rel="nofollow">this
paper</a> for more details.`,name:"repetition_penalty"},{anchor:"huggingface_hub.InferenceClient.text_generation.return_full_text",description:`<strong>return_full_text</strong> (<code>bool</code>) &#x2014;
Whether to prepend the prompt to the generated text`,name:"return_full_text"},{anchor:"huggingface_hub.InferenceClient.text_generation.seed",description:`<strong>seed</strong> (<code>int</code>) &#x2014;
Random sampling seed`,name:"seed"},{anchor:"huggingface_hub.InferenceClient.text_generation.stop_sequences",description:`<strong>stop_sequences</strong> (<code>List[str]</code>) &#x2014;
Stop generating tokens if a member of <code>stop_sequences</code> is generated`,name:"stop_sequences"},{anchor:"huggingface_hub.InferenceClient.text_generation.temperature",description:`<strong>temperature</strong> (<code>float</code>) &#x2014;
The value used to module the logits distribution.`,name:"temperature"},{anchor:"huggingface_hub.InferenceClient.text_generation.top_k",description:`<strong>top_k</strong> (<code>int</code>) &#x2014;
The number of highest probability vocabulary tokens to keep for top-k-filtering.`,name:"top_k"},{anchor:"huggingface_hub.InferenceClient.text_generation.top_p",description:`<strong>top_p</strong> (<code>float</code>) &#x2014;
If set to &lt; 1, only the smallest set of most probable tokens with probabilities that add up to <code>top_p</code> or
higher are kept for generation.`,name:"top_p"},{anchor:"huggingface_hub.InferenceClient.text_generation.truncate",description:`<strong>truncate</strong> (<code>int</code>) &#x2014;
Truncate inputs tokens to the given size`,name:"truncate"},{anchor:"huggingface_hub.InferenceClient.text_generation.typical_p",description:`<strong>typical_p</strong> (<code>float</code>) &#x2014;
Typical Decoding mass
See <a href="https://arxiv.org/abs/2202.00666" rel="nofollow">Typical Decoding for Natural Language Generation</a> for more information`,name:"typical_p"},{anchor:"huggingface_hub.InferenceClient.text_generation.watermark",description:`<strong>watermark</strong> (<code>bool</code>) &#x2014;
Watermarking with <a href="https://arxiv.org/abs/2301.10226" rel="nofollow">A Watermark for Large Language Models</a>`,name:"watermark"},{anchor:"huggingface_hub.InferenceClient.text_generation.decoder_input_details",description:`<strong>decoder_input_details</strong> (<code>bool</code>) &#x2014;
Return the decoder input token logprobs and ids. You must set <code>details=True</code> as well for it to be taken
into account. Defaults to <code>False</code>.`,name:"decoder_input_details"}],source:"https://github.com/huggingface/huggingface_hub/blob/v0.18.0.rc0/src/huggingface_hub/inference/_client.py#L1271",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>Generated text returned from the server:</p>
<ul>
<li>if <code>stream=False</code> and <code>details=False</code>, the generated text is returned as a <code>str</code> (default)</li>
<li>if <code>stream=True</code> and <code>details=False</code>, the generated text is returned token by token as a <code>Iterable[str]</code></li>
<li>if <code>stream=False</code> and <code>details=True</code>, the generated text is returned with more details as a <a
  href="/docs/huggingface_hub/v0.18.0.rc0/en/package_reference/inference_client#huggingface_hub.inference._text_generation.TextGenerationResponse"
>TextGenerationResponse</a></li>
<li>if <code>details=True</code> and <code>stream=True</code>, the generated text is returned token by token as a iterable of <a
  href="/docs/huggingface_hub/v0.18.0.rc0/en/package_reference/inference_client#huggingface_hub.inference._text_generation.TextGenerationStreamResponse"
>TextGenerationStreamResponse</a></li>
</ul>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


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


<ul>
<li><code>ValidationError</code> —
If input values are not valid. No HTTP call is made to the server.</li>
<li><a
  href="/docs/huggingface_hub/v0.18.0.rc0/en/package_reference/inference_client#huggingface_hub.InferenceTimeoutError"
>InferenceTimeoutError</a> —
If the model is unavailable or the request times out.</li>
<li><code>HTTPError</code> —
If the request fails with an HTTP error status code other than HTTP 503.</li>
</ul>
`,raiseType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>ValidationError</code> or <a
  href="/docs/huggingface_hub/v0.18.0.rc0/en/package_reference/inference_client#huggingface_hub.InferenceTimeoutError"
>InferenceTimeoutError</a> or <code>HTTPError</code></p>
`}}),kt=new Z({props:{anchor:"huggingface_hub.InferenceClient.text_generation.example",$$slots:{default:[Mh]},$$scope:{ctx:$}}}),Xs=new v({props:{name:"text_to_image",anchor:"huggingface_hub.InferenceClient.text_to_image",parameters:[{name:"prompt",val:": str"},{name:"negative_prompt",val:": typing.Optional[str] = None"},{name:"height",val:": typing.Optional[float] = None"},{name:"width",val:": typing.Optional[float] = None"},{name:"num_inference_steps",val:": typing.Optional[float] = None"},{name:"guidance_scale",val:": typing.Optional[float] = None"},{name:"model",val:": typing.Optional[str] = None"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"huggingface_hub.InferenceClient.text_to_image.prompt",description:`<strong>prompt</strong> (<code>str</code>) &#x2014;
The prompt to generate an image from.`,name:"prompt"},{anchor:"huggingface_hub.InferenceClient.text_to_image.negative_prompt",description:`<strong>negative_prompt</strong> (<code>str</code>, <em>optional</em>) &#x2014;
An optional negative prompt for the image generation.`,name:"negative_prompt"},{anchor:"huggingface_hub.InferenceClient.text_to_image.height",description:`<strong>height</strong> (<code>float</code>, <em>optional</em>) &#x2014;
The height in pixels of the image to generate.`,name:"height"},{anchor:"huggingface_hub.InferenceClient.text_to_image.width",description:`<strong>width</strong> (<code>float</code>, <em>optional</em>) &#x2014;
The width in pixels of the image to generate.`,name:"width"},{anchor:"huggingface_hub.InferenceClient.text_to_image.num_inference_steps",description:`<strong>num_inference_steps</strong> (<code>int</code>, <em>optional</em>) &#x2014;
The number of denoising steps. More denoising steps usually lead to a higher quality image at the
expense of slower inference.`,name:"num_inference_steps"},{anchor:"huggingface_hub.InferenceClient.text_to_image.guidance_scale",description:`<strong>guidance_scale</strong> (<code>float</code>, <em>optional</em>) &#x2014;
Higher guidance scale encourages to generate images that are closely linked to the text <code>prompt</code>,
usually at the expense of lower image quality.`,name:"guidance_scale"},{anchor:"huggingface_hub.InferenceClient.text_to_image.model",description:`<strong>model</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The model to use for inference. Can be a model ID hosted on the Hugging Face Hub or a URL to a deployed
Inference Endpoint. This parameter overrides the model defined at the instance level. Defaults to None.`,name:"model"}],source:"https://github.com/huggingface/huggingface_hub/blob/v0.18.0.rc0/src/huggingface_hub/inference/_client.py#L1538",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


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


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


<ul>
<li><a
  href="/docs/huggingface_hub/v0.18.0.rc0/en/package_reference/inference_client#huggingface_hub.InferenceTimeoutError"
>InferenceTimeoutError</a> —
If the model is unavailable or the request times out.</li>
<li><code>HTTPError</code> —
If the request fails with an HTTP error status code other than HTTP 503.</li>
</ul>
`,raiseType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/huggingface_hub/v0.18.0.rc0/en/package_reference/inference_client#huggingface_hub.InferenceTimeoutError"
>InferenceTimeoutError</a> or <code>HTTPError</code></p>
`}}),qt=new se({props:{warning:!0,$$slots:{default:[vh]},$$scope:{ctx:$}}}),Zt=new Z({props:{anchor:"huggingface_hub.InferenceClient.text_to_image.example",$$slots:{default:[wh]},$$scope:{ctx:$}}}),zs=new v({props:{name:"text_to_speech",anchor:"huggingface_hub.InferenceClient.text_to_speech",parameters:[{name:"text",val:": str"},{name:"model",val:": typing.Optional[str] = None"}],parametersDescription:[{anchor:"huggingface_hub.InferenceClient.text_to_speech.text",description:`<strong>text</strong> (<code>str</code>) &#x2014;
The text to synthesize.`,name:"text"},{anchor:"huggingface_hub.InferenceClient.text_to_speech.model",description:`<strong>model</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The model to use for inference. Can be a model ID hosted on the Hugging Face Hub or a URL to a deployed
Inference Endpoint. This parameter overrides the model defined at the instance level. Defaults to None.`,name:"model"}],source:"https://github.com/huggingface/huggingface_hub/blob/v0.18.0.rc0/src/huggingface_hub/inference/_client.py#L1618",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


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


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


<ul>
<li><a
  href="/docs/huggingface_hub/v0.18.0.rc0/en/package_reference/inference_client#huggingface_hub.InferenceTimeoutError"
>InferenceTimeoutError</a> —
If the model is unavailable or the request times out.</li>
<li><code>HTTPError</code> —
If the request fails with an HTTP error status code other than HTTP 503.</li>
</ul>
`,raiseType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/huggingface_hub/v0.18.0.rc0/en/package_reference/inference_client#huggingface_hub.InferenceTimeoutError"
>InferenceTimeoutError</a> or <code>HTTPError</code></p>
`}}),Et=new Z({props:{anchor:"huggingface_hub.InferenceClient.text_to_speech.example",$$slots:{default:[Ch]},$$scope:{ctx:$}}}),Os=new v({props:{name:"token_classification",anchor:"huggingface_hub.InferenceClient.token_classification",parameters:[{name:"text",val:": str"},{name:"model",val:": typing.Optional[str] = None"}],parametersDescription:[{anchor:"huggingface_hub.InferenceClient.token_classification.text",description:`<strong>text</strong> (<code>str</code>) &#x2014;
A string to be classified.`,name:"text"},{anchor:"huggingface_hub.InferenceClient.token_classification.model",description:`<strong>model</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The model to use for the token classification task. Can be a model ID hosted on the Hugging Face Hub or a URL to
a deployed Inference Endpoint. If not provided, the default recommended token classification model will be used.
Defaults to None.`,name:"model"}],source:"https://github.com/huggingface/huggingface_hub/blob/v0.18.0.rc0/src/huggingface_hub/inference/_client.py#L1650",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>List of token classification outputs containing the entity group, confidence score, word, start and end index.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


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


<ul>
<li><a
  href="/docs/huggingface_hub/v0.18.0.rc0/en/package_reference/inference_client#huggingface_hub.InferenceTimeoutError"
>InferenceTimeoutError</a> —
If the model is unavailable or the request times out.</li>
<li><code>HTTPError</code> —
If the request fails with an HTTP error status code other than HTTP 503.</li>
</ul>
`,raiseType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/huggingface_hub/v0.18.0.rc0/en/package_reference/inference_client#huggingface_hub.InferenceTimeoutError"
>InferenceTimeoutError</a> or <code>HTTPError</code></p>
`}}),Wt=new Z({props:{anchor:"huggingface_hub.InferenceClient.token_classification.example",$$slots:{default:[Jh]},$$scope:{ctx:$}}}),Ks=new v({props:{name:"translation",anchor:"huggingface_hub.InferenceClient.translation",parameters:[{name:"text",val:": str"},{name:"model",val:": typing.Optional[str] = None"}],parametersDescription:[{anchor:"huggingface_hub.InferenceClient.translation.text",description:`<strong>text</strong> (<code>str</code>) &#x2014;
A string to be translated.`,name:"text"},{anchor:"huggingface_hub.InferenceClient.translation.model",description:`<strong>model</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The model to use for the translation task. Can be a model ID hosted on the Hugging Face Hub or a URL to
a deployed Inference Endpoint. If not provided, the default recommended translation model will be used.
Defaults to None.`,name:"model"}],source:"https://github.com/huggingface/huggingface_hub/blob/v0.18.0.rc0/src/huggingface_hub/inference/_client.py#L1697",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>The generated translated text.</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><a
  href="/docs/huggingface_hub/v0.18.0.rc0/en/package_reference/inference_client#huggingface_hub.InferenceTimeoutError"
>InferenceTimeoutError</a> —
If the model is unavailable or the request times out.</li>
<li><code>HTTPError</code> —
If the request fails with an HTTP error status code other than HTTP 503.</li>
</ul>
`,raiseType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/huggingface_hub/v0.18.0.rc0/en/package_reference/inference_client#huggingface_hub.InferenceTimeoutError"
>InferenceTimeoutError</a> or <code>HTTPError</code></p>
`}}),Nt=new Z({props:{anchor:"huggingface_hub.InferenceClient.translation.example",$$slots:{default:[Uh]},$$scope:{ctx:$}}}),ea=new v({props:{name:"visual_question_answering",anchor:"huggingface_hub.InferenceClient.visual_question_answering",parameters:[{name:"image",val:": typing.Union[bytes, typing.BinaryIO, str, pathlib.Path]"},{name:"question",val:": str"},{name:"model",val:": typing.Optional[str] = None"}],parametersDescription:[{anchor:"huggingface_hub.InferenceClient.visual_question_answering.image",description:`<strong>image</strong> (<code>Union[str, Path, bytes, BinaryIO]</code>) &#x2014;
The input image for the context. It can be raw bytes, an image file, or a URL to an online image.`,name:"image"},{anchor:"huggingface_hub.InferenceClient.visual_question_answering.question",description:`<strong>question</strong> (<code>str</code>) &#x2014;
Question to be answered.`,name:"question"},{anchor:"huggingface_hub.InferenceClient.visual_question_answering.model",description:`<strong>model</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The model to use for the visual question answering task. Can be a model ID hosted on the Hugging Face Hub or a URL to
a deployed Inference Endpoint. If not provided, the default recommended visual question answering model will be used.
Defaults to None.`,name:"model"}],source:"https://github.com/huggingface/huggingface_hub/blob/v0.18.0.rc0/src/huggingface_hub/inference/_client.py#L393",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>a list of dictionaries containing the predicted label and associated probability.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


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


<ul>
<li><code>InferenceTimeoutError</code> —
If the model is unavailable or the request times out.</li>
<li><code>HTTPError</code> —
If the request fails with an HTTP error status code other than HTTP 503.</li>
</ul>
`,raiseType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>InferenceTimeoutError</code> or <code>HTTPError</code></p>
`}}),Gt=new Z({props:{anchor:"huggingface_hub.InferenceClient.visual_question_answering.example",$$slots:{default:[kh]},$$scope:{ctx:$}}}),na=new v({props:{name:"zero_shot_classification",anchor:"huggingface_hub.InferenceClient.zero_shot_classification",parameters:[{name:"text",val:": str"},{name:"labels",val:": typing.List[str]"},{name:"multi_label",val:": bool = False"},{name:"model",val:": typing.Optional[str] = None"}],parametersDescription:[{anchor:"huggingface_hub.InferenceClient.zero_shot_classification.text",description:`<strong>text</strong> (<code>str</code>) &#x2014;
The input text to classify.`,name:"text"},{anchor:"huggingface_hub.InferenceClient.zero_shot_classification.labels",description:`<strong>labels</strong> (<code>List[str]</code>) &#x2014;
List of string possible labels. There must be at least 2 labels.`,name:"labels"},{anchor:"huggingface_hub.InferenceClient.zero_shot_classification.multi_label",description:`<strong>multi_label</strong> (<code>bool</code>) &#x2014;
Boolean that is set to True if classes can overlap.`,name:"multi_label"},{anchor:"huggingface_hub.InferenceClient.zero_shot_classification.model",description:`<strong>model</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The model to use for inference. Can be a model ID hosted on the Hugging Face Hub or a URL to a deployed
Inference Endpoint. This parameter overrides the model defined at the instance level. Defaults to None.`,name:"model"}],source:"https://github.com/huggingface/huggingface_hub/blob/v0.18.0.rc0/src/huggingface_hub/inference/_client.py#L1734",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>List of classification outputs containing the predicted labels and their confidence.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


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


<ul>
<li><a
  href="/docs/huggingface_hub/v0.18.0.rc0/en/package_reference/inference_client#huggingface_hub.InferenceTimeoutError"
>InferenceTimeoutError</a> —
If the model is unavailable or the request times out.</li>
<li><code>HTTPError</code> —
If the request fails with an HTTP error status code other than HTTP 503.</li>
</ul>
`,raiseType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/huggingface_hub/v0.18.0.rc0/en/package_reference/inference_client#huggingface_hub.InferenceTimeoutError"
>InferenceTimeoutError</a> or <code>HTTPError</code></p>
`}}),Vt=new Z({props:{anchor:"huggingface_hub.InferenceClient.zero_shot_classification.example",$$slots:{default:[qh]},$$scope:{ctx:$}}}),ta=new v({props:{name:"zero_shot_image_classification",anchor:"huggingface_hub.InferenceClient.zero_shot_image_classification",parameters:[{name:"image",val:": typing.Union[bytes, typing.BinaryIO, str, pathlib.Path]"},{name:"labels",val:": typing.List[str]"},{name:"model",val:": typing.Optional[str] = None"}],parametersDescription:[{anchor:"huggingface_hub.InferenceClient.zero_shot_image_classification.image",description:`<strong>image</strong> (<code>Union[str, Path, bytes, BinaryIO]</code>) &#x2014;
The input image to caption. It can be raw bytes, an image file, or a URL to an online image.`,name:"image"},{anchor:"huggingface_hub.InferenceClient.zero_shot_image_classification.labels",description:`<strong>labels</strong> (<code>List[str]</code>) &#x2014;
List of string possible labels. There must be at least 2 labels.`,name:"labels"},{anchor:"huggingface_hub.InferenceClient.zero_shot_image_classification.model",description:`<strong>model</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The model to use for inference. Can be a model ID hosted on the Hugging Face Hub or a URL to a deployed
Inference Endpoint. This parameter overrides the model defined at the instance level. Defaults to None.`,name:"model"}],source:"https://github.com/huggingface/huggingface_hub/blob/v0.18.0.rc0/src/huggingface_hub/inference/_client.py#L1806",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>List of classification outputs containing the predicted labels and their confidence.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


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


<ul>
<li><a
  href="/docs/huggingface_hub/v0.18.0.rc0/en/package_reference/inference_client#huggingface_hub.InferenceTimeoutError"
>InferenceTimeoutError</a> —
If the model is unavailable or the request times out.</li>
<li><code>HTTPError</code> —
If the request fails with an HTTP error status code other than HTTP 503.</li>
</ul>
`,raiseType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/huggingface_hub/v0.18.0.rc0/en/package_reference/inference_client#huggingface_hub.InferenceTimeoutError"
>InferenceTimeoutError</a> or <code>HTTPError</code></p>
`}}),Dt=new Z({props:{anchor:"huggingface_hub.InferenceClient.zero_shot_image_classification.example",$$slots:{default:[Zh]},$$scope:{ctx:$}}}),sa=new _o({props:{title:"Async Inference Client",local:"huggingface_hub.AsyncInferenceClient",headingTag:"h2"}}),oa=new q({props:{code:"cGlwJTIwaW5zdGFsbCUyMC0tdXBncmFkZSUyMGh1Z2dpbmdmYWNlX2h1YiU1QmluZmVyZW5jZSU1RCUwQSUyMyUyMG9yJTBBJTIzJTIwcGlwJTIwaW5zdGFsbCUyMGFpb2h0dHA=",highlighted:`pip install --upgrade huggingface_hub[inference]
<span class="hljs-comment"># or</span>
<span class="hljs-comment"># pip install aiohttp</span>`,wrap:!1}}),ra=new v({props:{name:"class huggingface_hub.AsyncInferenceClient",anchor:"huggingface_hub.AsyncInferenceClient",parameters:[{name:"model",val:": typing.Optional[str] = None"},{name:"token",val:": typing.Union[str, bool, NoneType] = None"},{name:"timeout",val:": typing.Optional[float] = None"},{name:"headers",val:": typing.Union[typing.Dict[str, str], NoneType] = None"},{name:"cookies",val:": typing.Union[typing.Dict[str, str], NoneType] = None"}],parametersDescription:[{anchor:"huggingface_hub.AsyncInferenceClient.model",description:`<strong>model</strong> (<code>str</code>, <code>optional</code>) &#x2014;
The model to run inference with. Can be a model id hosted on the Hugging Face Hub, e.g. <code>bigcode/starcoder</code>
or a URL to a deployed Inference Endpoint. Defaults to None, in which case a recommended model is
automatically selected for the task.`,name:"model"},{anchor:"huggingface_hub.AsyncInferenceClient.token",description:`<strong>token</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Hugging Face token. Will default to the locally saved token. Pass <code>token=False</code> if you don&#x2019;t want to send
your token to the server.`,name:"token"},{anchor:"huggingface_hub.AsyncInferenceClient.timeout",description:`<strong>timeout</strong> (<code>float</code>, <code>optional</code>) &#x2014;
The maximum number of seconds to wait for a response from the server. Loading a new model in Inference
API can take up to several minutes. Defaults to None, meaning it will loop until the server is available.`,name:"timeout"},{anchor:"huggingface_hub.AsyncInferenceClient.headers",description:`<strong>headers</strong> (<code>Dict[str, str]</code>, <code>optional</code>) &#x2014;
Additional headers to send to the server. By default only the authorization and user-agent headers are sent.
Values in this dictionary will override the default values.`,name:"headers"},{anchor:"huggingface_hub.AsyncInferenceClient.cookies",description:`<strong>cookies</strong> (<code>Dict[str, str]</code>, <code>optional</code>) &#x2014;
Additional cookies to send to the server.`,name:"cookies"}],source:"https://github.com/huggingface/huggingface_hub/blob/v0.18.0.rc0/src/huggingface_hub/inference/_generated/_async_client.py#L89"}}),la=new v({props:{name:"audio_classification",anchor:"huggingface_hub.AsyncInferenceClient.audio_classification",parameters:[{name:"audio",val:": typing.Union[bytes, typing.BinaryIO, str, pathlib.Path]"},{name:"model",val:": typing.Optional[str] = None"}],parametersDescription:[{anchor:"huggingface_hub.AsyncInferenceClient.audio_classification.audio",description:`<strong>audio</strong> (Union[str, Path, bytes, BinaryIO]) &#x2014;
The audio content to classify. It can be raw audio bytes, a local audio file, or a URL pointing to an
audio file.`,name:"audio"},{anchor:"huggingface_hub.AsyncInferenceClient.audio_classification.model",description:`<strong>model</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The model to use for audio classification. Can be a model ID hosted on the Hugging Face Hub
or a URL to a deployed Inference Endpoint. If not provided, the default recommended model for
audio classification will be used.`,name:"model"}],source:"https://github.com/huggingface/huggingface_hub/blob/v0.18.0.rc0/src/huggingface_hub/inference/_generated/_async_client.py#L255",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>The classification output containing the predicted label and its confidence.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


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


<ul>
<li><a
  href="/docs/huggingface_hub/v0.18.0.rc0/en/package_reference/inference_client#huggingface_hub.InferenceTimeoutError"
>InferenceTimeoutError</a> —
If the model is unavailable or the request times out.</li>
<li><code>aiohttp.ClientResponseError</code> —
If the request fails with an HTTP error status code other than HTTP 503.</li>
</ul>
`,raiseType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/huggingface_hub/v0.18.0.rc0/en/package_reference/inference_client#huggingface_hub.InferenceTimeoutError"
>InferenceTimeoutError</a> or <code>aiohttp.ClientResponseError</code></p>
`}}),Rt=new Z({props:{anchor:"huggingface_hub.AsyncInferenceClient.audio_classification.example",$$slots:{default:[Eh]},$$scope:{ctx:$}}}),ia=new v({props:{name:"automatic_speech_recognition",anchor:"huggingface_hub.AsyncInferenceClient.automatic_speech_recognition",parameters:[{name:"audio",val:": typing.Union[bytes, typing.BinaryIO, str, pathlib.Path]"},{name:"model",val:": typing.Optional[str] = None"}],parametersDescription:[{anchor:"huggingface_hub.AsyncInferenceClient.automatic_speech_recognition.audio",description:`<strong>audio</strong> (Union[str, Path, bytes, BinaryIO]) &#x2014;
The content to transcribe. It can be raw audio bytes, local audio file, or a URL to an audio file.`,name:"audio"},{anchor:"huggingface_hub.AsyncInferenceClient.automatic_speech_recognition.model",description:`<strong>model</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The model to use for ASR. Can be a model ID hosted on the Hugging Face Hub or a URL to a deployed
Inference Endpoint. If not provided, the default recommended model for ASR will be used.`,name:"model"}],source:"https://github.com/huggingface/huggingface_hub/blob/v0.18.0.rc0/src/huggingface_hub/inference/_generated/_async_client.py#L294",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


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


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


<ul>
<li><a
  href="/docs/huggingface_hub/v0.18.0.rc0/en/package_reference/inference_client#huggingface_hub.InferenceTimeoutError"
>InferenceTimeoutError</a> —
If the model is unavailable or the request times out.</li>
<li><code>aiohttp.ClientResponseError</code> —
If the request fails with an HTTP error status code other than HTTP 503.</li>
</ul>
`,raiseType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/huggingface_hub/v0.18.0.rc0/en/package_reference/inference_client#huggingface_hub.InferenceTimeoutError"
>InferenceTimeoutError</a> or <code>aiohttp.ClientResponseError</code></p>
`}}),Yt=new Z({props:{anchor:"huggingface_hub.AsyncInferenceClient.automatic_speech_recognition.example",$$slots:{default:[Wh]},$$scope:{ctx:$}}}),ca=new v({props:{name:"conversational",anchor:"huggingface_hub.AsyncInferenceClient.conversational",parameters:[{name:"text",val:": str"},{name:"generated_responses",val:": typing.Optional[typing.List[str]] = None"},{name:"past_user_inputs",val:": typing.Optional[typing.List[str]] = None"},{name:"parameters",val:": typing.Union[typing.Dict[str, typing.Any], NoneType] = None"},{name:"model",val:": typing.Optional[str] = None"}],parametersDescription:[{anchor:"huggingface_hub.AsyncInferenceClient.conversational.text",description:`<strong>text</strong> (<code>str</code>) &#x2014;
The last input from the user in the conversation.`,name:"text"},{anchor:"huggingface_hub.AsyncInferenceClient.conversational.generated_responses",description:`<strong>generated_responses</strong> (<code>List[str]</code>, <em>optional</em>) &#x2014;
A list of strings corresponding to the earlier replies from the model. Defaults to None.`,name:"generated_responses"},{anchor:"huggingface_hub.AsyncInferenceClient.conversational.past_user_inputs",description:`<strong>past_user_inputs</strong> (<code>List[str]</code>, <em>optional</em>) &#x2014;
A list of strings corresponding to the earlier replies from the user. Should be the same length as
<code>generated_responses</code>. Defaults to None.`,name:"past_user_inputs"},{anchor:"huggingface_hub.AsyncInferenceClient.conversational.parameters",description:`<strong>parameters</strong> (<code>Dict[str, Any]</code>, <em>optional</em>) &#x2014;
Additional parameters for the conversational task. Defaults to None. For more details about the available
parameters, please refer to <a href="https://huggingface.co/docs/api-inference/detailed_parameters#conversational-task" rel="nofollow">this page</a>`,name:"parameters"},{anchor:"huggingface_hub.AsyncInferenceClient.conversational.model",description:`<strong>model</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The model to use for the conversational task. Can be a model ID hosted on the Hugging Face Hub or a URL to
a deployed Inference Endpoint. If not provided, the default recommended conversational model will be used.
Defaults to None.`,name:"model"}],source:"https://github.com/huggingface/huggingface_hub/blob/v0.18.0.rc0/src/huggingface_hub/inference/_generated/_async_client.py#L331",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>The generated conversational output.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


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


<ul>
<li><a
  href="/docs/huggingface_hub/v0.18.0.rc0/en/package_reference/inference_client#huggingface_hub.InferenceTimeoutError"
>InferenceTimeoutError</a> —
If the model is unavailable or the request times out.</li>
<li><code>aiohttp.ClientResponseError</code> —
If the request fails with an HTTP error status code other than HTTP 503.</li>
</ul>
`,raiseType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/huggingface_hub/v0.18.0.rc0/en/package_reference/inference_client#huggingface_hub.InferenceTimeoutError"
>InferenceTimeoutError</a> or <code>aiohttp.ClientResponseError</code></p>
`}}),Bt=new Z({props:{anchor:"huggingface_hub.AsyncInferenceClient.conversational.example",$$slots:{default:[Nh]},$$scope:{ctx:$}}}),pa=new v({props:{name:"document_question_answering",anchor:"huggingface_hub.AsyncInferenceClient.document_question_answering",parameters:[{name:"image",val:": typing.Union[bytes, typing.BinaryIO, str, pathlib.Path]"},{name:"question",val:": str"},{name:"model",val:": typing.Optional[str] = None"}],parametersDescription:[{anchor:"huggingface_hub.AsyncInferenceClient.document_question_answering.image",description:`<strong>image</strong> (<code>Union[str, Path, bytes, BinaryIO]</code>) &#x2014;
The input image for the context. It can be raw bytes, an image file, or a URL to an online image.`,name:"image"},{anchor:"huggingface_hub.AsyncInferenceClient.document_question_answering.question",description:`<strong>question</strong> (<code>str</code>) &#x2014;
Question to be answered.`,name:"question"},{anchor:"huggingface_hub.AsyncInferenceClient.document_question_answering.model",description:`<strong>model</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The model to use for the document question answering task. Can be a model ID hosted on the Hugging Face Hub or a URL to
a deployed Inference Endpoint. If not provided, the default recommended document question answering model will be used.
Defaults to None.`,name:"model"}],source:"https://github.com/huggingface/huggingface_hub/blob/v0.18.0.rc0/src/huggingface_hub/inference/_generated/_async_client.py#L438",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>a list of dictionaries containing the predicted label, associated probability, word ids, and page number.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


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


<ul>
<li><a
  href="/docs/huggingface_hub/v0.18.0.rc0/en/package_reference/inference_client#huggingface_hub.InferenceTimeoutError"
>InferenceTimeoutError</a> —
If the model is unavailable or the request times out.</li>
<li><code>aiohttp.ClientResponseError</code> —
If the request fails with an HTTP error status code other than HTTP 503.</li>
</ul>
`,raiseType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/huggingface_hub/v0.18.0.rc0/en/package_reference/inference_client#huggingface_hub.InferenceTimeoutError"
>InferenceTimeoutError</a> or <code>aiohttp.ClientResponseError</code></p>
`}}),At=new Z({props:{anchor:"huggingface_hub.AsyncInferenceClient.document_question_answering.example",$$slots:{default:[Gh]},$$scope:{ctx:$}}}),ga=new v({props:{name:"feature_extraction",anchor:"huggingface_hub.AsyncInferenceClient.feature_extraction",parameters:[{name:"text",val:": str"},{name:"model",val:": typing.Optional[str] = None"}],parametersDescription:[{anchor:"huggingface_hub.AsyncInferenceClient.feature_extraction.text",description:`<strong>text</strong> (<code>str</code>) &#x2014;
The text to embed.`,name:"text"},{anchor:"huggingface_hub.AsyncInferenceClient.feature_extraction.model",description:`<strong>model</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The model to use for the conversational task. Can be a model ID hosted on the Hugging Face Hub or a URL to
a deployed Inference Endpoint. If not provided, the default recommended conversational model will be used.
Defaults to None.`,name:"model"}],source:"https://github.com/huggingface/huggingface_hub/blob/v0.18.0.rc0/src/huggingface_hub/inference/_generated/_async_client.py#L480",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>The embedding representing the input text as a float32 numpy array.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


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


<ul>
<li><a
  href="/docs/huggingface_hub/v0.18.0.rc0/en/package_reference/inference_client#huggingface_hub.InferenceTimeoutError"
>InferenceTimeoutError</a> —
If the model is unavailable or the request times out.</li>
<li><code>aiohttp.ClientResponseError</code> —
If the request fails with an HTTP error status code other than HTTP 503.</li>
</ul>
`,raiseType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/huggingface_hub/v0.18.0.rc0/en/package_reference/inference_client#huggingface_hub.InferenceTimeoutError"
>InferenceTimeoutError</a> or <code>aiohttp.ClientResponseError</code></p>
`}}),Ht=new Z({props:{anchor:"huggingface_hub.AsyncInferenceClient.feature_extraction.example",$$slots:{default:[Vh]},$$scope:{ctx:$}}}),ua=new v({props:{name:"fill_mask",anchor:"huggingface_hub.AsyncInferenceClient.fill_mask",parameters:[{name:"text",val:": str"},{name:"model",val:": typing.Optional[str] = None"}],parametersDescription:[{anchor:"huggingface_hub.AsyncInferenceClient.fill_mask.text",description:`<strong>text</strong> (<code>str</code>) &#x2014;
a string to be filled from, must contain the [MASK] token (check model card for exact name of the mask).`,name:"text"},{anchor:"huggingface_hub.AsyncInferenceClient.fill_mask.model",description:`<strong>model</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The model to use for the fill mask task. Can be a model ID hosted on the Hugging Face Hub or a URL to
a deployed Inference Endpoint. If not provided, the default recommended fill mask model will be used.
Defaults to None.`,name:"model"}],source:"https://github.com/huggingface/huggingface_hub/blob/v0.18.0.rc0/src/huggingface_hub/inference/_generated/_async_client.py#L517",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>a list of fill mask output dictionaries containing the predicted label, associated
probability, token reference, and completed text.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


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


<ul>
<li><a
  href="/docs/huggingface_hub/v0.18.0.rc0/en/package_reference/inference_client#huggingface_hub.InferenceTimeoutError"
>InferenceTimeoutError</a> —
If the model is unavailable or the request times out.</li>
<li><code>aiohttp.ClientResponseError</code> —
If the request fails with an HTTP error status code other than HTTP 503.</li>
</ul>
`,raiseType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/huggingface_hub/v0.18.0.rc0/en/package_reference/inference_client#huggingface_hub.InferenceTimeoutError"
>InferenceTimeoutError</a> or <code>aiohttp.ClientResponseError</code></p>
`}}),Pt=new Z({props:{anchor:"huggingface_hub.AsyncInferenceClient.fill_mask.example",$$slots:{default:[Dh]},$$scope:{ctx:$}}}),da=new v({props:{name:"get_model_status",anchor:"huggingface_hub.AsyncInferenceClient.get_model_status",parameters:[{name:"model",val:": typing.Optional[str] = None"}],parametersDescription:[{anchor:"huggingface_hub.AsyncInferenceClient.get_model_status.model",description:`<strong>model</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Identifier of the model for witch the status gonna be checked. If model is not provided,
the model associated with this instance of <a href="/docs/huggingface_hub/v0.18.0.rc0/en/package_reference/inference_client#huggingface_hub.InferenceClient">InferenceClient</a> will be used. Only InferenceAPI service can be checked so the
identifier cannot be a URL.`,name:"model"}],source:"https://github.com/huggingface/huggingface_hub/blob/v0.18.0.rc0/src/huggingface_hub/inference/_generated/_async_client.py#L1908",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>An instance of ModelStatus dataclass, containing information,
about the state of the model: load, state, compute type and framework.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>ModelStatus</code></p>
`}}),Lt=new se({props:{$$slots:{default:[Rh]},$$scope:{ctx:$}}}),Qt=new Z({props:{anchor:"huggingface_hub.AsyncInferenceClient.get_model_status.example",$$slots:{default:[Yh]},$$scope:{ctx:$}}}),ha=new v({props:{name:"image_classification",anchor:"huggingface_hub.AsyncInferenceClient.image_classification",parameters:[{name:"image",val:": typing.Union[bytes, typing.BinaryIO, str, pathlib.Path]"},{name:"model",val:": typing.Optional[str] = None"}],parametersDescription:[{anchor:"huggingface_hub.AsyncInferenceClient.image_classification.image",description:`<strong>image</strong> (<code>Union[str, Path, bytes, BinaryIO]</code>) &#x2014;
The image to classify. It can be raw bytes, an image file, or a URL to an online image.`,name:"image"},{anchor:"huggingface_hub.AsyncInferenceClient.image_classification.model",description:`<strong>model</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The model to use for image classification. Can be a model ID hosted on the Hugging Face Hub or a URL to a
deployed Inference Endpoint. If not provided, the default recommended model for image classification will be used.`,name:"model"}],source:"https://github.com/huggingface/huggingface_hub/blob/v0.18.0.rc0/src/huggingface_hub/inference/_generated/_async_client.py#L558",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>a list of dictionaries containing the predicted label and associated probability.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


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


<ul>
<li><a
  href="/docs/huggingface_hub/v0.18.0.rc0/en/package_reference/inference_client#huggingface_hub.InferenceTimeoutError"
>InferenceTimeoutError</a> —
If the model is unavailable or the request times out.</li>
<li><code>aiohttp.ClientResponseError</code> —
If the request fails with an HTTP error status code other than HTTP 503.</li>
</ul>
`,raiseType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/huggingface_hub/v0.18.0.rc0/en/package_reference/inference_client#huggingface_hub.InferenceTimeoutError"
>InferenceTimeoutError</a> or <code>aiohttp.ClientResponseError</code></p>
`}}),Ft=new Z({props:{anchor:"huggingface_hub.AsyncInferenceClient.image_classification.example",$$slots:{default:[Bh]},$$scope:{ctx:$}}}),ma=new v({props:{name:"image_segmentation",anchor:"huggingface_hub.AsyncInferenceClient.image_segmentation",parameters:[{name:"image",val:": typing.Union[bytes, typing.BinaryIO, str, pathlib.Path]"},{name:"model",val:": typing.Optional[str] = None"}],parametersDescription:[{anchor:"huggingface_hub.AsyncInferenceClient.image_segmentation.image",description:`<strong>image</strong> (<code>Union[str, Path, bytes, BinaryIO]</code>) &#x2014;
The image to segment. It can be raw bytes, an image file, or a URL to an online image.`,name:"image"},{anchor:"huggingface_hub.AsyncInferenceClient.image_segmentation.model",description:`<strong>model</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The model to use for image segmentation. Can be a model ID hosted on the Hugging Face Hub or a URL to a
deployed Inference Endpoint. If not provided, the default recommended model for image segmentation will be used.`,name:"model"}],source:"https://github.com/huggingface/huggingface_hub/blob/v0.18.0.rc0/src/huggingface_hub/inference/_generated/_async_client.py#L595",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>A list of dictionaries containing the segmented masks and associated attributes.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


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


<ul>
<li><a
  href="/docs/huggingface_hub/v0.18.0.rc0/en/package_reference/inference_client#huggingface_hub.InferenceTimeoutError"
>InferenceTimeoutError</a> —
If the model is unavailable or the request times out.</li>
<li><code>aiohttp.ClientResponseError</code> —
If the request fails with an HTTP error status code other than HTTP 503.</li>
</ul>
`,raiseType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/huggingface_hub/v0.18.0.rc0/en/package_reference/inference_client#huggingface_hub.InferenceTimeoutError"
>InferenceTimeoutError</a> or <code>aiohttp.ClientResponseError</code></p>
`}}),St=new se({props:{warning:!0,$$slots:{default:[Ah]},$$scope:{ctx:$}}}),Xt=new Z({props:{anchor:"huggingface_hub.AsyncInferenceClient.image_segmentation.example",$$slots:{default:[Hh]},$$scope:{ctx:$}}}),fa=new v({props:{name:"image_to_image",anchor:"huggingface_hub.AsyncInferenceClient.image_to_image",parameters:[{name:"image",val:": typing.Union[bytes, typing.BinaryIO, str, pathlib.Path]"},{name:"prompt",val:": typing.Optional[str] = None"},{name:"negative_prompt",val:": typing.Optional[str] = None"},{name:"height",val:": typing.Optional[int] = None"},{name:"width",val:": typing.Optional[int] = None"},{name:"num_inference_steps",val:": typing.Optional[int] = None"},{name:"guidance_scale",val:": typing.Optional[float] = None"},{name:"model",val:": typing.Optional[str] = None"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"huggingface_hub.AsyncInferenceClient.image_to_image.image",description:`<strong>image</strong> (<code>Union[str, Path, bytes, BinaryIO]</code>) &#x2014;
The input image for translation. It can be raw bytes, an image file, or a URL to an online image.`,name:"image"},{anchor:"huggingface_hub.AsyncInferenceClient.image_to_image.prompt",description:`<strong>prompt</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The text prompt to guide the image generation.`,name:"prompt"},{anchor:"huggingface_hub.AsyncInferenceClient.image_to_image.negative_prompt",description:`<strong>negative_prompt</strong> (<code>str</code>, <em>optional</em>) &#x2014;
A negative prompt to guide the translation process.`,name:"negative_prompt"},{anchor:"huggingface_hub.AsyncInferenceClient.image_to_image.height",description:`<strong>height</strong> (<code>int</code>, <em>optional</em>) &#x2014;
The height in pixels of the generated image.`,name:"height"},{anchor:"huggingface_hub.AsyncInferenceClient.image_to_image.width",description:`<strong>width</strong> (<code>int</code>, <em>optional</em>) &#x2014;
The width in pixels of the generated image.`,name:"width"},{anchor:"huggingface_hub.AsyncInferenceClient.image_to_image.num_inference_steps",description:`<strong>num_inference_steps</strong> (<code>int</code>, <em>optional</em>) &#x2014;
The number of denoising steps. More denoising steps usually lead to a higher quality image at the
expense of slower inference.`,name:"num_inference_steps"},{anchor:"huggingface_hub.AsyncInferenceClient.image_to_image.guidance_scale",description:`<strong>guidance_scale</strong> (<code>float</code>, <em>optional</em>) &#x2014;
Higher guidance scale encourages to generate images that are closely linked to the text <code>prompt</code>,
usually at the expense of lower image quality.`,name:"guidance_scale"},{anchor:"huggingface_hub.AsyncInferenceClient.image_to_image.model",description:`<strong>model</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The model to use for inference. Can be a model ID hosted on the Hugging Face Hub or a URL to a deployed
Inference Endpoint. This parameter overrides the model defined at the instance level. Defaults to None.`,name:"model"}],source:"https://github.com/huggingface/huggingface_hub/blob/v0.18.0.rc0/src/huggingface_hub/inference/_generated/_async_client.py#L647",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


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


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


<ul>
<li><a
  href="/docs/huggingface_hub/v0.18.0.rc0/en/package_reference/inference_client#huggingface_hub.InferenceTimeoutError"
>InferenceTimeoutError</a> —
If the model is unavailable or the request times out.</li>
<li><code>aiohttp.ClientResponseError</code> —
If the request fails with an HTTP error status code other than HTTP 503.</li>
</ul>
`,raiseType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/huggingface_hub/v0.18.0.rc0/en/package_reference/inference_client#huggingface_hub.InferenceTimeoutError"
>InferenceTimeoutError</a> or <code>aiohttp.ClientResponseError</code></p>
`}}),zt=new se({props:{warning:!0,$$slots:{default:[Ph]},$$scope:{ctx:$}}}),Ot=new Z({props:{anchor:"huggingface_hub.AsyncInferenceClient.image_to_image.example",$$slots:{default:[Lh]},$$scope:{ctx:$}}}),ba=new v({props:{name:"image_to_text",anchor:"huggingface_hub.AsyncInferenceClient.image_to_text",parameters:[{name:"image",val:": typing.Union[bytes, typing.BinaryIO, str, pathlib.Path]"},{name:"model",val:": typing.Optional[str] = None"}],parametersDescription:[{anchor:"huggingface_hub.AsyncInferenceClient.image_to_text.image",description:`<strong>image</strong> (<code>Union[str, Path, bytes, BinaryIO]</code>) &#x2014;
The input image to caption. It can be raw bytes, an image file, or a URL to an online image..`,name:"image"},{anchor:"huggingface_hub.AsyncInferenceClient.image_to_text.model",description:`<strong>model</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The model to use for inference. Can be a model ID hosted on the Hugging Face Hub or a URL to a deployed
Inference Endpoint. This parameter overrides the model defined at the instance level. Defaults to None.`,name:"model"}],source:"https://github.com/huggingface/huggingface_hub/blob/v0.18.0.rc0/src/huggingface_hub/inference/_generated/_async_client.py#L732",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>The generated text.</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><a
  href="/docs/huggingface_hub/v0.18.0.rc0/en/package_reference/inference_client#huggingface_hub.InferenceTimeoutError"
>InferenceTimeoutError</a> —
If the model is unavailable or the request times out.</li>
<li><code>aiohttp.ClientResponseError</code> —
If the request fails with an HTTP error status code other than HTTP 503.</li>
</ul>
`,raiseType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/huggingface_hub/v0.18.0.rc0/en/package_reference/inference_client#huggingface_hub.InferenceTimeoutError"
>InferenceTimeoutError</a> or <code>aiohttp.ClientResponseError</code></p>
`}}),Kt=new Z({props:{anchor:"huggingface_hub.AsyncInferenceClient.image_to_text.example",$$slots:{default:[Qh]},$$scope:{ctx:$}}}),_a=new v({props:{name:"list_deployed_models",anchor:"huggingface_hub.AsyncInferenceClient.list_deployed_models",parameters:[{name:"frameworks",val:": typing.Union[NoneType, str, typing.Literal['all'], typing.List[str]] = None"}],parametersDescription:[{anchor:"huggingface_hub.AsyncInferenceClient.list_deployed_models.frameworks",description:`<strong>frameworks</strong> (<code>Literal[&quot;all&quot;]</code> or <code>List[str]</code> or <code>str</code>, <em>optional</em>) &#x2014;
The frameworks to filter on. By default only a subset of the available frameworks are tested. If set to
&#x201C;all&#x201D;, all available frameworks will be tested. It is also possible to provide a single framework or a
custom set of frameworks to check.`,name:"frameworks"}],source:"https://github.com/huggingface/huggingface_hub/blob/v0.18.0.rc0/src/huggingface_hub/inference/_generated/_async_client.py#L769",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>A dictionary mapping task names to a sorted list of model IDs.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>Dict[str, List[str]]</code></p>
`}}),es=new se({props:{$$slots:{default:[Fh]},$$scope:{ctx:$}}}),ns=new Z({props:{anchor:"huggingface_hub.AsyncInferenceClient.list_deployed_models.example",$$slots:{default:[Sh]},$$scope:{ctx:$}}}),ya=new v({props:{name:"object_detection",anchor:"huggingface_hub.AsyncInferenceClient.object_detection",parameters:[{name:"image",val:": typing.Union[bytes, typing.BinaryIO, str, pathlib.Path]"},{name:"model",val:": typing.Optional[str] = None"}],parametersDescription:[{anchor:"huggingface_hub.AsyncInferenceClient.object_detection.image",description:`<strong>image</strong> (<code>Union[str, Path, bytes, BinaryIO]</code>) &#x2014;
The image to detect objects on. It can be raw bytes, an image file, or a URL to an online image.`,name:"image"},{anchor:"huggingface_hub.AsyncInferenceClient.object_detection.model",description:`<strong>model</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The model to use for object detection. Can be a model ID hosted on the Hugging Face Hub or a URL to a
deployed Inference Endpoint. If not provided, the default recommended model for object detection (DETR) will be used.`,name:"model"}],source:"https://github.com/huggingface/huggingface_hub/blob/v0.18.0.rc0/src/huggingface_hub/inference/_generated/_async_client.py#L850",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>A list of dictionaries containing the bounding boxes and associated attributes.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


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


<ul>
<li><a
  href="/docs/huggingface_hub/v0.18.0.rc0/en/package_reference/inference_client#huggingface_hub.InferenceTimeoutError"
>InferenceTimeoutError</a> —
If the model is unavailable or the request times out.</li>
<li><code>aiohttp.ClientResponseError</code> —
If the request fails with an HTTP error status code other than HTTP 503.</li>
<li><code>ValueError</code> —
If the request output is not a List.</li>
</ul>
`,raiseType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/huggingface_hub/v0.18.0.rc0/en/package_reference/inference_client#huggingface_hub.InferenceTimeoutError"
>InferenceTimeoutError</a> or <code>aiohttp.ClientResponseError</code> or <code>ValueError</code></p>
`}}),ts=new se({props:{warning:!0,$$slots:{default:[Xh]},$$scope:{ctx:$}}}),ss=new Z({props:{anchor:"huggingface_hub.AsyncInferenceClient.object_detection.example",$$slots:{default:[zh]},$$scope:{ctx:$}}}),xa=new v({props:{name:"post",anchor:"huggingface_hub.AsyncInferenceClient.post",parameters:[{name:"json",val:": typing.Union[str, typing.Dict, typing.List, NoneType] = None"},{name:"data",val:": typing.Union[bytes, typing.BinaryIO, str, pathlib.Path, NoneType] = None"},{name:"model",val:": typing.Optional[str] = None"},{name:"task",val:": typing.Optional[str] = None"},{name:"stream",val:": bool = False"}],parametersDescription:[{anchor:"huggingface_hub.AsyncInferenceClient.post.json",description:`<strong>json</strong> (<code>Union[str, Dict, List]</code>, <em>optional</em>) &#x2014;
The JSON data to send in the request body. Defaults to None.`,name:"json"},{anchor:"huggingface_hub.AsyncInferenceClient.post.data",description:`<strong>data</strong> (<code>Union[str, Path, bytes, BinaryIO]</code>, <em>optional</em>) &#x2014;
The content to send in the request body. It can be raw bytes, a pointer to an opened file, a local file
path, or a URL to an online resource (image, audio file,&#x2026;). If both <code>json</code> and <code>data</code> are passed,
<code>data</code> will take precedence. At least <code>json</code> or <code>data</code> must be provided. Defaults to None.`,name:"data"},{anchor:"huggingface_hub.AsyncInferenceClient.post.model",description:`<strong>model</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The model to use for inference. Can be a model ID hosted on the Hugging Face Hub or a URL to a deployed
Inference Endpoint. Will override the model defined at the instance level. Defaults to None.`,name:"model"},{anchor:"huggingface_hub.AsyncInferenceClient.post.task",description:`<strong>task</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The task to perform on the inference. Used only to default to a recommended model if <code>model</code> is not
provided. At least <code>model</code> or <code>task</code> must be provided. Defaults to None.`,name:"task"},{anchor:"huggingface_hub.AsyncInferenceClient.post.stream",description:`<strong>stream</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether to iterate over streaming APIs.`,name:"stream"}],source:"https://github.com/huggingface/huggingface_hub/blob/v0.18.0.rc0/src/huggingface_hub/inference/_generated/_async_client.py#L156",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>The raw bytes returned by the server.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


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


<ul>
<li><a
  href="/docs/huggingface_hub/v0.18.0.rc0/en/package_reference/inference_client#huggingface_hub.InferenceTimeoutError"
>InferenceTimeoutError</a> —
If the model is unavailable or the request times out.</li>
<li><code>aiohttp.ClientResponseError</code> —
If the request fails with an HTTP error status code other than HTTP 503.</li>
</ul>
`,raiseType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/huggingface_hub/v0.18.0.rc0/en/package_reference/inference_client#huggingface_hub.InferenceTimeoutError"
>InferenceTimeoutError</a> or <code>aiohttp.ClientResponseError</code></p>
`}}),ja=new v({props:{name:"question_answering",anchor:"huggingface_hub.AsyncInferenceClient.question_answering",parameters:[{name:"question",val:": str"},{name:"context",val:": str"},{name:"model",val:": typing.Optional[str] = None"}],parametersDescription:[{anchor:"huggingface_hub.AsyncInferenceClient.question_answering.question",description:`<strong>question</strong> (<code>str</code>) &#x2014;
Question to be answered.`,name:"question"},{anchor:"huggingface_hub.AsyncInferenceClient.question_answering.context",description:`<strong>context</strong> (<code>str</code>) &#x2014;
The context of the question.`,name:"context"},{anchor:"huggingface_hub.AsyncInferenceClient.question_answering.model",description:`<strong>model</strong> (<code>str</code>) &#x2014;
The model to use for the question answering task. Can be a model ID hosted on the Hugging Face Hub or a URL to
a deployed Inference Endpoint.`,name:"model"}],source:"https://github.com/huggingface/huggingface_hub/blob/v0.18.0.rc0/src/huggingface_hub/inference/_generated/_async_client.py#L899",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>a dictionary of question answering output containing the score, start index, end index, and answer.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


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


<ul>
<li><a
  href="/docs/huggingface_hub/v0.18.0.rc0/en/package_reference/inference_client#huggingface_hub.InferenceTimeoutError"
>InferenceTimeoutError</a> —
If the model is unavailable or the request times out.</li>
<li><code>aiohttp.ClientResponseError</code> —
If the request fails with an HTTP error status code other than HTTP 503.</li>
</ul>
`,raiseType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/huggingface_hub/v0.18.0.rc0/en/package_reference/inference_client#huggingface_hub.InferenceTimeoutError"
>InferenceTimeoutError</a> or <code>aiohttp.ClientResponseError</code></p>
`}}),os=new Z({props:{anchor:"huggingface_hub.AsyncInferenceClient.question_answering.example",$$slots:{default:[Oh]},$$scope:{ctx:$}}}),Ta=new v({props:{name:"sentence_similarity",anchor:"huggingface_hub.AsyncInferenceClient.sentence_similarity",parameters:[{name:"sentence",val:": str"},{name:"other_sentences",val:": typing.List[str]"},{name:"model",val:": typing.Optional[str] = None"}],parametersDescription:[{anchor:"huggingface_hub.AsyncInferenceClient.sentence_similarity.sentence",description:`<strong>sentence</strong> (<code>str</code>) &#x2014;
The main sentence to compare to others.`,name:"sentence"},{anchor:"huggingface_hub.AsyncInferenceClient.sentence_similarity.other_sentences",description:`<strong>other_sentences</strong> (<code>List[str]</code>) &#x2014;
The list of sentences to compare to.`,name:"other_sentences"},{anchor:"huggingface_hub.AsyncInferenceClient.sentence_similarity.model",description:`<strong>model</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The model to use for the conversational task. Can be a model ID hosted on the Hugging Face Hub or a URL to
a deployed Inference Endpoint. If not provided, the default recommended conversational model will be used.
Defaults to None.`,name:"model"}],source:"https://github.com/huggingface/huggingface_hub/blob/v0.18.0.rc0/src/huggingface_hub/inference/_generated/_async_client.py#L941",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>The embedding representing the input text.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


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


<ul>
<li><a
  href="/docs/huggingface_hub/v0.18.0.rc0/en/package_reference/inference_client#huggingface_hub.InferenceTimeoutError"
>InferenceTimeoutError</a> —
If the model is unavailable or the request times out.</li>
<li><code>aiohttp.ClientResponseError</code> —
If the request fails with an HTTP error status code other than HTTP 503.</li>
</ul>
`,raiseType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/huggingface_hub/v0.18.0.rc0/en/package_reference/inference_client#huggingface_hub.InferenceTimeoutError"
>InferenceTimeoutError</a> or <code>aiohttp.ClientResponseError</code></p>
`}}),rs=new Z({props:{anchor:"huggingface_hub.AsyncInferenceClient.sentence_similarity.example",$$slots:{default:[Kh]},$$scope:{ctx:$}}}),$a=new v({props:{name:"summarization",anchor:"huggingface_hub.AsyncInferenceClient.summarization",parameters:[{name:"text",val:": str"},{name:"parameters",val:": typing.Union[typing.Dict[str, typing.Any], NoneType] = None"},{name:"model",val:": typing.Optional[str] = None"}],parametersDescription:[{anchor:"huggingface_hub.AsyncInferenceClient.summarization.text",description:`<strong>text</strong> (<code>str</code>) &#x2014;
The input text to summarize.`,name:"text"},{anchor:"huggingface_hub.AsyncInferenceClient.summarization.parameters",description:`<strong>parameters</strong> (<code>Dict[str, Any]</code>, <em>optional</em>) &#x2014;
Additional parameters for summarization. Check out this <a href="https://huggingface.co/docs/api-inference/detailed_parameters#summarization-task" rel="nofollow">page</a>
for more details.`,name:"parameters"},{anchor:"huggingface_hub.AsyncInferenceClient.summarization.model",description:`<strong>model</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The model to use for inference. Can be a model ID hosted on the Hugging Face Hub or a URL to a deployed
Inference Endpoint. This parameter overrides the model defined at the instance level. Defaults to None.`,name:"model"}],source:"https://github.com/huggingface/huggingface_hub/blob/v0.18.0.rc0/src/huggingface_hub/inference/_generated/_async_client.py#L989",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>The generated summary text.</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><a
  href="/docs/huggingface_hub/v0.18.0.rc0/en/package_reference/inference_client#huggingface_hub.InferenceTimeoutError"
>InferenceTimeoutError</a> —
If the model is unavailable or the request times out.</li>
<li><code>aiohttp.ClientResponseError</code> —
If the request fails with an HTTP error status code other than HTTP 503.</li>
</ul>
`,raiseType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/huggingface_hub/v0.18.0.rc0/en/package_reference/inference_client#huggingface_hub.InferenceTimeoutError"
>InferenceTimeoutError</a> or <code>aiohttp.ClientResponseError</code></p>
`}}),ls=new Z({props:{anchor:"huggingface_hub.AsyncInferenceClient.summarization.example",$$slots:{default:[em]},$$scope:{ctx:$}}}),Ia=new v({props:{name:"table_question_answering",anchor:"huggingface_hub.AsyncInferenceClient.table_question_answering",parameters:[{name:"table",val:": typing.Dict[str, typing.Any]"},{name:"query",val:": str"},{name:"model",val:": typing.Optional[str] = None"}],parametersDescription:[{anchor:"huggingface_hub.AsyncInferenceClient.table_question_answering.table",description:`<strong>table</strong> (<code>str</code>) &#x2014;
A table of data represented as a dict of lists where entries are headers and the lists are all the
values, all lists must have the same size.`,name:"table"},{anchor:"huggingface_hub.AsyncInferenceClient.table_question_answering.query",description:`<strong>query</strong> (<code>str</code>) &#x2014;
The query in plain text that you want to ask the table.`,name:"query"},{anchor:"huggingface_hub.AsyncInferenceClient.table_question_answering.model",description:`<strong>model</strong> (<code>str</code>) &#x2014;
The model to use for the table-question-answering task. Can be a model ID hosted on the Hugging Face
Hub or a URL to a deployed Inference Endpoint.`,name:"model"}],source:"https://github.com/huggingface/huggingface_hub/blob/v0.18.0.rc0/src/huggingface_hub/inference/_generated/_async_client.py#L1033",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>a dictionary of table question answering output containing the answer, coordinates, cells and the aggregator used.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


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


<ul>
<li><a
  href="/docs/huggingface_hub/v0.18.0.rc0/en/package_reference/inference_client#huggingface_hub.InferenceTimeoutError"
>InferenceTimeoutError</a> —
If the model is unavailable or the request times out.</li>
<li><code>aiohttp.ClientResponseError</code> —
If the request fails with an HTTP error status code other than HTTP 503.</li>
</ul>
`,raiseType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/huggingface_hub/v0.18.0.rc0/en/package_reference/inference_client#huggingface_hub.InferenceTimeoutError"
>InferenceTimeoutError</a> or <code>aiohttp.ClientResponseError</code></p>
`}}),is=new Z({props:{anchor:"huggingface_hub.AsyncInferenceClient.table_question_answering.example",$$slots:{default:[nm]},$$scope:{ctx:$}}}),Ma=new v({props:{name:"tabular_classification",anchor:"huggingface_hub.AsyncInferenceClient.tabular_classification",parameters:[{name:"table",val:": typing.Dict[str, typing.Any]"},{name:"model",val:": str"}],parametersDescription:[{anchor:"huggingface_hub.AsyncInferenceClient.tabular_classification.table",description:`<strong>table</strong> (<code>Dict[str, Any]</code>) &#x2014;
Set of attributes to classify.`,name:"table"},{anchor:"huggingface_hub.AsyncInferenceClient.tabular_classification.model",description:`<strong>model</strong> (<code>str</code>) &#x2014;
The model to use for the tabular-classification task. Can be a model ID hosted on the Hugging Face Hub or a URL to
a deployed Inference Endpoint.`,name:"model"}],source:"https://github.com/huggingface/huggingface_hub/blob/v0.18.0.rc0/src/huggingface_hub/inference/_generated/_async_client.py#L1079",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>a list of labels, one per row in the initial table.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


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


<ul>
<li><a
  href="/docs/huggingface_hub/v0.18.0.rc0/en/package_reference/inference_client#huggingface_hub.InferenceTimeoutError"
>InferenceTimeoutError</a> —
If the model is unavailable or the request times out.</li>
<li><code>aiohttp.ClientResponseError</code> —
If the request fails with an HTTP error status code other than HTTP 503.</li>
</ul>
`,raiseType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/huggingface_hub/v0.18.0.rc0/en/package_reference/inference_client#huggingface_hub.InferenceTimeoutError"
>InferenceTimeoutError</a> or <code>aiohttp.ClientResponseError</code></p>
`}}),cs=new Z({props:{anchor:"huggingface_hub.AsyncInferenceClient.tabular_classification.example",$$slots:{default:[tm]},$$scope:{ctx:$}}}),va=new v({props:{name:"tabular_regression",anchor:"huggingface_hub.AsyncInferenceClient.tabular_regression",parameters:[{name:"table",val:": typing.Dict[str, typing.Any]"},{name:"model",val:": str"}],parametersDescription:[{anchor:"huggingface_hub.AsyncInferenceClient.tabular_regression.table",description:`<strong>table</strong> (<code>Dict[str, Any]</code>) &#x2014;
Set of attributes stored in a table. The attributes used to predict the target can be both numerical and categorical.`,name:"table"},{anchor:"huggingface_hub.AsyncInferenceClient.tabular_regression.model",description:`<strong>model</strong> (<code>str</code>) &#x2014;
The model to use for the tabular-regression task. Can be a model ID hosted on the Hugging Face Hub or a URL to
a deployed Inference Endpoint.`,name:"model"}],source:"https://github.com/huggingface/huggingface_hub/blob/v0.18.0.rc0/src/huggingface_hub/inference/_generated/_async_client.py#L1124",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>a list of predicted numerical target values.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


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


<ul>
<li><a
  href="/docs/huggingface_hub/v0.18.0.rc0/en/package_reference/inference_client#huggingface_hub.InferenceTimeoutError"
>InferenceTimeoutError</a> —
If the model is unavailable or the request times out.</li>
<li><code>aiohttp.ClientResponseError</code> —
If the request fails with an HTTP error status code other than HTTP 503.</li>
</ul>
`,raiseType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/huggingface_hub/v0.18.0.rc0/en/package_reference/inference_client#huggingface_hub.InferenceTimeoutError"
>InferenceTimeoutError</a> or <code>aiohttp.ClientResponseError</code></p>
`}}),ps=new Z({props:{anchor:"huggingface_hub.AsyncInferenceClient.tabular_regression.example",$$slots:{default:[sm]},$$scope:{ctx:$}}}),wa=new v({props:{name:"text_classification",anchor:"huggingface_hub.AsyncInferenceClient.text_classification",parameters:[{name:"text",val:": str"},{name:"model",val:": typing.Optional[str] = None"}],parametersDescription:[{anchor:"huggingface_hub.AsyncInferenceClient.text_classification.text",description:`<strong>text</strong> (<code>str</code>) &#x2014;
A string to be classified.`,name:"text"},{anchor:"huggingface_hub.AsyncInferenceClient.text_classification.model",description:`<strong>model</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The model to use for the text classification task. Can be a model ID hosted on the Hugging Face Hub or a URL to
a deployed Inference Endpoint. If not provided, the default recommended text classification model will be used.
Defaults to None.`,name:"model"}],source:"https://github.com/huggingface/huggingface_hub/blob/v0.18.0.rc0/src/huggingface_hub/inference/_generated/_async_client.py#L1164",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>a list of dictionaries containing the predicted label and associated probability.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


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


<ul>
<li><a
  href="/docs/huggingface_hub/v0.18.0.rc0/en/package_reference/inference_client#huggingface_hub.InferenceTimeoutError"
>InferenceTimeoutError</a> —
If the model is unavailable or the request times out.</li>
<li><code>aiohttp.ClientResponseError</code> —
If the request fails with an HTTP error status code other than HTTP 503.</li>
</ul>
`,raiseType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/huggingface_hub/v0.18.0.rc0/en/package_reference/inference_client#huggingface_hub.InferenceTimeoutError"
>InferenceTimeoutError</a> or <code>aiohttp.ClientResponseError</code></p>
`}}),gs=new Z({props:{anchor:"huggingface_hub.AsyncInferenceClient.text_classification.example",$$slots:{default:[am]},$$scope:{ctx:$}}}),Ca=new v({props:{name:"text_generation",anchor:"huggingface_hub.AsyncInferenceClient.text_generation",parameters:[{name:"prompt",val:": str"},{name:"details",val:": bool = False"},{name:"stream",val:": bool = False"},{name:"model",val:": typing.Optional[str] = None"},{name:"do_sample",val:": bool = False"},{name:"max_new_tokens",val:": int = 20"},{name:"best_of",val:": typing.Optional[int] = None"},{name:"repetition_penalty",val:": typing.Optional[float] = None"},{name:"return_full_text",val:": bool = False"},{name:"seed",val:": typing.Optional[int] = None"},{name:"stop_sequences",val:": typing.Optional[typing.List[str]] = None"},{name:"temperature",val:": typing.Optional[float] = None"},{name:"top_k",val:": typing.Optional[int] = None"},{name:"top_p",val:": typing.Optional[float] = None"},{name:"truncate",val:": typing.Optional[int] = None"},{name:"typical_p",val:": typing.Optional[float] = None"},{name:"watermark",val:": bool = False"},{name:"decoder_input_details",val:": bool = False"}],parametersDescription:[{anchor:"huggingface_hub.AsyncInferenceClient.text_generation.prompt",description:`<strong>prompt</strong> (<code>str</code>) &#x2014;
Input text.`,name:"prompt"},{anchor:"huggingface_hub.AsyncInferenceClient.text_generation.details",description:`<strong>details</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
By default, text_generation returns a string. Pass <code>details=True</code> if you want a detailed output (tokens,
probabilities, seed, finish reason, etc.). Only available for models running on with the
<code>text-generation-inference</code> backend.`,name:"details"},{anchor:"huggingface_hub.AsyncInferenceClient.text_generation.stream",description:`<strong>stream</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
By default, text_generation returns the full generated text. Pass <code>stream=True</code> if you want a stream of
tokens to be returned. Only available for models running on with the <code>text-generation-inference</code>
backend.`,name:"stream"},{anchor:"huggingface_hub.AsyncInferenceClient.text_generation.model",description:`<strong>model</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The model to use for inference. Can be a model ID hosted on the Hugging Face Hub or a URL to a deployed
Inference Endpoint. This parameter overrides the model defined at the instance level. Defaults to None.`,name:"model"},{anchor:"huggingface_hub.AsyncInferenceClient.text_generation.do_sample",description:`<strong>do_sample</strong> (<code>bool</code>) &#x2014;
Activate logits sampling`,name:"do_sample"},{anchor:"huggingface_hub.AsyncInferenceClient.text_generation.max_new_tokens",description:`<strong>max_new_tokens</strong> (<code>int</code>) &#x2014;
Maximum number of generated tokens`,name:"max_new_tokens"},{anchor:"huggingface_hub.AsyncInferenceClient.text_generation.best_of",description:`<strong>best_of</strong> (<code>int</code>) &#x2014;
Generate best_of sequences and return the one if the highest token logprobs`,name:"best_of"},{anchor:"huggingface_hub.AsyncInferenceClient.text_generation.repetition_penalty",description:`<strong>repetition_penalty</strong> (<code>float</code>) &#x2014;
The parameter for repetition penalty. 1.0 means no penalty. See <a href="https://arxiv.org/pdf/1909.05858.pdf" rel="nofollow">this
paper</a> for more details.`,name:"repetition_penalty"},{anchor:"huggingface_hub.AsyncInferenceClient.text_generation.return_full_text",description:`<strong>return_full_text</strong> (<code>bool</code>) &#x2014;
Whether to prepend the prompt to the generated text`,name:"return_full_text"},{anchor:"huggingface_hub.AsyncInferenceClient.text_generation.seed",description:`<strong>seed</strong> (<code>int</code>) &#x2014;
Random sampling seed`,name:"seed"},{anchor:"huggingface_hub.AsyncInferenceClient.text_generation.stop_sequences",description:`<strong>stop_sequences</strong> (<code>List[str]</code>) &#x2014;
Stop generating tokens if a member of <code>stop_sequences</code> is generated`,name:"stop_sequences"},{anchor:"huggingface_hub.AsyncInferenceClient.text_generation.temperature",description:`<strong>temperature</strong> (<code>float</code>) &#x2014;
The value used to module the logits distribution.`,name:"temperature"},{anchor:"huggingface_hub.AsyncInferenceClient.text_generation.top_k",description:`<strong>top_k</strong> (<code>int</code>) &#x2014;
The number of highest probability vocabulary tokens to keep for top-k-filtering.`,name:"top_k"},{anchor:"huggingface_hub.AsyncInferenceClient.text_generation.top_p",description:`<strong>top_p</strong> (<code>float</code>) &#x2014;
If set to &lt; 1, only the smallest set of most probable tokens with probabilities that add up to <code>top_p</code> or
higher are kept for generation.`,name:"top_p"},{anchor:"huggingface_hub.AsyncInferenceClient.text_generation.truncate",description:`<strong>truncate</strong> (<code>int</code>) &#x2014;
Truncate inputs tokens to the given size`,name:"truncate"},{anchor:"huggingface_hub.AsyncInferenceClient.text_generation.typical_p",description:`<strong>typical_p</strong> (<code>float</code>) &#x2014;
Typical Decoding mass
See <a href="https://arxiv.org/abs/2202.00666" rel="nofollow">Typical Decoding for Natural Language Generation</a> for more information`,name:"typical_p"},{anchor:"huggingface_hub.AsyncInferenceClient.text_generation.watermark",description:`<strong>watermark</strong> (<code>bool</code>) &#x2014;
Watermarking with <a href="https://arxiv.org/abs/2301.10226" rel="nofollow">A Watermark for Large Language Models</a>`,name:"watermark"},{anchor:"huggingface_hub.AsyncInferenceClient.text_generation.decoder_input_details",description:`<strong>decoder_input_details</strong> (<code>bool</code>) &#x2014;
Return the decoder input token logprobs and ids. You must set <code>details=True</code> as well for it to be taken
into account. Defaults to <code>False</code>.`,name:"decoder_input_details"}],source:"https://github.com/huggingface/huggingface_hub/blob/v0.18.0.rc0/src/huggingface_hub/inference/_generated/_async_client.py#L1293",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>Generated text returned from the server:</p>
<ul>
<li>if <code>stream=False</code> and <code>details=False</code>, the generated text is returned as a <code>str</code> (default)</li>
<li>if <code>stream=True</code> and <code>details=False</code>, the generated text is returned token by token as a <code>Iterable[str]</code></li>
<li>if <code>stream=False</code> and <code>details=True</code>, the generated text is returned with more details as a <a
  href="/docs/huggingface_hub/v0.18.0.rc0/en/package_reference/inference_client#huggingface_hub.inference._text_generation.TextGenerationResponse"
>TextGenerationResponse</a></li>
<li>if <code>details=True</code> and <code>stream=True</code>, the generated text is returned token by token as a iterable of <a
  href="/docs/huggingface_hub/v0.18.0.rc0/en/package_reference/inference_client#huggingface_hub.inference._text_generation.TextGenerationStreamResponse"
>TextGenerationStreamResponse</a></li>
</ul>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


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


<ul>
<li><code>ValidationError</code> —
If input values are not valid. No HTTP call is made to the server.</li>
<li><a
  href="/docs/huggingface_hub/v0.18.0.rc0/en/package_reference/inference_client#huggingface_hub.InferenceTimeoutError"
>InferenceTimeoutError</a> —
If the model is unavailable or the request times out.</li>
<li><code>aiohttp.ClientResponseError</code> —
If the request fails with an HTTP error status code other than HTTP 503.</li>
</ul>
`,raiseType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>ValidationError</code> or <a
  href="/docs/huggingface_hub/v0.18.0.rc0/en/package_reference/inference_client#huggingface_hub.InferenceTimeoutError"
>InferenceTimeoutError</a> or <code>aiohttp.ClientResponseError</code></p>
`}}),us=new Z({props:{anchor:"huggingface_hub.AsyncInferenceClient.text_generation.example",$$slots:{default:[om]},$$scope:{ctx:$}}}),Ja=new v({props:{name:"text_to_image",anchor:"huggingface_hub.AsyncInferenceClient.text_to_image",parameters:[{name:"prompt",val:": str"},{name:"negative_prompt",val:": typing.Optional[str] = None"},{name:"height",val:": typing.Optional[float] = None"},{name:"width",val:": typing.Optional[float] = None"},{name:"num_inference_steps",val:": typing.Optional[float] = None"},{name:"guidance_scale",val:": typing.Optional[float] = None"},{name:"model",val:": typing.Optional[str] = None"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"huggingface_hub.AsyncInferenceClient.text_to_image.prompt",description:`<strong>prompt</strong> (<code>str</code>) &#x2014;
The prompt to generate an image from.`,name:"prompt"},{anchor:"huggingface_hub.AsyncInferenceClient.text_to_image.negative_prompt",description:`<strong>negative_prompt</strong> (<code>str</code>, <em>optional</em>) &#x2014;
An optional negative prompt for the image generation.`,name:"negative_prompt"},{anchor:"huggingface_hub.AsyncInferenceClient.text_to_image.height",description:`<strong>height</strong> (<code>float</code>, <em>optional</em>) &#x2014;
The height in pixels of the image to generate.`,name:"height"},{anchor:"huggingface_hub.AsyncInferenceClient.text_to_image.width",description:`<strong>width</strong> (<code>float</code>, <em>optional</em>) &#x2014;
The width in pixels of the image to generate.`,name:"width"},{anchor:"huggingface_hub.AsyncInferenceClient.text_to_image.num_inference_steps",description:`<strong>num_inference_steps</strong> (<code>int</code>, <em>optional</em>) &#x2014;
The number of denoising steps. More denoising steps usually lead to a higher quality image at the
expense of slower inference.`,name:"num_inference_steps"},{anchor:"huggingface_hub.AsyncInferenceClient.text_to_image.guidance_scale",description:`<strong>guidance_scale</strong> (<code>float</code>, <em>optional</em>) &#x2014;
Higher guidance scale encourages to generate images that are closely linked to the text <code>prompt</code>,
usually at the expense of lower image quality.`,name:"guidance_scale"},{anchor:"huggingface_hub.AsyncInferenceClient.text_to_image.model",description:`<strong>model</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The model to use for inference. Can be a model ID hosted on the Hugging Face Hub or a URL to a deployed
Inference Endpoint. This parameter overrides the model defined at the instance level. Defaults to None.`,name:"model"}],source:"https://github.com/huggingface/huggingface_hub/blob/v0.18.0.rc0/src/huggingface_hub/inference/_generated/_async_client.py#L1562",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


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


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


<ul>
<li><a
  href="/docs/huggingface_hub/v0.18.0.rc0/en/package_reference/inference_client#huggingface_hub.InferenceTimeoutError"
>InferenceTimeoutError</a> —
If the model is unavailable or the request times out.</li>
<li><code>aiohttp.ClientResponseError</code> —
If the request fails with an HTTP error status code other than HTTP 503.</li>
</ul>
`,raiseType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/huggingface_hub/v0.18.0.rc0/en/package_reference/inference_client#huggingface_hub.InferenceTimeoutError"
>InferenceTimeoutError</a> or <code>aiohttp.ClientResponseError</code></p>
`}}),ds=new se({props:{warning:!0,$$slots:{default:[rm]},$$scope:{ctx:$}}}),hs=new Z({props:{anchor:"huggingface_hub.AsyncInferenceClient.text_to_image.example",$$slots:{default:[lm]},$$scope:{ctx:$}}}),Ua=new v({props:{name:"text_to_speech",anchor:"huggingface_hub.AsyncInferenceClient.text_to_speech",parameters:[{name:"text",val:": str"},{name:"model",val:": typing.Optional[str] = None"}],parametersDescription:[{anchor:"huggingface_hub.AsyncInferenceClient.text_to_speech.text",description:`<strong>text</strong> (<code>str</code>) &#x2014;
The text to synthesize.`,name:"text"},{anchor:"huggingface_hub.AsyncInferenceClient.text_to_speech.model",description:`<strong>model</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The model to use for inference. Can be a model ID hosted on the Hugging Face Hub or a URL to a deployed
Inference Endpoint. This parameter overrides the model defined at the instance level. Defaults to None.`,name:"model"}],source:"https://github.com/huggingface/huggingface_hub/blob/v0.18.0.rc0/src/huggingface_hub/inference/_generated/_async_client.py#L1643",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


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


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


<ul>
<li><a
  href="/docs/huggingface_hub/v0.18.0.rc0/en/package_reference/inference_client#huggingface_hub.InferenceTimeoutError"
>InferenceTimeoutError</a> —
If the model is unavailable or the request times out.</li>
<li><code>aiohttp.ClientResponseError</code> —
If the request fails with an HTTP error status code other than HTTP 503.</li>
</ul>
`,raiseType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/huggingface_hub/v0.18.0.rc0/en/package_reference/inference_client#huggingface_hub.InferenceTimeoutError"
>InferenceTimeoutError</a> or <code>aiohttp.ClientResponseError</code></p>
`}}),ms=new Z({props:{anchor:"huggingface_hub.AsyncInferenceClient.text_to_speech.example",$$slots:{default:[im]},$$scope:{ctx:$}}}),ka=new v({props:{name:"token_classification",anchor:"huggingface_hub.AsyncInferenceClient.token_classification",parameters:[{name:"text",val:": str"},{name:"model",val:": typing.Optional[str] = None"}],parametersDescription:[{anchor:"huggingface_hub.AsyncInferenceClient.token_classification.text",description:`<strong>text</strong> (<code>str</code>) &#x2014;
A string to be classified.`,name:"text"},{anchor:"huggingface_hub.AsyncInferenceClient.token_classification.model",description:`<strong>model</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The model to use for the token classification task. Can be a model ID hosted on the Hugging Face Hub or a URL to
a deployed Inference Endpoint. If not provided, the default recommended token classification model will be used.
Defaults to None.`,name:"model"}],source:"https://github.com/huggingface/huggingface_hub/blob/v0.18.0.rc0/src/huggingface_hub/inference/_generated/_async_client.py#L1676",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>List of token classification outputs containing the entity group, confidence score, word, start and end index.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


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


<ul>
<li><a
  href="/docs/huggingface_hub/v0.18.0.rc0/en/package_reference/inference_client#huggingface_hub.InferenceTimeoutError"
>InferenceTimeoutError</a> —
If the model is unavailable or the request times out.</li>
<li><code>aiohttp.ClientResponseError</code> —
If the request fails with an HTTP error status code other than HTTP 503.</li>
</ul>
`,raiseType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/huggingface_hub/v0.18.0.rc0/en/package_reference/inference_client#huggingface_hub.InferenceTimeoutError"
>InferenceTimeoutError</a> or <code>aiohttp.ClientResponseError</code></p>
`}}),fs=new Z({props:{anchor:"huggingface_hub.AsyncInferenceClient.token_classification.example",$$slots:{default:[cm]},$$scope:{ctx:$}}}),qa=new v({props:{name:"translation",anchor:"huggingface_hub.AsyncInferenceClient.translation",parameters:[{name:"text",val:": str"},{name:"model",val:": typing.Optional[str] = None"}],parametersDescription:[{anchor:"huggingface_hub.AsyncInferenceClient.translation.text",description:`<strong>text</strong> (<code>str</code>) &#x2014;
A string to be translated.`,name:"text"},{anchor:"huggingface_hub.AsyncInferenceClient.translation.model",description:`<strong>model</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The model to use for the translation task. Can be a model ID hosted on the Hugging Face Hub or a URL to
a deployed Inference Endpoint. If not provided, the default recommended translation model will be used.
Defaults to None.`,name:"model"}],source:"https://github.com/huggingface/huggingface_hub/blob/v0.18.0.rc0/src/huggingface_hub/inference/_generated/_async_client.py#L1724",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>The generated translated text.</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><a
  href="/docs/huggingface_hub/v0.18.0.rc0/en/package_reference/inference_client#huggingface_hub.InferenceTimeoutError"
>InferenceTimeoutError</a> —
If the model is unavailable or the request times out.</li>
<li><code>aiohttp.ClientResponseError</code> —
If the request fails with an HTTP error status code other than HTTP 503.</li>
</ul>
`,raiseType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/huggingface_hub/v0.18.0.rc0/en/package_reference/inference_client#huggingface_hub.InferenceTimeoutError"
>InferenceTimeoutError</a> or <code>aiohttp.ClientResponseError</code></p>
`}}),bs=new Z({props:{anchor:"huggingface_hub.AsyncInferenceClient.translation.example",$$slots:{default:[pm]},$$scope:{ctx:$}}}),Za=new v({props:{name:"visual_question_answering",anchor:"huggingface_hub.AsyncInferenceClient.visual_question_answering",parameters:[{name:"image",val:": typing.Union[bytes, typing.BinaryIO, str, pathlib.Path]"},{name:"question",val:": str"},{name:"model",val:": typing.Optional[str] = None"}],parametersDescription:[{anchor:"huggingface_hub.AsyncInferenceClient.visual_question_answering.image",description:`<strong>image</strong> (<code>Union[str, Path, bytes, BinaryIO]</code>) &#x2014;
The input image for the context. It can be raw bytes, an image file, or a URL to an online image.`,name:"image"},{anchor:"huggingface_hub.AsyncInferenceClient.visual_question_answering.question",description:`<strong>question</strong> (<code>str</code>) &#x2014;
Question to be answered.`,name:"question"},{anchor:"huggingface_hub.AsyncInferenceClient.visual_question_answering.model",description:`<strong>model</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The model to use for the visual question answering task. Can be a model ID hosted on the Hugging Face Hub or a URL to
a deployed Inference Endpoint. If not provided, the default recommended visual question answering model will be used.
Defaults to None.`,name:"model"}],source:"https://github.com/huggingface/huggingface_hub/blob/v0.18.0.rc0/src/huggingface_hub/inference/_generated/_async_client.py#L393",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>a list of dictionaries containing the predicted label and associated probability.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


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


<ul>
<li><code>InferenceTimeoutError</code> —
If the model is unavailable or the request times out.</li>
<li><code>aiohttp.ClientResponseError</code> —
If the request fails with an HTTP error status code other than HTTP 503.</li>
</ul>
`,raiseType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>InferenceTimeoutError</code> or <code>aiohttp.ClientResponseError</code></p>
`}}),_s=new Z({props:{anchor:"huggingface_hub.AsyncInferenceClient.visual_question_answering.example",$$slots:{default:[gm]},$$scope:{ctx:$}}}),Ea=new v({props:{name:"zero_shot_classification",anchor:"huggingface_hub.AsyncInferenceClient.zero_shot_classification",parameters:[{name:"text",val:": str"},{name:"labels",val:": typing.List[str]"},{name:"multi_label",val:": bool = False"},{name:"model",val:": typing.Optional[str] = None"}],parametersDescription:[{anchor:"huggingface_hub.AsyncInferenceClient.zero_shot_classification.text",description:`<strong>text</strong> (<code>str</code>) &#x2014;
The input text to classify.`,name:"text"},{anchor:"huggingface_hub.AsyncInferenceClient.zero_shot_classification.labels",description:`<strong>labels</strong> (<code>List[str]</code>) &#x2014;
List of string possible labels. There must be at least 2 labels.`,name:"labels"},{anchor:"huggingface_hub.AsyncInferenceClient.zero_shot_classification.multi_label",description:`<strong>multi_label</strong> (<code>bool</code>) &#x2014;
Boolean that is set to True if classes can overlap.`,name:"multi_label"},{anchor:"huggingface_hub.AsyncInferenceClient.zero_shot_classification.model",description:`<strong>model</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The model to use for inference. Can be a model ID hosted on the Hugging Face Hub or a URL to a deployed
Inference Endpoint. This parameter overrides the model defined at the instance level. Defaults to None.`,name:"model"}],source:"https://github.com/huggingface/huggingface_hub/blob/v0.18.0.rc0/src/huggingface_hub/inference/_generated/_async_client.py#L1762",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>List of classification outputs containing the predicted labels and their confidence.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


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


<ul>
<li><a
  href="/docs/huggingface_hub/v0.18.0.rc0/en/package_reference/inference_client#huggingface_hub.InferenceTimeoutError"
>InferenceTimeoutError</a> —
If the model is unavailable or the request times out.</li>
<li><code>aiohttp.ClientResponseError</code> —
If the request fails with an HTTP error status code other than HTTP 503.</li>
</ul>
`,raiseType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/huggingface_hub/v0.18.0.rc0/en/package_reference/inference_client#huggingface_hub.InferenceTimeoutError"
>InferenceTimeoutError</a> or <code>aiohttp.ClientResponseError</code></p>
`}}),ys=new Z({props:{anchor:"huggingface_hub.AsyncInferenceClient.zero_shot_classification.example",$$slots:{default:[um]},$$scope:{ctx:$}}}),Wa=new v({props:{name:"zero_shot_image_classification",anchor:"huggingface_hub.AsyncInferenceClient.zero_shot_image_classification",parameters:[{name:"image",val:": typing.Union[bytes, typing.BinaryIO, str, pathlib.Path]"},{name:"labels",val:": typing.List[str]"},{name:"model",val:": typing.Optional[str] = None"}],parametersDescription:[{anchor:"huggingface_hub.AsyncInferenceClient.zero_shot_image_classification.image",description:`<strong>image</strong> (<code>Union[str, Path, bytes, BinaryIO]</code>) &#x2014;
The input image to caption. It can be raw bytes, an image file, or a URL to an online image.`,name:"image"},{anchor:"huggingface_hub.AsyncInferenceClient.zero_shot_image_classification.labels",description:`<strong>labels</strong> (<code>List[str]</code>) &#x2014;
List of string possible labels. There must be at least 2 labels.`,name:"labels"},{anchor:"huggingface_hub.AsyncInferenceClient.zero_shot_image_classification.model",description:`<strong>model</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The model to use for inference. Can be a model ID hosted on the Hugging Face Hub or a URL to a deployed
Inference Endpoint. This parameter overrides the model defined at the instance level. Defaults to None.`,name:"model"}],source:"https://github.com/huggingface/huggingface_hub/blob/v0.18.0.rc0/src/huggingface_hub/inference/_generated/_async_client.py#L1835",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>List of classification outputs containing the predicted labels and their confidence.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


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


<ul>
<li><a
  href="/docs/huggingface_hub/v0.18.0.rc0/en/package_reference/inference_client#huggingface_hub.InferenceTimeoutError"
>InferenceTimeoutError</a> —
If the model is unavailable or the request times out.</li>
<li><code>aiohttp.ClientResponseError</code> —
If the request fails with an HTTP error status code other than HTTP 503.</li>
</ul>
`,raiseType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/huggingface_hub/v0.18.0.rc0/en/package_reference/inference_client#huggingface_hub.InferenceTimeoutError"
>InferenceTimeoutError</a> or <code>aiohttp.ClientResponseError</code></p>
`}}),xs=new Z({props:{anchor:"huggingface_hub.AsyncInferenceClient.zero_shot_image_classification.example",$$slots:{default:[dm]},$$scope:{ctx:$}}}),Na=new _o({props:{title:"InferenceTimeoutError",local:"huggingface_hub.InferenceTimeoutError",headingTag:"h3"}}),Ga=new v({props:{name:"class huggingface_hub.InferenceTimeoutError",anchor:"huggingface_hub.InferenceTimeoutError",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],source:"https://github.com/huggingface/huggingface_hub/blob/v0.18.0.rc0/src/huggingface_hub/inference/_common.py#L94"}}),Va=new _o({props:{title:"Return types",local:"huggingface_hub.inference._types.ClassificationOutput",headingTag:"h3"}}),Ra=new v({props:{name:"class huggingface_hub.inference._types.ClassificationOutput",anchor:"huggingface_hub.inference._types.ClassificationOutput",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"huggingface_hub.inference._types.ClassificationOutput.label",description:`<strong>label</strong> (<code>str</code>) &#x2014;
The label predicted by the model.`,name:"label"},{anchor:"huggingface_hub.inference._types.ClassificationOutput.score",description:`<strong>score</strong> (<code>float</code>) &#x2014;
The score of the label predicted by the model.`,name:"score"}],source:"https://github.com/huggingface/huggingface_hub/blob/v0.18.0.rc0/src/huggingface_hub/inference/_types.py#L22"}}),Ya=new v({props:{name:"class huggingface_hub.inference._types.ConversationalOutputConversation",anchor:"huggingface_hub.inference._types.ConversationalOutputConversation",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"huggingface_hub.inference._types.ConversationalOutputConversation.generated_responses",description:`<strong>generated_responses</strong> (<code>List[str]</code>) &#x2014;
A list of the responses from the model.`,name:"generated_responses"},{anchor:"huggingface_hub.inference._types.ConversationalOutputConversation.past_user_inputs",description:`<strong>past_user_inputs</strong> (<code>List[str]</code>) &#x2014;
A list of the inputs from the user. Must be the same length as <code>generated_responses</code>.`,name:"past_user_inputs"}],source:"https://github.com/huggingface/huggingface_hub/blob/v0.18.0.rc0/src/huggingface_hub/inference/_types.py#L36"}}),Ba=new v({props:{name:"class huggingface_hub.inference._types.ConversationalOutput",anchor:"huggingface_hub.inference._types.ConversationalOutput",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"huggingface_hub.inference._types.ConversationalOutput.generated_text",description:`<strong>generated_text</strong> (<code>str</code>) &#x2014;
The last response from the model.`,name:"generated_text"},{anchor:"huggingface_hub.inference._types.ConversationalOutput.conversation",description:`<strong>conversation</strong> (<code>ConversationalOutputConversation</code>) &#x2014;
The past conversation.`,name:"conversation"},{anchor:"huggingface_hub.inference._types.ConversationalOutput.warnings",description:`<strong>warnings</strong> (<code>List[str]</code>) &#x2014;
A list of warnings associated with the process.`,name:"warnings"}],source:"https://github.com/huggingface/huggingface_hub/blob/v0.18.0.rc0/src/huggingface_hub/inference/_types.py#L50"}}),Aa=new v({props:{name:"class huggingface_hub.inference._types.ImageSegmentationOutput",anchor:"huggingface_hub.inference._types.ImageSegmentationOutput",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"huggingface_hub.inference._types.ImageSegmentationOutput.label",description:`<strong>label</strong> (<code>str</code>) &#x2014;
The label corresponding to the mask.`,name:"label"},{anchor:"huggingface_hub.inference._types.ImageSegmentationOutput.mask",description:`<strong>mask</strong> (<code>Image</code>) &#x2014;
An Image object representing the mask predicted by the model.`,name:"mask"},{anchor:"huggingface_hub.inference._types.ImageSegmentationOutput.score",description:`<strong>score</strong> (<code>float</code>) &#x2014;
The score associated with the label for this mask.`,name:"score"}],source:"https://github.com/huggingface/huggingface_hub/blob/v0.18.0.rc0/src/huggingface_hub/inference/_types.py#L87"}}),Ha=new v({props:{name:"class huggingface_hub.inference._types.TokenClassificationOutput",anchor:"huggingface_hub.inference._types.TokenClassificationOutput",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"huggingface_hub.inference._types.TokenClassificationOutput.entity_group",description:`<strong>entity_group</strong> (<code>str</code>) &#x2014;
The type for the entity being recognized (model specific).`,name:"entity_group"},{anchor:"huggingface_hub.inference._types.TokenClassificationOutput.score",description:`<strong>score</strong> (<code>float</code>) &#x2014;
The score of the label predicted by the model.`,name:"score"},{anchor:"huggingface_hub.inference._types.TokenClassificationOutput.word",description:`<strong>word</strong> (<code>str</code>) &#x2014;
The string that was captured.`,name:"word"},{anchor:"huggingface_hub.inference._types.TokenClassificationOutput.start",description:`<strong>start</strong> (<code>int</code>) &#x2014;
The offset stringwise where the answer is located. Useful to disambiguate if word occurs multiple times.`,name:"start"},{anchor:"huggingface_hub.inference._types.TokenClassificationOutput.end",description:`<strong>end</strong> (<code>int</code>) &#x2014;
The offset stringwise where the answer is located. Useful to disambiguate if word occurs multiple times.`,name:"end"}],source:"https://github.com/huggingface/huggingface_hub/blob/v0.18.0.rc0/src/huggingface_hub/inference/_types.py#L163"}}),Pa=new _o({props:{title:"Text generation types",local:"huggingface_hub.inference._text_generation.TextGenerationParameters",headingTag:"h3"}}),Fa=new v({props:{name:"class huggingface_hub.inference._text_generation.TextGenerationParameters",anchor:"huggingface_hub.inference._text_generation.TextGenerationParameters",parameters:[{name:"do_sample",val:": bool = False"},{name:"max_new_tokens",val:": int = 20"},{name:"repetition_penalty",val:": typing.Optional[float] = None"},{name:"return_full_text",val:": bool = False"},{name:"stop",val:": typing.List[str] = <factory>"},{name:"seed",val:": typing.Optional[int] = None"},{name:"temperature",val:": typing.Optional[float] = None"},{name:"top_k",val:": typing.Optional[int] = None"},{name:"top_p",val:": typing.Optional[float] = None"},{name:"truncate",val:": typing.Optional[int] = None"},{name:"typical_p",val:": typing.Optional[float] = None"},{name:"best_of",val:": typing.Optional[int] = None"},{name:"watermark",val:": bool = False"},{name:"details",val:": bool = False"},{name:"decoder_input_details",val:": bool = False"}],parametersDescription:[{anchor:"huggingface_hub.inference._text_generation.TextGenerationParameters.do_sample",description:`<strong>do_sample</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Activate logits sampling. Defaults to False.`,name:"do_sample"},{anchor:"huggingface_hub.inference._text_generation.TextGenerationParameters.max_new_tokens",description:`<strong>max_new_tokens</strong> (<code>int</code>, <em>optional</em>) &#x2014;
Maximum number of generated tokens. Defaults to 20.`,name:"max_new_tokens"},{anchor:"huggingface_hub.inference._text_generation.TextGenerationParameters.repetition_penalty",description:`<strong>repetition_penalty</strong> (<code>Optional[float]</code>, <em>optional</em>) &#x2014;
The parameter for repetition penalty. A value of 1.0 means no penalty. See <a href="https://arxiv.org/pdf/1909.05858.pdf" rel="nofollow">this paper</a>
for more details. Defaults to None.`,name:"repetition_penalty"},{anchor:"huggingface_hub.inference._text_generation.TextGenerationParameters.return_full_text",description:`<strong>return_full_text</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether to prepend the prompt to the generated text. Defaults to False.`,name:"return_full_text"},{anchor:"huggingface_hub.inference._text_generation.TextGenerationParameters.stop",description:`<strong>stop</strong> (<code>List[str]</code>, <em>optional</em>) &#x2014;
Stop generating tokens if a member of <code>stop_sequences</code> is generated. Defaults to an empty list.`,name:"stop"},{anchor:"huggingface_hub.inference._text_generation.TextGenerationParameters.seed",description:`<strong>seed</strong> (<code>Optional[int]</code>, <em>optional</em>) &#x2014;
Random sampling seed. Defaults to None.`,name:"seed"},{anchor:"huggingface_hub.inference._text_generation.TextGenerationParameters.temperature",description:`<strong>temperature</strong> (<code>Optional[float]</code>, <em>optional</em>) &#x2014;
The value used to modulate the logits distribution. Defaults to None.`,name:"temperature"},{anchor:"huggingface_hub.inference._text_generation.TextGenerationParameters.top_k",description:`<strong>top_k</strong> (<code>Optional[int]</code>, <em>optional</em>) &#x2014;
The number of highest probability vocabulary tokens to keep for top-k-filtering. Defaults to None.`,name:"top_k"},{anchor:"huggingface_hub.inference._text_generation.TextGenerationParameters.top_p",description:`<strong>top_p</strong> (<code>Optional[float]</code>, <em>optional</em>) &#x2014;
If set to a value less than 1, only the smallest set of most probable tokens with probabilities that add up
to <code>top_p</code> or higher are kept for generation. Defaults to None.`,name:"top_p"},{anchor:"huggingface_hub.inference._text_generation.TextGenerationParameters.truncate",description:`<strong>truncate</strong> (<code>Optional[int]</code>, <em>optional</em>) &#x2014;
Truncate input tokens to the given size. Defaults to None.`,name:"truncate"},{anchor:"huggingface_hub.inference._text_generation.TextGenerationParameters.typical_p",description:`<strong>typical_p</strong> (<code>Optional[float]</code>, <em>optional</em>) &#x2014;
Typical Decoding mass. See <a href="https://arxiv.org/abs/2202.00666" rel="nofollow">Typical Decoding for Natural Language Generation</a>
for more information. Defaults to None.`,name:"typical_p"},{anchor:"huggingface_hub.inference._text_generation.TextGenerationParameters.best_of",description:`<strong>best_of</strong> (<code>Optional[int]</code>, <em>optional</em>) &#x2014;
Generate <code>best_of</code> sequences and return the one with the highest token logprobs. Defaults to None.`,name:"best_of"},{anchor:"huggingface_hub.inference._text_generation.TextGenerationParameters.watermark",description:`<strong>watermark</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Watermarking with <a href="https://arxiv.org/abs/2301.10226" rel="nofollow">A Watermark for Large Language Models</a>. Defaults to False.`,name:"watermark"},{anchor:"huggingface_hub.inference._text_generation.TextGenerationParameters.details",description:`<strong>details</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Get generation details. Defaults to False.`,name:"details"},{anchor:"huggingface_hub.inference._text_generation.TextGenerationParameters.decoder_input_details",description:`<strong>decoder_input_details</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Get decoder input token logprobs and ids. Defaults to False.`,name:"decoder_input_details"}],source:"https://github.com/huggingface/huggingface_hub/blob/v0.18.0.rc0/src/huggingface_hub/inference/_text_generation.py#L47"}}),Sa=new v({props:{name:"class huggingface_hub.inference._text_generation.TextGenerationResponse",anchor:"huggingface_hub.inference._text_generation.TextGenerationResponse",parameters:[{name:"generated_text",val:": str"},{name:"details",val:": typing.Optional[huggingface_hub.inference._text_generation.Details] = None"}],parametersDescription:[{anchor:"huggingface_hub.inference._text_generation.TextGenerationResponse.generated_text",description:`<strong>generated_text</strong> (<code>str</code>) &#x2014;
The generated text.`,name:"generated_text"},{anchor:"huggingface_hub.inference._text_generation.TextGenerationResponse.details",description:`<strong>details</strong> (<code>Optional[Details]</code>) &#x2014;
Generation details. Returned only if <code>details=True</code> is sent to the server.`,name:"details"}],source:"https://github.com/huggingface/huggingface_hub/blob/v0.18.0.rc0/src/huggingface_hub/inference/_text_generation.py#L353"}}),Xa=new v({props:{name:"class huggingface_hub.inference._text_generation.TextGenerationStreamResponse",anchor:"huggingface_hub.inference._text_generation.TextGenerationStreamResponse",parameters:[{name:"token",val:": Token"},{name:"generated_text",val:": typing.Optional[str] = None"},{name:"details",val:": typing.Optional[huggingface_hub.inference._text_generation.StreamDetails] = None"}],parametersDescription:[{anchor:"huggingface_hub.inference._text_generation.TextGenerationStreamResponse.token",description:`<strong>token</strong> (<code>Token</code>) &#x2014;
The generated token.`,name:"token"},{anchor:"huggingface_hub.inference._text_generation.TextGenerationStreamResponse.generated_text",description:`<strong>generated_text</strong> (<code>Optional[str]</code>, <em>optional</em>) &#x2014;
The complete generated text. Only available when the generation is finished.`,name:"generated_text"},{anchor:"huggingface_hub.inference._text_generation.TextGenerationStreamResponse.details",description:`<strong>details</strong> (<code>Optional[StreamDetails]</code>, <em>optional</em>) &#x2014;
Generation details. Only available when the generation is finished.`,name:"details"}],source:"https://github.com/huggingface/huggingface_hub/blob/v0.18.0.rc0/src/huggingface_hub/inference/_text_generation.py#L397"}}),za=new v({props:{name:"class huggingface_hub.inference._text_generation.InputToken",anchor:"huggingface_hub.inference._text_generation.InputToken",parameters:[{name:"id",val:": int"},{name:"text",val:": str"},{name:"logprob",val:": typing.Optional[float] = None"}],parametersDescription:[{anchor:"huggingface_hub.inference._text_generation.InputToken.id",description:`<strong>id</strong> (<code>int</code>) &#x2014;
Token ID from the model tokenizer.`,name:"id"},{anchor:"huggingface_hub.inference._text_generation.InputToken.text",description:`<strong>text</strong> (<code>str</code>) &#x2014;
Token text.`,name:"text"},{anchor:"huggingface_hub.inference._text_generation.InputToken.logprob",description:`<strong>logprob</strong> (<code>float</code> or <code>None</code>) &#x2014;
Log probability of the token. Optional since the logprob of the first token cannot be computed.`,name:"logprob"}],source:"https://github.com/huggingface/huggingface_hub/blob/v0.18.0.rc0/src/huggingface_hub/inference/_text_generation.py#L220"}}),Oa=new v({props:{name:"class huggingface_hub.inference._text_generation.Token",anchor:"huggingface_hub.inference._text_generation.Token",parameters:[{name:"id",val:": int"},{name:"text",val:": str"},{name:"logprob",val:": float"},{name:"special",val:": bool"}],parametersDescription:[{anchor:"huggingface_hub.inference._text_generation.Token.id",description:`<strong>id</strong> (<code>int</code>) &#x2014;
Token ID from the model tokenizer.`,name:"id"},{anchor:"huggingface_hub.inference._text_generation.Token.text",description:`<strong>text</strong> (<code>str</code>) &#x2014;
Token text.`,name:"text"},{anchor:"huggingface_hub.inference._text_generation.Token.logprob",description:`<strong>logprob</strong> (<code>float</code>) &#x2014;
Log probability of the token.`,name:"logprob"},{anchor:"huggingface_hub.inference._text_generation.Token.special",description:`<strong>special</strong> (<code>bool</code>) &#x2014;
Indicates whether the token is a special token. It can be used to ignore
tokens when concatenating.`,name:"special"}],source:"https://github.com/huggingface/huggingface_hub/blob/v0.18.0.rc0/src/huggingface_hub/inference/_text_generation.py#L244"}}),Ka=new v({props:{name:"class huggingface_hub.inference._text_generation.FinishReason",anchor:"huggingface_hub.inference._text_generation.FinishReason",parameters:[{name:"value",val:""},{name:"names",val:" = None"},{name:"module",val:" = None"},{name:"qualname",val:" = None"},{name:"type",val:" = None"},{name:"start",val:" = 1"}],source:"https://github.com/huggingface/huggingface_hub/blob/v0.18.0.rc0/src/huggingface_hub/inference/_text_generation.py#L272"}}),eo=new v({props:{name:"class huggingface_hub.inference._text_generation.BestOfSequence",anchor:"huggingface_hub.inference._text_generation.BestOfSequence",parameters:[{name:"generated_text",val:": str"},{name:"finish_reason",val:": FinishReason"},{name:"generated_tokens",val:": int"},{name:"seed",val:": typing.Optional[int] = None"},{name:"prefill",val:": typing.List[huggingface_hub.inference._text_generation.InputToken] = <factory>"},{name:"tokens",val:": typing.List[huggingface_hub.inference._text_generation.Token] = <factory>"}],parametersDescription:[{anchor:"huggingface_hub.inference._text_generation.BestOfSequence.generated_text",description:`<strong>generated_text</strong> (<code>str</code>) &#x2014;
The generated text.`,name:"generated_text"},{anchor:"huggingface_hub.inference._text_generation.BestOfSequence.finish_reason",description:`<strong>finish_reason</strong> (<code>FinishReason</code>) &#x2014;
The reason for the generation to finish, represented by a <code>FinishReason</code> value.`,name:"finish_reason"},{anchor:"huggingface_hub.inference._text_generation.BestOfSequence.generated_tokens",description:`<strong>generated_tokens</strong> (<code>int</code>) &#x2014;
The number of generated tokens in the sequence.`,name:"generated_tokens"},{anchor:"huggingface_hub.inference._text_generation.BestOfSequence.seed",description:`<strong>seed</strong> (<code>Optional[int]</code>) &#x2014;
The sampling seed if sampling was activated.`,name:"seed"},{anchor:"huggingface_hub.inference._text_generation.BestOfSequence.prefill",description:`<strong>prefill</strong> (<code>List[InputToken]</code>) &#x2014;
The decoder input tokens. Empty if <code>decoder_input_details</code> is False. Defaults to an empty list.`,name:"prefill"},{anchor:"huggingface_hub.inference._text_generation.BestOfSequence.tokens",description:`<strong>tokens</strong> (<code>List[Token]</code>) &#x2014;
The generated tokens. Defaults to an empty list.`,name:"tokens"}],source:"https://github.com/huggingface/huggingface_hub/blob/v0.18.0.rc0/src/huggingface_hub/inference/_text_generation.py#L283"}}),no=new v({props:{name:"class huggingface_hub.inference._text_generation.Details",anchor:"huggingface_hub.inference._text_generation.Details",parameters:[{name:"finish_reason",val:": FinishReason"},{name:"generated_tokens",val:": int"},{name:"seed",val:": typing.Optional[int] = None"},{name:"prefill",val:": typing.List[huggingface_hub.inference._text_generation.InputToken] = <factory>"},{name:"tokens",val:": typing.List[huggingface_hub.inference._text_generation.Token] = <factory>"},{name:"best_of_sequences",val:": typing.Optional[typing.List[huggingface_hub.inference._text_generation.BestOfSequence]] = None"}],parametersDescription:[{anchor:"huggingface_hub.inference._text_generation.Details.finish_reason",description:`<strong>finish_reason</strong> (<code>FinishReason</code>) &#x2014;
The reason for the generation to finish, represented by a <code>FinishReason</code> value.`,name:"finish_reason"},{anchor:"huggingface_hub.inference._text_generation.Details.generated_tokens",description:`<strong>generated_tokens</strong> (<code>int</code>) &#x2014;
The number of generated tokens.`,name:"generated_tokens"},{anchor:"huggingface_hub.inference._text_generation.Details.seed",description:`<strong>seed</strong> (<code>Optional[int]</code>) &#x2014;
The sampling seed if sampling was activated.`,name:"seed"},{anchor:"huggingface_hub.inference._text_generation.Details.prefill",description:`<strong>prefill</strong> (<code>List[InputToken]</code>, <em>optional</em>) &#x2014;
The decoder input tokens. Empty if <code>decoder_input_details</code> is False. Defaults to an empty list.`,name:"prefill"},{anchor:"huggingface_hub.inference._text_generation.Details.tokens",description:`<strong>tokens</strong> (<code>List[Token]</code>) &#x2014;
The generated tokens. Defaults to an empty list.`,name:"tokens"},{anchor:"huggingface_hub.inference._text_generation.Details.best_of_sequences",description:`<strong>best_of_sequences</strong> (<code>Optional[List[BestOfSequence]]</code>) &#x2014;
Additional sequences when using the <code>best_of</code> parameter.`,name:"best_of_sequences"}],source:"https://github.com/huggingface/huggingface_hub/blob/v0.18.0.rc0/src/huggingface_hub/inference/_text_generation.py#L318"}}),to=new v({props:{name:"class huggingface_hub.inference._text_generation.StreamDetails",anchor:"huggingface_hub.inference._text_generation.StreamDetails",parameters:[{name:"finish_reason",val:": FinishReason"},{name:"generated_tokens",val:": int"},{name:"seed",val:": typing.Optional[int] = None"}],parametersDescription:[{anchor:"huggingface_hub.inference._text_generation.StreamDetails.finish_reason",description:`<strong>finish_reason</strong> (<code>FinishReason</code>) &#x2014;
The reason for the generation to finish, represented by a <code>FinishReason</code> value.`,name:"finish_reason"},{anchor:"huggingface_hub.inference._text_generation.StreamDetails.generated_tokens",description:`<strong>generated_tokens</strong> (<code>int</code>) &#x2014;
The number of generated tokens.`,name:"generated_tokens"},{anchor:"huggingface_hub.inference._text_generation.StreamDetails.seed",description:`<strong>seed</strong> (<code>Optional[int]</code>) &#x2014;
The sampling seed if sampling was activated.`,name:"seed"}],source:"https://github.com/huggingface/huggingface_hub/blob/v0.18.0.rc0/src/huggingface_hub/inference/_text_generation.py#L374"}}),so=new _o({props:{title:"InferenceAPI",local:"huggingface_hub.InferenceApi",headingTag:"h2"}}),oo=new v({props:{name:"class huggingface_hub.InferenceApi",anchor:"huggingface_hub.InferenceApi",parameters:[{name:"repo_id",val:": str"},{name:"task",val:": typing.Optional[str] = None"},{name:"token",val:": typing.Optional[str] = None"},{name:"gpu",val:": bool = False"}],source:"https://github.com/huggingface/huggingface_hub/blob/v0.18.0.rc0/src/huggingface_hub/inference_api.py#L46"}}),js=new Z({props:{anchor:"huggingface_hub.InferenceApi.example",$$slots:{default:[hm]},$$scope:{ctx:$}}}),ro=new v({props:{name:"__init__",anchor:"huggingface_hub.InferenceApi.__init__",parameters:[{name:"repo_id",val:": str"},{name:"task",val:": typing.Optional[str] = None"},{name:"token",val:": typing.Optional[str] = None"},{name:"gpu",val:": bool = False"}],parametersDescription:[{anchor:"huggingface_hub.InferenceApi.__init__.repo_id",description:`<strong>repo_id</strong> (<code>str</code>) &#x2014;
Id of repository (e.g. <em>user/bert-base-uncased</em>).`,name:"repo_id"},{anchor:"huggingface_hub.InferenceApi.__init__.task",description:`<strong>task</strong> (<code>str</code>, <em>optional</em>, defaults <code>None</code>) &#x2014;
Whether to force a task instead of using task specified in the
repository.`,name:"task"},{anchor:"huggingface_hub.InferenceApi.__init__.token",description:`<strong>token</strong> (<em>str</em>, <em>optional</em>) &#x2014;
The API token to use as HTTP bearer authorization. This is not
the authentication token. You can find the token in
<a href="https://huggingface.co/settings/token" rel="nofollow">https://huggingface.co/settings/token</a>. Alternatively, you can
find both your organizations and personal API tokens using
<em>HfApi().whoami(token)</em>.`,name:"token"},{anchor:"huggingface_hub.InferenceApi.__init__.gpu",description:`<strong>gpu</strong> (<em>bool</em>, <em>optional</em>, defaults <em>False</em>) &#x2014;
Whether to use GPU instead of CPU for inference(requires Startup
plan at least).`,name:"gpu"}],source:"https://github.com/huggingface/huggingface_hub/blob/v0.18.0.rc0/src/huggingface_hub/inference_api.py#L93"}}),lo=new v({props:{name:"__call__",anchor:"huggingface_hub.InferenceApi.__call__",parameters:[{name:"inputs",val:": typing.Union[str, typing.Dict, typing.List[str], typing.List[typing.List[str]], NoneType] = None"},{name:"params",val:": typing.Optional[typing.Dict] = None"},{name:"data",val:": typing.Optional[bytes] = None"},{name:"raw_response",val:": bool = False"}],parametersDescription:[{anchor:"huggingface_hub.InferenceApi.__call__.inputs",description:`<strong>inputs</strong> (<code>str</code> or <code>Dict</code> or <code>List[str]</code> or <code>List[List[str]]</code>, <em>optional</em>) &#x2014;
Inputs for the prediction.`,name:"inputs"},{anchor:"huggingface_hub.InferenceApi.__call__.params",description:`<strong>params</strong> (<code>Dict</code>, <em>optional</em>) &#x2014;
Additional parameters for the models. Will be sent as <code>parameters</code> in the
payload.`,name:"params"},{anchor:"huggingface_hub.InferenceApi.__call__.data",description:`<strong>data</strong> (<code>bytes</code>, <em>optional</em>) &#x2014;
Bytes content of the request. In this case, leave <code>inputs</code> and <code>params</code> empty.`,name:"data"},{anchor:"huggingface_hub.InferenceApi.__call__.raw_response",description:`<strong>raw_response</strong> (<code>bool</code>, defaults to <code>False</code>) &#x2014;
If <code>True</code>, the raw <code>Response</code> object is returned. You can parse its content
as preferred. By default, the content is parsed into a more practical format
(json dictionary or PIL Image for example).`,name:"raw_response"}],source:"https://github.com/huggingface/huggingface_hub/blob/v0.18.0.rc0/src/huggingface_hub/inference_api.py#L158"}}),{c(){n=p("meta"),x=r(),o=p("p"),s=r(),h(i.$$.fragment),e=r(),u=p("p"),u.innerHTML=nu,rl=r(),Is=p("ul"),Is.innerHTML=tu,ll=r(),Ms=p("p"),Ms.innerHTML=su,il=r(),h(vs.$$.fragment),cl=r(),w=p("div"),h(ws.$$.fragment),Fl=r(),yo=p("p"),yo.textContent=au,Sl=r(),xo=p("p"),xo.innerHTML=ou,Xl=r(),xe=p("div"),h(Cs.$$.fragment),zl=r(),jo=p("p"),jo.textContent=ru,Ol=r(),h(ot.$$.fragment),Kl=r(),je=p("div"),h(Js.$$.fragment),ei=r(),To=p("p"),To.textContent=lu,ni=r(),h(rt.$$.fragment),ti=r(),Te=p("div"),h(Us.$$.fragment),si=r(),$o=p("p"),$o.textContent=iu,ai=r(),h(lt.$$.fragment),oi=r(),$e=p("div"),h(ks.$$.fragment),ri=r(),Io=p("p"),Io.textContent=cu,li=r(),h(it.$$.fragment),ii=r(),Ie=p("div"),h(qs.$$.fragment),ci=r(),Mo=p("p"),Mo.textContent=pu,pi=r(),h(ct.$$.fragment),gi=r(),Me=p("div"),h(Zs.$$.fragment),ui=r(),vo=p("p"),vo.textContent=gu,di=r(),h(pt.$$.fragment),hi=r(),A=p("div"),h(Es.$$.fragment),mi=r(),wo=p("p"),wo.textContent=uu,fi=r(),h(gt.$$.fragment),bi=r(),h(ut.$$.fragment),_i=r(),ve=p("div"),h(Ws.$$.fragment),yi=r(),Co=p("p"),Co.textContent=du,xi=r(),h(dt.$$.fragment),ji=r(),H=p("div"),h(Ns.$$.fragment),Ti=r(),Jo=p("p"),Jo.textContent=hu,$i=r(),h(ht.$$.fragment),Ii=r(),h(mt.$$.fragment),Mi=r(),P=p("div"),h(Gs.$$.fragment),vi=r(),Uo=p("p"),Uo.textContent=mu,wi=r(),h(ft.$$.fragment),Ci=r(),h(bt.$$.fragment),Ji=r(),L=p("div"),h(Vs.$$.fragment),Ui=r(),ko=p("p"),ko.textContent=fu,ki=r(),qo=p("p"),qo.textContent=bu,qi=r(),h(_t.$$.fragment),Zi=r(),D=p("div"),h(Ds.$$.fragment),Ei=r(),Zo=p("p"),Zo.textContent=_u,Wi=r(),Eo=p("p"),Eo.innerHTML=yu,Ni=r(),h(yt.$$.fragment),Gi=r(),h(xt.$$.fragment),Vi=r(),Q=p("div"),h(Rs.$$.fragment),Di=r(),Wo=p("p"),Wo.textContent=xu,Ri=r(),h(jt.$$.fragment),Yi=r(),h(Tt.$$.fragment),Bi=r(),$t=p("div"),h(Ys.$$.fragment),Ai=r(),No=p("p"),No.textContent=ju,Hi=r(),we=p("div"),h(Bs.$$.fragment),Pi=r(),Go=p("p"),Go.textContent=Tu,Li=r(),h(It.$$.fragment),Qi=r(),Ce=p("div"),h(As.$$.fragment),Fi=r(),Vo=p("p"),Vo.textContent=$u,Si=r(),h(Mt.$$.fragment),Xi=r(),Je=p("div"),h(Hs.$$.fragment),zi=r(),Do=p("p"),Do.textContent=Iu,Oi=r(),h(vt.$$.fragment),Ki=r(),Ue=p("div"),h(Ps.$$.fragment),ec=r(),Ro=p("p"),Ro.textContent=Mu,nc=r(),h(wt.$$.fragment),tc=r(),ke=p("div"),h(Ls.$$.fragment),sc=r(),Yo=p("p"),Yo.textContent=vu,ac=r(),h(Ct.$$.fragment),oc=r(),qe=p("div"),h(Qs.$$.fragment),rc=r(),Bo=p("p"),Bo.textContent=wu,lc=r(),h(Jt.$$.fragment),ic=r(),Ze=p("div"),h(Fs.$$.fragment),cc=r(),Ao=p("p"),Ao.textContent=Cu,pc=r(),h(Ut.$$.fragment),gc=r(),E=p("div"),h(Ss.$$.fragment),uc=r(),Ho=p("p"),Ho.textContent=Ju,dc=r(),Po=p("p"),Po.textContent=Uu,hc=r(),Lo=p("p"),Lo.innerHTML=ku,mc=r(),Qo=p("p"),Qo.innerHTML=qu,fc=r(),h(kt.$$.fragment),bc=r(),F=p("div"),h(Xs.$$.fragment),_c=r(),Fo=p("p"),Fo.textContent=Zu,yc=r(),h(qt.$$.fragment),xc=r(),h(Zt.$$.fragment),jc=r(),Ee=p("div"),h(zs.$$.fragment),Tc=r(),So=p("p"),So.textContent=Eu,$c=r(),h(Et.$$.fragment),Ic=r(),We=p("div"),h(Os.$$.fragment),Mc=r(),Xo=p("p"),Xo.textContent=Wu,vc=r(),h(Wt.$$.fragment),wc=r(),S=p("div"),h(Ks.$$.fragment),Cc=r(),zo=p("p"),zo.textContent=Nu,Jc=r(),Oo=p("p"),Oo.innerHTML=Gu,Uc=r(),h(Nt.$$.fragment),kc=r(),Ne=p("div"),h(ea.$$.fragment),qc=r(),Ko=p("p"),Ko.textContent=Vu,Zc=r(),h(Gt.$$.fragment),Ec=r(),Ge=p("div"),h(na.$$.fragment),Wc=r(),er=p("p"),er.textContent=Du,Nc=r(),h(Vt.$$.fragment),Gc=r(),Ve=p("div"),h(ta.$$.fragment),Vc=r(),nr=p("p"),nr.textContent=Ru,Dc=r(),h(Dt.$$.fragment),pl=r(),h(sa.$$.fragment),gl=r(),aa=p("p"),aa.innerHTML=Yu,ul=r(),h(oa.$$.fragment),dl=r(),C=p("div"),h(ra.$$.fragment),Rc=r(),tr=p("p"),tr.textContent=Bu,Yc=r(),sr=p("p"),sr.innerHTML=Au,Bc=r(),De=p("div"),h(la.$$.fragment),Ac=r(),ar=p("p"),ar.textContent=Hu,Hc=r(),h(Rt.$$.fragment),Pc=r(),Re=p("div"),h(ia.$$.fragment),Lc=r(),or=p("p"),or.textContent=Pu,Qc=r(),h(Yt.$$.fragment),Fc=r(),Ye=p("div"),h(ca.$$.fragment),Sc=r(),rr=p("p"),rr.textContent=Lu,Xc=r(),h(Bt.$$.fragment),zc=r(),Be=p("div"),h(pa.$$.fragment),Oc=r(),lr=p("p"),lr.textContent=Qu,Kc=r(),h(At.$$.fragment),ep=r(),Ae=p("div"),h(ga.$$.fragment),np=r(),ir=p("p"),ir.textContent=Fu,tp=r(),h(Ht.$$.fragment),sp=r(),He=p("div"),h(ua.$$.fragment),ap=r(),cr=p("p"),cr.textContent=Su,op=r(),h(Pt.$$.fragment),rp=r(),X=p("div"),h(da.$$.fragment),lp=r(),pr=p("p"),pr.textContent=Xu,ip=r(),h(Lt.$$.fragment),cp=r(),h(Qt.$$.fragment),pp=r(),Pe=p("div"),h(ha.$$.fragment),gp=r(),gr=p("p"),gr.textContent=zu,up=r(),h(Ft.$$.fragment),dp=r(),z=p("div"),h(ma.$$.fragment),hp=r(),ur=p("p"),ur.textContent=Ou,mp=r(),h(St.$$.fragment),fp=r(),h(Xt.$$.fragment),bp=r(),O=p("div"),h(fa.$$.fragment),_p=r(),dr=p("p"),dr.textContent=Ku,yp=r(),h(zt.$$.fragment),xp=r(),h(Ot.$$.fragment),jp=r(),K=p("div"),h(ba.$$.fragment),Tp=r(),hr=p("p"),hr.textContent=ed,$p=r(),mr=p("p"),mr.textContent=nd,Ip=r(),h(Kt.$$.fragment),Mp=r(),R=p("div"),h(_a.$$.fragment),vp=r(),fr=p("p"),fr.textContent=td,wp=r(),br=p("p"),br.innerHTML=sd,Cp=r(),h(es.$$.fragment),Jp=r(),h(ns.$$.fragment),Up=r(),ee=p("div"),h(ya.$$.fragment),kp=r(),_r=p("p"),_r.textContent=ad,qp=r(),h(ts.$$.fragment),Zp=r(),h(ss.$$.fragment),Ep=r(),as=p("div"),h(xa.$$.fragment),Wp=r(),yr=p("p"),yr.textContent=od,Np=r(),Le=p("div"),h(ja.$$.fragment),Gp=r(),xr=p("p"),xr.textContent=rd,Vp=r(),h(os.$$.fragment),Dp=r(),Qe=p("div"),h(Ta.$$.fragment),Rp=r(),jr=p("p"),jr.textContent=ld,Yp=r(),h(rs.$$.fragment),Bp=r(),Fe=p("div"),h($a.$$.fragment),Ap=r(),Tr=p("p"),Tr.textContent=id,Hp=r(),h(ls.$$.fragment),Pp=r(),Se=p("div"),h(Ia.$$.fragment),Lp=r(),$r=p("p"),$r.textContent=cd,Qp=r(),h(is.$$.fragment),Fp=r(),Xe=p("div"),h(Ma.$$.fragment),Sp=r(),Ir=p("p"),Ir.textContent=pd,Xp=r(),h(cs.$$.fragment),zp=r(),ze=p("div"),h(va.$$.fragment),Op=r(),Mr=p("p"),Mr.textContent=gd,Kp=r(),h(ps.$$.fragment),eg=r(),Oe=p("div"),h(wa.$$.fragment),ng=r(),vr=p("p"),vr.textContent=ud,tg=r(),h(gs.$$.fragment),sg=r(),W=p("div"),h(Ca.$$.fragment),ag=r(),wr=p("p"),wr.textContent=dd,og=r(),Cr=p("p"),Cr.textContent=hd,rg=r(),Jr=p("p"),Jr.innerHTML=md,lg=r(),Ur=p("p"),Ur.innerHTML=fd,ig=r(),h(us.$$.fragment),cg=r(),ne=p("div"),h(Ja.$$.fragment),pg=r(),kr=p("p"),kr.textContent=bd,gg=r(),h(ds.$$.fragment),ug=r(),h(hs.$$.fragment),dg=r(),Ke=p("div"),h(Ua.$$.fragment),hg=r(),qr=p("p"),qr.textContent=_d,mg=r(),h(ms.$$.fragment),fg=r(),en=p("div"),h(ka.$$.fragment),bg=r(),Zr=p("p"),Zr.textContent=yd,_g=r(),h(fs.$$.fragment),yg=r(),te=p("div"),h(qa.$$.fragment),xg=r(),Er=p("p"),Er.textContent=xd,jg=r(),Wr=p("p"),Wr.innerHTML=jd,Tg=r(),h(bs.$$.fragment),$g=r(),nn=p("div"),h(Za.$$.fragment),Ig=r(),Nr=p("p"),Nr.textContent=Td,Mg=r(),h(_s.$$.fragment),vg=r(),tn=p("div"),h(Ea.$$.fragment),wg=r(),Gr=p("p"),Gr.textContent=$d,Cg=r(),h(ys.$$.fragment),Jg=r(),sn=p("div"),h(Wa.$$.fragment),Ug=r(),Vr=p("p"),Vr.textContent=Id,kg=r(),h(xs.$$.fragment),hl=r(),h(Na.$$.fragment),ml=r(),on=p("div"),h(Ga.$$.fragment),qg=r(),Dr=p("p"),Dr.textContent=Md,fl=r(),h(Va.$$.fragment),bl=r(),Da=p("p"),Da.textContent=vd,_l=r(),rn=p("div"),h(Ra.$$.fragment),Zg=r(),Rr=p("p"),Rr.innerHTML=wd,yl=r(),ln=p("div"),h(Ya.$$.fragment),Eg=r(),Yr=p("p"),Yr.innerHTML=Cd,xl=r(),cn=p("div"),h(Ba.$$.fragment),Wg=r(),Br=p("p"),Br.innerHTML=Jd,jl=r(),pn=p("div"),h(Aa.$$.fragment),Ng=r(),Ar=p("p"),Ar.innerHTML=Ud,Tl=r(),gn=p("div"),h(Ha.$$.fragment),Gg=r(),Hr=p("p"),Hr.innerHTML=kd,$l=r(),h(Pa.$$.fragment),Il=r(),La=p("p"),La.innerHTML=qd,Ml=r(),Qa=p("p"),Qa.innerHTML=Zd,vl=r(),un=p("div"),h(Fa.$$.fragment),Vg=r(),Pr=p("p"),Pr.textContent=Ed,wl=r(),ae=p("div"),h(Sa.$$.fragment),Dg=r(),Lr=p("p"),Lr.textContent=Wd,Rg=r(),Qr=p("p"),Qr.innerHTML=Nd,Cl=r(),oe=p("div"),h(Xa.$$.fragment),Yg=r(),Fr=p("p"),Fr.textContent=Gd,Bg=r(),Sr=p("p"),Sr.innerHTML=Vd,Jl=r(),dn=p("div"),h(za.$$.fragment),Ag=r(),Xr=p("p"),Xr.textContent=Dd,Ul=r(),hn=p("div"),h(Oa.$$.fragment),Hg=r(),zr=p("p"),zr.textContent=Rd,kl=r(),mn=p("div"),h(Ka.$$.fragment),Pg=r(),Or=p("p"),Or.textContent=Yd,ql=r(),fn=p("div"),h(eo.$$.fragment),Lg=r(),Kr=p("p"),Kr.textContent=Bd,Zl=r(),bn=p("div"),h(no.$$.fragment),Qg=r(),el=p("p"),el.textContent=Ad,El=r(),_n=p("div"),h(to.$$.fragment),Fg=r(),nl=p("p"),nl.textContent=Hd,Wl=r(),h(so.$$.fragment),Nl=r(),ao=p("p"),ao.innerHTML=Pd,Gl=r(),N=p("div"),h(oo.$$.fragment),Sg=r(),tl=p("p"),tl.textContent=Ld,Xg=r(),h(js.$$.fragment),zg=r(),Ts=p("div"),h(ro.$$.fragment),Og=r(),sl=p("p"),sl.textContent=Qd,Kg=r(),$s=p("div"),h(lo.$$.fragment),eu=r(),al=p("p"),al.textContent=Fd,Vl=r(),ol=p("p"),this.h()},l(t){const d=Kd("svelte-u9bgzb",document.head);n=g(d,"META",{name:!0,content:!0}),d.forEach(c),x=l(t),o=g(t,"P",{}),I(o).forEach(c),s=l(t),m(i.$$.fragment,t),e=l(t),u=g(t,"P",{"data-svelte-h":!0}),T(u)!=="svelte-411gzg"&&(u.innerHTML=nu),rl=l(t),Is=g(t,"UL",{"data-svelte-h":!0}),T(Is)!=="svelte-1qqordt"&&(Is.innerHTML=tu),ll=l(t),Ms=g(t,"P",{"data-svelte-h":!0}),T(Ms)!=="svelte-dikzte"&&(Ms.innerHTML=su),il=l(t),m(vs.$$.fragment,t),cl=l(t),w=g(t,"DIV",{class:!0});var U=I(w);m(ws.$$.fragment,U),Fl=l(U),yo=g(U,"P",{"data-svelte-h":!0}),T(yo)!=="svelte-1p4u01l"&&(yo.textContent=au),Sl=l(U),xo=g(U,"P",{"data-svelte-h":!0}),T(xo)!=="svelte-5gndiz"&&(xo.innerHTML=ou),Xl=l(U),xe=g(U,"DIV",{class:!0});var yn=I(xe);m(Cs.$$.fragment,yn),zl=l(yn),jo=g(yn,"P",{"data-svelte-h":!0}),T(jo)!=="svelte-1hs5qib"&&(jo.textContent=ru),Ol=l(yn),m(ot.$$.fragment,yn),yn.forEach(c),Kl=l(U),je=g(U,"DIV",{class:!0});var xn=I(je);m(Js.$$.fragment,xn),ei=l(xn),To=g(xn,"P",{"data-svelte-h":!0}),T(To)!=="svelte-lahnll"&&(To.textContent=lu),ni=l(xn),m(rt.$$.fragment,xn),xn.forEach(c),ti=l(U),Te=g(U,"DIV",{class:!0});var jn=I(Te);m(Us.$$.fragment,jn),si=l(jn),$o=g(jn,"P",{"data-svelte-h":!0}),T($o)!=="svelte-2dk21c"&&($o.textContent=iu),ai=l(jn),m(lt.$$.fragment,jn),jn.forEach(c),oi=l(U),$e=g(U,"DIV",{class:!0});var Tn=I($e);m(ks.$$.fragment,Tn),ri=l(Tn),Io=g(Tn,"P",{"data-svelte-h":!0}),T(Io)!=="svelte-qs8cmr"&&(Io.textContent=cu),li=l(Tn),m(it.$$.fragment,Tn),Tn.forEach(c),ii=l(U),Ie=g(U,"DIV",{class:!0});var $n=I(Ie);m(qs.$$.fragment,$n),ci=l($n),Mo=g($n,"P",{"data-svelte-h":!0}),T(Mo)!=="svelte-1axtrg9"&&(Mo.textContent=pu),pi=l($n),m(ct.$$.fragment,$n),$n.forEach(c),gi=l(U),Me=g(U,"DIV",{class:!0});var In=I(Me);m(Zs.$$.fragment,In),ui=l(In),vo=g(In,"P",{"data-svelte-h":!0}),T(vo)!=="svelte-1lnjtsz"&&(vo.textContent=gu),di=l(In),m(pt.$$.fragment,In),In.forEach(c),hi=l(U),A=g(U,"DIV",{class:!0});var re=I(A);m(Es.$$.fragment,re),mi=l(re),wo=g(re,"P",{"data-svelte-h":!0}),T(wo)!=="svelte-1htupoc"&&(wo.textContent=uu),fi=l(re),m(gt.$$.fragment,re),bi=l(re),m(ut.$$.fragment,re),re.forEach(c),_i=l(U),ve=g(U,"DIV",{class:!0});var Mn=I(ve);m(Ws.$$.fragment,Mn),yi=l(Mn),Co=g(Mn,"P",{"data-svelte-h":!0}),T(Co)!=="svelte-u63854"&&(Co.textContent=du),xi=l(Mn),m(dt.$$.fragment,Mn),Mn.forEach(c),ji=l(U),H=g(U,"DIV",{class:!0});var le=I(H);m(Ns.$$.fragment,le),Ti=l(le),Jo=g(le,"P",{"data-svelte-h":!0}),T(Jo)!=="svelte-k6f11e"&&(Jo.textContent=hu),$i=l(le),m(ht.$$.fragment,le),Ii=l(le),m(mt.$$.fragment,le),le.forEach(c),Mi=l(U),P=g(U,"DIV",{class:!0});var ie=I(P);m(Gs.$$.fragment,ie),vi=l(ie),Uo=g(ie,"P",{"data-svelte-h":!0}),T(Uo)!=="svelte-7cx5l1"&&(Uo.textContent=mu),wi=l(ie),m(ft.$$.fragment,ie),Ci=l(ie),m(bt.$$.fragment,ie),ie.forEach(c),Ji=l(U),L=g(U,"DIV",{class:!0});var ce=I(L);m(Vs.$$.fragment,ce),Ui=l(ce),ko=g(ce,"P",{"data-svelte-h":!0}),T(ko)!=="svelte-1tnfouk"&&(ko.textContent=fu),ki=l(ce),qo=g(ce,"P",{"data-svelte-h":!0}),T(qo)!=="svelte-qrqo93"&&(qo.textContent=bu),qi=l(ce),m(_t.$$.fragment,ce),ce.forEach(c),Zi=l(U),D=g(U,"DIV",{class:!0});var Y=I(D);m(Ds.$$.fragment,Y),Ei=l(Y),Zo=g(Y,"P",{"data-svelte-h":!0}),T(Zo)!=="svelte-15v8qnq"&&(Zo.textContent=_u),Wi=l(Y),Eo=g(Y,"P",{"data-svelte-h":!0}),T(Eo)!=="svelte-1k36r1q"&&(Eo.innerHTML=yu),Ni=l(Y),m(yt.$$.fragment,Y),Gi=l(Y),m(xt.$$.fragment,Y),Y.forEach(c),Vi=l(U),Q=g(U,"DIV",{class:!0});var pe=I(Q);m(Rs.$$.fragment,pe),Di=l(pe),Wo=g(pe,"P",{"data-svelte-h":!0}),T(Wo)!=="svelte-fzfwfh"&&(Wo.textContent=xu),Ri=l(pe),m(jt.$$.fragment,pe),Yi=l(pe),m(Tt.$$.fragment,pe),pe.forEach(c),Bi=l(U),$t=g(U,"DIV",{class:!0});var io=I($t);m(Ys.$$.fragment,io),Ai=l(io),No=g(io,"P",{"data-svelte-h":!0}),T(No)!=="svelte-14tnsya"&&(No.textContent=ju),io.forEach(c),Hi=l(U),we=g(U,"DIV",{class:!0});var vn=I(we);m(Bs.$$.fragment,vn),Pi=l(vn),Go=g(vn,"P",{"data-svelte-h":!0}),T(Go)!=="svelte-1mibg86"&&(Go.textContent=Tu),Li=l(vn),m(It.$$.fragment,vn),vn.forEach(c),Qi=l(U),Ce=g(U,"DIV",{class:!0});var wn=I(Ce);m(As.$$.fragment,wn),Fi=l(wn),Vo=g(wn,"P",{"data-svelte-h":!0}),T(Vo)!=="svelte-1nuhgbh"&&(Vo.textContent=$u),Si=l(wn),m(Mt.$$.fragment,wn),wn.forEach(c),Xi=l(U),Je=g(U,"DIV",{class:!0});var Cn=I(Je);m(Hs.$$.fragment,Cn),zi=l(Cn),Do=g(Cn,"P",{"data-svelte-h":!0}),T(Do)!=="svelte-1uepm2o"&&(Do.textContent=Iu),Oi=l(Cn),m(vt.$$.fragment,Cn),Cn.forEach(c),Ki=l(U),Ue=g(U,"DIV",{class:!0});var Jn=I(Ue);m(Ps.$$.fragment,Jn),ec=l(Jn),Ro=g(Jn,"P",{"data-svelte-h":!0}),T(Ro)!=="svelte-77a94i"&&(Ro.textContent=Mu),nc=l(Jn),m(wt.$$.fragment,Jn),Jn.forEach(c),tc=l(U),ke=g(U,"DIV",{class:!0});var Un=I(ke);m(Ls.$$.fragment,Un),sc=l(Un),Yo=g(Un,"P",{"data-svelte-h":!0}),T(Yo)!=="svelte-61sxmo"&&(Yo.textContent=vu),ac=l(Un),m(Ct.$$.fragment,Un),Un.forEach(c),oc=l(U),qe=g(U,"DIV",{class:!0});var kn=I(qe);m(Qs.$$.fragment,kn),rc=l(kn),Bo=g(kn,"P",{"data-svelte-h":!0}),T(Bo)!=="svelte-hzldyu"&&(Bo.textContent=wu),lc=l(kn),m(Jt.$$.fragment,kn),kn.forEach(c),ic=l(U),Ze=g(U,"DIV",{class:!0});var qn=I(Ze);m(Fs.$$.fragment,qn),cc=l(qn),Ao=g(qn,"P",{"data-svelte-h":!0}),T(Ao)!=="svelte-b4yzyj"&&(Ao.textContent=Cu),pc=l(qn),m(Ut.$$.fragment,qn),qn.forEach(c),gc=l(U),E=g(U,"DIV",{class:!0});var G=I(E);m(Ss.$$.fragment,G),uc=l(G),Ho=g(G,"P",{"data-svelte-h":!0}),T(Ho)!=="svelte-qakvx8"&&(Ho.textContent=Ju),dc=l(G),Po=g(G,"P",{"data-svelte-h":!0}),T(Po)!=="svelte-3d5rn4"&&(Po.textContent=Uu),hc=l(G),Lo=g(G,"P",{"data-svelte-h":!0}),T(Lo)!=="svelte-1irx2op"&&(Lo.innerHTML=ku),mc=l(G),Qo=g(G,"P",{"data-svelte-h":!0}),T(Qo)!=="svelte-140zl9b"&&(Qo.innerHTML=qu),fc=l(G),m(kt.$$.fragment,G),G.forEach(c),bc=l(U),F=g(U,"DIV",{class:!0});var ge=I(F);m(Xs.$$.fragment,ge),_c=l(ge),Fo=g(ge,"P",{"data-svelte-h":!0}),T(Fo)!=="svelte-9lmcnw"&&(Fo.textContent=Zu),yc=l(ge),m(qt.$$.fragment,ge),xc=l(ge),m(Zt.$$.fragment,ge),ge.forEach(c),jc=l(U),Ee=g(U,"DIV",{class:!0});var Zn=I(Ee);m(zs.$$.fragment,Zn),Tc=l(Zn),So=g(Zn,"P",{"data-svelte-h":!0}),T(So)!=="svelte-12mjzdy"&&(So.textContent=Eu),$c=l(Zn),m(Et.$$.fragment,Zn),Zn.forEach(c),Ic=l(U),We=g(U,"DIV",{class:!0});var En=I(We);m(Os.$$.fragment,En),Mc=l(En),Xo=g(En,"P",{"data-svelte-h":!0}),T(Xo)!=="svelte-1araal"&&(Xo.textContent=Wu),vc=l(En),m(Wt.$$.fragment,En),En.forEach(c),wc=l(U),S=g(U,"DIV",{class:!0});var ue=I(S);m(Ks.$$.fragment,ue),Cc=l(ue),zo=g(ue,"P",{"data-svelte-h":!0}),T(zo)!=="svelte-1v3lqck"&&(zo.textContent=Nu),Jc=l(ue),Oo=g(ue,"P",{"data-svelte-h":!0}),T(Oo)!=="svelte-1r5c3wc"&&(Oo.innerHTML=Gu),Uc=l(ue),m(Nt.$$.fragment,ue),ue.forEach(c),kc=l(U),Ne=g(U,"DIV",{class:!0});var Wn=I(Ne);m(ea.$$.fragment,Wn),qc=l(Wn),Ko=g(Wn,"P",{"data-svelte-h":!0}),T(Ko)!=="svelte-1jbp6ey"&&(Ko.textContent=Vu),Zc=l(Wn),m(Gt.$$.fragment,Wn),Wn.forEach(c),Ec=l(U),Ge=g(U,"DIV",{class:!0});var Nn=I(Ge);m(na.$$.fragment,Nn),Wc=l(Nn),er=g(Nn,"P",{"data-svelte-h":!0}),T(er)!=="svelte-1c9xuqj"&&(er.textContent=Du),Nc=l(Nn),m(Vt.$$.fragment,Nn),Nn.forEach(c),Gc=l(U),Ve=g(U,"DIV",{class:!0});var Gn=I(Ve);m(ta.$$.fragment,Gn),Vc=l(Gn),nr=g(Gn,"P",{"data-svelte-h":!0}),T(nr)!=="svelte-108ipf8"&&(nr.textContent=Ru),Dc=l(Gn),m(Dt.$$.fragment,Gn),Gn.forEach(c),U.forEach(c),pl=l(t),m(sa.$$.fragment,t),gl=l(t),aa=g(t,"P",{"data-svelte-h":!0}),T(aa)!=="svelte-nn0rvx"&&(aa.innerHTML=Yu),ul=l(t),m(oa.$$.fragment,t),dl=l(t),C=g(t,"DIV",{class:!0});var k=I(C);m(ra.$$.fragment,k),Rc=l(k),tr=g(k,"P",{"data-svelte-h":!0}),T(tr)!=="svelte-1p4u01l"&&(tr.textContent=Bu),Yc=l(k),sr=g(k,"P",{"data-svelte-h":!0}),T(sr)!=="svelte-5gndiz"&&(sr.innerHTML=Au),Bc=l(k),De=g(k,"DIV",{class:!0});var Vn=I(De);m(la.$$.fragment,Vn),Ac=l(Vn),ar=g(Vn,"P",{"data-svelte-h":!0}),T(ar)!=="svelte-1hs5qib"&&(ar.textContent=Hu),Hc=l(Vn),m(Rt.$$.fragment,Vn),Vn.forEach(c),Pc=l(k),Re=g(k,"DIV",{class:!0});var Dn=I(Re);m(ia.$$.fragment,Dn),Lc=l(Dn),or=g(Dn,"P",{"data-svelte-h":!0}),T(or)!=="svelte-lahnll"&&(or.textContent=Pu),Qc=l(Dn),m(Yt.$$.fragment,Dn),Dn.forEach(c),Fc=l(k),Ye=g(k,"DIV",{class:!0});var Rn=I(Ye);m(ca.$$.fragment,Rn),Sc=l(Rn),rr=g(Rn,"P",{"data-svelte-h":!0}),T(rr)!=="svelte-2dk21c"&&(rr.textContent=Lu),Xc=l(Rn),m(Bt.$$.fragment,Rn),Rn.forEach(c),zc=l(k),Be=g(k,"DIV",{class:!0});var Yn=I(Be);m(pa.$$.fragment,Yn),Oc=l(Yn),lr=g(Yn,"P",{"data-svelte-h":!0}),T(lr)!=="svelte-qs8cmr"&&(lr.textContent=Qu),Kc=l(Yn),m(At.$$.fragment,Yn),Yn.forEach(c),ep=l(k),Ae=g(k,"DIV",{class:!0});var Bn=I(Ae);m(ga.$$.fragment,Bn),np=l(Bn),ir=g(Bn,"P",{"data-svelte-h":!0}),T(ir)!=="svelte-1axtrg9"&&(ir.textContent=Fu),tp=l(Bn),m(Ht.$$.fragment,Bn),Bn.forEach(c),sp=l(k),He=g(k,"DIV",{class:!0});var An=I(He);m(ua.$$.fragment,An),ap=l(An),cr=g(An,"P",{"data-svelte-h":!0}),T(cr)!=="svelte-1lnjtsz"&&(cr.textContent=Su),op=l(An),m(Pt.$$.fragment,An),An.forEach(c),rp=l(k),X=g(k,"DIV",{class:!0});var de=I(X);m(da.$$.fragment,de),lp=l(de),pr=g(de,"P",{"data-svelte-h":!0}),T(pr)!=="svelte-1htupoc"&&(pr.textContent=Xu),ip=l(de),m(Lt.$$.fragment,de),cp=l(de),m(Qt.$$.fragment,de),de.forEach(c),pp=l(k),Pe=g(k,"DIV",{class:!0});var Hn=I(Pe);m(ha.$$.fragment,Hn),gp=l(Hn),gr=g(Hn,"P",{"data-svelte-h":!0}),T(gr)!=="svelte-u63854"&&(gr.textContent=zu),up=l(Hn),m(Ft.$$.fragment,Hn),Hn.forEach(c),dp=l(k),z=g(k,"DIV",{class:!0});var he=I(z);m(ma.$$.fragment,he),hp=l(he),ur=g(he,"P",{"data-svelte-h":!0}),T(ur)!=="svelte-k6f11e"&&(ur.textContent=Ou),mp=l(he),m(St.$$.fragment,he),fp=l(he),m(Xt.$$.fragment,he),he.forEach(c),bp=l(k),O=g(k,"DIV",{class:!0});var me=I(O);m(fa.$$.fragment,me),_p=l(me),dr=g(me,"P",{"data-svelte-h":!0}),T(dr)!=="svelte-7cx5l1"&&(dr.textContent=Ku),yp=l(me),m(zt.$$.fragment,me),xp=l(me),m(Ot.$$.fragment,me),me.forEach(c),jp=l(k),K=g(k,"DIV",{class:!0});var fe=I(K);m(ba.$$.fragment,fe),Tp=l(fe),hr=g(fe,"P",{"data-svelte-h":!0}),T(hr)!=="svelte-1tnfouk"&&(hr.textContent=ed),$p=l(fe),mr=g(fe,"P",{"data-svelte-h":!0}),T(mr)!=="svelte-qrqo93"&&(mr.textContent=nd),Ip=l(fe),m(Kt.$$.fragment,fe),fe.forEach(c),Mp=l(k),R=g(k,"DIV",{class:!0});var B=I(R);m(_a.$$.fragment,B),vp=l(B),fr=g(B,"P",{"data-svelte-h":!0}),T(fr)!=="svelte-15v8qnq"&&(fr.textContent=td),wp=l(B),br=g(B,"P",{"data-svelte-h":!0}),T(br)!=="svelte-1k36r1q"&&(br.innerHTML=sd),Cp=l(B),m(es.$$.fragment,B),Jp=l(B),m(ns.$$.fragment,B),B.forEach(c),Up=l(k),ee=g(k,"DIV",{class:!0});var be=I(ee);m(ya.$$.fragment,be),kp=l(be),_r=g(be,"P",{"data-svelte-h":!0}),T(_r)!=="svelte-fzfwfh"&&(_r.textContent=ad),qp=l(be),m(ts.$$.fragment,be),Zp=l(be),m(ss.$$.fragment,be),be.forEach(c),Ep=l(k),as=g(k,"DIV",{class:!0});var co=I(as);m(xa.$$.fragment,co),Wp=l(co),yr=g(co,"P",{"data-svelte-h":!0}),T(yr)!=="svelte-14tnsya"&&(yr.textContent=od),co.forEach(c),Np=l(k),Le=g(k,"DIV",{class:!0});var Pn=I(Le);m(ja.$$.fragment,Pn),Gp=l(Pn),xr=g(Pn,"P",{"data-svelte-h":!0}),T(xr)!=="svelte-1mibg86"&&(xr.textContent=rd),Vp=l(Pn),m(os.$$.fragment,Pn),Pn.forEach(c),Dp=l(k),Qe=g(k,"DIV",{class:!0});var Ln=I(Qe);m(Ta.$$.fragment,Ln),Rp=l(Ln),jr=g(Ln,"P",{"data-svelte-h":!0}),T(jr)!=="svelte-1nuhgbh"&&(jr.textContent=ld),Yp=l(Ln),m(rs.$$.fragment,Ln),Ln.forEach(c),Bp=l(k),Fe=g(k,"DIV",{class:!0});var Qn=I(Fe);m($a.$$.fragment,Qn),Ap=l(Qn),Tr=g(Qn,"P",{"data-svelte-h":!0}),T(Tr)!=="svelte-1uepm2o"&&(Tr.textContent=id),Hp=l(Qn),m(ls.$$.fragment,Qn),Qn.forEach(c),Pp=l(k),Se=g(k,"DIV",{class:!0});var Fn=I(Se);m(Ia.$$.fragment,Fn),Lp=l(Fn),$r=g(Fn,"P",{"data-svelte-h":!0}),T($r)!=="svelte-77a94i"&&($r.textContent=cd),Qp=l(Fn),m(is.$$.fragment,Fn),Fn.forEach(c),Fp=l(k),Xe=g(k,"DIV",{class:!0});var Sn=I(Xe);m(Ma.$$.fragment,Sn),Sp=l(Sn),Ir=g(Sn,"P",{"data-svelte-h":!0}),T(Ir)!=="svelte-61sxmo"&&(Ir.textContent=pd),Xp=l(Sn),m(cs.$$.fragment,Sn),Sn.forEach(c),zp=l(k),ze=g(k,"DIV",{class:!0});var Xn=I(ze);m(va.$$.fragment,Xn),Op=l(Xn),Mr=g(Xn,"P",{"data-svelte-h":!0}),T(Mr)!=="svelte-hzldyu"&&(Mr.textContent=gd),Kp=l(Xn),m(ps.$$.fragment,Xn),Xn.forEach(c),eg=l(k),Oe=g(k,"DIV",{class:!0});var zn=I(Oe);m(wa.$$.fragment,zn),ng=l(zn),vr=g(zn,"P",{"data-svelte-h":!0}),T(vr)!=="svelte-b4yzyj"&&(vr.textContent=ud),tg=l(zn),m(gs.$$.fragment,zn),zn.forEach(c),sg=l(k),W=g(k,"DIV",{class:!0});var V=I(W);m(Ca.$$.fragment,V),ag=l(V),wr=g(V,"P",{"data-svelte-h":!0}),T(wr)!=="svelte-qakvx8"&&(wr.textContent=dd),og=l(V),Cr=g(V,"P",{"data-svelte-h":!0}),T(Cr)!=="svelte-3d5rn4"&&(Cr.textContent=hd),rg=l(V),Jr=g(V,"P",{"data-svelte-h":!0}),T(Jr)!=="svelte-1irx2op"&&(Jr.innerHTML=md),lg=l(V),Ur=g(V,"P",{"data-svelte-h":!0}),T(Ur)!=="svelte-140zl9b"&&(Ur.innerHTML=fd),ig=l(V),m(us.$$.fragment,V),V.forEach(c),cg=l(k),ne=g(k,"DIV",{class:!0});var _e=I(ne);m(Ja.$$.fragment,_e),pg=l(_e),kr=g(_e,"P",{"data-svelte-h":!0}),T(kr)!=="svelte-9lmcnw"&&(kr.textContent=bd),gg=l(_e),m(ds.$$.fragment,_e),ug=l(_e),m(hs.$$.fragment,_e),_e.forEach(c),dg=l(k),Ke=g(k,"DIV",{class:!0});var On=I(Ke);m(Ua.$$.fragment,On),hg=l(On),qr=g(On,"P",{"data-svelte-h":!0}),T(qr)!=="svelte-12mjzdy"&&(qr.textContent=_d),mg=l(On),m(ms.$$.fragment,On),On.forEach(c),fg=l(k),en=g(k,"DIV",{class:!0});var Kn=I(en);m(ka.$$.fragment,Kn),bg=l(Kn),Zr=g(Kn,"P",{"data-svelte-h":!0}),T(Zr)!=="svelte-1araal"&&(Zr.textContent=yd),_g=l(Kn),m(fs.$$.fragment,Kn),Kn.forEach(c),yg=l(k),te=g(k,"DIV",{class:!0});var ye=I(te);m(qa.$$.fragment,ye),xg=l(ye),Er=g(ye,"P",{"data-svelte-h":!0}),T(Er)!=="svelte-1v3lqck"&&(Er.textContent=xd),jg=l(ye),Wr=g(ye,"P",{"data-svelte-h":!0}),T(Wr)!=="svelte-1r5c3wc"&&(Wr.innerHTML=jd),Tg=l(ye),m(bs.$$.fragment,ye),ye.forEach(c),$g=l(k),nn=g(k,"DIV",{class:!0});var et=I(nn);m(Za.$$.fragment,et),Ig=l(et),Nr=g(et,"P",{"data-svelte-h":!0}),T(Nr)!=="svelte-1jbp6ey"&&(Nr.textContent=Td),Mg=l(et),m(_s.$$.fragment,et),et.forEach(c),vg=l(k),tn=g(k,"DIV",{class:!0});var nt=I(tn);m(Ea.$$.fragment,nt),wg=l(nt),Gr=g(nt,"P",{"data-svelte-h":!0}),T(Gr)!=="svelte-1c9xuqj"&&(Gr.textContent=$d),Cg=l(nt),m(ys.$$.fragment,nt),nt.forEach(c),Jg=l(k),sn=g(k,"DIV",{class:!0});var tt=I(sn);m(Wa.$$.fragment,tt),Ug=l(tt),Vr=g(tt,"P",{"data-svelte-h":!0}),T(Vr)!=="svelte-108ipf8"&&(Vr.textContent=Id),kg=l(tt),m(xs.$$.fragment,tt),tt.forEach(c),k.forEach(c),hl=l(t),m(Na.$$.fragment,t),ml=l(t),on=g(t,"DIV",{class:!0});var po=I(on);m(Ga.$$.fragment,po),qg=l(po),Dr=g(po,"P",{"data-svelte-h":!0}),T(Dr)!=="svelte-2793d9"&&(Dr.textContent=Md),po.forEach(c),fl=l(t),m(Va.$$.fragment,t),bl=l(t),Da=g(t,"P",{"data-svelte-h":!0}),T(Da)!=="svelte-ibwsmj"&&(Da.textContent=vd),_l=l(t),rn=g(t,"DIV",{class:!0});var go=I(rn);m(Ra.$$.fragment,go),Zg=l(go),Rr=g(go,"P",{"data-svelte-h":!0}),T(Rr)!=="svelte-by01uo"&&(Rr.innerHTML=wd),go.forEach(c),yl=l(t),ln=g(t,"DIV",{class:!0});var uo=I(ln);m(Ya.$$.fragment,uo),Eg=l(uo),Yr=g(uo,"P",{"data-svelte-h":!0}),T(Yr)!=="svelte-z9hvi9"&&(Yr.innerHTML=Cd),uo.forEach(c),xl=l(t),cn=g(t,"DIV",{class:!0});var ho=I(cn);m(Ba.$$.fragment,ho),Wg=l(ho),Br=g(ho,"P",{"data-svelte-h":!0}),T(Br)!=="svelte-6154sd"&&(Br.innerHTML=Jd),ho.forEach(c),jl=l(t),pn=g(t,"DIV",{class:!0});var mo=I(pn);m(Aa.$$.fragment,mo),Ng=l(mo),Ar=g(mo,"P",{"data-svelte-h":!0}),T(Ar)!=="svelte-1xdgjnh"&&(Ar.innerHTML=Ud),mo.forEach(c),Tl=l(t),gn=g(t,"DIV",{class:!0});var fo=I(gn);m(Ha.$$.fragment,fo),Gg=l(fo),Hr=g(fo,"P",{"data-svelte-h":!0}),T(Hr)!=="svelte-6agxkj"&&(Hr.innerHTML=kd),fo.forEach(c),$l=l(t),m(Pa.$$.fragment,t),Il=l(t),La=g(t,"P",{"data-svelte-h":!0}),T(La)!=="svelte-1s4sipv"&&(La.innerHTML=qd),Ml=l(t),Qa=g(t,"P",{"data-svelte-h":!0}),T(Qa)!=="svelte-u62xh0"&&(Qa.innerHTML=Zd),vl=l(t),un=g(t,"DIV",{class:!0});var bo=I(un);m(Fa.$$.fragment,bo),Vg=l(bo),Pr=g(bo,"P",{"data-svelte-h":!0}),T(Pr)!=="svelte-ck0h92"&&(Pr.textContent=Ed),bo.forEach(c),wl=l(t),ae=g(t,"DIV",{class:!0});var st=I(ae);m(Sa.$$.fragment,st),Dg=l(st),Lr=g(st,"P",{"data-svelte-h":!0}),T(Lr)!=="svelte-zdhksj"&&(Lr.textContent=Wd),Rg=l(st),Qr=g(st,"P",{"data-svelte-h":!0}),T(Qr)!=="svelte-1rpgh5m"&&(Qr.innerHTML=Nd),st.forEach(c),Cl=l(t),oe=g(t,"DIV",{class:!0});var at=I(oe);m(Xa.$$.fragment,at),Yg=l(at),Fr=g(at,"P",{"data-svelte-h":!0}),T(Fr)!=="svelte-197mlan"&&(Fr.textContent=Gd),Bg=l(at),Sr=g(at,"P",{"data-svelte-h":!0}),T(Sr)!=="svelte-167fduw"&&(Sr.innerHTML=Vd),at.forEach(c),Jl=l(t),dn=g(t,"DIV",{class:!0});var Rl=I(dn);m(za.$$.fragment,Rl),Ag=l(Rl),Xr=g(Rl,"P",{"data-svelte-h":!0}),T(Xr)!=="svelte-1hnl7dn"&&(Xr.textContent=Dd),Rl.forEach(c),Ul=l(t),hn=g(t,"DIV",{class:!0});var Yl=I(hn);m(Oa.$$.fragment,Yl),Hg=l(Yl),zr=g(Yl,"P",{"data-svelte-h":!0}),T(zr)!=="svelte-1qst4i7"&&(zr.textContent=Rd),Yl.forEach(c),kl=l(t),mn=g(t,"DIV",{class:!0});var Bl=I(mn);m(Ka.$$.fragment,Bl),Pg=l(Bl),Or=g(Bl,"P",{"data-svelte-h":!0}),T(Or)!=="svelte-ofujqi"&&(Or.textContent=Yd),Bl.forEach(c),ql=l(t),fn=g(t,"DIV",{class:!0});var Al=I(fn);m(eo.$$.fragment,Al),Lg=l(Al),Kr=g(Al,"P",{"data-svelte-h":!0}),T(Kr)!=="svelte-1yqsutm"&&(Kr.textContent=Bd),Al.forEach(c),Zl=l(t),bn=g(t,"DIV",{class:!0});var Hl=I(bn);m(no.$$.fragment,Hl),Qg=l(Hl),el=g(Hl,"P",{"data-svelte-h":!0}),T(el)!=="svelte-xw8x8a"&&(el.textContent=Ad),Hl.forEach(c),El=l(t),_n=g(t,"DIV",{class:!0});var Pl=I(_n);m(to.$$.fragment,Pl),Fg=l(Pl),nl=g(Pl,"P",{"data-svelte-h":!0}),T(nl)!=="svelte-a6epfe"&&(nl.textContent=Hd),Pl.forEach(c),Wl=l(t),m(so.$$.fragment,t),Nl=l(t),ao=g(t,"P",{"data-svelte-h":!0}),T(ao)!=="svelte-rapway"&&(ao.innerHTML=Pd),Gl=l(t),N=g(t,"DIV",{class:!0});var an=I(N);m(oo.$$.fragment,an),Sg=l(an),tl=g(an,"P",{"data-svelte-h":!0}),T(tl)!=="svelte-xkrgz1"&&(tl.textContent=Ld),Xg=l(an),m(js.$$.fragment,an),zg=l(an),Ts=g(an,"DIV",{class:!0});var Ll=I(Ts);m(ro.$$.fragment,Ll),Og=l(Ll),sl=g(Ll,"P",{"data-svelte-h":!0}),T(sl)!=="svelte-1ruvvxs"&&(sl.textContent=Qd),Ll.forEach(c),Kg=l(an),$s=g(an,"DIV",{class:!0});var Ql=I($s);m(lo.$$.fragment,Ql),eu=l(Ql),al=g(Ql,"P",{"data-svelte-h":!0}),T(al)!=="svelte-ss15d2"&&(al.textContent=Fd),Ql.forEach(c),an.forEach(c),Vl=l(t),ol=g(t,"P",{}),I(ol).forEach(c),this.h()},h(){M(n,"name","hf:doc:metadata"),M(n,"content",fm),M(xe,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(je,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(Te,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M($e,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(Ie,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(Me,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(A,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(ve,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(H,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(P,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(L,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(D,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(Q,"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,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(we,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(Ce,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(Je,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(Ue,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(ke,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(qe,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(Ze,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(E,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(F,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(Ee,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(We,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(S,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(Ne,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(Ge,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(Ve,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(w,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(De,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(Re,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(Ye,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(Be,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(Ae,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(He,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(X,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(Pe,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(z,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(O,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(K,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(R,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(ee,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(as,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(Le,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(Qe,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(Fe,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(Se,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(Xe,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(ze,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(Oe,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(W,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(ne,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(Ke,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(en,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(te,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(nn,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(tn,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(sn,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(C,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(on,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(rn,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(ln,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(cn,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(pn,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(gn,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(un,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(ae,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(oe,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(dn,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(hn,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(mn,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(fn,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(bn,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(_n,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(Ts,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M($s,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(N,"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,d){a(document.head,n),j(t,x,d),j(t,o,d),j(t,s,d),f(i,t,d),j(t,e,d),j(t,u,d),j(t,rl,d),j(t,Is,d),j(t,ll,d),j(t,Ms,d),j(t,il,d),f(vs,t,d),j(t,cl,d),j(t,w,d),f(ws,w,null),a(w,Fl),a(w,yo),a(w,Sl),a(w,xo),a(w,Xl),a(w,xe),f(Cs,xe,null),a(xe,zl),a(xe,jo),a(xe,Ol),f(ot,xe,null),a(w,Kl),a(w,je),f(Js,je,null),a(je,ei),a(je,To),a(je,ni),f(rt,je,null),a(w,ti),a(w,Te),f(Us,Te,null),a(Te,si),a(Te,$o),a(Te,ai),f(lt,Te,null),a(w,oi),a(w,$e),f(ks,$e,null),a($e,ri),a($e,Io),a($e,li),f(it,$e,null),a(w,ii),a(w,Ie),f(qs,Ie,null),a(Ie,ci),a(Ie,Mo),a(Ie,pi),f(ct,Ie,null),a(w,gi),a(w,Me),f(Zs,Me,null),a(Me,ui),a(Me,vo),a(Me,di),f(pt,Me,null),a(w,hi),a(w,A),f(Es,A,null),a(A,mi),a(A,wo),a(A,fi),f(gt,A,null),a(A,bi),f(ut,A,null),a(w,_i),a(w,ve),f(Ws,ve,null),a(ve,yi),a(ve,Co),a(ve,xi),f(dt,ve,null),a(w,ji),a(w,H),f(Ns,H,null),a(H,Ti),a(H,Jo),a(H,$i),f(ht,H,null),a(H,Ii),f(mt,H,null),a(w,Mi),a(w,P),f(Gs,P,null),a(P,vi),a(P,Uo),a(P,wi),f(ft,P,null),a(P,Ci),f(bt,P,null),a(w,Ji),a(w,L),f(Vs,L,null),a(L,Ui),a(L,ko),a(L,ki),a(L,qo),a(L,qi),f(_t,L,null),a(w,Zi),a(w,D),f(Ds,D,null),a(D,Ei),a(D,Zo),a(D,Wi),a(D,Eo),a(D,Ni),f(yt,D,null),a(D,Gi),f(xt,D,null),a(w,Vi),a(w,Q),f(Rs,Q,null),a(Q,Di),a(Q,Wo),a(Q,Ri),f(jt,Q,null),a(Q,Yi),f(Tt,Q,null),a(w,Bi),a(w,$t),f(Ys,$t,null),a($t,Ai),a($t,No),a(w,Hi),a(w,we),f(Bs,we,null),a(we,Pi),a(we,Go),a(we,Li),f(It,we,null),a(w,Qi),a(w,Ce),f(As,Ce,null),a(Ce,Fi),a(Ce,Vo),a(Ce,Si),f(Mt,Ce,null),a(w,Xi),a(w,Je),f(Hs,Je,null),a(Je,zi),a(Je,Do),a(Je,Oi),f(vt,Je,null),a(w,Ki),a(w,Ue),f(Ps,Ue,null),a(Ue,ec),a(Ue,Ro),a(Ue,nc),f(wt,Ue,null),a(w,tc),a(w,ke),f(Ls,ke,null),a(ke,sc),a(ke,Yo),a(ke,ac),f(Ct,ke,null),a(w,oc),a(w,qe),f(Qs,qe,null),a(qe,rc),a(qe,Bo),a(qe,lc),f(Jt,qe,null),a(w,ic),a(w,Ze),f(Fs,Ze,null),a(Ze,cc),a(Ze,Ao),a(Ze,pc),f(Ut,Ze,null),a(w,gc),a(w,E),f(Ss,E,null),a(E,uc),a(E,Ho),a(E,dc),a(E,Po),a(E,hc),a(E,Lo),a(E,mc),a(E,Qo),a(E,fc),f(kt,E,null),a(w,bc),a(w,F),f(Xs,F,null),a(F,_c),a(F,Fo),a(F,yc),f(qt,F,null),a(F,xc),f(Zt,F,null),a(w,jc),a(w,Ee),f(zs,Ee,null),a(Ee,Tc),a(Ee,So),a(Ee,$c),f(Et,Ee,null),a(w,Ic),a(w,We),f(Os,We,null),a(We,Mc),a(We,Xo),a(We,vc),f(Wt,We,null),a(w,wc),a(w,S),f(Ks,S,null),a(S,Cc),a(S,zo),a(S,Jc),a(S,Oo),a(S,Uc),f(Nt,S,null),a(w,kc),a(w,Ne),f(ea,Ne,null),a(Ne,qc),a(Ne,Ko),a(Ne,Zc),f(Gt,Ne,null),a(w,Ec),a(w,Ge),f(na,Ge,null),a(Ge,Wc),a(Ge,er),a(Ge,Nc),f(Vt,Ge,null),a(w,Gc),a(w,Ve),f(ta,Ve,null),a(Ve,Vc),a(Ve,nr),a(Ve,Dc),f(Dt,Ve,null),j(t,pl,d),f(sa,t,d),j(t,gl,d),j(t,aa,d),j(t,ul,d),f(oa,t,d),j(t,dl,d),j(t,C,d),f(ra,C,null),a(C,Rc),a(C,tr),a(C,Yc),a(C,sr),a(C,Bc),a(C,De),f(la,De,null),a(De,Ac),a(De,ar),a(De,Hc),f(Rt,De,null),a(C,Pc),a(C,Re),f(ia,Re,null),a(Re,Lc),a(Re,or),a(Re,Qc),f(Yt,Re,null),a(C,Fc),a(C,Ye),f(ca,Ye,null),a(Ye,Sc),a(Ye,rr),a(Ye,Xc),f(Bt,Ye,null),a(C,zc),a(C,Be),f(pa,Be,null),a(Be,Oc),a(Be,lr),a(Be,Kc),f(At,Be,null),a(C,ep),a(C,Ae),f(ga,Ae,null),a(Ae,np),a(Ae,ir),a(Ae,tp),f(Ht,Ae,null),a(C,sp),a(C,He),f(ua,He,null),a(He,ap),a(He,cr),a(He,op),f(Pt,He,null),a(C,rp),a(C,X),f(da,X,null),a(X,lp),a(X,pr),a(X,ip),f(Lt,X,null),a(X,cp),f(Qt,X,null),a(C,pp),a(C,Pe),f(ha,Pe,null),a(Pe,gp),a(Pe,gr),a(Pe,up),f(Ft,Pe,null),a(C,dp),a(C,z),f(ma,z,null),a(z,hp),a(z,ur),a(z,mp),f(St,z,null),a(z,fp),f(Xt,z,null),a(C,bp),a(C,O),f(fa,O,null),a(O,_p),a(O,dr),a(O,yp),f(zt,O,null),a(O,xp),f(Ot,O,null),a(C,jp),a(C,K),f(ba,K,null),a(K,Tp),a(K,hr),a(K,$p),a(K,mr),a(K,Ip),f(Kt,K,null),a(C,Mp),a(C,R),f(_a,R,null),a(R,vp),a(R,fr),a(R,wp),a(R,br),a(R,Cp),f(es,R,null),a(R,Jp),f(ns,R,null),a(C,Up),a(C,ee),f(ya,ee,null),a(ee,kp),a(ee,_r),a(ee,qp),f(ts,ee,null),a(ee,Zp),f(ss,ee,null),a(C,Ep),a(C,as),f(xa,as,null),a(as,Wp),a(as,yr),a(C,Np),a(C,Le),f(ja,Le,null),a(Le,Gp),a(Le,xr),a(Le,Vp),f(os,Le,null),a(C,Dp),a(C,Qe),f(Ta,Qe,null),a(Qe,Rp),a(Qe,jr),a(Qe,Yp),f(rs,Qe,null),a(C,Bp),a(C,Fe),f($a,Fe,null),a(Fe,Ap),a(Fe,Tr),a(Fe,Hp),f(ls,Fe,null),a(C,Pp),a(C,Se),f(Ia,Se,null),a(Se,Lp),a(Se,$r),a(Se,Qp),f(is,Se,null),a(C,Fp),a(C,Xe),f(Ma,Xe,null),a(Xe,Sp),a(Xe,Ir),a(Xe,Xp),f(cs,Xe,null),a(C,zp),a(C,ze),f(va,ze,null),a(ze,Op),a(ze,Mr),a(ze,Kp),f(ps,ze,null),a(C,eg),a(C,Oe),f(wa,Oe,null),a(Oe,ng),a(Oe,vr),a(Oe,tg),f(gs,Oe,null),a(C,sg),a(C,W),f(Ca,W,null),a(W,ag),a(W,wr),a(W,og),a(W,Cr),a(W,rg),a(W,Jr),a(W,lg),a(W,Ur),a(W,ig),f(us,W,null),a(C,cg),a(C,ne),f(Ja,ne,null),a(ne,pg),a(ne,kr),a(ne,gg),f(ds,ne,null),a(ne,ug),f(hs,ne,null),a(C,dg),a(C,Ke),f(Ua,Ke,null),a(Ke,hg),a(Ke,qr),a(Ke,mg),f(ms,Ke,null),a(C,fg),a(C,en),f(ka,en,null),a(en,bg),a(en,Zr),a(en,_g),f(fs,en,null),a(C,yg),a(C,te),f(qa,te,null),a(te,xg),a(te,Er),a(te,jg),a(te,Wr),a(te,Tg),f(bs,te,null),a(C,$g),a(C,nn),f(Za,nn,null),a(nn,Ig),a(nn,Nr),a(nn,Mg),f(_s,nn,null),a(C,vg),a(C,tn),f(Ea,tn,null),a(tn,wg),a(tn,Gr),a(tn,Cg),f(ys,tn,null),a(C,Jg),a(C,sn),f(Wa,sn,null),a(sn,Ug),a(sn,Vr),a(sn,kg),f(xs,sn,null),j(t,hl,d),f(Na,t,d),j(t,ml,d),j(t,on,d),f(Ga,on,null),a(on,qg),a(on,Dr),j(t,fl,d),f(Va,t,d),j(t,bl,d),j(t,Da,d),j(t,_l,d),j(t,rn,d),f(Ra,rn,null),a(rn,Zg),a(rn,Rr),j(t,yl,d),j(t,ln,d),f(Ya,ln,null),a(ln,Eg),a(ln,Yr),j(t,xl,d),j(t,cn,d),f(Ba,cn,null),a(cn,Wg),a(cn,Br),j(t,jl,d),j(t,pn,d),f(Aa,pn,null),a(pn,Ng),a(pn,Ar),j(t,Tl,d),j(t,gn,d),f(Ha,gn,null),a(gn,Gg),a(gn,Hr),j(t,$l,d),f(Pa,t,d),j(t,Il,d),j(t,La,d),j(t,Ml,d),j(t,Qa,d),j(t,vl,d),j(t,un,d),f(Fa,un,null),a(un,Vg),a(un,Pr),j(t,wl,d),j(t,ae,d),f(Sa,ae,null),a(ae,Dg),a(ae,Lr),a(ae,Rg),a(ae,Qr),j(t,Cl,d),j(t,oe,d),f(Xa,oe,null),a(oe,Yg),a(oe,Fr),a(oe,Bg),a(oe,Sr),j(t,Jl,d),j(t,dn,d),f(za,dn,null),a(dn,Ag),a(dn,Xr),j(t,Ul,d),j(t,hn,d),f(Oa,hn,null),a(hn,Hg),a(hn,zr),j(t,kl,d),j(t,mn,d),f(Ka,mn,null),a(mn,Pg),a(mn,Or),j(t,ql,d),j(t,fn,d),f(eo,fn,null),a(fn,Lg),a(fn,Kr),j(t,Zl,d),j(t,bn,d),f(no,bn,null),a(bn,Qg),a(bn,el),j(t,El,d),j(t,_n,d),f(to,_n,null),a(_n,Fg),a(_n,nl),j(t,Wl,d),f(so,t,d),j(t,Nl,d),j(t,ao,d),j(t,Gl,d),j(t,N,d),f(oo,N,null),a(N,Sg),a(N,tl),a(N,Xg),f(js,N,null),a(N,zg),a(N,Ts),f(ro,Ts,null),a(Ts,Og),a(Ts,sl),a(N,Kg),a(N,$s),f(lo,$s,null),a($s,eu),a($s,al),j(t,Vl,d),j(t,ol,d),Dl=!0},p(t,[d]){const U={};d&2&&(U.$$scope={dirty:d,ctx:t}),ot.$set(U);const yn={};d&2&&(yn.$$scope={dirty:d,ctx:t}),rt.$set(yn);const xn={};d&2&&(xn.$$scope={dirty:d,ctx:t}),lt.$set(xn);const jn={};d&2&&(jn.$$scope={dirty:d,ctx:t}),it.$set(jn);const Tn={};d&2&&(Tn.$$scope={dirty:d,ctx:t}),ct.$set(Tn);const $n={};d&2&&($n.$$scope={dirty:d,ctx:t}),pt.$set($n);const In={};d&2&&(In.$$scope={dirty:d,ctx:t}),gt.$set(In);const re={};d&2&&(re.$$scope={dirty:d,ctx:t}),ut.$set(re);const Mn={};d&2&&(Mn.$$scope={dirty:d,ctx:t}),dt.$set(Mn);const le={};d&2&&(le.$$scope={dirty:d,ctx:t}),ht.$set(le);const ie={};d&2&&(ie.$$scope={dirty:d,ctx:t}),mt.$set(ie);const ce={};d&2&&(ce.$$scope={dirty:d,ctx:t}),ft.$set(ce);const Y={};d&2&&(Y.$$scope={dirty:d,ctx:t}),bt.$set(Y);const pe={};d&2&&(pe.$$scope={dirty:d,ctx:t}),_t.$set(pe);const io={};d&2&&(io.$$scope={dirty:d,ctx:t}),yt.$set(io);const vn={};d&2&&(vn.$$scope={dirty:d,ctx:t}),xt.$set(vn);const wn={};d&2&&(wn.$$scope={dirty:d,ctx:t}),jt.$set(wn);const Cn={};d&2&&(Cn.$$scope={dirty:d,ctx:t}),Tt.$set(Cn);const Jn={};d&2&&(Jn.$$scope={dirty:d,ctx:t}),It.$set(Jn);const Un={};d&2&&(Un.$$scope={dirty:d,ctx:t}),Mt.$set(Un);const kn={};d&2&&(kn.$$scope={dirty:d,ctx:t}),vt.$set(kn);const qn={};d&2&&(qn.$$scope={dirty:d,ctx:t}),wt.$set(qn);const G={};d&2&&(G.$$scope={dirty:d,ctx:t}),Ct.$set(G);const ge={};d&2&&(ge.$$scope={dirty:d,ctx:t}),Jt.$set(ge);const Zn={};d&2&&(Zn.$$scope={dirty:d,ctx:t}),Ut.$set(Zn);const En={};d&2&&(En.$$scope={dirty:d,ctx:t}),kt.$set(En);const ue={};d&2&&(ue.$$scope={dirty:d,ctx:t}),qt.$set(ue);const Wn={};d&2&&(Wn.$$scope={dirty:d,ctx:t}),Zt.$set(Wn);const Nn={};d&2&&(Nn.$$scope={dirty:d,ctx:t}),Et.$set(Nn);const Gn={};d&2&&(Gn.$$scope={dirty:d,ctx:t}),Wt.$set(Gn);const k={};d&2&&(k.$$scope={dirty:d,ctx:t}),Nt.$set(k);const Vn={};d&2&&(Vn.$$scope={dirty:d,ctx:t}),Gt.$set(Vn);const Dn={};d&2&&(Dn.$$scope={dirty:d,ctx:t}),Vt.$set(Dn);const Rn={};d&2&&(Rn.$$scope={dirty:d,ctx:t}),Dt.$set(Rn);const Yn={};d&2&&(Yn.$$scope={dirty:d,ctx:t}),Rt.$set(Yn);const Bn={};d&2&&(Bn.$$scope={dirty:d,ctx:t}),Yt.$set(Bn);const An={};d&2&&(An.$$scope={dirty:d,ctx:t}),Bt.$set(An);const de={};d&2&&(de.$$scope={dirty:d,ctx:t}),At.$set(de);const Hn={};d&2&&(Hn.$$scope={dirty:d,ctx:t}),Ht.$set(Hn);const he={};d&2&&(he.$$scope={dirty:d,ctx:t}),Pt.$set(he);const me={};d&2&&(me.$$scope={dirty:d,ctx:t}),Lt.$set(me);const fe={};d&2&&(fe.$$scope={dirty:d,ctx:t}),Qt.$set(fe);const B={};d&2&&(B.$$scope={dirty:d,ctx:t}),Ft.$set(B);const be={};d&2&&(be.$$scope={dirty:d,ctx:t}),St.$set(be);const co={};d&2&&(co.$$scope={dirty:d,ctx:t}),Xt.$set(co);const Pn={};d&2&&(Pn.$$scope={dirty:d,ctx:t}),zt.$set(Pn);const Ln={};d&2&&(Ln.$$scope={dirty:d,ctx:t}),Ot.$set(Ln);const Qn={};d&2&&(Qn.$$scope={dirty:d,ctx:t}),Kt.$set(Qn);const Fn={};d&2&&(Fn.$$scope={dirty:d,ctx:t}),es.$set(Fn);const Sn={};d&2&&(Sn.$$scope={dirty:d,ctx:t}),ns.$set(Sn);const Xn={};d&2&&(Xn.$$scope={dirty:d,ctx:t}),ts.$set(Xn);const zn={};d&2&&(zn.$$scope={dirty:d,ctx:t}),ss.$set(zn);const V={};d&2&&(V.$$scope={dirty:d,ctx:t}),os.$set(V);const _e={};d&2&&(_e.$$scope={dirty:d,ctx:t}),rs.$set(_e);const On={};d&2&&(On.$$scope={dirty:d,ctx:t}),ls.$set(On);const Kn={};d&2&&(Kn.$$scope={dirty:d,ctx:t}),is.$set(Kn);const ye={};d&2&&(ye.$$scope={dirty:d,ctx:t}),cs.$set(ye);const et={};d&2&&(et.$$scope={dirty:d,ctx:t}),ps.$set(et);const nt={};d&2&&(nt.$$scope={dirty:d,ctx:t}),gs.$set(nt);const tt={};d&2&&(tt.$$scope={dirty:d,ctx:t}),us.$set(tt);const po={};d&2&&(po.$$scope={dirty:d,ctx:t}),ds.$set(po);const go={};d&2&&(go.$$scope={dirty:d,ctx:t}),hs.$set(go);const uo={};d&2&&(uo.$$scope={dirty:d,ctx:t}),ms.$set(uo);const ho={};d&2&&(ho.$$scope={dirty:d,ctx:t}),fs.$set(ho);const mo={};d&2&&(mo.$$scope={dirty:d,ctx:t}),bs.$set(mo);const fo={};d&2&&(fo.$$scope={dirty:d,ctx:t}),_s.$set(fo);const bo={};d&2&&(bo.$$scope={dirty:d,ctx:t}),ys.$set(bo);const st={};d&2&&(st.$$scope={dirty:d,ctx:t}),xs.$set(st);const at={};d&2&&(at.$$scope={dirty:d,ctx:t}),js.$set(at)},i(t){Dl||(b(i.$$.fragment,t),b(vs.$$.fragment,t),b(ws.$$.fragment,t),b(Cs.$$.fragment,t),b(ot.$$.fragment,t),b(Js.$$.fragment,t),b(rt.$$.fragment,t),b(Us.$$.fragment,t),b(lt.$$.fragment,t),b(ks.$$.fragment,t),b(it.$$.fragment,t),b(qs.$$.fragment,t),b(ct.$$.fragment,t),b(Zs.$$.fragment,t),b(pt.$$.fragment,t),b(Es.$$.fragment,t),b(gt.$$.fragment,t),b(ut.$$.fragment,t),b(Ws.$$.fragment,t),b(dt.$$.fragment,t),b(Ns.$$.fragment,t),b(ht.$$.fragment,t),b(mt.$$.fragment,t),b(Gs.$$.fragment,t),b(ft.$$.fragment,t),b(bt.$$.fragment,t),b(Vs.$$.fragment,t),b(_t.$$.fragment,t),b(Ds.$$.fragment,t),b(yt.$$.fragment,t),b(xt.$$.fragment,t),b(Rs.$$.fragment,t),b(jt.$$.fragment,t),b(Tt.$$.fragment,t),b(Ys.$$.fragment,t),b(Bs.$$.fragment,t),b(It.$$.fragment,t),b(As.$$.fragment,t),b(Mt.$$.fragment,t),b(Hs.$$.fragment,t),b(vt.$$.fragment,t),b(Ps.$$.fragment,t),b(wt.$$.fragment,t),b(Ls.$$.fragment,t),b(Ct.$$.fragment,t),b(Qs.$$.fragment,t),b(Jt.$$.fragment,t),b(Fs.$$.fragment,t),b(Ut.$$.fragment,t),b(Ss.$$.fragment,t),b(kt.$$.fragment,t),b(Xs.$$.fragment,t),b(qt.$$.fragment,t),b(Zt.$$.fragment,t),b(zs.$$.fragment,t),b(Et.$$.fragment,t),b(Os.$$.fragment,t),b(Wt.$$.fragment,t),b(Ks.$$.fragment,t),b(Nt.$$.fragment,t),b(ea.$$.fragment,t),b(Gt.$$.fragment,t),b(na.$$.fragment,t),b(Vt.$$.fragment,t),b(ta.$$.fragment,t),b(Dt.$$.fragment,t),b(sa.$$.fragment,t),b(oa.$$.fragment,t),b(ra.$$.fragment,t),b(la.$$.fragment,t),b(Rt.$$.fragment,t),b(ia.$$.fragment,t),b(Yt.$$.fragment,t),b(ca.$$.fragment,t),b(Bt.$$.fragment,t),b(pa.$$.fragment,t),b(At.$$.fragment,t),b(ga.$$.fragment,t),b(Ht.$$.fragment,t),b(ua.$$.fragment,t),b(Pt.$$.fragment,t),b(da.$$.fragment,t),b(Lt.$$.fragment,t),b(Qt.$$.fragment,t),b(ha.$$.fragment,t),b(Ft.$$.fragment,t),b(ma.$$.fragment,t),b(St.$$.fragment,t),b(Xt.$$.fragment,t),b(fa.$$.fragment,t),b(zt.$$.fragment,t),b(Ot.$$.fragment,t),b(ba.$$.fragment,t),b(Kt.$$.fragment,t),b(_a.$$.fragment,t),b(es.$$.fragment,t),b(ns.$$.fragment,t),b(ya.$$.fragment,t),b(ts.$$.fragment,t),b(ss.$$.fragment,t),b(xa.$$.fragment,t),b(ja.$$.fragment,t),b(os.$$.fragment,t),b(Ta.$$.fragment,t),b(rs.$$.fragment,t),b($a.$$.fragment,t),b(ls.$$.fragment,t),b(Ia.$$.fragment,t),b(is.$$.fragment,t),b(Ma.$$.fragment,t),b(cs.$$.fragment,t),b(va.$$.fragment,t),b(ps.$$.fragment,t),b(wa.$$.fragment,t),b(gs.$$.fragment,t),b(Ca.$$.fragment,t),b(us.$$.fragment,t),b(Ja.$$.fragment,t),b(ds.$$.fragment,t),b(hs.$$.fragment,t),b(Ua.$$.fragment,t),b(ms.$$.fragment,t),b(ka.$$.fragment,t),b(fs.$$.fragment,t),b(qa.$$.fragment,t),b(bs.$$.fragment,t),b(Za.$$.fragment,t),b(_s.$$.fragment,t),b(Ea.$$.fragment,t),b(ys.$$.fragment,t),b(Wa.$$.fragment,t),b(xs.$$.fragment,t),b(Na.$$.fragment,t),b(Ga.$$.fragment,t),b(Va.$$.fragment,t),b(Ra.$$.fragment,t),b(Ya.$$.fragment,t),b(Ba.$$.fragment,t),b(Aa.$$.fragment,t),b(Ha.$$.fragment,t),b(Pa.$$.fragment,t),b(Fa.$$.fragment,t),b(Sa.$$.fragment,t),b(Xa.$$.fragment,t),b(za.$$.fragment,t),b(Oa.$$.fragment,t),b(Ka.$$.fragment,t),b(eo.$$.fragment,t),b(no.$$.fragment,t),b(to.$$.fragment,t),b(so.$$.fragment,t),b(oo.$$.fragment,t),b(js.$$.fragment,t),b(ro.$$.fragment,t),b(lo.$$.fragment,t),Dl=!0)},o(t){_(i.$$.fragment,t),_(vs.$$.fragment,t),_(ws.$$.fragment,t),_(Cs.$$.fragment,t),_(ot.$$.fragment,t),_(Js.$$.fragment,t),_(rt.$$.fragment,t),_(Us.$$.fragment,t),_(lt.$$.fragment,t),_(ks.$$.fragment,t),_(it.$$.fragment,t),_(qs.$$.fragment,t),_(ct.$$.fragment,t),_(Zs.$$.fragment,t),_(pt.$$.fragment,t),_(Es.$$.fragment,t),_(gt.$$.fragment,t),_(ut.$$.fragment,t),_(Ws.$$.fragment,t),_(dt.$$.fragment,t),_(Ns.$$.fragment,t),_(ht.$$.fragment,t),_(mt.$$.fragment,t),_(Gs.$$.fragment,t),_(ft.$$.fragment,t),_(bt.$$.fragment,t),_(Vs.$$.fragment,t),_(_t.$$.fragment,t),_(Ds.$$.fragment,t),_(yt.$$.fragment,t),_(xt.$$.fragment,t),_(Rs.$$.fragment,t),_(jt.$$.fragment,t),_(Tt.$$.fragment,t),_(Ys.$$.fragment,t),_(Bs.$$.fragment,t),_(It.$$.fragment,t),_(As.$$.fragment,t),_(Mt.$$.fragment,t),_(Hs.$$.fragment,t),_(vt.$$.fragment,t),_(Ps.$$.fragment,t),_(wt.$$.fragment,t),_(Ls.$$.fragment,t),_(Ct.$$.fragment,t),_(Qs.$$.fragment,t),_(Jt.$$.fragment,t),_(Fs.$$.fragment,t),_(Ut.$$.fragment,t),_(Ss.$$.fragment,t),_(kt.$$.fragment,t),_(Xs.$$.fragment,t),_(qt.$$.fragment,t),_(Zt.$$.fragment,t),_(zs.$$.fragment,t),_(Et.$$.fragment,t),_(Os.$$.fragment,t),_(Wt.$$.fragment,t),_(Ks.$$.fragment,t),_(Nt.$$.fragment,t),_(ea.$$.fragment,t),_(Gt.$$.fragment,t),_(na.$$.fragment,t),_(Vt.$$.fragment,t),_(ta.$$.fragment,t),_(Dt.$$.fragment,t),_(sa.$$.fragment,t),_(oa.$$.fragment,t),_(ra.$$.fragment,t),_(la.$$.fragment,t),_(Rt.$$.fragment,t),_(ia.$$.fragment,t),_(Yt.$$.fragment,t),_(ca.$$.fragment,t),_(Bt.$$.fragment,t),_(pa.$$.fragment,t),_(At.$$.fragment,t),_(ga.$$.fragment,t),_(Ht.$$.fragment,t),_(ua.$$.fragment,t),_(Pt.$$.fragment,t),_(da.$$.fragment,t),_(Lt.$$.fragment,t),_(Qt.$$.fragment,t),_(ha.$$.fragment,t),_(Ft.$$.fragment,t),_(ma.$$.fragment,t),_(St.$$.fragment,t),_(Xt.$$.fragment,t),_(fa.$$.fragment,t),_(zt.$$.fragment,t),_(Ot.$$.fragment,t),_(ba.$$.fragment,t),_(Kt.$$.fragment,t),_(_a.$$.fragment,t),_(es.$$.fragment,t),_(ns.$$.fragment,t),_(ya.$$.fragment,t),_(ts.$$.fragment,t),_(ss.$$.fragment,t),_(xa.$$.fragment,t),_(ja.$$.fragment,t),_(os.$$.fragment,t),_(Ta.$$.fragment,t),_(rs.$$.fragment,t),_($a.$$.fragment,t),_(ls.$$.fragment,t),_(Ia.$$.fragment,t),_(is.$$.fragment,t),_(Ma.$$.fragment,t),_(cs.$$.fragment,t),_(va.$$.fragment,t),_(ps.$$.fragment,t),_(wa.$$.fragment,t),_(gs.$$.fragment,t),_(Ca.$$.fragment,t),_(us.$$.fragment,t),_(Ja.$$.fragment,t),_(ds.$$.fragment,t),_(hs.$$.fragment,t),_(Ua.$$.fragment,t),_(ms.$$.fragment,t),_(ka.$$.fragment,t),_(fs.$$.fragment,t),_(qa.$$.fragment,t),_(bs.$$.fragment,t),_(Za.$$.fragment,t),_(_s.$$.fragment,t),_(Ea.$$.fragment,t),_(ys.$$.fragment,t),_(Wa.$$.fragment,t),_(xs.$$.fragment,t),_(Na.$$.fragment,t),_(Ga.$$.fragment,t),_(Va.$$.fragment,t),_(Ra.$$.fragment,t),_(Ya.$$.fragment,t),_(Ba.$$.fragment,t),_(Aa.$$.fragment,t),_(Ha.$$.fragment,t),_(Pa.$$.fragment,t),_(Fa.$$.fragment,t),_(Sa.$$.fragment,t),_(Xa.$$.fragment,t),_(za.$$.fragment,t),_(Oa.$$.fragment,t),_(Ka.$$.fragment,t),_(eo.$$.fragment,t),_(no.$$.fragment,t),_(to.$$.fragment,t),_(so.$$.fragment,t),_(oo.$$.fragment,t),_(js.$$.fragment,t),_(ro.$$.fragment,t),_(lo.$$.fragment,t),Dl=!1},d(t){t&&(c(x),c(o),c(s),c(e),c(u),c(rl),c(Is),c(ll),c(Ms),c(il),c(cl),c(w),c(pl),c(gl),c(aa),c(ul),c(dl),c(C),c(hl),c(ml),c(on),c(fl),c(bl),c(Da),c(_l),c(rn),c(yl),c(ln),c(xl),c(cn),c(jl),c(pn),c(Tl),c(gn),c($l),c(Il),c(La),c(Ml),c(Qa),c(vl),c(un),c(wl),c(ae),c(Cl),c(oe),c(Jl),c(dn),c(Ul),c(hn),c(kl),c(mn),c(ql),c(fn),c(Zl),c(bn),c(El),c(_n),c(Wl),c(Nl),c(ao),c(Gl),c(N),c(Vl),c(ol)),c(n),y(i,t),y(vs,t),y(ws),y(Cs),y(ot),y(Js),y(rt),y(Us),y(lt),y(ks),y(it),y(qs),y(ct),y(Zs),y(pt),y(Es),y(gt),y(ut),y(Ws),y(dt),y(Ns),y(ht),y(mt),y(Gs),y(ft),y(bt),y(Vs),y(_t),y(Ds),y(yt),y(xt),y(Rs),y(jt),y(Tt),y(Ys),y(Bs),y(It),y(As),y(Mt),y(Hs),y(vt),y(Ps),y(wt),y(Ls),y(Ct),y(Qs),y(Jt),y(Fs),y(Ut),y(Ss),y(kt),y(Xs),y(qt),y(Zt),y(zs),y(Et),y(Os),y(Wt),y(Ks),y(Nt),y(ea),y(Gt),y(na),y(Vt),y(ta),y(Dt),y(sa,t),y(oa,t),y(ra),y(la),y(Rt),y(ia),y(Yt),y(ca),y(Bt),y(pa),y(At),y(ga),y(Ht),y(ua),y(Pt),y(da),y(Lt),y(Qt),y(ha),y(Ft),y(ma),y(St),y(Xt),y(fa),y(zt),y(Ot),y(ba),y(Kt),y(_a),y(es),y(ns),y(ya),y(ts),y(ss),y(xa),y(ja),y(os),y(Ta),y(rs),y($a),y(ls),y(Ia),y(is),y(Ma),y(cs),y(va),y(ps),y(wa),y(gs),y(Ca),y(us),y(Ja),y(ds),y(hs),y(Ua),y(ms),y(ka),y(fs),y(qa),y(bs),y(Za),y(_s),y(Ea),y(ys),y(Wa),y(xs),y(Na,t),y(Ga),y(Va,t),y(Ra),y(Ya),y(Ba),y(Aa),y(Ha),y(Pa,t),y(Fa),y(Sa),y(Xa),y(za),y(Oa),y(Ka),y(eo),y(no),y(to),y(so,t),y(oo),y(js),y(ro),y(lo)}}}const fm='{"title":"Inference","local":"inference","sections":[{"title":"Inference Client","local":"huggingface_hub.InferenceClient","sections":[],"depth":2},{"title":"Async Inference Client","local":"huggingface_hub.AsyncInferenceClient","sections":[{"title":"InferenceTimeoutError","local":"huggingface_hub.InferenceTimeoutError","sections":[],"depth":3},{"title":"Return types","local":"huggingface_hub.inference._types.ClassificationOutput","sections":[],"depth":3},{"title":"Text generation types","local":"huggingface_hub.inference._text_generation.TextGenerationParameters","sections":[],"depth":3}],"depth":2},{"title":"InferenceAPI","local":"huggingface_hub.InferenceApi","sections":[],"depth":2}],"depth":1}';function bm($){return Xd(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class Mm extends zd{constructor(n){super(),Od(this,n,bm,mm,Sd,{})}}export{Mm as component};
