import{s as $m,o as Im,n as J}from"../chunks/scheduler.6062bdaf.js";import{S as Mm,i as wm,g as p,s as r,r as d,A as Cm,h as g,f as c,c as l,j as I,u as m,x as j,k as M,y as s,a as T,v as h,d as f,t as b,w as _}from"../chunks/index.4bca734e.js";import{T as oe}from"../chunks/Tip.b9ac1f03.js";import{D as w}from"../chunks/Docstring.ed07512f.js";import{C as E}from"../chunks/CodeBlock.fa01571c.js";import{E as Z}from"../chunks/ExampleCodeBlock.823fb173.js";import{H as ln}from"../chunks/Heading.723dceba.js";function vm($){let n,x="Example:",o,a,i;return a=new E({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>)
[
    AudioClassificationOutputElement(score=<span class="hljs-number">0.4976358711719513</span>, label=<span class="hljs-string">&#x27;hap&#x27;</span>),
    AudioClassificationOutputElement(score=<span class="hljs-number">0.3677836060523987</span>, label=<span class="hljs-string">&#x27;neu&#x27;</span>),
    ...
]`,wrap:!1}}),{c(){n=p("p"),n.textContent=x,o=r(),d(a.$$.fragment)},l(e){n=g(e,"P",{"data-svelte-h":!0}),j(n)!=="svelte-11lpom8"&&(n.textContent=x),o=l(e),m(a.$$.fragment,e)},m(e,u){T(e,n,u),T(e,o,u),h(a,e,u),i=!0},p:J,i(e){i||(f(a.$$.fragment,e),i=!0)},o(e){b(a.$$.fragment,e),i=!1},d(e){e&&(c(n),c(o)),_(a,e)}}}function Jm($){let n,x="Example:",o,a,i;return a=new E({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMEluZmVyZW5jZUNsaWVudCUwQWNsaWVudCUyMCUzRCUyMEluZmVyZW5jZUNsaWVudCgpJTBBYXVkaW9fb3V0cHV0JTIwJTNEJTIwY2xpZW50LmF1ZGlvX3RvX2F1ZGlvKCUyMmF1ZGlvLmZsYWMlMjIpJTBBZm9yJTIwaSUyQyUyMGl0ZW0lMjBpbiUyMGVudW1lcmF0ZShhdWRpb19vdXRwdXQpJTNBJTBBJTIwJTIwJTIwJTIwd2l0aCUyMG9wZW4oZiUyMm91dHB1dF8lN0JpJTdELmZsYWMlMjIlMkMlMjAlMjJ3YiUyMiklMjBhcyUyMGYlM0E=",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>audio_output = client.audio_to_audio(<span class="hljs-string">&quot;audio.flac&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">for</span> i, item <span class="hljs-keyword">in</span> <span class="hljs-built_in">enumerate</span>(audio_output):
<span class="hljs-meta">&gt;&gt;&gt; </span>    <span class="hljs-keyword">with</span> <span class="hljs-built_in">open</span>(<span class="hljs-string">f&quot;output_<span class="hljs-subst">{i}</span>.flac&quot;</span>, <span class="hljs-string">&quot;wb&quot;</span>) <span class="hljs-keyword">as</span> f:
            f.write(item.blob)`,wrap:!1}}),{c(){n=p("p"),n.textContent=x,o=r(),d(a.$$.fragment)},l(e){n=g(e,"P",{"data-svelte-h":!0}),j(n)!=="svelte-11lpom8"&&(n.textContent=x),o=l(e),m(a.$$.fragment,e)},m(e,u){T(e,n,u),T(e,o,u),h(a,e,u),i=!0},p:J,i(e){i||(f(a.$$.fragment,e),i=!0)},o(e){b(a.$$.fragment,e),i=!1},d(e){e&&(c(n),c(o)),_(a,e)}}}function Um($){let n,x="Example:",o,a,i;return a=new E({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMEluZmVyZW5jZUNsaWVudCUwQWNsaWVudCUyMCUzRCUyMEluZmVyZW5jZUNsaWVudCgpJTBBY2xpZW50LmF1dG9tYXRpY19zcGVlY2hfcmVjb2duaXRpb24oJTIyaGVsbG9fd29ybGQuZmxhYyUyMikudGV4dA==",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>).text
<span class="hljs-string">&quot;hello world&quot;</span>`,wrap:!1}}),{c(){n=p("p"),n.textContent=x,o=r(),d(a.$$.fragment)},l(e){n=g(e,"P",{"data-svelte-h":!0}),j(n)!=="svelte-11lpom8"&&(n.textContent=x),o=l(e),m(a.$$.fragment,e)},m(e,u){T(e,n,u),T(e,o,u),h(a,e,u),i=!0},p:J,i(e){i||(f(a.$$.fragment,e),i=!0)},o(e){b(a.$$.fragment,e),i=!1},d(e){e&&(c(n),c(o)),_(a,e)}}}function km($){let n,x="Example:",o,a,i;return a=new E({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(),d(a.$$.fragment)},l(e){n=g(e,"P",{"data-svelte-h":!0}),j(n)!=="svelte-11lpom8"&&(n.textContent=x),o=l(e),m(a.$$.fragment,e)},m(e,u){T(e,n,u),T(e,o,u),h(a,e,u),i=!0},p:J,i(e){i||(f(a.$$.fragment,e),i=!0)},o(e){b(a.$$.fragment,e),i=!1},d(e){e&&(c(n),c(o)),_(a,e)}}}function Em($){let n,x="Example:",o,a,i;return a=new E({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>)
[DocumentQuestionAnsweringOutputElement(score=<span class="hljs-number">0.42515629529953003</span>, answer=<span class="hljs-string">&#x27;us-001&#x27;</span>, start=<span class="hljs-number">16</span>, end=<span class="hljs-number">16</span>)]`,wrap:!1}}),{c(){n=p("p"),n.textContent=x,o=r(),d(a.$$.fragment)},l(e){n=g(e,"P",{"data-svelte-h":!0}),j(n)!=="svelte-11lpom8"&&(n.textContent=x),o=l(e),m(a.$$.fragment,e)},m(e,u){T(e,n,u),T(e,o,u),h(a,e,u),i=!0},p:J,i(e){i||(f(a.$$.fragment,e),i=!0)},o(e){b(a.$$.fragment,e),i=!1},d(e){e&&(c(n),c(o)),_(a,e)}}}function Zm($){let n,x="Example:",o,a,i;return a=new E({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(),d(a.$$.fragment)},l(e){n=g(e,"P",{"data-svelte-h":!0}),j(n)!=="svelte-11lpom8"&&(n.textContent=x),o=l(e),m(a.$$.fragment,e)},m(e,u){T(e,n,u),T(e,o,u),h(a,e,u),i=!0},p:J,i(e){i||(f(a.$$.fragment,e),i=!0)},o(e){b(a.$$.fragment,e),i=!1},d(e){e&&(c(n),c(o)),_(a,e)}}}function qm($){let n,x="Example:",o,a,i;return a=new E({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>)
[
    FillMaskOutputElement(score=<span class="hljs-number">0.06897063553333282</span>, token=<span class="hljs-number">11098</span>, token_str=<span class="hljs-string">&#x27; happiness&#x27;</span>, sequence=<span class="hljs-string">&#x27;The goal of life is happiness.&#x27;</span>),
    FillMaskOutputElement(score=<span class="hljs-number">0.06554922461509705</span>, token=<span class="hljs-number">45075</span>, token_str=<span class="hljs-string">&#x27; immortality&#x27;</span>, sequence=<span class="hljs-string">&#x27;The goal of life is immortality.&#x27;</span>)
]`,wrap:!1}}),{c(){n=p("p"),n.textContent=x,o=r(),d(a.$$.fragment)},l(e){n=g(e,"P",{"data-svelte-h":!0}),j(n)!=="svelte-11lpom8"&&(n.textContent=x),o=l(e),m(a.$$.fragment,e)},m(e,u){T(e,n,u),T(e,o,u),h(a,e,u),i=!0},p:J,i(e){i||(f(a.$$.fragment,e),i=!0)},o(e){b(a.$$.fragment,e),i=!1},d(e){e&&(c(n),c(o)),_(a,e)}}}function Wm($){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/main/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}),j(n)!=="svelte-1igz3dx"&&(n.innerHTML=x)},m(o,a){T(o,n,a)},p:J,d(o){o&&c(n)}}}function Nm($){let n,x="Example:",o,a,i;return a=new E({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(),d(a.$$.fragment)},l(e){n=g(e,"P",{"data-svelte-h":!0}),j(n)!=="svelte-11lpom8"&&(n.textContent=x),o=l(e),m(a.$$.fragment,e)},m(e,u){T(e,n,u),T(e,o,u),h(a,e,u),i=!0},p:J,i(e){i||(f(a.$$.fragment,e),i=!0)},o(e){b(a.$$.fragment,e),i=!1},d(e){e&&(c(n),c(o)),_(a,e)}}}function Gm($){let n,x="Example:",o,a,i;return a=new E({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>)
[ImageClassificationOutputElement(score=<span class="hljs-number">0.9779096841812134</span>, label=<span class="hljs-string">&#x27;Blenheim spaniel&#x27;</span>), ...]`,wrap:!1}}),{c(){n=p("p"),n.textContent=x,o=r(),d(a.$$.fragment)},l(e){n=g(e,"P",{"data-svelte-h":!0}),j(n)!=="svelte-11lpom8"&&(n.textContent=x),o=l(e),m(a.$$.fragment,e)},m(e,u){T(e,n,u),T(e,o,u),h(a,e,u),i=!0},p:J,i(e){i||(f(a.$$.fragment,e),i=!0)},o(e){b(a.$$.fragment,e),i=!1},d(e){e&&(c(n),c(o)),_(a,e)}}}function Vm($){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}),j(n)!=="svelte-s2e3n9"&&(n.innerHTML=x)},m(o,a){T(o,n,a)},p:J,d(o){o&&c(n)}}}function Am($){let n,x="Example:",o,a,i;return a=new E({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>):
[ImageSegmentationOutputElement(score=<span class="hljs-number">0.989008</span>, label=<span class="hljs-string">&#x27;LABEL_184&#x27;</span>, mask=&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(),d(a.$$.fragment)},l(e){n=g(e,"P",{"data-svelte-h":!0}),j(n)!=="svelte-11lpom8"&&(n.textContent=x),o=l(e),m(a.$$.fragment,e)},m(e,u){T(e,n,u),T(e,o,u),h(a,e,u),i=!0},p:J,i(e){i||(f(a.$$.fragment,e),i=!0)},o(e){b(a.$$.fragment,e),i=!1},d(e){e&&(c(n),c(o)),_(a,e)}}}function Dm($){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}),j(n)!=="svelte-s2e3n9"&&(n.innerHTML=x)},m(o,a){T(o,n,a)},p:J,d(o){o&&c(n)}}}function Ym($){let n,x="Example:",o,a,i;return a=new E({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(),d(a.$$.fragment)},l(e){n=g(e,"P",{"data-svelte-h":!0}),j(n)!=="svelte-11lpom8"&&(n.textContent=x),o=l(e),m(a.$$.fragment,e)},m(e,u){T(e,n,u),T(e,o,u),h(a,e,u),i=!0},p:J,i(e){i||(f(a.$$.fragment,e),i=!0)},o(e){b(a.$$.fragment,e),i=!1},d(e){e&&(c(n),c(o)),_(a,e)}}}function Rm($){let n,x="Example:",o,a,i;return a=new E({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(),d(a.$$.fragment)},l(e){n=g(e,"P",{"data-svelte-h":!0}),j(n)!=="svelte-11lpom8"&&(n.textContent=x),o=l(e),m(a.$$.fragment,e)},m(e,u){T(e,n,u),T(e,o,u),h(a,e,u),i=!0},p:J,i(e){i||(f(a.$$.fragment,e),i=!0)},o(e){b(a.$$.fragment,e),i=!1},d(e){e&&(c(n),c(o)),_(a,e)}}}function Bm($){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/main/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}),j(n)!=="svelte-wneo7r"&&(n.innerHTML=x)},m(o,a){T(o,n,a)},p:J,d(o){o&&c(n)}}}function Hm($){let n,x="Example:",o,a,i;return a=new E({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(),d(a.$$.fragment)},l(e){n=g(e,"P",{"data-svelte-h":!0}),j(n)!=="svelte-11lpom8"&&(n.textContent=x),o=l(e),m(a.$$.fragment,e)},m(e,u){T(e,n,u),T(e,o,u),h(a,e,u),i=!0},p:J,i(e){i||(f(a.$$.fragment,e),i=!0)},o(e){b(a.$$.fragment,e),i=!1},d(e){e&&(c(n),c(o)),_(a,e)}}}function Sm($){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}),j(n)!=="svelte-s2e3n9"&&(n.innerHTML=x)},m(o,a){T(o,n,a)},p:J,d(o){o&&c(n)}}}function Qm($){let n,x="Example:",o,a,i;return a=new E({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>):
[ObjectDetectionOutputElement(score=<span class="hljs-number">0.9486683011054993</span>, label=<span class="hljs-string">&#x27;person&#x27;</span>, box=BoundingBox(xmin=<span class="hljs-number">59</span>, ymin=<span class="hljs-number">39</span>, xmax=<span class="hljs-number">420</span>, ymax=<span class="hljs-number">510</span>)), ...]`,wrap:!1}}),{c(){n=p("p"),n.textContent=x,o=r(),d(a.$$.fragment)},l(e){n=g(e,"P",{"data-svelte-h":!0}),j(n)!=="svelte-11lpom8"&&(n.textContent=x),o=l(e),m(a.$$.fragment,e)},m(e,u){T(e,n,u),T(e,o,u),h(a,e,u),i=!0},p:J,i(e){i||(f(a.$$.fragment,e),i=!0)},o(e){b(a.$$.fragment,e),i=!1},d(e){e&&(c(n),c(o)),_(a,e)}}}function Fm($){let n,x="Example:",o,a,i;return a=new E({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>)
QuestionAnsweringOutputElement(score=<span class="hljs-number">0.9326562285423279</span>, start=<span class="hljs-number">11</span>, end=<span class="hljs-number">16</span>, answer=<span class="hljs-string">&#x27;Clara&#x27;</span>)`,wrap:!1}}),{c(){n=p("p"),n.textContent=x,o=r(),d(a.$$.fragment)},l(e){n=g(e,"P",{"data-svelte-h":!0}),j(n)!=="svelte-11lpom8"&&(n.textContent=x),o=l(e),m(a.$$.fragment,e)},m(e,u){T(e,n,u),T(e,o,u),h(a,e,u),i=!0},p:J,i(e){i||(f(a.$$.fragment,e),i=!0)},o(e){b(a.$$.fragment,e),i=!1},d(e){e&&(c(n),c(o)),_(a,e)}}}function Pm($){let n,x="Example:",o,a,i;return a=new E({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(),d(a.$$.fragment)},l(e){n=g(e,"P",{"data-svelte-h":!0}),j(n)!=="svelte-11lpom8"&&(n.textContent=x),o=l(e),m(a.$$.fragment,e)},m(e,u){T(e,n,u),T(e,o,u),h(a,e,u),i=!0},p:J,i(e){i||(f(a.$$.fragment,e),i=!0)},o(e){b(a.$$.fragment,e),i=!1},d(e){e&&(c(n),c(o)),_(a,e)}}}function Lm($){let n,x="Example:",o,a,i;return a=new E({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>)
SummarizationOutput(generated_text=<span class="hljs-string">&quot;The Eiffel tower is one of the most famous landmarks in the world....&quot;</span>)`,wrap:!1}}),{c(){n=p("p"),n.textContent=x,o=r(),d(a.$$.fragment)},l(e){n=g(e,"P",{"data-svelte-h":!0}),j(n)!=="svelte-11lpom8"&&(n.textContent=x),o=l(e),m(a.$$.fragment,e)},m(e,u){T(e,n,u),T(e,o,u),h(a,e,u),i=!0},p:J,i(e){i||(f(a.$$.fragment,e),i=!0)},o(e){b(a.$$.fragment,e),i=!1},d(e){e&&(c(n),c(o)),_(a,e)}}}function Xm($){let n,x="Example:",o,a,i;return a=new E({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>)
TableQuestionAnsweringOutputElement(answer=<span class="hljs-string">&#x27;36542&#x27;</span>, coordinates=[[<span class="hljs-number">0</span>, <span class="hljs-number">1</span>]], cells=[<span class="hljs-string">&#x27;36542&#x27;</span>], aggregator=<span class="hljs-string">&#x27;AVERAGE&#x27;</span>)`,wrap:!1}}),{c(){n=p("p"),n.textContent=x,o=r(),d(a.$$.fragment)},l(e){n=g(e,"P",{"data-svelte-h":!0}),j(n)!=="svelte-11lpom8"&&(n.textContent=x),o=l(e),m(a.$$.fragment,e)},m(e,u){T(e,n,u),T(e,o,u),h(a,e,u),i=!0},p:J,i(e){i||(f(a.$$.fragment,e),i=!0)},o(e){b(a.$$.fragment,e),i=!1},d(e){e&&(c(n),c(o)),_(a,e)}}}function zm($){let n,x="Example:",o,a,i;return a=new E({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(),d(a.$$.fragment)},l(e){n=g(e,"P",{"data-svelte-h":!0}),j(n)!=="svelte-11lpom8"&&(n.textContent=x),o=l(e),m(a.$$.fragment,e)},m(e,u){T(e,n,u),T(e,o,u),h(a,e,u),i=!0},p:J,i(e){i||(f(a.$$.fragment,e),i=!0)},o(e){b(a.$$.fragment,e),i=!1},d(e){e&&(c(n),c(o)),_(a,e)}}}function Om($){let n,x="Example:",o,a,i;return a=new E({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(),d(a.$$.fragment)},l(e){n=g(e,"P",{"data-svelte-h":!0}),j(n)!=="svelte-11lpom8"&&(n.textContent=x),o=l(e),m(a.$$.fragment,e)},m(e,u){T(e,n,u),T(e,o,u),h(a,e,u),i=!0},p:J,i(e){i||(f(a.$$.fragment,e),i=!0)},o(e){b(a.$$.fragment,e),i=!1},d(e){e&&(c(n),c(o)),_(a,e)}}}function Km($){let n,x="Example:",o,a,i;return a=new E({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>)
[
    TextClassificationOutputElement(label=<span class="hljs-string">&#x27;POSITIVE&#x27;</span>, score=<span class="hljs-number">0.9998695850372314</span>),
    TextClassificationOutputElement(label=<span class="hljs-string">&#x27;NEGATIVE&#x27;</span>, score=<span class="hljs-number">0.0001304351753788069</span>),
]`,wrap:!1}}),{c(){n=p("p"),n.textContent=x,o=r(),d(a.$$.fragment)},l(e){n=g(e,"P",{"data-svelte-h":!0}),j(n)!=="svelte-11lpom8"&&(n.textContent=x),o=l(e),m(a.$$.fragment,e)},m(e,u){T(e,n,u),T(e,o,u),h(a,e,u),i=!0},p:J,i(e){i||(f(a.$$.fragment,e),i=!0)},o(e){b(a.$$.fragment,e),i=!1},d(e){e&&(c(n),c(o)),_(a,e)}}}function eh($){let n,x="Example:",o,a,i;return a=new E({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(),d(a.$$.fragment)},l(e){n=g(e,"P",{"data-svelte-h":!0}),j(n)!=="svelte-11lpom8"&&(n.textContent=x),o=l(e),m(a.$$.fragment,e)},m(e,u){T(e,n,u),T(e,o,u),h(a,e,u),i=!0},p:J,i(e){i||(f(a.$$.fragment,e),i=!0)},o(e){b(a.$$.fragment,e),i=!1},d(e){e&&(c(n),c(o)),_(a,e)}}}function nh($){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}),j(n)!=="svelte-s2e3n9"&&(n.innerHTML=x)},m(o,a){T(o,n,a)},p:J,d(o){o&&c(n)}}}function th($){let n,x="Example:",o,a,i;return a=new E({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(),d(a.$$.fragment)},l(e){n=g(e,"P",{"data-svelte-h":!0}),j(n)!=="svelte-11lpom8"&&(n.textContent=x),o=l(e),m(a.$$.fragment,e)},m(e,u){T(e,n,u),T(e,o,u),h(a,e,u),i=!0},p:J,i(e){i||(f(a.$$.fragment,e),i=!0)},o(e){b(a.$$.fragment,e),i=!1},d(e){e&&(c(n),c(o)),_(a,e)}}}function ah($){let n,x="Example:",o,a,i;return a=new E({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(),d(a.$$.fragment)},l(e){n=g(e,"P",{"data-svelte-h":!0}),j(n)!=="svelte-11lpom8"&&(n.textContent=x),o=l(e),m(a.$$.fragment,e)},m(e,u){T(e,n,u),T(e,o,u),h(a,e,u),i=!0},p:J,i(e){i||(f(a.$$.fragment,e),i=!0)},o(e){b(a.$$.fragment,e),i=!1},d(e){e&&(c(n),c(o)),_(a,e)}}}function sh($){let n,x="Example:",o,a,i;return a=new E({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>)
[
    TokenClassificationOutputElement(
        entity_group=<span class="hljs-string">&#x27;PER&#x27;</span>,
        score=<span class="hljs-number">0.9971321225166321</span>,
        word=<span class="hljs-string">&#x27;Sarah Jessica Parker&#x27;</span>,
        start=<span class="hljs-number">11</span>,
        end=<span class="hljs-number">31</span>,
    ),
    TokenClassificationOutputElement(
        entity_group=<span class="hljs-string">&#x27;PER&#x27;</span>,
        score=<span class="hljs-number">0.9773476123809814</span>,
        word=<span class="hljs-string">&#x27;Jessica&#x27;</span>,
        start=<span class="hljs-number">52</span>,
        end=<span class="hljs-number">59</span>,
    )
]`,wrap:!1}}),{c(){n=p("p"),n.textContent=x,o=r(),d(a.$$.fragment)},l(e){n=g(e,"P",{"data-svelte-h":!0}),j(n)!=="svelte-11lpom8"&&(n.textContent=x),o=l(e),m(a.$$.fragment,e)},m(e,u){T(e,n,u),T(e,o,u),h(a,e,u),i=!0},p:J,i(e){i||(f(a.$$.fragment,e),i=!0)},o(e){b(a.$$.fragment,e),i=!1},d(e){e&&(c(n),c(o)),_(a,e)}}}function oh($){let n,x="Example:",o,a,i;return a=new E({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>)
TranslationOutput(translation_text=<span class="hljs-string">&#x27;Je m&#x27;</span>appelle Wolfgang et je vis à Berlin.<span class="hljs-string">&#x27;)</span>`,wrap:!1}}),{c(){n=p("p"),n.textContent=x,o=r(),d(a.$$.fragment)},l(e){n=g(e,"P",{"data-svelte-h":!0}),j(n)!=="svelte-11lpom8"&&(n.textContent=x),o=l(e),m(a.$$.fragment,e)},m(e,u){T(e,n,u),T(e,o,u),h(a,e,u),i=!0},p:J,i(e){i||(f(a.$$.fragment,e),i=!0)},o(e){b(a.$$.fragment,e),i=!1},d(e){e&&(c(n),c(o)),_(a,e)}}}function rh($){let n,x="Specifying languages:",o,a,i;return a=new E({props:{code:"Y2xpZW50LnRyYW5zbGF0aW9uKCUyMk15JTIwbmFtZSUyMGlzJTIwU2FyYWglMjBKZXNzaWNhJTIwUGFya2VyJTIwYnV0JTIweW91JTIwY2FuJTIwY2FsbCUyMG1lJTIwSmVzc2ljYSUyMiUyQyUyMG1vZGVsJTNEJTIyZmFjZWJvb2slMkZtYmFydC1sYXJnZS01MC1tYW55LXRvLW1hbnktbW10JTIyJTJDJTIwc3JjX2xhbmclM0QlMjJlbl9YWCUyMiUyQyUyMHRndF9sYW5nJTNEJTIyZnJfWFglMjIp",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span>client.translation(<span class="hljs-string">&quot;My name is Sarah Jessica Parker but you can call me Jessica&quot;</span>, model=<span class="hljs-string">&quot;facebook/mbart-large-50-many-to-many-mmt&quot;</span>, src_lang=<span class="hljs-string">&quot;en_XX&quot;</span>, tgt_lang=<span class="hljs-string">&quot;fr_XX&quot;</span>)
<span class="hljs-string">&quot;Mon nom est Sarah Jessica Parker mais vous pouvez m&#x27;appeler Jessica&quot;</span>`,wrap:!1}}),{c(){n=p("p"),n.textContent=x,o=r(),d(a.$$.fragment)},l(e){n=g(e,"P",{"data-svelte-h":!0}),j(n)!=="svelte-mhcj6c"&&(n.textContent=x),o=l(e),m(a.$$.fragment,e)},m(e,u){T(e,n,u),T(e,o,u),h(a,e,u),i=!0},p:J,i(e){i||(f(a.$$.fragment,e),i=!0)},o(e){b(a.$$.fragment,e),i=!1},d(e){e&&(c(n),c(o)),_(a,e)}}}function lh($){let n,x="Example:",o,a,i;return a=new E({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>)
[
    VisualQuestionAnsweringOutputElement(score=<span class="hljs-number">0.778609573841095</span>, answer=<span class="hljs-string">&#x27;laying down&#x27;</span>),
    VisualQuestionAnsweringOutputElement(score=<span class="hljs-number">0.6957435607910156</span>, answer=<span class="hljs-string">&#x27;sitting&#x27;</span>),
]`,wrap:!1}}),{c(){n=p("p"),n.textContent=x,o=r(),d(a.$$.fragment)},l(e){n=g(e,"P",{"data-svelte-h":!0}),j(n)!=="svelte-11lpom8"&&(n.textContent=x),o=l(e),m(a.$$.fragment,e)},m(e,u){T(e,n,u),T(e,o,u),h(a,e,u),i=!0},p:J,i(e){i||(f(a.$$.fragment,e),i=!0)},o(e){b(a.$$.fragment,e),i=!1},d(e){e&&(c(n),c(o)),_(a,e)}}}function ih($){let n,x="Example:",o,a,i;return a=new E({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)
[
    ZeroShotClassificationOutputElement(label=<span class="hljs-string">&#x27;scientific discovery&#x27;</span>, score=<span class="hljs-number">0.7961668968200684</span>),
    ZeroShotClassificationOutputElement(label=<span class="hljs-string">&#x27;space &amp; cosmos&#x27;</span>, score=<span class="hljs-number">0.18570658564567566</span>),
    ZeroShotClassificationOutputElement(label=<span class="hljs-string">&#x27;microbiology&#x27;</span>, score=<span class="hljs-number">0.00730885099619627</span>),
    ZeroShotClassificationOutputElement(label=<span class="hljs-string">&#x27;archeology&#x27;</span>, score=<span class="hljs-number">0.006258360575884581</span>),
    ZeroShotClassificationOutputElement(label=<span class="hljs-string">&#x27;robots&#x27;</span>, score=<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>)
[
    ZeroShotClassificationOutputElement(label=<span class="hljs-string">&#x27;scientific discovery&#x27;</span>, score=<span class="hljs-number">0.9829297661781311</span>),
    ZeroShotClassificationOutputElement(label=<span class="hljs-string">&#x27;space &amp; cosmos&#x27;</span>, score=<span class="hljs-number">0.755190908908844</span>),
    ZeroShotClassificationOutputElement(label=<span class="hljs-string">&#x27;microbiology&#x27;</span>, score=<span class="hljs-number">0.0005462635890580714</span>),
    ZeroShotClassificationOutputElement(label=<span class="hljs-string">&#x27;archeology&#x27;</span>, score=<span class="hljs-number">0.00047131875180639327</span>),
    ZeroShotClassificationOutputElement(label=<span class="hljs-string">&#x27;robots&#x27;</span>, score=<span class="hljs-number">0.00030448526376858354</span>),
]`,wrap:!1}}),{c(){n=p("p"),n.textContent=x,o=r(),d(a.$$.fragment)},l(e){n=g(e,"P",{"data-svelte-h":!0}),j(n)!=="svelte-11lpom8"&&(n.textContent=x),o=l(e),m(a.$$.fragment,e)},m(e,u){T(e,n,u),T(e,o,u),h(a,e,u),i=!0},p:J,i(e){i||(f(a.$$.fragment,e),i=!0)},o(e){b(a.$$.fragment,e),i=!1},d(e){e&&(c(n),c(o)),_(a,e)}}}function ch($){let n,x="Example:",o,a,i;return a=new E({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>)
[ZeroShotImageClassificationOutputElement(label=<span class="hljs-string">&#x27;dog&#x27;</span>, score=<span class="hljs-number">0.956</span>),...]`,wrap:!1}}),{c(){n=p("p"),n.textContent=x,o=r(),d(a.$$.fragment)},l(e){n=g(e,"P",{"data-svelte-h":!0}),j(n)!=="svelte-11lpom8"&&(n.textContent=x),o=l(e),m(a.$$.fragment,e)},m(e,u){T(e,n,u),T(e,o,u),h(a,e,u),i=!0},p:J,i(e){i||(f(a.$$.fragment,e),i=!0)},o(e){b(a.$$.fragment,e),i=!1},d(e){e&&(c(n),c(o)),_(a,e)}}}function ph($){let n,x="Example:",o,a,i;return a=new E({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>)
[
    AudioClassificationOutputElement(score=<span class="hljs-number">0.4976358711719513</span>, label=<span class="hljs-string">&#x27;hap&#x27;</span>),
    AudioClassificationOutputElement(score=<span class="hljs-number">0.3677836060523987</span>, label=<span class="hljs-string">&#x27;neu&#x27;</span>),
    ...
]`,wrap:!1}}),{c(){n=p("p"),n.textContent=x,o=r(),d(a.$$.fragment)},l(e){n=g(e,"P",{"data-svelte-h":!0}),j(n)!=="svelte-11lpom8"&&(n.textContent=x),o=l(e),m(a.$$.fragment,e)},m(e,u){T(e,n,u),T(e,o,u),h(a,e,u),i=!0},p:J,i(e){i||(f(a.$$.fragment,e),i=!0)},o(e){b(a.$$.fragment,e),i=!1},d(e){e&&(c(n),c(o)),_(a,e)}}}function gh($){let n,x="Example:",o,a,i;return a=new E({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMEFzeW5jSW5mZXJlbmNlQ2xpZW50JTBBY2xpZW50JTIwJTNEJTIwQXN5bmNJbmZlcmVuY2VDbGllbnQoKSUwQWF1ZGlvX291dHB1dCUyMCUzRCUyMGF3YWl0JTIwY2xpZW50LmF1ZGlvX3RvX2F1ZGlvKCUyMmF1ZGlvLmZsYWMlMjIpJTBBYXN5bmMlMjBmb3IlMjBpJTJDJTIwaXRlbSUyMGluJTIwZW51bWVyYXRlKGF1ZGlvX291dHB1dCklM0ElMEElMjAlMjAlMjAlMjB3aXRoJTIwb3BlbihmJTIyb3V0cHV0XyU3QmklN0QuZmxhYyUyMiUyQyUyMCUyMndiJTIyKSUyMGFzJTIwZiUzQQ==",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>audio_output = <span class="hljs-keyword">await</span> client.audio_to_audio(<span class="hljs-string">&quot;audio.flac&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">async</span> <span class="hljs-keyword">for</span> i, item <span class="hljs-keyword">in</span> <span class="hljs-built_in">enumerate</span>(audio_output):
<span class="hljs-meta">&gt;&gt;&gt; </span>    <span class="hljs-keyword">with</span> <span class="hljs-built_in">open</span>(<span class="hljs-string">f&quot;output_<span class="hljs-subst">{i}</span>.flac&quot;</span>, <span class="hljs-string">&quot;wb&quot;</span>) <span class="hljs-keyword">as</span> f:
            f.write(item.blob)`,wrap:!1}}),{c(){n=p("p"),n.textContent=x,o=r(),d(a.$$.fragment)},l(e){n=g(e,"P",{"data-svelte-h":!0}),j(n)!=="svelte-11lpom8"&&(n.textContent=x),o=l(e),m(a.$$.fragment,e)},m(e,u){T(e,n,u),T(e,o,u),h(a,e,u),i=!0},p:J,i(e){i||(f(a.$$.fragment,e),i=!0)},o(e){b(a.$$.fragment,e),i=!1},d(e){e&&(c(n),c(o)),_(a,e)}}}function uh($){let n,x="Example:",o,a,i;return a=new E({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMEFzeW5jSW5mZXJlbmNlQ2xpZW50JTBBY2xpZW50JTIwJTNEJTIwQXN5bmNJbmZlcmVuY2VDbGllbnQoKSUwQWF3YWl0JTIwY2xpZW50LmF1dG9tYXRpY19zcGVlY2hfcmVjb2duaXRpb24oJTIyaGVsbG9fd29ybGQuZmxhYyUyMikudGV4dA==",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>).text
<span class="hljs-string">&quot;hello world&quot;</span>`,wrap:!1}}),{c(){n=p("p"),n.textContent=x,o=r(),d(a.$$.fragment)},l(e){n=g(e,"P",{"data-svelte-h":!0}),j(n)!=="svelte-11lpom8"&&(n.textContent=x),o=l(e),m(a.$$.fragment,e)},m(e,u){T(e,n,u),T(e,o,u),h(a,e,u),i=!0},p:J,i(e){i||(f(a.$$.fragment,e),i=!0)},o(e){b(a.$$.fragment,e),i=!1},d(e){e&&(c(n),c(o)),_(a,e)}}}function dh($){let n,x="Example:",o,a,i;return a=new E({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(),d(a.$$.fragment)},l(e){n=g(e,"P",{"data-svelte-h":!0}),j(n)!=="svelte-11lpom8"&&(n.textContent=x),o=l(e),m(a.$$.fragment,e)},m(e,u){T(e,n,u),T(e,o,u),h(a,e,u),i=!0},p:J,i(e){i||(f(a.$$.fragment,e),i=!0)},o(e){b(a.$$.fragment,e),i=!1},d(e){e&&(c(n),c(o)),_(a,e)}}}function mh($){let n,x="Example:",o,a,i;return a=new E({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>)
[DocumentQuestionAnsweringOutputElement(score=<span class="hljs-number">0.42515629529953003</span>, answer=<span class="hljs-string">&#x27;us-001&#x27;</span>, start=<span class="hljs-number">16</span>, end=<span class="hljs-number">16</span>)]`,wrap:!1}}),{c(){n=p("p"),n.textContent=x,o=r(),d(a.$$.fragment)},l(e){n=g(e,"P",{"data-svelte-h":!0}),j(n)!=="svelte-11lpom8"&&(n.textContent=x),o=l(e),m(a.$$.fragment,e)},m(e,u){T(e,n,u),T(e,o,u),h(a,e,u),i=!0},p:J,i(e){i||(f(a.$$.fragment,e),i=!0)},o(e){b(a.$$.fragment,e),i=!1},d(e){e&&(c(n),c(o)),_(a,e)}}}function hh($){let n,x="Example:",o,a,i;return a=new E({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(),d(a.$$.fragment)},l(e){n=g(e,"P",{"data-svelte-h":!0}),j(n)!=="svelte-11lpom8"&&(n.textContent=x),o=l(e),m(a.$$.fragment,e)},m(e,u){T(e,n,u),T(e,o,u),h(a,e,u),i=!0},p:J,i(e){i||(f(a.$$.fragment,e),i=!0)},o(e){b(a.$$.fragment,e),i=!1},d(e){e&&(c(n),c(o)),_(a,e)}}}function fh($){let n,x="Example:",o,a,i;return a=new E({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>)
[
    FillMaskOutputElement(score=<span class="hljs-number">0.06897063553333282</span>, token=<span class="hljs-number">11098</span>, token_str=<span class="hljs-string">&#x27; happiness&#x27;</span>, sequence=<span class="hljs-string">&#x27;The goal of life is happiness.&#x27;</span>),
    FillMaskOutputElement(score=<span class="hljs-number">0.06554922461509705</span>, token=<span class="hljs-number">45075</span>, token_str=<span class="hljs-string">&#x27; immortality&#x27;</span>, sequence=<span class="hljs-string">&#x27;The goal of life is immortality.&#x27;</span>)
]`,wrap:!1}}),{c(){n=p("p"),n.textContent=x,o=r(),d(a.$$.fragment)},l(e){n=g(e,"P",{"data-svelte-h":!0}),j(n)!=="svelte-11lpom8"&&(n.textContent=x),o=l(e),m(a.$$.fragment,e)},m(e,u){T(e,n,u),T(e,o,u),h(a,e,u),i=!0},p:J,i(e){i||(f(a.$$.fragment,e),i=!0)},o(e){b(a.$$.fragment,e),i=!1},d(e){e&&(c(n),c(o)),_(a,e)}}}function bh($){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/main/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}),j(n)!=="svelte-1igz3dx"&&(n.innerHTML=x)},m(o,a){T(o,n,a)},p:J,d(o){o&&c(n)}}}function _h($){let n,x="Example:",o,a,i;return a=new E({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(),d(a.$$.fragment)},l(e){n=g(e,"P",{"data-svelte-h":!0}),j(n)!=="svelte-11lpom8"&&(n.textContent=x),o=l(e),m(a.$$.fragment,e)},m(e,u){T(e,n,u),T(e,o,u),h(a,e,u),i=!0},p:J,i(e){i||(f(a.$$.fragment,e),i=!0)},o(e){b(a.$$.fragment,e),i=!1},d(e){e&&(c(n),c(o)),_(a,e)}}}function yh($){let n,x="Example:",o,a,i;return a=new E({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>)
[ImageClassificationOutputElement(score=<span class="hljs-number">0.9779096841812134</span>, label=<span class="hljs-string">&#x27;Blenheim spaniel&#x27;</span>), ...]`,wrap:!1}}),{c(){n=p("p"),n.textContent=x,o=r(),d(a.$$.fragment)},l(e){n=g(e,"P",{"data-svelte-h":!0}),j(n)!=="svelte-11lpom8"&&(n.textContent=x),o=l(e),m(a.$$.fragment,e)},m(e,u){T(e,n,u),T(e,o,u),h(a,e,u),i=!0},p:J,i(e){i||(f(a.$$.fragment,e),i=!0)},o(e){b(a.$$.fragment,e),i=!1},d(e){e&&(c(n),c(o)),_(a,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}),j(n)!=="svelte-s2e3n9"&&(n.innerHTML=x)},m(o,a){T(o,n,a)},p:J,d(o){o&&c(n)}}}function Th($){let n,x="Example:",o,a,i;return a=new E({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>):
[ImageSegmentationOutputElement(score=<span class="hljs-number">0.989008</span>, label=<span class="hljs-string">&#x27;LABEL_184&#x27;</span>, mask=&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(),d(a.$$.fragment)},l(e){n=g(e,"P",{"data-svelte-h":!0}),j(n)!=="svelte-11lpom8"&&(n.textContent=x),o=l(e),m(a.$$.fragment,e)},m(e,u){T(e,n,u),T(e,o,u),h(a,e,u),i=!0},p:J,i(e){i||(f(a.$$.fragment,e),i=!0)},o(e){b(a.$$.fragment,e),i=!1},d(e){e&&(c(n),c(o)),_(a,e)}}}function jh($){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}),j(n)!=="svelte-s2e3n9"&&(n.innerHTML=x)},m(o,a){T(o,n,a)},p:J,d(o){o&&c(n)}}}function $h($){let n,x="Example:",o,a,i;return a=new E({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(),d(a.$$.fragment)},l(e){n=g(e,"P",{"data-svelte-h":!0}),j(n)!=="svelte-11lpom8"&&(n.textContent=x),o=l(e),m(a.$$.fragment,e)},m(e,u){T(e,n,u),T(e,o,u),h(a,e,u),i=!0},p:J,i(e){i||(f(a.$$.fragment,e),i=!0)},o(e){b(a.$$.fragment,e),i=!1},d(e){e&&(c(n),c(o)),_(a,e)}}}function Ih($){let n,x="Example:",o,a,i;return a=new E({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(),d(a.$$.fragment)},l(e){n=g(e,"P",{"data-svelte-h":!0}),j(n)!=="svelte-11lpom8"&&(n.textContent=x),o=l(e),m(a.$$.fragment,e)},m(e,u){T(e,n,u),T(e,o,u),h(a,e,u),i=!0},p:J,i(e){i||(f(a.$$.fragment,e),i=!0)},o(e){b(a.$$.fragment,e),i=!1},d(e){e&&(c(n),c(o)),_(a,e)}}}function Mh($){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/main/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}),j(n)!=="svelte-wneo7r"&&(n.innerHTML=x)},m(o,a){T(o,n,a)},p:J,d(o){o&&c(n)}}}function wh($){let n,x="Example:",o,a,i;return a=new E({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(),d(a.$$.fragment)},l(e){n=g(e,"P",{"data-svelte-h":!0}),j(n)!=="svelte-11lpom8"&&(n.textContent=x),o=l(e),m(a.$$.fragment,e)},m(e,u){T(e,n,u),T(e,o,u),h(a,e,u),i=!0},p:J,i(e){i||(f(a.$$.fragment,e),i=!0)},o(e){b(a.$$.fragment,e),i=!1},d(e){e&&(c(n),c(o)),_(a,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}),j(n)!=="svelte-s2e3n9"&&(n.innerHTML=x)},m(o,a){T(o,n,a)},p:J,d(o){o&&c(n)}}}function vh($){let n,x="Example:",o,a,i;return a=new E({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>):
[ObjectDetectionOutputElement(score=<span class="hljs-number">0.9486683011054993</span>, label=<span class="hljs-string">&#x27;person&#x27;</span>, box=BoundingBox(xmin=<span class="hljs-number">59</span>, ymin=<span class="hljs-number">39</span>, xmax=<span class="hljs-number">420</span>, ymax=<span class="hljs-number">510</span>)), ...]`,wrap:!1}}),{c(){n=p("p"),n.textContent=x,o=r(),d(a.$$.fragment)},l(e){n=g(e,"P",{"data-svelte-h":!0}),j(n)!=="svelte-11lpom8"&&(n.textContent=x),o=l(e),m(a.$$.fragment,e)},m(e,u){T(e,n,u),T(e,o,u),h(a,e,u),i=!0},p:J,i(e){i||(f(a.$$.fragment,e),i=!0)},o(e){b(a.$$.fragment,e),i=!1},d(e){e&&(c(n),c(o)),_(a,e)}}}function Jh($){let n,x="Example:",o,a,i;return a=new E({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>)
QuestionAnsweringOutputElement(score=<span class="hljs-number">0.9326562285423279</span>, start=<span class="hljs-number">11</span>, end=<span class="hljs-number">16</span>, answer=<span class="hljs-string">&#x27;Clara&#x27;</span>)`,wrap:!1}}),{c(){n=p("p"),n.textContent=x,o=r(),d(a.$$.fragment)},l(e){n=g(e,"P",{"data-svelte-h":!0}),j(n)!=="svelte-11lpom8"&&(n.textContent=x),o=l(e),m(a.$$.fragment,e)},m(e,u){T(e,n,u),T(e,o,u),h(a,e,u),i=!0},p:J,i(e){i||(f(a.$$.fragment,e),i=!0)},o(e){b(a.$$.fragment,e),i=!1},d(e){e&&(c(n),c(o)),_(a,e)}}}function Uh($){let n,x="Example:",o,a,i;return a=new E({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(),d(a.$$.fragment)},l(e){n=g(e,"P",{"data-svelte-h":!0}),j(n)!=="svelte-11lpom8"&&(n.textContent=x),o=l(e),m(a.$$.fragment,e)},m(e,u){T(e,n,u),T(e,o,u),h(a,e,u),i=!0},p:J,i(e){i||(f(a.$$.fragment,e),i=!0)},o(e){b(a.$$.fragment,e),i=!1},d(e){e&&(c(n),c(o)),_(a,e)}}}function kh($){let n,x="Example:",o,a,i;return a=new E({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>)
SummarizationOutput(generated_text=<span class="hljs-string">&quot;The Eiffel tower is one of the most famous landmarks in the world....&quot;</span>)`,wrap:!1}}),{c(){n=p("p"),n.textContent=x,o=r(),d(a.$$.fragment)},l(e){n=g(e,"P",{"data-svelte-h":!0}),j(n)!=="svelte-11lpom8"&&(n.textContent=x),o=l(e),m(a.$$.fragment,e)},m(e,u){T(e,n,u),T(e,o,u),h(a,e,u),i=!0},p:J,i(e){i||(f(a.$$.fragment,e),i=!0)},o(e){b(a.$$.fragment,e),i=!1},d(e){e&&(c(n),c(o)),_(a,e)}}}function Eh($){let n,x="Example:",o,a,i;return a=new E({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>)
TableQuestionAnsweringOutputElement(answer=<span class="hljs-string">&#x27;36542&#x27;</span>, coordinates=[[<span class="hljs-number">0</span>, <span class="hljs-number">1</span>]], cells=[<span class="hljs-string">&#x27;36542&#x27;</span>], aggregator=<span class="hljs-string">&#x27;AVERAGE&#x27;</span>)`,wrap:!1}}),{c(){n=p("p"),n.textContent=x,o=r(),d(a.$$.fragment)},l(e){n=g(e,"P",{"data-svelte-h":!0}),j(n)!=="svelte-11lpom8"&&(n.textContent=x),o=l(e),m(a.$$.fragment,e)},m(e,u){T(e,n,u),T(e,o,u),h(a,e,u),i=!0},p:J,i(e){i||(f(a.$$.fragment,e),i=!0)},o(e){b(a.$$.fragment,e),i=!1},d(e){e&&(c(n),c(o)),_(a,e)}}}function Zh($){let n,x="Example:",o,a,i;return a=new E({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(),d(a.$$.fragment)},l(e){n=g(e,"P",{"data-svelte-h":!0}),j(n)!=="svelte-11lpom8"&&(n.textContent=x),o=l(e),m(a.$$.fragment,e)},m(e,u){T(e,n,u),T(e,o,u),h(a,e,u),i=!0},p:J,i(e){i||(f(a.$$.fragment,e),i=!0)},o(e){b(a.$$.fragment,e),i=!1},d(e){e&&(c(n),c(o)),_(a,e)}}}function qh($){let n,x="Example:",o,a,i;return a=new E({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(),d(a.$$.fragment)},l(e){n=g(e,"P",{"data-svelte-h":!0}),j(n)!=="svelte-11lpom8"&&(n.textContent=x),o=l(e),m(a.$$.fragment,e)},m(e,u){T(e,n,u),T(e,o,u),h(a,e,u),i=!0},p:J,i(e){i||(f(a.$$.fragment,e),i=!0)},o(e){b(a.$$.fragment,e),i=!1},d(e){e&&(c(n),c(o)),_(a,e)}}}function Wh($){let n,x="Example:",o,a,i;return a=new E({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>)
[
    TextClassificationOutputElement(label=<span class="hljs-string">&#x27;POSITIVE&#x27;</span>, score=<span class="hljs-number">0.9998695850372314</span>),
    TextClassificationOutputElement(label=<span class="hljs-string">&#x27;NEGATIVE&#x27;</span>, score=<span class="hljs-number">0.0001304351753788069</span>),
]`,wrap:!1}}),{c(){n=p("p"),n.textContent=x,o=r(),d(a.$$.fragment)},l(e){n=g(e,"P",{"data-svelte-h":!0}),j(n)!=="svelte-11lpom8"&&(n.textContent=x),o=l(e),m(a.$$.fragment,e)},m(e,u){T(e,n,u),T(e,o,u),h(a,e,u),i=!0},p:J,i(e){i||(f(a.$$.fragment,e),i=!0)},o(e){b(a.$$.fragment,e),i=!1},d(e){e&&(c(n),c(o)),_(a,e)}}}function Nh($){let n,x="Example:",o,a,i;return a=new E({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(),d(a.$$.fragment)},l(e){n=g(e,"P",{"data-svelte-h":!0}),j(n)!=="svelte-11lpom8"&&(n.textContent=x),o=l(e),m(a.$$.fragment,e)},m(e,u){T(e,n,u),T(e,o,u),h(a,e,u),i=!0},p:J,i(e){i||(f(a.$$.fragment,e),i=!0)},o(e){b(a.$$.fragment,e),i=!1},d(e){e&&(c(n),c(o)),_(a,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}),j(n)!=="svelte-s2e3n9"&&(n.innerHTML=x)},m(o,a){T(o,n,a)},p:J,d(o){o&&c(n)}}}function Vh($){let n,x="Example:",o,a,i;return a=new E({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(),d(a.$$.fragment)},l(e){n=g(e,"P",{"data-svelte-h":!0}),j(n)!=="svelte-11lpom8"&&(n.textContent=x),o=l(e),m(a.$$.fragment,e)},m(e,u){T(e,n,u),T(e,o,u),h(a,e,u),i=!0},p:J,i(e){i||(f(a.$$.fragment,e),i=!0)},o(e){b(a.$$.fragment,e),i=!1},d(e){e&&(c(n),c(o)),_(a,e)}}}function Ah($){let n,x="Example:",o,a,i;return a=new E({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(),d(a.$$.fragment)},l(e){n=g(e,"P",{"data-svelte-h":!0}),j(n)!=="svelte-11lpom8"&&(n.textContent=x),o=l(e),m(a.$$.fragment,e)},m(e,u){T(e,n,u),T(e,o,u),h(a,e,u),i=!0},p:J,i(e){i||(f(a.$$.fragment,e),i=!0)},o(e){b(a.$$.fragment,e),i=!1},d(e){e&&(c(n),c(o)),_(a,e)}}}function Dh($){let n,x="Example:",o,a,i;return a=new E({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>)
[
    TokenClassificationOutputElement(
        entity_group=<span class="hljs-string">&#x27;PER&#x27;</span>,
        score=<span class="hljs-number">0.9971321225166321</span>,
        word=<span class="hljs-string">&#x27;Sarah Jessica Parker&#x27;</span>,
        start=<span class="hljs-number">11</span>,
        end=<span class="hljs-number">31</span>,
    ),
    TokenClassificationOutputElement(
        entity_group=<span class="hljs-string">&#x27;PER&#x27;</span>,
        score=<span class="hljs-number">0.9773476123809814</span>,
        word=<span class="hljs-string">&#x27;Jessica&#x27;</span>,
        start=<span class="hljs-number">52</span>,
        end=<span class="hljs-number">59</span>,
    )
]`,wrap:!1}}),{c(){n=p("p"),n.textContent=x,o=r(),d(a.$$.fragment)},l(e){n=g(e,"P",{"data-svelte-h":!0}),j(n)!=="svelte-11lpom8"&&(n.textContent=x),o=l(e),m(a.$$.fragment,e)},m(e,u){T(e,n,u),T(e,o,u),h(a,e,u),i=!0},p:J,i(e){i||(f(a.$$.fragment,e),i=!0)},o(e){b(a.$$.fragment,e),i=!1},d(e){e&&(c(n),c(o)),_(a,e)}}}function Yh($){let n,x="Example:",o,a,i;return a=new E({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>)
TranslationOutput(translation_text=<span class="hljs-string">&#x27;Je m&#x27;</span>appelle Wolfgang et je vis à Berlin.<span class="hljs-string">&#x27;)</span>`,wrap:!1}}),{c(){n=p("p"),n.textContent=x,o=r(),d(a.$$.fragment)},l(e){n=g(e,"P",{"data-svelte-h":!0}),j(n)!=="svelte-11lpom8"&&(n.textContent=x),o=l(e),m(a.$$.fragment,e)},m(e,u){T(e,n,u),T(e,o,u),h(a,e,u),i=!0},p:J,i(e){i||(f(a.$$.fragment,e),i=!0)},o(e){b(a.$$.fragment,e),i=!1},d(e){e&&(c(n),c(o)),_(a,e)}}}function Rh($){let n,x="Specifying languages:",o,a,i;return a=new E({props:{code:"Y2xpZW50LnRyYW5zbGF0aW9uKCUyMk15JTIwbmFtZSUyMGlzJTIwU2FyYWglMjBKZXNzaWNhJTIwUGFya2VyJTIwYnV0JTIweW91JTIwY2FuJTIwY2FsbCUyMG1lJTIwSmVzc2ljYSUyMiUyQyUyMG1vZGVsJTNEJTIyZmFjZWJvb2slMkZtYmFydC1sYXJnZS01MC1tYW55LXRvLW1hbnktbW10JTIyJTJDJTIwc3JjX2xhbmclM0QlMjJlbl9YWCUyMiUyQyUyMHRndF9sYW5nJTNEJTIyZnJfWFglMjIp",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span>client.translation(<span class="hljs-string">&quot;My name is Sarah Jessica Parker but you can call me Jessica&quot;</span>, model=<span class="hljs-string">&quot;facebook/mbart-large-50-many-to-many-mmt&quot;</span>, src_lang=<span class="hljs-string">&quot;en_XX&quot;</span>, tgt_lang=<span class="hljs-string">&quot;fr_XX&quot;</span>)
<span class="hljs-string">&quot;Mon nom est Sarah Jessica Parker mais vous pouvez m&#x27;appeler Jessica&quot;</span>`,wrap:!1}}),{c(){n=p("p"),n.textContent=x,o=r(),d(a.$$.fragment)},l(e){n=g(e,"P",{"data-svelte-h":!0}),j(n)!=="svelte-mhcj6c"&&(n.textContent=x),o=l(e),m(a.$$.fragment,e)},m(e,u){T(e,n,u),T(e,o,u),h(a,e,u),i=!0},p:J,i(e){i||(f(a.$$.fragment,e),i=!0)},o(e){b(a.$$.fragment,e),i=!1},d(e){e&&(c(n),c(o)),_(a,e)}}}function Bh($){let n,x="Example:",o,a,i;return a=new E({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>)
[
    VisualQuestionAnsweringOutputElement(score=<span class="hljs-number">0.778609573841095</span>, answer=<span class="hljs-string">&#x27;laying down&#x27;</span>),
    VisualQuestionAnsweringOutputElement(score=<span class="hljs-number">0.6957435607910156</span>, answer=<span class="hljs-string">&#x27;sitting&#x27;</span>),
]`,wrap:!1}}),{c(){n=p("p"),n.textContent=x,o=r(),d(a.$$.fragment)},l(e){n=g(e,"P",{"data-svelte-h":!0}),j(n)!=="svelte-11lpom8"&&(n.textContent=x),o=l(e),m(a.$$.fragment,e)},m(e,u){T(e,n,u),T(e,o,u),h(a,e,u),i=!0},p:J,i(e){i||(f(a.$$.fragment,e),i=!0)},o(e){b(a.$$.fragment,e),i=!1},d(e){e&&(c(n),c(o)),_(a,e)}}}function Hh($){let n,x="Example:",o,a,i;return a=new E({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)
[
    ZeroShotClassificationOutputElement(label=<span class="hljs-string">&#x27;scientific discovery&#x27;</span>, score=<span class="hljs-number">0.7961668968200684</span>),
    ZeroShotClassificationOutputElement(label=<span class="hljs-string">&#x27;space &amp; cosmos&#x27;</span>, score=<span class="hljs-number">0.18570658564567566</span>),
    ZeroShotClassificationOutputElement(label=<span class="hljs-string">&#x27;microbiology&#x27;</span>, score=<span class="hljs-number">0.00730885099619627</span>),
    ZeroShotClassificationOutputElement(label=<span class="hljs-string">&#x27;archeology&#x27;</span>, score=<span class="hljs-number">0.006258360575884581</span>),
    ZeroShotClassificationOutputElement(label=<span class="hljs-string">&#x27;robots&#x27;</span>, score=<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>)
[
    ZeroShotClassificationOutputElement(label=<span class="hljs-string">&#x27;scientific discovery&#x27;</span>, score=<span class="hljs-number">0.9829297661781311</span>),
    ZeroShotClassificationOutputElement(label=<span class="hljs-string">&#x27;space &amp; cosmos&#x27;</span>, score=<span class="hljs-number">0.755190908908844</span>),
    ZeroShotClassificationOutputElement(label=<span class="hljs-string">&#x27;microbiology&#x27;</span>, score=<span class="hljs-number">0.0005462635890580714</span>),
    ZeroShotClassificationOutputElement(label=<span class="hljs-string">&#x27;archeology&#x27;</span>, score=<span class="hljs-number">0.00047131875180639327</span>),
    ZeroShotClassificationOutputElement(label=<span class="hljs-string">&#x27;robots&#x27;</span>, score=<span class="hljs-number">0.00030448526376858354</span>),
]`,wrap:!1}}),{c(){n=p("p"),n.textContent=x,o=r(),d(a.$$.fragment)},l(e){n=g(e,"P",{"data-svelte-h":!0}),j(n)!=="svelte-11lpom8"&&(n.textContent=x),o=l(e),m(a.$$.fragment,e)},m(e,u){T(e,n,u),T(e,o,u),h(a,e,u),i=!0},p:J,i(e){i||(f(a.$$.fragment,e),i=!0)},o(e){b(a.$$.fragment,e),i=!1},d(e){e&&(c(n),c(o)),_(a,e)}}}function Sh($){let n,x="Example:",o,a,i;return a=new E({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>)
[ZeroShotImageClassificationOutputElement(label=<span class="hljs-string">&#x27;dog&#x27;</span>, score=<span class="hljs-number">0.956</span>),...]`,wrap:!1}}),{c(){n=p("p"),n.textContent=x,o=r(),d(a.$$.fragment)},l(e){n=g(e,"P",{"data-svelte-h":!0}),j(n)!=="svelte-11lpom8"&&(n.textContent=x),o=l(e),m(a.$$.fragment,e)},m(e,u){T(e,n,u),T(e,o,u),h(a,e,u),i=!0},p:J,i(e){i||(f(a.$$.fragment,e),i=!0)},o(e){b(a.$$.fragment,e),i=!1},d(e){e&&(c(n),c(o)),_(a,e)}}}function Qh($){let n,x="Example:",o,a,i;return a=new E({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(),d(a.$$.fragment)},l(e){n=g(e,"P",{"data-svelte-h":!0}),j(n)!=="svelte-11lpom8"&&(n.textContent=x),o=l(e),m(a.$$.fragment,e)},m(e,u){T(e,n,u),T(e,o,u),h(a,e,u),i=!0},p:J,i(e){i||(f(a.$$.fragment,e),i=!0)},o(e){b(a.$$.fragment,e),i=!1},d(e){e&&(c(n),c(o)),_(a,e)}}}function Fh($){let n,x,o,a,i,e,u,Cu=`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:`,$l,Za,vu=`<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>`,Il,qa,Ju=`These services can be called with the <a href="/docs/huggingface_hub/main/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.`,Ml,Wa,wl,C,Na,pi,qo,Uu="Initialize a new Inference Client.",gi,Wo,ku=`<a href="/docs/huggingface_hub/main/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.`,ui,xe,Ga,di,No,Eu="Perform audio classification on the provided audio content.",mi,it,hi,Te,Va,fi,Go,Zu="Performs multiple tasks related to audio-to-audio depending on the model (eg: speech enhancement, source separation).",bi,ct,_i,je,Aa,yi,Vo,qu="Perform automatic speech recognition (ASR or audio-to-text) on the given audio content.",xi,pt,Ti,$e,Da,ji,Ao,Wu="Generate conversational responses based on the given input text (i.e. chat with the API).",$i,gt,Ii,Ie,Ya,Mi,Do,Nu="Answer questions on document images.",wi,ut,Ci,Me,Ra,vi,Yo,Gu="Generate embeddings for a given text.",Ji,dt,Ui,we,Ba,ki,Ro,Vu="Fill in a hole with a missing word (token to be precise).",Ei,mt,Zi,F,Ha,qi,Bo,Au="Get the status of a model hosted on the Inference API.",Wi,ht,Ni,ft,Gi,bt,Sa,Vi,Ho,Du="Get the model Hugging Face recommends for the input task.",Ai,Ce,Qa,Di,So,Yu="Perform image classification on the given image using the specified model.",Yi,_t,Ri,P,Fa,Bi,Qo,Ru="Perform image segmentation on the given image using the specified model.",Hi,yt,Si,xt,Qi,L,Pa,Fi,Fo,Bu="Perform image-to-image translation using a specified model.",Pi,Tt,Li,jt,Xi,X,La,zi,Po,Hu="Takes an input image and return text.",Oi,Lo,Su=`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.`,Ki,$t,ec,A,Xa,nc,Xo,Qu="List models currently deployed on the Inference API service.",tc,zo,Fu=`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.`,ac,It,sc,Mt,oc,z,za,rc,Oo,Pu="Perform object detection on the given image using the specified model.",lc,wt,ic,Ct,cc,vt,Oa,pc,Ko,Lu="Make a POST request to the inference server.",gc,ve,Ka,uc,er,Xu="Retrieve the answer to a question from a given text.",dc,Jt,mc,Je,es,hc,nr,zu="Compute the semantic similarity between a sentence and a list of other sentences by comparing their embeddings.",fc,Ut,bc,Ue,ns,_c,tr,Ou="Generate a summary of a given text using a specified model.",yc,kt,xc,ke,ts,Tc,ar,Ku="Retrieve the answer to a question from information given in a table.",jc,Et,$c,Ee,as,Ic,sr,ed="Classifying a target category (a group) based on a set of attributes.",Mc,Zt,wc,Ze,ss,Cc,or,nd="Predicting a numerical target value given a set of attributes/features in a table.",vc,qt,Jc,qe,os,Uc,rr,td="Perform text classification (e.g. sentiment-analysis) on the given text.",kc,Wt,Ec,q,rs,Zc,lr,ad="Given a prompt, generate the following text.",qc,ir,sd=`It is recommended to have Pydantic installed in order to get inputs validated. This is preferable as it allow
early failures.`,Wc,cr,od=`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.`,Nc,pr,rd='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>.',Gc,Nt,Vc,O,ls,Ac,gr,ld="Generate an image based on a given text using a specified model.",Dc,Gt,Yc,Vt,Rc,We,is,Bc,ur,id="Synthesize an audio of a voice pronouncing a given text.",Hc,At,Sc,Ne,cs,Qc,dr,cd=`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.`,Fc,Dt,Pc,D,ps,Lc,mr,pd="Convert text from one language to another.",Xc,hr,gd=`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 depend on the model.
However, it is possible to specify source and target languages for certain models. If you are working with one of these models,
you can use <code>src_lang</code> and <code>tgt_lang</code> arguments to pass the relevant information.
You can find this information in the model card.`,zc,Yt,Oc,Rt,Kc,Ge,gs,ep,fr,ud="Answering open-ended questions based on an image.",np,Bt,tp,Ve,us,ap,br,dd="Provide as input a text and a set of candidate labels to classify the input text.",sp,Ht,op,Ae,ds,rp,_r,md="Provide input image and text labels to predict text labels for the image.",lp,St,Cl,ms,vl,hs,hd=`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:`,Jl,fs,Ul,v,bs,ip,yr,fd="Initialize a new Inference Client.",cp,xr,bd=`<a href="/docs/huggingface_hub/main/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.`,pp,De,_s,gp,Tr,_d="Perform audio classification on the provided audio content.",up,Qt,dp,Ye,ys,mp,jr,yd="Performs multiple tasks related to audio-to-audio depending on the model (eg: speech enhancement, source separation).",hp,Ft,fp,Re,xs,bp,$r,xd="Perform automatic speech recognition (ASR or audio-to-text) on the given audio content.",_p,Pt,yp,Be,Ts,xp,Ir,Td="Generate conversational responses based on the given input text (i.e. chat with the API).",Tp,Lt,jp,He,js,$p,Mr,jd="Answer questions on document images.",Ip,Xt,Mp,Se,$s,wp,wr,$d="Generate embeddings for a given text.",Cp,zt,vp,Qe,Is,Jp,Cr,Id="Fill in a hole with a missing word (token to be precise).",Up,Ot,kp,K,Ms,Ep,vr,Md="Get the status of a model hosted on the Inference API.",Zp,Kt,qp,ea,Wp,na,ws,Np,Jr,wd="Get the model Hugging Face recommends for the input task.",Gp,Fe,Cs,Vp,Ur,Cd="Perform image classification on the given image using the specified model.",Ap,ta,Dp,ee,vs,Yp,kr,vd="Perform image segmentation on the given image using the specified model.",Rp,aa,Bp,sa,Hp,ne,Js,Sp,Er,Jd="Perform image-to-image translation using a specified model.",Qp,oa,Fp,ra,Pp,te,Us,Lp,Zr,Ud="Takes an input image and return text.",Xp,qr,kd=`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.`,zp,la,Op,Y,ks,Kp,Wr,Ed="List models currently deployed on the Inference API service.",eg,Nr,Zd=`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.`,ng,ia,tg,ca,ag,ae,Es,sg,Gr,qd="Perform object detection on the given image using the specified model.",og,pa,rg,ga,lg,ua,Zs,ig,Vr,Wd="Make a POST request to the inference server.",cg,Pe,qs,pg,Ar,Nd="Retrieve the answer to a question from a given text.",gg,da,ug,Le,Ws,dg,Dr,Gd="Compute the semantic similarity between a sentence and a list of other sentences by comparing their embeddings.",mg,ma,hg,Xe,Ns,fg,Yr,Vd="Generate a summary of a given text using a specified model.",bg,ha,_g,ze,Gs,yg,Rr,Ad="Retrieve the answer to a question from information given in a table.",xg,fa,Tg,Oe,Vs,jg,Br,Dd="Classifying a target category (a group) based on a set of attributes.",$g,ba,Ig,Ke,As,Mg,Hr,Yd="Predicting a numerical target value given a set of attributes/features in a table.",wg,_a,Cg,en,Ds,vg,Sr,Rd="Perform text classification (e.g. sentiment-analysis) on the given text.",Jg,ya,Ug,W,Ys,kg,Qr,Bd="Given a prompt, generate the following text.",Eg,Fr,Hd=`It is recommended to have Pydantic installed in order to get inputs validated. This is preferable as it allow
early failures.`,Zg,Pr,Sd=`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.`,qg,Lr,Qd='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>.',Wg,xa,Ng,se,Rs,Gg,Xr,Fd="Generate an image based on a given text using a specified model.",Vg,Ta,Ag,ja,Dg,nn,Bs,Yg,zr,Pd="Synthesize an audio of a voice pronouncing a given text.",Rg,$a,Bg,tn,Hs,Hg,Or,Ld=`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.`,Sg,Ia,Qg,R,Ss,Fg,Kr,Xd="Convert text from one language to another.",Pg,el,zd=`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 depend on the model.
However, it is possible to specify source and target languages for certain models. If you are working with one of these models,
you can use <code>src_lang</code> and <code>tgt_lang</code> arguments to pass the relevant information.
You can find this information in the model card.`,Lg,Ma,Xg,wa,zg,an,Qs,Og,nl,Od="Answering open-ended questions based on an image.",Kg,Ca,eu,sn,Fs,nu,tl,Kd="Provide as input a text and a set of candidate labels to classify the input text.",tu,va,au,on,Ps,su,al,em="Provide input image and text labels to predict text labels for the image.",ou,Ja,kl,Ls,El,cn,Xs,ru,sl,nm="Error raised when a model is unavailable or the request times out.",Zl,zs,ql,Os,tm="For most tasks, the return value has a built-in type (string, list, image…). Here is a list for the more complex types.",Wl,Ks,Nl,pn,eo,lu,ol,am='Dictionary containing the “conversation” part of a <a href="/docs/huggingface_hub/main/en/package_reference/inference_client#huggingface_hub.InferenceClient.conversational">conversational()</a> task.',Gl,no,Vl,gn,to,iu,rl,sm='Dictionary containing the output of a  <a href="/docs/huggingface_hub/main/en/package_reference/inference_client#huggingface_hub.InferenceClient.conversational">conversational()</a> task.',Al,ao,Dl,un,so,cu,ll,om="This Dataclass represents the the model status in the Hugging Face Inference API.",Yl,oo,Rl,ro,rm=`<a href="/docs/huggingface_hub/main/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.`,Bl,lo,lm=`You can find below the dataclasses used to validate data and in particular <a href="/docs/huggingface_hub/main/en/package_reference/inference_client#huggingface_hub.TextGenerationParameters">TextGenerationParameters</a> (input),
<a href="/docs/huggingface_hub/main/en/package_reference/inference_client#huggingface_hub.inference._text_generation.TextGenerationResponse">TextGenerationResponse</a> (output) and
<a href="/docs/huggingface_hub/main/en/package_reference/inference_client#huggingface_hub.inference._text_generation.TextGenerationStreamResponse">TextGenerationStreamResponse</a> (streaming output).`,Hl,dn,io,pu,il,im="Parameters for text generation.",Sl,re,co,gu,cl,cm="Represents a response for text generation.",uu,pl,pm="Only returned when <code>details=True</code>, otherwise a string is returned.",Ql,le,po,du,gl,gm="Represents a response for streaming text generation.",mu,ul,um="Only returned when <code>details=True</code> and <code>stream=True</code>.",Fl,mn,go,hu,dl,dm="Represents an input token.",Pl,hn,uo,fu,ml,mm="Represents a token.",Ll,fn,mo,bu,hl,hm="An enumeration.",Xl,bn,ho,_u,fl,fm="Represents a best-of sequence generated during text generation.",zl,_n,fo,yu,bl,bm="Represents details of a text generation.",Ol,yn,bo,xu,_l,_m="Represents details of a text generation stream.",Kl,_o,ei,yo,ym=`<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/main/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/main/en/package_reference/inference_client#huggingface_hub.InferenceClient">InferenceClient</a> in your scripts.`,ni,N,xo,Tu,yl,xm="Client to configure requests and make calls to the HuggingFace Inference API.",ju,Ua,$u,ka,To,Iu,xl,Tm="Inits headers and API call information.",Mu,Ea,jo,wu,Tl,jm="Make a call to the Inference API.",ti,jl,ai;return i=new ln({props:{title:"Inference",local:"inference",headingTag:"h1"}}),Wa=new ln({props:{title:"Inference Client",local:"huggingface_hub.InferenceClient",headingTag:"h2"}}),Na=new w({props:{name:"class huggingface_hub.InferenceClient",anchor:"huggingface_hub.InferenceClient",parameters:[{name:"model",val:": Optional = None"},{name:"token",val:": Union = None"},{name:"timeout",val:": Optional = None"},{name:"headers",val:": Optional = None"},{name:"cookies",val:": Optional = 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/main/src/huggingface_hub/inference/_client.py#L118"}}),Ga=new w({props:{name:"audio_classification",anchor:"huggingface_hub.InferenceClient.audio_classification",parameters:[{name:"audio",val:": Union"},{name:"model",val:": Optional = 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/main/src/huggingface_hub/inference/_client.py#L277",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>List of <a
  href="/docs/huggingface_hub/main/en/package_reference/inference_types#huggingface_hub.AudioClassificationOutputElement"
>AudioClassificationOutputElement</a> items containing the predicted labels and their confidence.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


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


<ul>
<li><a
  href="/docs/huggingface_hub/main/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/main/en/package_reference/inference_client#huggingface_hub.InferenceTimeoutError"
>InferenceTimeoutError</a> or <code>HTTPError</code></p>
`}}),it=new Z({props:{anchor:"huggingface_hub.InferenceClient.audio_classification.example",$$slots:{default:[vm]},$$scope:{ctx:$}}}),Va=new w({props:{name:"audio_to_audio",anchor:"huggingface_hub.InferenceClient.audio_to_audio",parameters:[{name:"audio",val:": Union"},{name:"model",val:": Optional = None"}],parametersDescription:[{anchor:"huggingface_hub.InferenceClient.audio_to_audio.audio",description:`<strong>audio</strong> (Union[str, Path, bytes, BinaryIO]) &#x2014;
The audio content for the model. 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_to_audio.model",description:`<strong>model</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The model can be any model which takes an audio file and returns another audio file. 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_to_audio will be used.`,name:"model"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/inference/_client.py#L319",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>A list of <a
  href="/docs/huggingface_hub/main/en/package_reference/inference_types#huggingface_hub.AudioToAudioOutputElement"
>AudioToAudioOutputElement</a> items containing audios label, content-type, and audio content in blob.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>List[AudioToAudioOutputElement]</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>
`}}),ct=new Z({props:{anchor:"huggingface_hub.InferenceClient.audio_to_audio.example",$$slots:{default:[Jm]},$$scope:{ctx:$}}}),Aa=new w({props:{name:"automatic_speech_recognition",anchor:"huggingface_hub.InferenceClient.automatic_speech_recognition",parameters:[{name:"audio",val:": Union"},{name:"model",val:": Optional = 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/main/src/huggingface_hub/inference/_client.py#L362",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>An item containing the transcribed text and optionally the timestamp chunks.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


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


<ul>
<li><a
  href="/docs/huggingface_hub/main/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/main/en/package_reference/inference_client#huggingface_hub.InferenceTimeoutError"
>InferenceTimeoutError</a> or <code>HTTPError</code></p>
`}}),pt=new Z({props:{anchor:"huggingface_hub.InferenceClient.automatic_speech_recognition.example",$$slots:{default:[Um]},$$scope:{ctx:$}}}),Da=new w({props:{name:"conversational",anchor:"huggingface_hub.InferenceClient.conversational",parameters:[{name:"text",val:": str"},{name:"generated_responses",val:": Optional = None"},{name:"past_user_inputs",val:": Optional = None"},{name:"parameters",val:": Optional = None"},{name:"model",val:": Optional = 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/main/src/huggingface_hub/inference/_client.py#L398",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/main/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/main/en/package_reference/inference_client#huggingface_hub.InferenceTimeoutError"
>InferenceTimeoutError</a> or <code>HTTPError</code></p>
`}}),gt=new Z({props:{anchor:"huggingface_hub.InferenceClient.conversational.example",$$slots:{default:[km]},$$scope:{ctx:$}}}),Ya=new w({props:{name:"document_question_answering",anchor:"huggingface_hub.InferenceClient.document_question_answering",parameters:[{name:"image",val:": Union"},{name:"question",val:": str"},{name:"model",val:": Optional = 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/main/src/huggingface_hub/inference/_client.py#L459",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>a list of <a
  href="/docs/huggingface_hub/main/en/package_reference/inference_types#huggingface_hub.DocumentQuestionAnsweringOutputElement"
>DocumentQuestionAnsweringOutputElement</a> items containing the predicted label, associated probability, word ids, and page number.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


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


<ul>
<li><a
  href="/docs/huggingface_hub/main/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/main/en/package_reference/inference_client#huggingface_hub.InferenceTimeoutError"
>InferenceTimeoutError</a> or <code>HTTPError</code></p>
`}}),ut=new Z({props:{anchor:"huggingface_hub.InferenceClient.document_question_answering.example",$$slots:{default:[Em]},$$scope:{ctx:$}}}),Ra=new w({props:{name:"feature_extraction",anchor:"huggingface_hub.InferenceClient.feature_extraction",parameters:[{name:"text",val:": str"},{name:"model",val:": Optional = 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/main/src/huggingface_hub/inference/_client.py#L500",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/main/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/main/en/package_reference/inference_client#huggingface_hub.InferenceTimeoutError"
>InferenceTimeoutError</a> or <code>HTTPError</code></p>
`}}),dt=new Z({props:{anchor:"huggingface_hub.InferenceClient.feature_extraction.example",$$slots:{default:[Zm]},$$scope:{ctx:$}}}),Ba=new w({props:{name:"fill_mask",anchor:"huggingface_hub.InferenceClient.fill_mask",parameters:[{name:"text",val:": str"},{name:"model",val:": Optional = 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/main/src/huggingface_hub/inference/_client.py#L536",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>a list of <a
  href="/docs/huggingface_hub/main/en/package_reference/inference_types#huggingface_hub.FillMaskOutputElement"
>FillMaskOutputElement</a> items containing the predicted label, associated
probability, token reference, and completed text.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


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


<ul>
<li><a
  href="/docs/huggingface_hub/main/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/main/en/package_reference/inference_client#huggingface_hub.InferenceTimeoutError"
>InferenceTimeoutError</a> or <code>HTTPError</code></p>
`}}),mt=new Z({props:{anchor:"huggingface_hub.InferenceClient.fill_mask.example",$$slots:{default:[qm]},$$scope:{ctx:$}}}),Ha=new w({props:{name:"get_model_status",anchor:"huggingface_hub.InferenceClient.get_model_status",parameters:[{name:"model",val:": Optional = 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/main/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/main/src/huggingface_hub/inference/_client.py#L2003",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>
`}}),ht=new oe({props:{$$slots:{default:[Wm]},$$scope:{ctx:$}}}),ft=new Z({props:{anchor:"huggingface_hub.InferenceClient.get_model_status.example",$$slots:{default:[Nm]},$$scope:{ctx:$}}}),Sa=new w({props:{name:"get_recommended_model",anchor:"huggingface_hub.InferenceClient.get_recommended_model",parameters:[{name:"task",val:": str"}],parametersDescription:[{anchor:"huggingface_hub.InferenceClient.get_recommended_model.task",description:`<strong>task</strong> (<code>str</code>) &#x2014;
The Hugging Face task to get which model Hugging Face recommends.
All available tasks can be found <a href="https://huggingface.co/tasks" rel="nofollow">here</a>.`,name:"task"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/inference/_client.py#L1979",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>Name of the model recommended for the input task.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


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


<ul>
<li><code>ValueError</code> — If Hugging Face has no recommendation for the input task.</li>
</ul>
`,raiseType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>ValueError</code></p>
`}}),Qa=new w({props:{name:"image_classification",anchor:"huggingface_hub.InferenceClient.image_classification",parameters:[{name:"image",val:": Union"},{name:"model",val:": Optional = 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/main/src/huggingface_hub/inference/_client.py#L572",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>a list of <a
  href="/docs/huggingface_hub/main/en/package_reference/inference_types#huggingface_hub.ImageClassificationOutputElement"
>ImageClassificationOutputElement</a> items containing the predicted label and associated probability.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


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


<ul>
<li><a
  href="/docs/huggingface_hub/main/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/main/en/package_reference/inference_client#huggingface_hub.InferenceTimeoutError"
>InferenceTimeoutError</a> or <code>HTTPError</code></p>
`}}),_t=new Z({props:{anchor:"huggingface_hub.InferenceClient.image_classification.example",$$slots:{default:[Gm]},$$scope:{ctx:$}}}),Fa=new w({props:{name:"image_segmentation",anchor:"huggingface_hub.InferenceClient.image_segmentation",parameters:[{name:"image",val:": Union"},{name:"model",val:": Optional = 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/main/src/huggingface_hub/inference/_client.py#L608",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>A list of <a
  href="/docs/huggingface_hub/main/en/package_reference/inference_types#huggingface_hub.ImageSegmentationOutputElement"
>ImageSegmentationOutputElement</a> items containing the segmented masks and associated attributes.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


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


<ul>
<li><a
  href="/docs/huggingface_hub/main/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/main/en/package_reference/inference_client#huggingface_hub.InferenceTimeoutError"
>InferenceTimeoutError</a> or <code>HTTPError</code></p>
`}}),yt=new oe({props:{warning:!0,$$slots:{default:[Vm]},$$scope:{ctx:$}}}),xt=new Z({props:{anchor:"huggingface_hub.InferenceClient.image_segmentation.example",$$slots:{default:[Am]},$$scope:{ctx:$}}}),Pa=new w({props:{name:"image_to_image",anchor:"huggingface_hub.InferenceClient.image_to_image",parameters:[{name:"image",val:": Union"},{name:"prompt",val:": Optional = None"},{name:"negative_prompt",val:": Optional = None"},{name:"height",val:": Optional = None"},{name:"width",val:": Optional = None"},{name:"num_inference_steps",val:": Optional = None"},{name:"guidance_scale",val:": Optional = None"},{name:"model",val:": Optional = 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/main/src/huggingface_hub/inference/_client.py#L653",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/main/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/main/en/package_reference/inference_client#huggingface_hub.InferenceTimeoutError"
>InferenceTimeoutError</a> or <code>HTTPError</code></p>
`}}),Tt=new oe({props:{warning:!0,$$slots:{default:[Dm]},$$scope:{ctx:$}}}),jt=new Z({props:{anchor:"huggingface_hub.InferenceClient.image_to_image.example",$$slots:{default:[Ym]},$$scope:{ctx:$}}}),La=new w({props:{name:"image_to_text",anchor:"huggingface_hub.InferenceClient.image_to_text",parameters:[{name:"image",val:": Union"},{name:"model",val:": Optional = 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/main/src/huggingface_hub/inference/_client.py#L737",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


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


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


<ul>
<li><a
  href="/docs/huggingface_hub/main/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/main/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:[Rm]},$$scope:{ctx:$}}}),Xa=new w({props:{name:"list_deployed_models",anchor:"huggingface_hub.InferenceClient.list_deployed_models",parameters:[{name:"frameworks",val:": Union = 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/main/src/huggingface_hub/inference/_client.py#L773",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>
`}}),It=new oe({props:{$$slots:{default:[Bm]},$$scope:{ctx:$}}}),Mt=new Z({props:{anchor:"huggingface_hub.InferenceClient.list_deployed_models.example",$$slots:{default:[Hm]},$$scope:{ctx:$}}}),za=new w({props:{name:"object_detection",anchor:"huggingface_hub.InferenceClient.object_detection",parameters:[{name:"image",val:": Union"},{name:"model",val:": Optional = 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/main/src/huggingface_hub/inference/_client.py#L848",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>A list of <a
  href="/docs/huggingface_hub/main/en/package_reference/inference_types#huggingface_hub.ObjectDetectionOutputElement"
>ObjectDetectionOutputElement</a> items containing the bounding boxes and associated attributes.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


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


<ul>
<li><a
  href="/docs/huggingface_hub/main/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/main/en/package_reference/inference_client#huggingface_hub.InferenceTimeoutError"
>InferenceTimeoutError</a> or <code>HTTPError</code> or <code>ValueError</code></p>
`}}),wt=new oe({props:{warning:!0,$$slots:{default:[Sm]},$$scope:{ctx:$}}}),Ct=new Z({props:{anchor:"huggingface_hub.InferenceClient.object_detection.example",$$slots:{default:[Qm]},$$scope:{ctx:$}}}),Oa=new w({props:{name:"post",anchor:"huggingface_hub.InferenceClient.post",parameters:[{name:"json",val:": Union = None"},{name:"data",val:": Union = None"},{name:"model",val:": Optional = None"},{name:"task",val:": Optional = 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, specific to each task. 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, specific to each task.
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. All available tasks can be found
<a href="https://huggingface.co/tasks" rel="nofollow">here</a>. 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/main/src/huggingface_hub/inference/_client.py#L185",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/main/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/main/en/package_reference/inference_client#huggingface_hub.InferenceTimeoutError"
>InferenceTimeoutError</a> or <code>HTTPError</code></p>
`}}),Ka=new w({props:{name:"question_answering",anchor:"huggingface_hub.InferenceClient.question_answering",parameters:[{name:"question",val:": str"},{name:"context",val:": str"},{name:"model",val:": Optional = 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/main/src/huggingface_hub/inference/_client.py#L893",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


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


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


<ul>
<li><a
  href="/docs/huggingface_hub/main/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/main/en/package_reference/inference_client#huggingface_hub.InferenceTimeoutError"
>InferenceTimeoutError</a> or <code>HTTPError</code></p>
`}}),Jt=new Z({props:{anchor:"huggingface_hub.InferenceClient.question_answering.example",$$slots:{default:[Fm]},$$scope:{ctx:$}}}),es=new w({props:{name:"sentence_similarity",anchor:"huggingface_hub.InferenceClient.sentence_similarity",parameters:[{name:"sentence",val:": str"},{name:"other_sentences",val:": List"},{name:"model",val:": Optional = 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/main/src/huggingface_hub/inference/_client.py#L934",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/main/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/main/en/package_reference/inference_client#huggingface_hub.InferenceTimeoutError"
>InferenceTimeoutError</a> or <code>HTTPError</code></p>
`}}),Ut=new Z({props:{anchor:"huggingface_hub.InferenceClient.sentence_similarity.example",$$slots:{default:[Pm]},$$scope:{ctx:$}}}),ns=new w({props:{name:"summarization",anchor:"huggingface_hub.InferenceClient.summarization",parameters:[{name:"text",val:": str"},{name:"parameters",val:": Optional = None"},{name:"model",val:": Optional = 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/main/src/huggingface_hub/inference/_client.py#L981",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><a
  href="/docs/huggingface_hub/main/en/package_reference/inference_types#huggingface_hub.SummarizationOutput"
>SummarizationOutput</a></p>
`,raiseDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<ul>
<li><a
  href="/docs/huggingface_hub/main/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/main/en/package_reference/inference_client#huggingface_hub.InferenceTimeoutError"
>InferenceTimeoutError</a> or <code>HTTPError</code></p>
`}}),kt=new Z({props:{anchor:"huggingface_hub.InferenceClient.summarization.example",$$slots:{default:[Lm]},$$scope:{ctx:$}}}),ts=new w({props:{name:"table_question_answering",anchor:"huggingface_hub.InferenceClient.table_question_answering",parameters:[{name:"table",val:": Dict"},{name:"query",val:": str"},{name:"model",val:": Optional = 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/main/src/huggingface_hub/inference/_client.py#L1024",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


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


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


<ul>
<li><a
  href="/docs/huggingface_hub/main/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/main/en/package_reference/inference_client#huggingface_hub.InferenceTimeoutError"
>InferenceTimeoutError</a> or <code>HTTPError</code></p>
`}}),Et=new Z({props:{anchor:"huggingface_hub.InferenceClient.table_question_answering.example",$$slots:{default:[Xm]},$$scope:{ctx:$}}}),as=new w({props:{name:"tabular_classification",anchor:"huggingface_hub.InferenceClient.tabular_classification",parameters:[{name:"table",val:": Dict"},{name:"model",val:": Optional = None"}],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>, <em>optional</em>) &#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. If not provided, the default recommended tabular classification model will be used.
Defaults to None.`,name:"model"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/inference/_client.py#L1069",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/main/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/main/en/package_reference/inference_client#huggingface_hub.InferenceTimeoutError"
>InferenceTimeoutError</a> or <code>HTTPError</code></p>
`}}),Zt=new Z({props:{anchor:"huggingface_hub.InferenceClient.tabular_classification.example",$$slots:{default:[zm]},$$scope:{ctx:$}}}),ss=new w({props:{name:"tabular_regression",anchor:"huggingface_hub.InferenceClient.tabular_regression",parameters:[{name:"table",val:": Dict"},{name:"model",val:": Optional = None"}],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>, <em>optional</em>) &#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. If not provided, the default recommended tabular regression model will be used.
Defaults to None.`,name:"model"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/inference/_client.py#L1114",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/main/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/main/en/package_reference/inference_client#huggingface_hub.InferenceTimeoutError"
>InferenceTimeoutError</a> or <code>HTTPError</code></p>
`}}),qt=new Z({props:{anchor:"huggingface_hub.InferenceClient.tabular_regression.example",$$slots:{default:[Om]},$$scope:{ctx:$}}}),os=new w({props:{name:"text_classification",anchor:"huggingface_hub.InferenceClient.text_classification",parameters:[{name:"text",val:": str"},{name:"model",val:": Optional = 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/main/src/huggingface_hub/inference/_client.py#L1154",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>a list of <a
  href="/docs/huggingface_hub/main/en/package_reference/inference_types#huggingface_hub.TextClassificationOutputElement"
>TextClassificationOutputElement</a> items containing the predicted label and associated probability.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


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


<ul>
<li><a
  href="/docs/huggingface_hub/main/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/main/en/package_reference/inference_client#huggingface_hub.InferenceTimeoutError"
>InferenceTimeoutError</a> or <code>HTTPError</code></p>
`}}),Wt=new Z({props:{anchor:"huggingface_hub.InferenceClient.text_classification.example",$$slots:{default:[Km]},$$scope:{ctx:$}}}),rs=new w({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:": Optional = None"},{name:"do_sample",val:": bool = False"},{name:"max_new_tokens",val:": int = 20"},{name:"best_of",val:": Optional = None"},{name:"repetition_penalty",val:": Optional = None"},{name:"return_full_text",val:": bool = False"},{name:"seed",val:": Optional = None"},{name:"stop_sequences",val:": Optional = None"},{name:"temperature",val:": Optional = None"},{name:"top_k",val:": Optional = None"},{name:"top_p",val:": Optional = None"},{name:"truncate",val:": Optional = None"},{name:"typical_p",val:": Optional = 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/main/src/huggingface_hub/inference/_client.py#L1281",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/main/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/main/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/main/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/main/en/package_reference/inference_client#huggingface_hub.InferenceTimeoutError"
>InferenceTimeoutError</a> or <code>HTTPError</code></p>
`}}),Nt=new Z({props:{anchor:"huggingface_hub.InferenceClient.text_generation.example",$$slots:{default:[eh]},$$scope:{ctx:$}}}),ls=new w({props:{name:"text_to_image",anchor:"huggingface_hub.InferenceClient.text_to_image",parameters:[{name:"prompt",val:": str"},{name:"negative_prompt",val:": Optional = None"},{name:"height",val:": Optional = None"},{name:"width",val:": Optional = None"},{name:"num_inference_steps",val:": Optional = None"},{name:"guidance_scale",val:": Optional = None"},{name:"model",val:": Optional = 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/main/src/huggingface_hub/inference/_client.py#L1548",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/main/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/main/en/package_reference/inference_client#huggingface_hub.InferenceTimeoutError"
>InferenceTimeoutError</a> or <code>HTTPError</code></p>
`}}),Gt=new oe({props:{warning:!0,$$slots:{default:[nh]},$$scope:{ctx:$}}}),Vt=new Z({props:{anchor:"huggingface_hub.InferenceClient.text_to_image.example",$$slots:{default:[th]},$$scope:{ctx:$}}}),is=new w({props:{name:"text_to_speech",anchor:"huggingface_hub.InferenceClient.text_to_speech",parameters:[{name:"text",val:": str"},{name:"model",val:": Optional = 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/main/src/huggingface_hub/inference/_client.py#L1628",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/main/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/main/en/package_reference/inference_client#huggingface_hub.InferenceTimeoutError"
>InferenceTimeoutError</a> or <code>HTTPError</code></p>
`}}),At=new Z({props:{anchor:"huggingface_hub.InferenceClient.text_to_speech.example",$$slots:{default:[ah]},$$scope:{ctx:$}}}),cs=new w({props:{name:"token_classification",anchor:"huggingface_hub.InferenceClient.token_classification",parameters:[{name:"text",val:": str"},{name:"model",val:": Optional = 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/main/src/huggingface_hub/inference/_client.py#L1660",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>List of <a
  href="/docs/huggingface_hub/main/en/package_reference/inference_types#huggingface_hub.TokenClassificationOutputElement"
>TokenClassificationOutputElement</a> items containing the entity group, confidence score, word, start and end index.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


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


<ul>
<li><a
  href="/docs/huggingface_hub/main/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/main/en/package_reference/inference_client#huggingface_hub.InferenceTimeoutError"
>InferenceTimeoutError</a> or <code>HTTPError</code></p>
`}}),Dt=new Z({props:{anchor:"huggingface_hub.InferenceClient.token_classification.example",$$slots:{default:[sh]},$$scope:{ctx:$}}}),ps=new w({props:{name:"translation",anchor:"huggingface_hub.InferenceClient.translation",parameters:[{name:"text",val:": str"},{name:"model",val:": Optional = None"},{name:"src_lang",val:": Optional = None"},{name:"tgt_lang",val:": Optional = 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"},{anchor:"huggingface_hub.InferenceClient.translation.src_lang",description:`<strong>src_lang</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Source language of the translation task, i.e. input language. Cannot be passed without <code>tgt_lang</code>.`,name:"src_lang"},{anchor:"huggingface_hub.InferenceClient.translation.tgt_lang",description:`<strong>tgt_lang</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Target language of the translation task, i.e. output language. Cannot be passed without <code>src_lang</code>.`,name:"tgt_lang"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/inference/_client.py#L1715",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><a
  href="/docs/huggingface_hub/main/en/package_reference/inference_types#huggingface_hub.TranslationOutput"
>TranslationOutput</a></p>
`,raiseDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<ul>
<li><a
  href="/docs/huggingface_hub/main/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 only one of the <code>src_lang</code> and <code>tgt_lang</code> arguments are provided.</li>
</ul>
`,raiseType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/huggingface_hub/main/en/package_reference/inference_client#huggingface_hub.InferenceTimeoutError"
>InferenceTimeoutError</a> or <code>HTTPError</code> or <code>ValueError</code></p>
`}}),Yt=new Z({props:{anchor:"huggingface_hub.InferenceClient.translation.example",$$slots:{default:[oh]},$$scope:{ctx:$}}}),Rt=new Z({props:{anchor:"huggingface_hub.InferenceClient.translation.example-2",$$slots:{default:[rh]},$$scope:{ctx:$}}}),gs=new w({props:{name:"visual_question_answering",anchor:"huggingface_hub.InferenceClient.visual_question_answering",parameters:[{name:"image",val:": Union"},{name:"question",val:": str"},{name:"model",val:": Optional = 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/main/src/huggingface_hub/inference/_client.py#L1780",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>a list of <a
  href="/docs/huggingface_hub/main/en/package_reference/inference_types#huggingface_hub.VisualQuestionAnsweringOutputElement"
>VisualQuestionAnsweringOutputElement</a> items containing the predicted label and associated probability.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>List[VisualQuestionAnsweringOutputElement]</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>
`}}),Bt=new Z({props:{anchor:"huggingface_hub.InferenceClient.visual_question_answering.example",$$slots:{default:[lh]},$$scope:{ctx:$}}}),us=new w({props:{name:"zero_shot_classification",anchor:"huggingface_hub.InferenceClient.zero_shot_classification",parameters:[{name:"text",val:": str"},{name:"labels",val:": List"},{name:"multi_label",val:": bool = False"},{name:"model",val:": Optional = 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/main/src/huggingface_hub/inference/_client.py#L1827",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>List of <a
  href="/docs/huggingface_hub/main/en/package_reference/inference_types#huggingface_hub.ZeroShotClassificationOutputElement"
>ZeroShotClassificationOutputElement</a> items containing the predicted labels and their confidence.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


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


<ul>
<li><a
  href="/docs/huggingface_hub/main/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/main/en/package_reference/inference_client#huggingface_hub.InferenceTimeoutError"
>InferenceTimeoutError</a> or <code>HTTPError</code></p>
`}}),Ht=new Z({props:{anchor:"huggingface_hub.InferenceClient.zero_shot_classification.example",$$slots:{default:[ih]},$$scope:{ctx:$}}}),ds=new w({props:{name:"zero_shot_image_classification",anchor:"huggingface_hub.InferenceClient.zero_shot_image_classification",parameters:[{name:"image",val:": Union"},{name:"labels",val:": List"},{name:"model",val:": Optional = 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/main/src/huggingface_hub/inference/_client.py#L1902",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>List of <a
  href="/docs/huggingface_hub/main/en/package_reference/inference_types#huggingface_hub.ZeroShotImageClassificationOutputElement"
>ZeroShotImageClassificationOutputElement</a> items containing the predicted labels and their confidence.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


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


<ul>
<li><a
  href="/docs/huggingface_hub/main/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/main/en/package_reference/inference_client#huggingface_hub.InferenceTimeoutError"
>InferenceTimeoutError</a> or <code>HTTPError</code></p>
`}}),St=new Z({props:{anchor:"huggingface_hub.InferenceClient.zero_shot_image_classification.example",$$slots:{default:[ch]},$$scope:{ctx:$}}}),ms=new ln({props:{title:"Async Inference Client",local:"huggingface_hub.AsyncInferenceClient",headingTag:"h2"}}),fs=new E({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}}),bs=new w({props:{name:"class huggingface_hub.AsyncInferenceClient",anchor:"huggingface_hub.AsyncInferenceClient",parameters:[{name:"model",val:": Optional = None"},{name:"token",val:": Union = None"},{name:"timeout",val:": Optional = None"},{name:"headers",val:": Optional = None"},{name:"cookies",val:": Optional = 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/main/src/huggingface_hub/inference/_generated/_async_client.py#L103"}}),_s=new w({props:{name:"audio_classification",anchor:"huggingface_hub.AsyncInferenceClient.audio_classification",parameters:[{name:"audio",val:": Union"},{name:"model",val:": Optional = 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/main/src/huggingface_hub/inference/_generated/_async_client.py#L273",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>List of <a
  href="/docs/huggingface_hub/main/en/package_reference/inference_types#huggingface_hub.AudioClassificationOutputElement"
>AudioClassificationOutputElement</a> items containing the predicted labels and their confidence.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


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


<ul>
<li><a
  href="/docs/huggingface_hub/main/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/main/en/package_reference/inference_client#huggingface_hub.InferenceTimeoutError"
>InferenceTimeoutError</a> or <code>aiohttp.ClientResponseError</code></p>
`}}),Qt=new Z({props:{anchor:"huggingface_hub.AsyncInferenceClient.audio_classification.example",$$slots:{default:[ph]},$$scope:{ctx:$}}}),ys=new w({props:{name:"audio_to_audio",anchor:"huggingface_hub.AsyncInferenceClient.audio_to_audio",parameters:[{name:"audio",val:": Union"},{name:"model",val:": Optional = None"}],parametersDescription:[{anchor:"huggingface_hub.AsyncInferenceClient.audio_to_audio.audio",description:`<strong>audio</strong> (Union[str, Path, bytes, BinaryIO]) &#x2014;
The audio content for the model. 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_to_audio.model",description:`<strong>model</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The model can be any model which takes an audio file and returns another audio file. 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_to_audio will be used.`,name:"model"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/inference/_generated/_async_client.py#L316",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>A list of <a
  href="/docs/huggingface_hub/main/en/package_reference/inference_types#huggingface_hub.AudioToAudioOutputElement"
>AudioToAudioOutputElement</a> items containing audios label, content-type, and audio content in blob.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>List[AudioToAudioOutputElement]</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>
`}}),Ft=new Z({props:{anchor:"huggingface_hub.AsyncInferenceClient.audio_to_audio.example",$$slots:{default:[gh]},$$scope:{ctx:$}}}),xs=new w({props:{name:"automatic_speech_recognition",anchor:"huggingface_hub.AsyncInferenceClient.automatic_speech_recognition",parameters:[{name:"audio",val:": Union"},{name:"model",val:": Optional = 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/main/src/huggingface_hub/inference/_generated/_async_client.py#L360",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>An item containing the transcribed text and optionally the timestamp chunks.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


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


<ul>
<li><a
  href="/docs/huggingface_hub/main/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/main/en/package_reference/inference_client#huggingface_hub.InferenceTimeoutError"
>InferenceTimeoutError</a> or <code>aiohttp.ClientResponseError</code></p>
`}}),Pt=new Z({props:{anchor:"huggingface_hub.AsyncInferenceClient.automatic_speech_recognition.example",$$slots:{default:[uh]},$$scope:{ctx:$}}}),Ts=new w({props:{name:"conversational",anchor:"huggingface_hub.AsyncInferenceClient.conversational",parameters:[{name:"text",val:": str"},{name:"generated_responses",val:": Optional = None"},{name:"past_user_inputs",val:": Optional = None"},{name:"parameters",val:": Optional = None"},{name:"model",val:": Optional = 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/main/src/huggingface_hub/inference/_generated/_async_client.py#L397",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/main/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/main/en/package_reference/inference_client#huggingface_hub.InferenceTimeoutError"
>InferenceTimeoutError</a> or <code>aiohttp.ClientResponseError</code></p>
`}}),Lt=new Z({props:{anchor:"huggingface_hub.AsyncInferenceClient.conversational.example",$$slots:{default:[dh]},$$scope:{ctx:$}}}),js=new w({props:{name:"document_question_answering",anchor:"huggingface_hub.AsyncInferenceClient.document_question_answering",parameters:[{name:"image",val:": Union"},{name:"question",val:": str"},{name:"model",val:": Optional = 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/main/src/huggingface_hub/inference/_generated/_async_client.py#L459",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>a list of <a
  href="/docs/huggingface_hub/main/en/package_reference/inference_types#huggingface_hub.DocumentQuestionAnsweringOutputElement"
>DocumentQuestionAnsweringOutputElement</a> items containing the predicted label, associated probability, word ids, and page number.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


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


<ul>
<li><a
  href="/docs/huggingface_hub/main/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/main/en/package_reference/inference_client#huggingface_hub.InferenceTimeoutError"
>InferenceTimeoutError</a> or <code>aiohttp.ClientResponseError</code></p>
`}}),Xt=new Z({props:{anchor:"huggingface_hub.AsyncInferenceClient.document_question_answering.example",$$slots:{default:[mh]},$$scope:{ctx:$}}}),$s=new w({props:{name:"feature_extraction",anchor:"huggingface_hub.AsyncInferenceClient.feature_extraction",parameters:[{name:"text",val:": str"},{name:"model",val:": Optional = 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/main/src/huggingface_hub/inference/_generated/_async_client.py#L501",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/main/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/main/en/package_reference/inference_client#huggingface_hub.InferenceTimeoutError"
>InferenceTimeoutError</a> or <code>aiohttp.ClientResponseError</code></p>
`}}),zt=new Z({props:{anchor:"huggingface_hub.AsyncInferenceClient.feature_extraction.example",$$slots:{default:[hh]},$$scope:{ctx:$}}}),Is=new w({props:{name:"fill_mask",anchor:"huggingface_hub.AsyncInferenceClient.fill_mask",parameters:[{name:"text",val:": str"},{name:"model",val:": Optional = 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/main/src/huggingface_hub/inference/_generated/_async_client.py#L538",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>a list of <a
  href="/docs/huggingface_hub/main/en/package_reference/inference_types#huggingface_hub.FillMaskOutputElement"
>FillMaskOutputElement</a> items containing the predicted label, associated
probability, token reference, and completed text.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


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


<ul>
<li><a
  href="/docs/huggingface_hub/main/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/main/en/package_reference/inference_client#huggingface_hub.InferenceTimeoutError"
>InferenceTimeoutError</a> or <code>aiohttp.ClientResponseError</code></p>
`}}),Ot=new Z({props:{anchor:"huggingface_hub.AsyncInferenceClient.fill_mask.example",$$slots:{default:[fh]},$$scope:{ctx:$}}}),Ms=new w({props:{name:"get_model_status",anchor:"huggingface_hub.AsyncInferenceClient.get_model_status",parameters:[{name:"model",val:": Optional = 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/main/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/main/src/huggingface_hub/inference/_generated/_async_client.py#L2035",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>
`}}),Kt=new oe({props:{$$slots:{default:[bh]},$$scope:{ctx:$}}}),ea=new Z({props:{anchor:"huggingface_hub.AsyncInferenceClient.get_model_status.example",$$slots:{default:[_h]},$$scope:{ctx:$}}}),ws=new w({props:{name:"get_recommended_model",anchor:"huggingface_hub.AsyncInferenceClient.get_recommended_model",parameters:[{name:"task",val:": str"}],parametersDescription:[{anchor:"huggingface_hub.AsyncInferenceClient.get_recommended_model.task",description:`<strong>task</strong> (<code>str</code>) &#x2014;
The Hugging Face task to get which model Hugging Face recommends.
All available tasks can be found <a href="https://huggingface.co/tasks" rel="nofollow">here</a>.`,name:"task"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/inference/_generated/_async_client.py#L2011",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>Name of the model recommended for the input task.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


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


<ul>
<li><code>ValueError</code> — If Hugging Face has no recommendation for the input task.</li>
</ul>
`,raiseType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>ValueError</code></p>
`}}),Cs=new w({props:{name:"image_classification",anchor:"huggingface_hub.AsyncInferenceClient.image_classification",parameters:[{name:"image",val:": Union"},{name:"model",val:": Optional = 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/main/src/huggingface_hub/inference/_generated/_async_client.py#L575",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>a list of <a
  href="/docs/huggingface_hub/main/en/package_reference/inference_types#huggingface_hub.ImageClassificationOutputElement"
>ImageClassificationOutputElement</a> items containing the predicted label and associated probability.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


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


<ul>
<li><a
  href="/docs/huggingface_hub/main/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/main/en/package_reference/inference_client#huggingface_hub.InferenceTimeoutError"
>InferenceTimeoutError</a> or <code>aiohttp.ClientResponseError</code></p>
`}}),ta=new Z({props:{anchor:"huggingface_hub.AsyncInferenceClient.image_classification.example",$$slots:{default:[yh]},$$scope:{ctx:$}}}),vs=new w({props:{name:"image_segmentation",anchor:"huggingface_hub.AsyncInferenceClient.image_segmentation",parameters:[{name:"image",val:": Union"},{name:"model",val:": Optional = 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/main/src/huggingface_hub/inference/_generated/_async_client.py#L612",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>A list of <a
  href="/docs/huggingface_hub/main/en/package_reference/inference_types#huggingface_hub.ImageSegmentationOutputElement"
>ImageSegmentationOutputElement</a> items containing the segmented masks and associated attributes.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


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


<ul>
<li><a
  href="/docs/huggingface_hub/main/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/main/en/package_reference/inference_client#huggingface_hub.InferenceTimeoutError"
>InferenceTimeoutError</a> or <code>aiohttp.ClientResponseError</code></p>
`}}),aa=new oe({props:{warning:!0,$$slots:{default:[xh]},$$scope:{ctx:$}}}),sa=new Z({props:{anchor:"huggingface_hub.AsyncInferenceClient.image_segmentation.example",$$slots:{default:[Th]},$$scope:{ctx:$}}}),Js=new w({props:{name:"image_to_image",anchor:"huggingface_hub.AsyncInferenceClient.image_to_image",parameters:[{name:"image",val:": Union"},{name:"prompt",val:": Optional = None"},{name:"negative_prompt",val:": Optional = None"},{name:"height",val:": Optional = None"},{name:"width",val:": Optional = None"},{name:"num_inference_steps",val:": Optional = None"},{name:"guidance_scale",val:": Optional = None"},{name:"model",val:": Optional = 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/main/src/huggingface_hub/inference/_generated/_async_client.py#L658",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/main/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/main/en/package_reference/inference_client#huggingface_hub.InferenceTimeoutError"
>InferenceTimeoutError</a> or <code>aiohttp.ClientResponseError</code></p>
`}}),oa=new oe({props:{warning:!0,$$slots:{default:[jh]},$$scope:{ctx:$}}}),ra=new Z({props:{anchor:"huggingface_hub.AsyncInferenceClient.image_to_image.example",$$slots:{default:[$h]},$$scope:{ctx:$}}}),Us=new w({props:{name:"image_to_text",anchor:"huggingface_hub.AsyncInferenceClient.image_to_text",parameters:[{name:"image",val:": Union"},{name:"model",val:": Optional = 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/main/src/huggingface_hub/inference/_generated/_async_client.py#L743",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


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


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


<ul>
<li><a
  href="/docs/huggingface_hub/main/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/main/en/package_reference/inference_client#huggingface_hub.InferenceTimeoutError"
>InferenceTimeoutError</a> or <code>aiohttp.ClientResponseError</code></p>
`}}),la=new Z({props:{anchor:"huggingface_hub.AsyncInferenceClient.image_to_text.example",$$slots:{default:[Ih]},$$scope:{ctx:$}}}),ks=new w({props:{name:"list_deployed_models",anchor:"huggingface_hub.AsyncInferenceClient.list_deployed_models",parameters:[{name:"frameworks",val:": Union = 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/main/src/huggingface_hub/inference/_generated/_async_client.py#L780",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>
`}}),ia=new oe({props:{$$slots:{default:[Mh]},$$scope:{ctx:$}}}),ca=new Z({props:{anchor:"huggingface_hub.AsyncInferenceClient.list_deployed_models.example",$$slots:{default:[wh]},$$scope:{ctx:$}}}),Es=new w({props:{name:"object_detection",anchor:"huggingface_hub.AsyncInferenceClient.object_detection",parameters:[{name:"image",val:": Union"},{name:"model",val:": Optional = 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/main/src/huggingface_hub/inference/_generated/_async_client.py#L861",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>A list of <a
  href="/docs/huggingface_hub/main/en/package_reference/inference_types#huggingface_hub.ObjectDetectionOutputElement"
>ObjectDetectionOutputElement</a> items containing the bounding boxes and associated attributes.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


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


<ul>
<li><a
  href="/docs/huggingface_hub/main/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/main/en/package_reference/inference_client#huggingface_hub.InferenceTimeoutError"
>InferenceTimeoutError</a> or <code>aiohttp.ClientResponseError</code> or <code>ValueError</code></p>
`}}),pa=new oe({props:{warning:!0,$$slots:{default:[Ch]},$$scope:{ctx:$}}}),ga=new Z({props:{anchor:"huggingface_hub.AsyncInferenceClient.object_detection.example",$$slots:{default:[vh]},$$scope:{ctx:$}}}),Zs=new w({props:{name:"post",anchor:"huggingface_hub.AsyncInferenceClient.post",parameters:[{name:"json",val:": Union = None"},{name:"data",val:": Union = None"},{name:"model",val:": Optional = None"},{name:"task",val:": Optional = 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, specific to each task. 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, specific to each task.
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. All available tasks can be found
<a href="https://huggingface.co/tasks" rel="nofollow">here</a>. 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/main/src/huggingface_hub/inference/_generated/_async_client.py#L170",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/main/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/main/en/package_reference/inference_client#huggingface_hub.InferenceTimeoutError"
>InferenceTimeoutError</a> or <code>aiohttp.ClientResponseError</code></p>
`}}),qs=new w({props:{name:"question_answering",anchor:"huggingface_hub.AsyncInferenceClient.question_answering",parameters:[{name:"question",val:": str"},{name:"context",val:": str"},{name:"model",val:": Optional = 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/main/src/huggingface_hub/inference/_generated/_async_client.py#L907",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


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


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


<ul>
<li><a
  href="/docs/huggingface_hub/main/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/main/en/package_reference/inference_client#huggingface_hub.InferenceTimeoutError"
>InferenceTimeoutError</a> or <code>aiohttp.ClientResponseError</code></p>
`}}),da=new Z({props:{anchor:"huggingface_hub.AsyncInferenceClient.question_answering.example",$$slots:{default:[Jh]},$$scope:{ctx:$}}}),Ws=new w({props:{name:"sentence_similarity",anchor:"huggingface_hub.AsyncInferenceClient.sentence_similarity",parameters:[{name:"sentence",val:": str"},{name:"other_sentences",val:": List"},{name:"model",val:": Optional = 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/main/src/huggingface_hub/inference/_generated/_async_client.py#L949",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/main/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/main/en/package_reference/inference_client#huggingface_hub.InferenceTimeoutError"
>InferenceTimeoutError</a> or <code>aiohttp.ClientResponseError</code></p>
`}}),ma=new Z({props:{anchor:"huggingface_hub.AsyncInferenceClient.sentence_similarity.example",$$slots:{default:[Uh]},$$scope:{ctx:$}}}),Ns=new w({props:{name:"summarization",anchor:"huggingface_hub.AsyncInferenceClient.summarization",parameters:[{name:"text",val:": str"},{name:"parameters",val:": Optional = None"},{name:"model",val:": Optional = 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/main/src/huggingface_hub/inference/_generated/_async_client.py#L997",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><a
  href="/docs/huggingface_hub/main/en/package_reference/inference_types#huggingface_hub.SummarizationOutput"
>SummarizationOutput</a></p>
`,raiseDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<ul>
<li><a
  href="/docs/huggingface_hub/main/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/main/en/package_reference/inference_client#huggingface_hub.InferenceTimeoutError"
>InferenceTimeoutError</a> or <code>aiohttp.ClientResponseError</code></p>
`}}),ha=new Z({props:{anchor:"huggingface_hub.AsyncInferenceClient.summarization.example",$$slots:{default:[kh]},$$scope:{ctx:$}}}),Gs=new w({props:{name:"table_question_answering",anchor:"huggingface_hub.AsyncInferenceClient.table_question_answering",parameters:[{name:"table",val:": Dict"},{name:"query",val:": str"},{name:"model",val:": Optional = 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/main/src/huggingface_hub/inference/_generated/_async_client.py#L1041",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


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


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


<ul>
<li><a
  href="/docs/huggingface_hub/main/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/main/en/package_reference/inference_client#huggingface_hub.InferenceTimeoutError"
>InferenceTimeoutError</a> or <code>aiohttp.ClientResponseError</code></p>
`}}),fa=new Z({props:{anchor:"huggingface_hub.AsyncInferenceClient.table_question_answering.example",$$slots:{default:[Eh]},$$scope:{ctx:$}}}),Vs=new w({props:{name:"tabular_classification",anchor:"huggingface_hub.AsyncInferenceClient.tabular_classification",parameters:[{name:"table",val:": Dict"},{name:"model",val:": Optional = None"}],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>, <em>optional</em>) &#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. If not provided, the default recommended tabular classification model will be used.
Defaults to None.`,name:"model"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/inference/_generated/_async_client.py#L1087",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/main/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/main/en/package_reference/inference_client#huggingface_hub.InferenceTimeoutError"
>InferenceTimeoutError</a> or <code>aiohttp.ClientResponseError</code></p>
`}}),ba=new Z({props:{anchor:"huggingface_hub.AsyncInferenceClient.tabular_classification.example",$$slots:{default:[Zh]},$$scope:{ctx:$}}}),As=new w({props:{name:"tabular_regression",anchor:"huggingface_hub.AsyncInferenceClient.tabular_regression",parameters:[{name:"table",val:": Dict"},{name:"model",val:": Optional = None"}],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>, <em>optional</em>) &#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. If not provided, the default recommended tabular regression model will be used.
Defaults to None.`,name:"model"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/inference/_generated/_async_client.py#L1133",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/main/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/main/en/package_reference/inference_client#huggingface_hub.InferenceTimeoutError"
>InferenceTimeoutError</a> or <code>aiohttp.ClientResponseError</code></p>
`}}),_a=new Z({props:{anchor:"huggingface_hub.AsyncInferenceClient.tabular_regression.example",$$slots:{default:[qh]},$$scope:{ctx:$}}}),Ds=new w({props:{name:"text_classification",anchor:"huggingface_hub.AsyncInferenceClient.text_classification",parameters:[{name:"text",val:": str"},{name:"model",val:": Optional = 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/main/src/huggingface_hub/inference/_generated/_async_client.py#L1174",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>a list of <a
  href="/docs/huggingface_hub/main/en/package_reference/inference_types#huggingface_hub.TextClassificationOutputElement"
>TextClassificationOutputElement</a> items containing the predicted label and associated probability.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


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


<ul>
<li><a
  href="/docs/huggingface_hub/main/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/main/en/package_reference/inference_client#huggingface_hub.InferenceTimeoutError"
>InferenceTimeoutError</a> or <code>aiohttp.ClientResponseError</code></p>
`}}),ya=new Z({props:{anchor:"huggingface_hub.AsyncInferenceClient.text_classification.example",$$slots:{default:[Wh]},$$scope:{ctx:$}}}),Ys=new w({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:": Optional = None"},{name:"do_sample",val:": bool = False"},{name:"max_new_tokens",val:": int = 20"},{name:"best_of",val:": Optional = None"},{name:"repetition_penalty",val:": Optional = None"},{name:"return_full_text",val:": bool = False"},{name:"seed",val:": Optional = None"},{name:"stop_sequences",val:": Optional = None"},{name:"temperature",val:": Optional = None"},{name:"top_k",val:": Optional = None"},{name:"top_p",val:": Optional = None"},{name:"truncate",val:": Optional = None"},{name:"typical_p",val:": Optional = 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/main/src/huggingface_hub/inference/_generated/_async_client.py#L1304",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/main/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/main/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/main/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/main/en/package_reference/inference_client#huggingface_hub.InferenceTimeoutError"
>InferenceTimeoutError</a> or <code>aiohttp.ClientResponseError</code></p>
`}}),xa=new Z({props:{anchor:"huggingface_hub.AsyncInferenceClient.text_generation.example",$$slots:{default:[Nh]},$$scope:{ctx:$}}}),Rs=new w({props:{name:"text_to_image",anchor:"huggingface_hub.AsyncInferenceClient.text_to_image",parameters:[{name:"prompt",val:": str"},{name:"negative_prompt",val:": Optional = None"},{name:"height",val:": Optional = None"},{name:"width",val:": Optional = None"},{name:"num_inference_steps",val:": Optional = None"},{name:"guidance_scale",val:": Optional = None"},{name:"model",val:": Optional = 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/main/src/huggingface_hub/inference/_generated/_async_client.py#L1573",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/main/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/main/en/package_reference/inference_client#huggingface_hub.InferenceTimeoutError"
>InferenceTimeoutError</a> or <code>aiohttp.ClientResponseError</code></p>
`}}),Ta=new oe({props:{warning:!0,$$slots:{default:[Gh]},$$scope:{ctx:$}}}),ja=new Z({props:{anchor:"huggingface_hub.AsyncInferenceClient.text_to_image.example",$$slots:{default:[Vh]},$$scope:{ctx:$}}}),Bs=new w({props:{name:"text_to_speech",anchor:"huggingface_hub.AsyncInferenceClient.text_to_speech",parameters:[{name:"text",val:": str"},{name:"model",val:": Optional = 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/main/src/huggingface_hub/inference/_generated/_async_client.py#L1654",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/main/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/main/en/package_reference/inference_client#huggingface_hub.InferenceTimeoutError"
>InferenceTimeoutError</a> or <code>aiohttp.ClientResponseError</code></p>
`}}),$a=new Z({props:{anchor:"huggingface_hub.AsyncInferenceClient.text_to_speech.example",$$slots:{default:[Ah]},$$scope:{ctx:$}}}),Hs=new w({props:{name:"token_classification",anchor:"huggingface_hub.AsyncInferenceClient.token_classification",parameters:[{name:"text",val:": str"},{name:"model",val:": Optional = 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/main/src/huggingface_hub/inference/_generated/_async_client.py#L1687",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>List of <a
  href="/docs/huggingface_hub/main/en/package_reference/inference_types#huggingface_hub.TokenClassificationOutputElement"
>TokenClassificationOutputElement</a> items containing the entity group, confidence score, word, start and end index.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


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


<ul>
<li><a
  href="/docs/huggingface_hub/main/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/main/en/package_reference/inference_client#huggingface_hub.InferenceTimeoutError"
>InferenceTimeoutError</a> or <code>aiohttp.ClientResponseError</code></p>
`}}),Ia=new Z({props:{anchor:"huggingface_hub.AsyncInferenceClient.token_classification.example",$$slots:{default:[Dh]},$$scope:{ctx:$}}}),Ss=new w({props:{name:"translation",anchor:"huggingface_hub.AsyncInferenceClient.translation",parameters:[{name:"text",val:": str"},{name:"model",val:": Optional = None"},{name:"src_lang",val:": Optional = None"},{name:"tgt_lang",val:": Optional = 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"},{anchor:"huggingface_hub.AsyncInferenceClient.translation.src_lang",description:`<strong>src_lang</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Source language of the translation task, i.e. input language. Cannot be passed without <code>tgt_lang</code>.`,name:"src_lang"},{anchor:"huggingface_hub.AsyncInferenceClient.translation.tgt_lang",description:`<strong>tgt_lang</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Target language of the translation task, i.e. output language. Cannot be passed without <code>src_lang</code>.`,name:"tgt_lang"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/inference/_generated/_async_client.py#L1743",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><a
  href="/docs/huggingface_hub/main/en/package_reference/inference_types#huggingface_hub.TranslationOutput"
>TranslationOutput</a></p>
`,raiseDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<ul>
<li><a
  href="/docs/huggingface_hub/main/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 only one of the <code>src_lang</code> and <code>tgt_lang</code> arguments are provided.</li>
</ul>
`,raiseType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/huggingface_hub/main/en/package_reference/inference_client#huggingface_hub.InferenceTimeoutError"
>InferenceTimeoutError</a> or <code>aiohttp.ClientResponseError</code> or <code>ValueError</code></p>
`}}),Ma=new Z({props:{anchor:"huggingface_hub.AsyncInferenceClient.translation.example",$$slots:{default:[Yh]},$$scope:{ctx:$}}}),wa=new Z({props:{anchor:"huggingface_hub.AsyncInferenceClient.translation.example-2",$$slots:{default:[Rh]},$$scope:{ctx:$}}}),Qs=new w({props:{name:"visual_question_answering",anchor:"huggingface_hub.AsyncInferenceClient.visual_question_answering",parameters:[{name:"image",val:": Union"},{name:"question",val:": str"},{name:"model",val:": Optional = 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/main/src/huggingface_hub/inference/_generated/_async_client.py#L1809",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>a list of <a
  href="/docs/huggingface_hub/main/en/package_reference/inference_types#huggingface_hub.VisualQuestionAnsweringOutputElement"
>VisualQuestionAnsweringOutputElement</a> items containing the predicted label and associated probability.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>List[VisualQuestionAnsweringOutputElement]</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>
`}}),Ca=new Z({props:{anchor:"huggingface_hub.AsyncInferenceClient.visual_question_answering.example",$$slots:{default:[Bh]},$$scope:{ctx:$}}}),Fs=new w({props:{name:"zero_shot_classification",anchor:"huggingface_hub.AsyncInferenceClient.zero_shot_classification",parameters:[{name:"text",val:": str"},{name:"labels",val:": List"},{name:"multi_label",val:": bool = False"},{name:"model",val:": Optional = 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/main/src/huggingface_hub/inference/_generated/_async_client.py#L1857",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>List of <a
  href="/docs/huggingface_hub/main/en/package_reference/inference_types#huggingface_hub.ZeroShotClassificationOutputElement"
>ZeroShotClassificationOutputElement</a> items containing the predicted labels and their confidence.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


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


<ul>
<li><a
  href="/docs/huggingface_hub/main/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/main/en/package_reference/inference_client#huggingface_hub.InferenceTimeoutError"
>InferenceTimeoutError</a> or <code>aiohttp.ClientResponseError</code></p>
`}}),va=new Z({props:{anchor:"huggingface_hub.AsyncInferenceClient.zero_shot_classification.example",$$slots:{default:[Hh]},$$scope:{ctx:$}}}),Ps=new w({props:{name:"zero_shot_image_classification",anchor:"huggingface_hub.AsyncInferenceClient.zero_shot_image_classification",parameters:[{name:"image",val:": Union"},{name:"labels",val:": List"},{name:"model",val:": Optional = 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/main/src/huggingface_hub/inference/_generated/_async_client.py#L1933",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>List of <a
  href="/docs/huggingface_hub/main/en/package_reference/inference_types#huggingface_hub.ZeroShotImageClassificationOutputElement"
>ZeroShotImageClassificationOutputElement</a> items containing the predicted labels and their confidence.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


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


<ul>
<li><a
  href="/docs/huggingface_hub/main/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/main/en/package_reference/inference_client#huggingface_hub.InferenceTimeoutError"
>InferenceTimeoutError</a> or <code>aiohttp.ClientResponseError</code></p>
`}}),Ja=new Z({props:{anchor:"huggingface_hub.AsyncInferenceClient.zero_shot_image_classification.example",$$slots:{default:[Sh]},$$scope:{ctx:$}}}),Ls=new ln({props:{title:"InferenceTimeoutError",local:"huggingface_hub.InferenceTimeoutError",headingTag:"h2"}}),Xs=new w({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/main/src/huggingface_hub/inference/_common.py#L102"}}),zs=new ln({props:{title:"Return types",local:"return-types",headingTag:"h2"}}),Ks=new ln({props:{title:"ConversationalOutputConversation",local:"huggingface_hub.inference._types.ConversationalOutputConversation",headingTag:"h3"}}),eo=new w({props:{name:"class huggingface_hub.inference._types.ConversationalOutputConversation",anchor:"huggingface_hub.inference._types.ConversationalOutputConversation",parameters:"",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/main/src/huggingface_hub/inference/_types.py#L24"}}),no=new ln({props:{title:"ConversationalOutput",local:"huggingface_hub.inference._types.ConversationalOutput",headingTag:"h3"}}),to=new w({props:{name:"class huggingface_hub.inference._types.ConversationalOutput",anchor:"huggingface_hub.inference._types.ConversationalOutput",parameters:"",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/main/src/huggingface_hub/inference/_types.py#L38"}}),ao=new ln({props:{title:"ModelStatus",local:"huggingface_hub.inference._common.ModelStatus",headingTag:"h3"}}),so=new w({props:{name:"class huggingface_hub.inference._common.ModelStatus",anchor:"huggingface_hub.inference._common.ModelStatus",parameters:[{name:"loaded",val:": bool"},{name:"state",val:": str"},{name:"compute_type",val:": Dict"},{name:"framework",val:": str"}],parametersDescription:[{anchor:"huggingface_hub.inference._common.ModelStatus.loaded",description:`<strong>loaded</strong> (<code>bool</code>) &#x2014;
If the model is currently loaded into Hugging Face&#x2019;s InferenceAPI. Models
are loaded on-demand, leading to the user&#x2019;s first request taking longer.
If a model is loaded, you can be assured that it is in a healthy state.`,name:"loaded"},{anchor:"huggingface_hub.inference._common.ModelStatus.state",description:`<strong>state</strong> (<code>str</code>) &#x2014;
The current state of the model. This can be &#x2018;Loaded&#x2019;, &#x2018;Loadable&#x2019;, &#x2018;TooBig&#x2019;.
If a model&#x2019;s state is &#x2018;Loadable&#x2019;, it&#x2019;s not too big and has a supported
backend. Loadable models are automatically loaded when the user first
requests inference on the endpoint. This means it is transparent for the
user to load a model, except that the first call takes longer to complete.`,name:"state"},{anchor:"huggingface_hub.inference._common.ModelStatus.compute_type",description:`<strong>compute_type</strong> (<code>Dict</code>) &#x2014;
Information about the compute resource the model is using or will use, such as &#x2018;gpu&#x2019; type and number of
replicas.`,name:"compute_type"},{anchor:"huggingface_hub.inference._common.ModelStatus.framework",description:`<strong>framework</strong> (<code>str</code>) &#x2014;
The name of the framework that the model was built with, such as &#x2018;transformers&#x2019;
or &#x2018;text-generation-inference&#x2019;.`,name:"framework"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/inference/_common.py#L72"}}),oo=new ln({props:{title:"Text generation types",local:"huggingface_hub.TextGenerationParameters",headingTag:"h3"}}),io=new w({props:{name:"class huggingface_hub.TextGenerationParameters",anchor:"huggingface_hub.TextGenerationParameters",parameters:[{name:"do_sample",val:": bool = False"},{name:"max_new_tokens",val:": int = 20"},{name:"repetition_penalty",val:": Optional = None"},{name:"return_full_text",val:": bool = False"},{name:"stop",val:": List = <factory>"},{name:"seed",val:": Optional = None"},{name:"temperature",val:": Optional = None"},{name:"top_k",val:": Optional = None"},{name:"top_p",val:": Optional = None"},{name:"truncate",val:": Optional = None"},{name:"typical_p",val:": Optional = None"},{name:"best_of",val:": Optional = None"},{name:"watermark",val:": bool = False"},{name:"details",val:": bool = False"},{name:"decoder_input_details",val:": bool = False"}],parametersDescription:[{anchor:"huggingface_hub.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.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.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.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.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.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.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.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.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.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.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.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.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.TextGenerationParameters.details",description:`<strong>details</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Get generation details. Defaults to False.`,name:"details"},{anchor:"huggingface_hub.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/main/src/huggingface_hub/inference/_text_generation.py#L59"}}),co=new w({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:": Optional = 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/main/src/huggingface_hub/inference/_text_generation.py#L394"}}),po=new w({props:{name:"class huggingface_hub.inference._text_generation.TextGenerationStreamResponse",anchor:"huggingface_hub.inference._text_generation.TextGenerationStreamResponse",parameters:[{name:"token",val:": Token"},{name:"index",val:": Optional = None"},{name:"generated_text",val:": Optional = None"},{name:"details",val:": Optional = 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.index",description:`<strong>index</strong> (<code>Optional[int]</code>, <em>optional</em>) &#x2014;
The token index within the stream. Optional to support older clients that omit it.`,name:"index"},{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/main/src/huggingface_hub/inference/_text_generation.py#L444"}}),go=new w({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:": Optional = 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/main/src/huggingface_hub/inference/_text_generation.py#L238"}}),uo=new w({props:{name:"class huggingface_hub.Token",anchor:"huggingface_hub.Token",parameters:[{name:"id",val:": int"},{name:"text",val:": str"},{name:"logprob",val:": float"},{name:"special",val:": bool"}],parametersDescription:[{anchor:"huggingface_hub.Token.id",description:`<strong>id</strong> (<code>int</code>) &#x2014;
Token ID from the model tokenizer.`,name:"id"},{anchor:"huggingface_hub.Token.text",description:`<strong>text</strong> (<code>str</code>) &#x2014;
Token text.`,name:"text"},{anchor:"huggingface_hub.Token.logprob",description:`<strong>logprob</strong> (<code>float</code>) &#x2014;
Log probability of the token.`,name:"logprob"},{anchor:"huggingface_hub.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/main/src/huggingface_hub/inference/_text_generation.py#L262"}}),mo=new w({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/main/src/huggingface_hub/inference/_text_generation.py#L291"}}),ho=new w({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:": Optional = None"},{name:"prefill",val:": List = <factory>"},{name:"tokens",val:": List = <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/main/src/huggingface_hub/inference/_text_generation.py#L301"}}),fo=new w({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:": Optional = None"},{name:"prefill",val:": List = <factory>"},{name:"tokens",val:": List = <factory>"},{name:"best_of_sequences",val:": Optional = 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/main/src/huggingface_hub/inference/_text_generation.py#L345"}}),bo=new w({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:": Optional = 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/main/src/huggingface_hub/inference/_text_generation.py#L421"}}),_o=new ln({props:{title:"InferenceAPI",local:"huggingface_hub.InferenceApi",headingTag:"h2"}}),xo=new w({props:{name:"class huggingface_hub.InferenceApi",anchor:"huggingface_hub.InferenceApi",parameters:[{name:"repo_id",val:": str"},{name:"task",val:": Optional = None"},{name:"token",val:": Optional = None"},{name:"gpu",val:": bool = False"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/inference_api.py#L46"}}),Ua=new Z({props:{anchor:"huggingface_hub.InferenceApi.example",$$slots:{default:[Qh]},$$scope:{ctx:$}}}),To=new w({props:{name:"__init__",anchor:"huggingface_hub.InferenceApi.__init__",parameters:[{name:"repo_id",val:": str"},{name:"task",val:": Optional = None"},{name:"token",val:": Optional = 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/main/src/huggingface_hub/inference_api.py#L93"}}),jo=new w({props:{name:"__call__",anchor:"huggingface_hub.InferenceApi.__call__",parameters:[{name:"inputs",val:": Union = None"},{name:"params",val:": Optional = None"},{name:"data",val:": Optional = 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/main/src/huggingface_hub/inference_api.py#L158"}}),{c(){n=p("meta"),x=r(),o=p("p"),a=r(),d(i.$$.fragment),e=r(),u=p("p"),u.innerHTML=Cu,$l=r(),Za=p("ul"),Za.innerHTML=vu,Il=r(),qa=p("p"),qa.innerHTML=Ju,Ml=r(),d(Wa.$$.fragment),wl=r(),C=p("div"),d(Na.$$.fragment),pi=r(),qo=p("p"),qo.textContent=Uu,gi=r(),Wo=p("p"),Wo.innerHTML=ku,ui=r(),xe=p("div"),d(Ga.$$.fragment),di=r(),No=p("p"),No.textContent=Eu,mi=r(),d(it.$$.fragment),hi=r(),Te=p("div"),d(Va.$$.fragment),fi=r(),Go=p("p"),Go.textContent=Zu,bi=r(),d(ct.$$.fragment),_i=r(),je=p("div"),d(Aa.$$.fragment),yi=r(),Vo=p("p"),Vo.textContent=qu,xi=r(),d(pt.$$.fragment),Ti=r(),$e=p("div"),d(Da.$$.fragment),ji=r(),Ao=p("p"),Ao.textContent=Wu,$i=r(),d(gt.$$.fragment),Ii=r(),Ie=p("div"),d(Ya.$$.fragment),Mi=r(),Do=p("p"),Do.textContent=Nu,wi=r(),d(ut.$$.fragment),Ci=r(),Me=p("div"),d(Ra.$$.fragment),vi=r(),Yo=p("p"),Yo.textContent=Gu,Ji=r(),d(dt.$$.fragment),Ui=r(),we=p("div"),d(Ba.$$.fragment),ki=r(),Ro=p("p"),Ro.textContent=Vu,Ei=r(),d(mt.$$.fragment),Zi=r(),F=p("div"),d(Ha.$$.fragment),qi=r(),Bo=p("p"),Bo.textContent=Au,Wi=r(),d(ht.$$.fragment),Ni=r(),d(ft.$$.fragment),Gi=r(),bt=p("div"),d(Sa.$$.fragment),Vi=r(),Ho=p("p"),Ho.textContent=Du,Ai=r(),Ce=p("div"),d(Qa.$$.fragment),Di=r(),So=p("p"),So.textContent=Yu,Yi=r(),d(_t.$$.fragment),Ri=r(),P=p("div"),d(Fa.$$.fragment),Bi=r(),Qo=p("p"),Qo.textContent=Ru,Hi=r(),d(yt.$$.fragment),Si=r(),d(xt.$$.fragment),Qi=r(),L=p("div"),d(Pa.$$.fragment),Fi=r(),Fo=p("p"),Fo.textContent=Bu,Pi=r(),d(Tt.$$.fragment),Li=r(),d(jt.$$.fragment),Xi=r(),X=p("div"),d(La.$$.fragment),zi=r(),Po=p("p"),Po.textContent=Hu,Oi=r(),Lo=p("p"),Lo.textContent=Su,Ki=r(),d($t.$$.fragment),ec=r(),A=p("div"),d(Xa.$$.fragment),nc=r(),Xo=p("p"),Xo.textContent=Qu,tc=r(),zo=p("p"),zo.innerHTML=Fu,ac=r(),d(It.$$.fragment),sc=r(),d(Mt.$$.fragment),oc=r(),z=p("div"),d(za.$$.fragment),rc=r(),Oo=p("p"),Oo.textContent=Pu,lc=r(),d(wt.$$.fragment),ic=r(),d(Ct.$$.fragment),cc=r(),vt=p("div"),d(Oa.$$.fragment),pc=r(),Ko=p("p"),Ko.textContent=Lu,gc=r(),ve=p("div"),d(Ka.$$.fragment),uc=r(),er=p("p"),er.textContent=Xu,dc=r(),d(Jt.$$.fragment),mc=r(),Je=p("div"),d(es.$$.fragment),hc=r(),nr=p("p"),nr.textContent=zu,fc=r(),d(Ut.$$.fragment),bc=r(),Ue=p("div"),d(ns.$$.fragment),_c=r(),tr=p("p"),tr.textContent=Ou,yc=r(),d(kt.$$.fragment),xc=r(),ke=p("div"),d(ts.$$.fragment),Tc=r(),ar=p("p"),ar.textContent=Ku,jc=r(),d(Et.$$.fragment),$c=r(),Ee=p("div"),d(as.$$.fragment),Ic=r(),sr=p("p"),sr.textContent=ed,Mc=r(),d(Zt.$$.fragment),wc=r(),Ze=p("div"),d(ss.$$.fragment),Cc=r(),or=p("p"),or.textContent=nd,vc=r(),d(qt.$$.fragment),Jc=r(),qe=p("div"),d(os.$$.fragment),Uc=r(),rr=p("p"),rr.textContent=td,kc=r(),d(Wt.$$.fragment),Ec=r(),q=p("div"),d(rs.$$.fragment),Zc=r(),lr=p("p"),lr.textContent=ad,qc=r(),ir=p("p"),ir.textContent=sd,Wc=r(),cr=p("p"),cr.innerHTML=od,Nc=r(),pr=p("p"),pr.innerHTML=rd,Gc=r(),d(Nt.$$.fragment),Vc=r(),O=p("div"),d(ls.$$.fragment),Ac=r(),gr=p("p"),gr.textContent=ld,Dc=r(),d(Gt.$$.fragment),Yc=r(),d(Vt.$$.fragment),Rc=r(),We=p("div"),d(is.$$.fragment),Bc=r(),ur=p("p"),ur.textContent=id,Hc=r(),d(At.$$.fragment),Sc=r(),Ne=p("div"),d(cs.$$.fragment),Qc=r(),dr=p("p"),dr.textContent=cd,Fc=r(),d(Dt.$$.fragment),Pc=r(),D=p("div"),d(ps.$$.fragment),Lc=r(),mr=p("p"),mr.textContent=pd,Xc=r(),hr=p("p"),hr.innerHTML=gd,zc=r(),d(Yt.$$.fragment),Oc=r(),d(Rt.$$.fragment),Kc=r(),Ge=p("div"),d(gs.$$.fragment),ep=r(),fr=p("p"),fr.textContent=ud,np=r(),d(Bt.$$.fragment),tp=r(),Ve=p("div"),d(us.$$.fragment),ap=r(),br=p("p"),br.textContent=dd,sp=r(),d(Ht.$$.fragment),op=r(),Ae=p("div"),d(ds.$$.fragment),rp=r(),_r=p("p"),_r.textContent=md,lp=r(),d(St.$$.fragment),Cl=r(),d(ms.$$.fragment),vl=r(),hs=p("p"),hs.innerHTML=hd,Jl=r(),d(fs.$$.fragment),Ul=r(),v=p("div"),d(bs.$$.fragment),ip=r(),yr=p("p"),yr.textContent=fd,cp=r(),xr=p("p"),xr.innerHTML=bd,pp=r(),De=p("div"),d(_s.$$.fragment),gp=r(),Tr=p("p"),Tr.textContent=_d,up=r(),d(Qt.$$.fragment),dp=r(),Ye=p("div"),d(ys.$$.fragment),mp=r(),jr=p("p"),jr.textContent=yd,hp=r(),d(Ft.$$.fragment),fp=r(),Re=p("div"),d(xs.$$.fragment),bp=r(),$r=p("p"),$r.textContent=xd,_p=r(),d(Pt.$$.fragment),yp=r(),Be=p("div"),d(Ts.$$.fragment),xp=r(),Ir=p("p"),Ir.textContent=Td,Tp=r(),d(Lt.$$.fragment),jp=r(),He=p("div"),d(js.$$.fragment),$p=r(),Mr=p("p"),Mr.textContent=jd,Ip=r(),d(Xt.$$.fragment),Mp=r(),Se=p("div"),d($s.$$.fragment),wp=r(),wr=p("p"),wr.textContent=$d,Cp=r(),d(zt.$$.fragment),vp=r(),Qe=p("div"),d(Is.$$.fragment),Jp=r(),Cr=p("p"),Cr.textContent=Id,Up=r(),d(Ot.$$.fragment),kp=r(),K=p("div"),d(Ms.$$.fragment),Ep=r(),vr=p("p"),vr.textContent=Md,Zp=r(),d(Kt.$$.fragment),qp=r(),d(ea.$$.fragment),Wp=r(),na=p("div"),d(ws.$$.fragment),Np=r(),Jr=p("p"),Jr.textContent=wd,Gp=r(),Fe=p("div"),d(Cs.$$.fragment),Vp=r(),Ur=p("p"),Ur.textContent=Cd,Ap=r(),d(ta.$$.fragment),Dp=r(),ee=p("div"),d(vs.$$.fragment),Yp=r(),kr=p("p"),kr.textContent=vd,Rp=r(),d(aa.$$.fragment),Bp=r(),d(sa.$$.fragment),Hp=r(),ne=p("div"),d(Js.$$.fragment),Sp=r(),Er=p("p"),Er.textContent=Jd,Qp=r(),d(oa.$$.fragment),Fp=r(),d(ra.$$.fragment),Pp=r(),te=p("div"),d(Us.$$.fragment),Lp=r(),Zr=p("p"),Zr.textContent=Ud,Xp=r(),qr=p("p"),qr.textContent=kd,zp=r(),d(la.$$.fragment),Op=r(),Y=p("div"),d(ks.$$.fragment),Kp=r(),Wr=p("p"),Wr.textContent=Ed,eg=r(),Nr=p("p"),Nr.innerHTML=Zd,ng=r(),d(ia.$$.fragment),tg=r(),d(ca.$$.fragment),ag=r(),ae=p("div"),d(Es.$$.fragment),sg=r(),Gr=p("p"),Gr.textContent=qd,og=r(),d(pa.$$.fragment),rg=r(),d(ga.$$.fragment),lg=r(),ua=p("div"),d(Zs.$$.fragment),ig=r(),Vr=p("p"),Vr.textContent=Wd,cg=r(),Pe=p("div"),d(qs.$$.fragment),pg=r(),Ar=p("p"),Ar.textContent=Nd,gg=r(),d(da.$$.fragment),ug=r(),Le=p("div"),d(Ws.$$.fragment),dg=r(),Dr=p("p"),Dr.textContent=Gd,mg=r(),d(ma.$$.fragment),hg=r(),Xe=p("div"),d(Ns.$$.fragment),fg=r(),Yr=p("p"),Yr.textContent=Vd,bg=r(),d(ha.$$.fragment),_g=r(),ze=p("div"),d(Gs.$$.fragment),yg=r(),Rr=p("p"),Rr.textContent=Ad,xg=r(),d(fa.$$.fragment),Tg=r(),Oe=p("div"),d(Vs.$$.fragment),jg=r(),Br=p("p"),Br.textContent=Dd,$g=r(),d(ba.$$.fragment),Ig=r(),Ke=p("div"),d(As.$$.fragment),Mg=r(),Hr=p("p"),Hr.textContent=Yd,wg=r(),d(_a.$$.fragment),Cg=r(),en=p("div"),d(Ds.$$.fragment),vg=r(),Sr=p("p"),Sr.textContent=Rd,Jg=r(),d(ya.$$.fragment),Ug=r(),W=p("div"),d(Ys.$$.fragment),kg=r(),Qr=p("p"),Qr.textContent=Bd,Eg=r(),Fr=p("p"),Fr.textContent=Hd,Zg=r(),Pr=p("p"),Pr.innerHTML=Sd,qg=r(),Lr=p("p"),Lr.innerHTML=Qd,Wg=r(),d(xa.$$.fragment),Ng=r(),se=p("div"),d(Rs.$$.fragment),Gg=r(),Xr=p("p"),Xr.textContent=Fd,Vg=r(),d(Ta.$$.fragment),Ag=r(),d(ja.$$.fragment),Dg=r(),nn=p("div"),d(Bs.$$.fragment),Yg=r(),zr=p("p"),zr.textContent=Pd,Rg=r(),d($a.$$.fragment),Bg=r(),tn=p("div"),d(Hs.$$.fragment),Hg=r(),Or=p("p"),Or.textContent=Ld,Sg=r(),d(Ia.$$.fragment),Qg=r(),R=p("div"),d(Ss.$$.fragment),Fg=r(),Kr=p("p"),Kr.textContent=Xd,Pg=r(),el=p("p"),el.innerHTML=zd,Lg=r(),d(Ma.$$.fragment),Xg=r(),d(wa.$$.fragment),zg=r(),an=p("div"),d(Qs.$$.fragment),Og=r(),nl=p("p"),nl.textContent=Od,Kg=r(),d(Ca.$$.fragment),eu=r(),sn=p("div"),d(Fs.$$.fragment),nu=r(),tl=p("p"),tl.textContent=Kd,tu=r(),d(va.$$.fragment),au=r(),on=p("div"),d(Ps.$$.fragment),su=r(),al=p("p"),al.textContent=em,ou=r(),d(Ja.$$.fragment),kl=r(),d(Ls.$$.fragment),El=r(),cn=p("div"),d(Xs.$$.fragment),ru=r(),sl=p("p"),sl.textContent=nm,Zl=r(),d(zs.$$.fragment),ql=r(),Os=p("p"),Os.textContent=tm,Wl=r(),d(Ks.$$.fragment),Nl=r(),pn=p("div"),d(eo.$$.fragment),lu=r(),ol=p("p"),ol.innerHTML=am,Gl=r(),d(no.$$.fragment),Vl=r(),gn=p("div"),d(to.$$.fragment),iu=r(),rl=p("p"),rl.innerHTML=sm,Al=r(),d(ao.$$.fragment),Dl=r(),un=p("div"),d(so.$$.fragment),cu=r(),ll=p("p"),ll.textContent=om,Yl=r(),d(oo.$$.fragment),Rl=r(),ro=p("p"),ro.innerHTML=rm,Bl=r(),lo=p("p"),lo.innerHTML=lm,Hl=r(),dn=p("div"),d(io.$$.fragment),pu=r(),il=p("p"),il.textContent=im,Sl=r(),re=p("div"),d(co.$$.fragment),gu=r(),cl=p("p"),cl.textContent=cm,uu=r(),pl=p("p"),pl.innerHTML=pm,Ql=r(),le=p("div"),d(po.$$.fragment),du=r(),gl=p("p"),gl.textContent=gm,mu=r(),ul=p("p"),ul.innerHTML=um,Fl=r(),mn=p("div"),d(go.$$.fragment),hu=r(),dl=p("p"),dl.textContent=dm,Pl=r(),hn=p("div"),d(uo.$$.fragment),fu=r(),ml=p("p"),ml.textContent=mm,Ll=r(),fn=p("div"),d(mo.$$.fragment),bu=r(),hl=p("p"),hl.textContent=hm,Xl=r(),bn=p("div"),d(ho.$$.fragment),_u=r(),fl=p("p"),fl.textContent=fm,zl=r(),_n=p("div"),d(fo.$$.fragment),yu=r(),bl=p("p"),bl.textContent=bm,Ol=r(),yn=p("div"),d(bo.$$.fragment),xu=r(),_l=p("p"),_l.textContent=_m,Kl=r(),d(_o.$$.fragment),ei=r(),yo=p("p"),yo.innerHTML=ym,ni=r(),N=p("div"),d(xo.$$.fragment),Tu=r(),yl=p("p"),yl.textContent=xm,ju=r(),d(Ua.$$.fragment),$u=r(),ka=p("div"),d(To.$$.fragment),Iu=r(),xl=p("p"),xl.textContent=Tm,Mu=r(),Ea=p("div"),d(jo.$$.fragment),wu=r(),Tl=p("p"),Tl.textContent=jm,ti=r(),jl=p("p"),this.h()},l(t){const y=Cm("svelte-u9bgzb",document.head);n=g(y,"META",{name:!0,content:!0}),y.forEach(c),x=l(t),o=g(t,"P",{}),I(o).forEach(c),a=l(t),m(i.$$.fragment,t),e=l(t),u=g(t,"P",{"data-svelte-h":!0}),j(u)!=="svelte-411gzg"&&(u.innerHTML=Cu),$l=l(t),Za=g(t,"UL",{"data-svelte-h":!0}),j(Za)!=="svelte-1qqordt"&&(Za.innerHTML=vu),Il=l(t),qa=g(t,"P",{"data-svelte-h":!0}),j(qa)!=="svelte-s9duup"&&(qa.innerHTML=Ju),Ml=l(t),m(Wa.$$.fragment,t),wl=l(t),C=g(t,"DIV",{class:!0});var U=I(C);m(Na.$$.fragment,U),pi=l(U),qo=g(U,"P",{"data-svelte-h":!0}),j(qo)!=="svelte-1p4u01l"&&(qo.textContent=Uu),gi=l(U),Wo=g(U,"P",{"data-svelte-h":!0}),j(Wo)!=="svelte-rlzjhe"&&(Wo.innerHTML=ku),ui=l(U),xe=g(U,"DIV",{class:!0});var xn=I(xe);m(Ga.$$.fragment,xn),di=l(xn),No=g(xn,"P",{"data-svelte-h":!0}),j(No)!=="svelte-1hs5qib"&&(No.textContent=Eu),mi=l(xn),m(it.$$.fragment,xn),xn.forEach(c),hi=l(U),Te=g(U,"DIV",{class:!0});var Tn=I(Te);m(Va.$$.fragment,Tn),fi=l(Tn),Go=g(Tn,"P",{"data-svelte-h":!0}),j(Go)!=="svelte-z9e742"&&(Go.textContent=Zu),bi=l(Tn),m(ct.$$.fragment,Tn),Tn.forEach(c),_i=l(U),je=g(U,"DIV",{class:!0});var jn=I(je);m(Aa.$$.fragment,jn),yi=l(jn),Vo=g(jn,"P",{"data-svelte-h":!0}),j(Vo)!=="svelte-lahnll"&&(Vo.textContent=qu),xi=l(jn),m(pt.$$.fragment,jn),jn.forEach(c),Ti=l(U),$e=g(U,"DIV",{class:!0});var $n=I($e);m(Da.$$.fragment,$n),ji=l($n),Ao=g($n,"P",{"data-svelte-h":!0}),j(Ao)!=="svelte-2dk21c"&&(Ao.textContent=Wu),$i=l($n),m(gt.$$.fragment,$n),$n.forEach(c),Ii=l(U),Ie=g(U,"DIV",{class:!0});var In=I(Ie);m(Ya.$$.fragment,In),Mi=l(In),Do=g(In,"P",{"data-svelte-h":!0}),j(Do)!=="svelte-qs8cmr"&&(Do.textContent=Nu),wi=l(In),m(ut.$$.fragment,In),In.forEach(c),Ci=l(U),Me=g(U,"DIV",{class:!0});var Mn=I(Me);m(Ra.$$.fragment,Mn),vi=l(Mn),Yo=g(Mn,"P",{"data-svelte-h":!0}),j(Yo)!=="svelte-1axtrg9"&&(Yo.textContent=Gu),Ji=l(Mn),m(dt.$$.fragment,Mn),Mn.forEach(c),Ui=l(U),we=g(U,"DIV",{class:!0});var wn=I(we);m(Ba.$$.fragment,wn),ki=l(wn),Ro=g(wn,"P",{"data-svelte-h":!0}),j(Ro)!=="svelte-1lnjtsz"&&(Ro.textContent=Vu),Ei=l(wn),m(mt.$$.fragment,wn),wn.forEach(c),Zi=l(U),F=g(U,"DIV",{class:!0});var ie=I(F);m(Ha.$$.fragment,ie),qi=l(ie),Bo=g(ie,"P",{"data-svelte-h":!0}),j(Bo)!=="svelte-1htupoc"&&(Bo.textContent=Au),Wi=l(ie),m(ht.$$.fragment,ie),Ni=l(ie),m(ft.$$.fragment,ie),ie.forEach(c),Gi=l(U),bt=g(U,"DIV",{class:!0});var $o=I(bt);m(Sa.$$.fragment,$o),Vi=l($o),Ho=g($o,"P",{"data-svelte-h":!0}),j(Ho)!=="svelte-1qi4mtg"&&(Ho.textContent=Du),$o.forEach(c),Ai=l(U),Ce=g(U,"DIV",{class:!0});var Cn=I(Ce);m(Qa.$$.fragment,Cn),Di=l(Cn),So=g(Cn,"P",{"data-svelte-h":!0}),j(So)!=="svelte-u63854"&&(So.textContent=Yu),Yi=l(Cn),m(_t.$$.fragment,Cn),Cn.forEach(c),Ri=l(U),P=g(U,"DIV",{class:!0});var ce=I(P);m(Fa.$$.fragment,ce),Bi=l(ce),Qo=g(ce,"P",{"data-svelte-h":!0}),j(Qo)!=="svelte-k6f11e"&&(Qo.textContent=Ru),Hi=l(ce),m(yt.$$.fragment,ce),Si=l(ce),m(xt.$$.fragment,ce),ce.forEach(c),Qi=l(U),L=g(U,"DIV",{class:!0});var pe=I(L);m(Pa.$$.fragment,pe),Fi=l(pe),Fo=g(pe,"P",{"data-svelte-h":!0}),j(Fo)!=="svelte-7cx5l1"&&(Fo.textContent=Bu),Pi=l(pe),m(Tt.$$.fragment,pe),Li=l(pe),m(jt.$$.fragment,pe),pe.forEach(c),Xi=l(U),X=g(U,"DIV",{class:!0});var ge=I(X);m(La.$$.fragment,ge),zi=l(ge),Po=g(ge,"P",{"data-svelte-h":!0}),j(Po)!=="svelte-1tnfouk"&&(Po.textContent=Hu),Oi=l(ge),Lo=g(ge,"P",{"data-svelte-h":!0}),j(Lo)!=="svelte-qrqo93"&&(Lo.textContent=Su),Ki=l(ge),m($t.$$.fragment,ge),ge.forEach(c),ec=l(U),A=g(U,"DIV",{class:!0});var B=I(A);m(Xa.$$.fragment,B),nc=l(B),Xo=g(B,"P",{"data-svelte-h":!0}),j(Xo)!=="svelte-15v8qnq"&&(Xo.textContent=Qu),tc=l(B),zo=g(B,"P",{"data-svelte-h":!0}),j(zo)!=="svelte-1k36r1q"&&(zo.innerHTML=Fu),ac=l(B),m(It.$$.fragment,B),sc=l(B),m(Mt.$$.fragment,B),B.forEach(c),oc=l(U),z=g(U,"DIV",{class:!0});var ue=I(z);m(za.$$.fragment,ue),rc=l(ue),Oo=g(ue,"P",{"data-svelte-h":!0}),j(Oo)!=="svelte-fzfwfh"&&(Oo.textContent=Pu),lc=l(ue),m(wt.$$.fragment,ue),ic=l(ue),m(Ct.$$.fragment,ue),ue.forEach(c),cc=l(U),vt=g(U,"DIV",{class:!0});var Io=I(vt);m(Oa.$$.fragment,Io),pc=l(Io),Ko=g(Io,"P",{"data-svelte-h":!0}),j(Ko)!=="svelte-14tnsya"&&(Ko.textContent=Lu),Io.forEach(c),gc=l(U),ve=g(U,"DIV",{class:!0});var vn=I(ve);m(Ka.$$.fragment,vn),uc=l(vn),er=g(vn,"P",{"data-svelte-h":!0}),j(er)!=="svelte-1mibg86"&&(er.textContent=Xu),dc=l(vn),m(Jt.$$.fragment,vn),vn.forEach(c),mc=l(U),Je=g(U,"DIV",{class:!0});var Jn=I(Je);m(es.$$.fragment,Jn),hc=l(Jn),nr=g(Jn,"P",{"data-svelte-h":!0}),j(nr)!=="svelte-1nuhgbh"&&(nr.textContent=zu),fc=l(Jn),m(Ut.$$.fragment,Jn),Jn.forEach(c),bc=l(U),Ue=g(U,"DIV",{class:!0});var Un=I(Ue);m(ns.$$.fragment,Un),_c=l(Un),tr=g(Un,"P",{"data-svelte-h":!0}),j(tr)!=="svelte-1uepm2o"&&(tr.textContent=Ou),yc=l(Un),m(kt.$$.fragment,Un),Un.forEach(c),xc=l(U),ke=g(U,"DIV",{class:!0});var kn=I(ke);m(ts.$$.fragment,kn),Tc=l(kn),ar=g(kn,"P",{"data-svelte-h":!0}),j(ar)!=="svelte-77a94i"&&(ar.textContent=Ku),jc=l(kn),m(Et.$$.fragment,kn),kn.forEach(c),$c=l(U),Ee=g(U,"DIV",{class:!0});var En=I(Ee);m(as.$$.fragment,En),Ic=l(En),sr=g(En,"P",{"data-svelte-h":!0}),j(sr)!=="svelte-61sxmo"&&(sr.textContent=ed),Mc=l(En),m(Zt.$$.fragment,En),En.forEach(c),wc=l(U),Ze=g(U,"DIV",{class:!0});var Zn=I(Ze);m(ss.$$.fragment,Zn),Cc=l(Zn),or=g(Zn,"P",{"data-svelte-h":!0}),j(or)!=="svelte-hzldyu"&&(or.textContent=nd),vc=l(Zn),m(qt.$$.fragment,Zn),Zn.forEach(c),Jc=l(U),qe=g(U,"DIV",{class:!0});var qn=I(qe);m(os.$$.fragment,qn),Uc=l(qn),rr=g(qn,"P",{"data-svelte-h":!0}),j(rr)!=="svelte-b4yzyj"&&(rr.textContent=td),kc=l(qn),m(Wt.$$.fragment,qn),qn.forEach(c),Ec=l(U),q=g(U,"DIV",{class:!0});var G=I(q);m(rs.$$.fragment,G),Zc=l(G),lr=g(G,"P",{"data-svelte-h":!0}),j(lr)!=="svelte-qakvx8"&&(lr.textContent=ad),qc=l(G),ir=g(G,"P",{"data-svelte-h":!0}),j(ir)!=="svelte-3d5rn4"&&(ir.textContent=sd),Wc=l(G),cr=g(G,"P",{"data-svelte-h":!0}),j(cr)!=="svelte-1irx2op"&&(cr.innerHTML=od),Nc=l(G),pr=g(G,"P",{"data-svelte-h":!0}),j(pr)!=="svelte-140zl9b"&&(pr.innerHTML=rd),Gc=l(G),m(Nt.$$.fragment,G),G.forEach(c),Vc=l(U),O=g(U,"DIV",{class:!0});var de=I(O);m(ls.$$.fragment,de),Ac=l(de),gr=g(de,"P",{"data-svelte-h":!0}),j(gr)!=="svelte-9lmcnw"&&(gr.textContent=ld),Dc=l(de),m(Gt.$$.fragment,de),Yc=l(de),m(Vt.$$.fragment,de),de.forEach(c),Rc=l(U),We=g(U,"DIV",{class:!0});var Wn=I(We);m(is.$$.fragment,Wn),Bc=l(Wn),ur=g(Wn,"P",{"data-svelte-h":!0}),j(ur)!=="svelte-12mjzdy"&&(ur.textContent=id),Hc=l(Wn),m(At.$$.fragment,Wn),Wn.forEach(c),Sc=l(U),Ne=g(U,"DIV",{class:!0});var Nn=I(Ne);m(cs.$$.fragment,Nn),Qc=l(Nn),dr=g(Nn,"P",{"data-svelte-h":!0}),j(dr)!=="svelte-1araal"&&(dr.textContent=cd),Fc=l(Nn),m(Dt.$$.fragment,Nn),Nn.forEach(c),Pc=l(U),D=g(U,"DIV",{class:!0});var H=I(D);m(ps.$$.fragment,H),Lc=l(H),mr=g(H,"P",{"data-svelte-h":!0}),j(mr)!=="svelte-1v3lqck"&&(mr.textContent=pd),Xc=l(H),hr=g(H,"P",{"data-svelte-h":!0}),j(hr)!=="svelte-19inetw"&&(hr.innerHTML=gd),zc=l(H),m(Yt.$$.fragment,H),Oc=l(H),m(Rt.$$.fragment,H),H.forEach(c),Kc=l(U),Ge=g(U,"DIV",{class:!0});var Gn=I(Ge);m(gs.$$.fragment,Gn),ep=l(Gn),fr=g(Gn,"P",{"data-svelte-h":!0}),j(fr)!=="svelte-1jbp6ey"&&(fr.textContent=ud),np=l(Gn),m(Bt.$$.fragment,Gn),Gn.forEach(c),tp=l(U),Ve=g(U,"DIV",{class:!0});var Vn=I(Ve);m(us.$$.fragment,Vn),ap=l(Vn),br=g(Vn,"P",{"data-svelte-h":!0}),j(br)!=="svelte-1c9xuqj"&&(br.textContent=dd),sp=l(Vn),m(Ht.$$.fragment,Vn),Vn.forEach(c),op=l(U),Ae=g(U,"DIV",{class:!0});var An=I(Ae);m(ds.$$.fragment,An),rp=l(An),_r=g(An,"P",{"data-svelte-h":!0}),j(_r)!=="svelte-108ipf8"&&(_r.textContent=md),lp=l(An),m(St.$$.fragment,An),An.forEach(c),U.forEach(c),Cl=l(t),m(ms.$$.fragment,t),vl=l(t),hs=g(t,"P",{"data-svelte-h":!0}),j(hs)!=="svelte-nn0rvx"&&(hs.innerHTML=hd),Jl=l(t),m(fs.$$.fragment,t),Ul=l(t),v=g(t,"DIV",{class:!0});var k=I(v);m(bs.$$.fragment,k),ip=l(k),yr=g(k,"P",{"data-svelte-h":!0}),j(yr)!=="svelte-1p4u01l"&&(yr.textContent=fd),cp=l(k),xr=g(k,"P",{"data-svelte-h":!0}),j(xr)!=="svelte-rlzjhe"&&(xr.innerHTML=bd),pp=l(k),De=g(k,"DIV",{class:!0});var Dn=I(De);m(_s.$$.fragment,Dn),gp=l(Dn),Tr=g(Dn,"P",{"data-svelte-h":!0}),j(Tr)!=="svelte-1hs5qib"&&(Tr.textContent=_d),up=l(Dn),m(Qt.$$.fragment,Dn),Dn.forEach(c),dp=l(k),Ye=g(k,"DIV",{class:!0});var Yn=I(Ye);m(ys.$$.fragment,Yn),mp=l(Yn),jr=g(Yn,"P",{"data-svelte-h":!0}),j(jr)!=="svelte-z9e742"&&(jr.textContent=yd),hp=l(Yn),m(Ft.$$.fragment,Yn),Yn.forEach(c),fp=l(k),Re=g(k,"DIV",{class:!0});var Rn=I(Re);m(xs.$$.fragment,Rn),bp=l(Rn),$r=g(Rn,"P",{"data-svelte-h":!0}),j($r)!=="svelte-lahnll"&&($r.textContent=xd),_p=l(Rn),m(Pt.$$.fragment,Rn),Rn.forEach(c),yp=l(k),Be=g(k,"DIV",{class:!0});var Bn=I(Be);m(Ts.$$.fragment,Bn),xp=l(Bn),Ir=g(Bn,"P",{"data-svelte-h":!0}),j(Ir)!=="svelte-2dk21c"&&(Ir.textContent=Td),Tp=l(Bn),m(Lt.$$.fragment,Bn),Bn.forEach(c),jp=l(k),He=g(k,"DIV",{class:!0});var Hn=I(He);m(js.$$.fragment,Hn),$p=l(Hn),Mr=g(Hn,"P",{"data-svelte-h":!0}),j(Mr)!=="svelte-qs8cmr"&&(Mr.textContent=jd),Ip=l(Hn),m(Xt.$$.fragment,Hn),Hn.forEach(c),Mp=l(k),Se=g(k,"DIV",{class:!0});var Sn=I(Se);m($s.$$.fragment,Sn),wp=l(Sn),wr=g(Sn,"P",{"data-svelte-h":!0}),j(wr)!=="svelte-1axtrg9"&&(wr.textContent=$d),Cp=l(Sn),m(zt.$$.fragment,Sn),Sn.forEach(c),vp=l(k),Qe=g(k,"DIV",{class:!0});var Qn=I(Qe);m(Is.$$.fragment,Qn),Jp=l(Qn),Cr=g(Qn,"P",{"data-svelte-h":!0}),j(Cr)!=="svelte-1lnjtsz"&&(Cr.textContent=Id),Up=l(Qn),m(Ot.$$.fragment,Qn),Qn.forEach(c),kp=l(k),K=g(k,"DIV",{class:!0});var me=I(K);m(Ms.$$.fragment,me),Ep=l(me),vr=g(me,"P",{"data-svelte-h":!0}),j(vr)!=="svelte-1htupoc"&&(vr.textContent=Md),Zp=l(me),m(Kt.$$.fragment,me),qp=l(me),m(ea.$$.fragment,me),me.forEach(c),Wp=l(k),na=g(k,"DIV",{class:!0});var Mo=I(na);m(ws.$$.fragment,Mo),Np=l(Mo),Jr=g(Mo,"P",{"data-svelte-h":!0}),j(Jr)!=="svelte-1qi4mtg"&&(Jr.textContent=wd),Mo.forEach(c),Gp=l(k),Fe=g(k,"DIV",{class:!0});var Fn=I(Fe);m(Cs.$$.fragment,Fn),Vp=l(Fn),Ur=g(Fn,"P",{"data-svelte-h":!0}),j(Ur)!=="svelte-u63854"&&(Ur.textContent=Cd),Ap=l(Fn),m(ta.$$.fragment,Fn),Fn.forEach(c),Dp=l(k),ee=g(k,"DIV",{class:!0});var he=I(ee);m(vs.$$.fragment,he),Yp=l(he),kr=g(he,"P",{"data-svelte-h":!0}),j(kr)!=="svelte-k6f11e"&&(kr.textContent=vd),Rp=l(he),m(aa.$$.fragment,he),Bp=l(he),m(sa.$$.fragment,he),he.forEach(c),Hp=l(k),ne=g(k,"DIV",{class:!0});var fe=I(ne);m(Js.$$.fragment,fe),Sp=l(fe),Er=g(fe,"P",{"data-svelte-h":!0}),j(Er)!=="svelte-7cx5l1"&&(Er.textContent=Jd),Qp=l(fe),m(oa.$$.fragment,fe),Fp=l(fe),m(ra.$$.fragment,fe),fe.forEach(c),Pp=l(k),te=g(k,"DIV",{class:!0});var be=I(te);m(Us.$$.fragment,be),Lp=l(be),Zr=g(be,"P",{"data-svelte-h":!0}),j(Zr)!=="svelte-1tnfouk"&&(Zr.textContent=Ud),Xp=l(be),qr=g(be,"P",{"data-svelte-h":!0}),j(qr)!=="svelte-qrqo93"&&(qr.textContent=kd),zp=l(be),m(la.$$.fragment,be),be.forEach(c),Op=l(k),Y=g(k,"DIV",{class:!0});var S=I(Y);m(ks.$$.fragment,S),Kp=l(S),Wr=g(S,"P",{"data-svelte-h":!0}),j(Wr)!=="svelte-15v8qnq"&&(Wr.textContent=Ed),eg=l(S),Nr=g(S,"P",{"data-svelte-h":!0}),j(Nr)!=="svelte-1k36r1q"&&(Nr.innerHTML=Zd),ng=l(S),m(ia.$$.fragment,S),tg=l(S),m(ca.$$.fragment,S),S.forEach(c),ag=l(k),ae=g(k,"DIV",{class:!0});var _e=I(ae);m(Es.$$.fragment,_e),sg=l(_e),Gr=g(_e,"P",{"data-svelte-h":!0}),j(Gr)!=="svelte-fzfwfh"&&(Gr.textContent=qd),og=l(_e),m(pa.$$.fragment,_e),rg=l(_e),m(ga.$$.fragment,_e),_e.forEach(c),lg=l(k),ua=g(k,"DIV",{class:!0});var wo=I(ua);m(Zs.$$.fragment,wo),ig=l(wo),Vr=g(wo,"P",{"data-svelte-h":!0}),j(Vr)!=="svelte-14tnsya"&&(Vr.textContent=Wd),wo.forEach(c),cg=l(k),Pe=g(k,"DIV",{class:!0});var Pn=I(Pe);m(qs.$$.fragment,Pn),pg=l(Pn),Ar=g(Pn,"P",{"data-svelte-h":!0}),j(Ar)!=="svelte-1mibg86"&&(Ar.textContent=Nd),gg=l(Pn),m(da.$$.fragment,Pn),Pn.forEach(c),ug=l(k),Le=g(k,"DIV",{class:!0});var Ln=I(Le);m(Ws.$$.fragment,Ln),dg=l(Ln),Dr=g(Ln,"P",{"data-svelte-h":!0}),j(Dr)!=="svelte-1nuhgbh"&&(Dr.textContent=Gd),mg=l(Ln),m(ma.$$.fragment,Ln),Ln.forEach(c),hg=l(k),Xe=g(k,"DIV",{class:!0});var Xn=I(Xe);m(Ns.$$.fragment,Xn),fg=l(Xn),Yr=g(Xn,"P",{"data-svelte-h":!0}),j(Yr)!=="svelte-1uepm2o"&&(Yr.textContent=Vd),bg=l(Xn),m(ha.$$.fragment,Xn),Xn.forEach(c),_g=l(k),ze=g(k,"DIV",{class:!0});var zn=I(ze);m(Gs.$$.fragment,zn),yg=l(zn),Rr=g(zn,"P",{"data-svelte-h":!0}),j(Rr)!=="svelte-77a94i"&&(Rr.textContent=Ad),xg=l(zn),m(fa.$$.fragment,zn),zn.forEach(c),Tg=l(k),Oe=g(k,"DIV",{class:!0});var On=I(Oe);m(Vs.$$.fragment,On),jg=l(On),Br=g(On,"P",{"data-svelte-h":!0}),j(Br)!=="svelte-61sxmo"&&(Br.textContent=Dd),$g=l(On),m(ba.$$.fragment,On),On.forEach(c),Ig=l(k),Ke=g(k,"DIV",{class:!0});var Kn=I(Ke);m(As.$$.fragment,Kn),Mg=l(Kn),Hr=g(Kn,"P",{"data-svelte-h":!0}),j(Hr)!=="svelte-hzldyu"&&(Hr.textContent=Yd),wg=l(Kn),m(_a.$$.fragment,Kn),Kn.forEach(c),Cg=l(k),en=g(k,"DIV",{class:!0});var et=I(en);m(Ds.$$.fragment,et),vg=l(et),Sr=g(et,"P",{"data-svelte-h":!0}),j(Sr)!=="svelte-b4yzyj"&&(Sr.textContent=Rd),Jg=l(et),m(ya.$$.fragment,et),et.forEach(c),Ug=l(k),W=g(k,"DIV",{class:!0});var V=I(W);m(Ys.$$.fragment,V),kg=l(V),Qr=g(V,"P",{"data-svelte-h":!0}),j(Qr)!=="svelte-qakvx8"&&(Qr.textContent=Bd),Eg=l(V),Fr=g(V,"P",{"data-svelte-h":!0}),j(Fr)!=="svelte-3d5rn4"&&(Fr.textContent=Hd),Zg=l(V),Pr=g(V,"P",{"data-svelte-h":!0}),j(Pr)!=="svelte-1irx2op"&&(Pr.innerHTML=Sd),qg=l(V),Lr=g(V,"P",{"data-svelte-h":!0}),j(Lr)!=="svelte-140zl9b"&&(Lr.innerHTML=Qd),Wg=l(V),m(xa.$$.fragment,V),V.forEach(c),Ng=l(k),se=g(k,"DIV",{class:!0});var ye=I(se);m(Rs.$$.fragment,ye),Gg=l(ye),Xr=g(ye,"P",{"data-svelte-h":!0}),j(Xr)!=="svelte-9lmcnw"&&(Xr.textContent=Fd),Vg=l(ye),m(Ta.$$.fragment,ye),Ag=l(ye),m(ja.$$.fragment,ye),ye.forEach(c),Dg=l(k),nn=g(k,"DIV",{class:!0});var nt=I(nn);m(Bs.$$.fragment,nt),Yg=l(nt),zr=g(nt,"P",{"data-svelte-h":!0}),j(zr)!=="svelte-12mjzdy"&&(zr.textContent=Pd),Rg=l(nt),m($a.$$.fragment,nt),nt.forEach(c),Bg=l(k),tn=g(k,"DIV",{class:!0});var tt=I(tn);m(Hs.$$.fragment,tt),Hg=l(tt),Or=g(tt,"P",{"data-svelte-h":!0}),j(Or)!=="svelte-1araal"&&(Or.textContent=Ld),Sg=l(tt),m(Ia.$$.fragment,tt),tt.forEach(c),Qg=l(k),R=g(k,"DIV",{class:!0});var Q=I(R);m(Ss.$$.fragment,Q),Fg=l(Q),Kr=g(Q,"P",{"data-svelte-h":!0}),j(Kr)!=="svelte-1v3lqck"&&(Kr.textContent=Xd),Pg=l(Q),el=g(Q,"P",{"data-svelte-h":!0}),j(el)!=="svelte-19inetw"&&(el.innerHTML=zd),Lg=l(Q),m(Ma.$$.fragment,Q),Xg=l(Q),m(wa.$$.fragment,Q),Q.forEach(c),zg=l(k),an=g(k,"DIV",{class:!0});var at=I(an);m(Qs.$$.fragment,at),Og=l(at),nl=g(at,"P",{"data-svelte-h":!0}),j(nl)!=="svelte-1jbp6ey"&&(nl.textContent=Od),Kg=l(at),m(Ca.$$.fragment,at),at.forEach(c),eu=l(k),sn=g(k,"DIV",{class:!0});var st=I(sn);m(Fs.$$.fragment,st),nu=l(st),tl=g(st,"P",{"data-svelte-h":!0}),j(tl)!=="svelte-1c9xuqj"&&(tl.textContent=Kd),tu=l(st),m(va.$$.fragment,st),st.forEach(c),au=l(k),on=g(k,"DIV",{class:!0});var ot=I(on);m(Ps.$$.fragment,ot),su=l(ot),al=g(ot,"P",{"data-svelte-h":!0}),j(al)!=="svelte-108ipf8"&&(al.textContent=em),ou=l(ot),m(Ja.$$.fragment,ot),ot.forEach(c),k.forEach(c),kl=l(t),m(Ls.$$.fragment,t),El=l(t),cn=g(t,"DIV",{class:!0});var Co=I(cn);m(Xs.$$.fragment,Co),ru=l(Co),sl=g(Co,"P",{"data-svelte-h":!0}),j(sl)!=="svelte-2793d9"&&(sl.textContent=nm),Co.forEach(c),Zl=l(t),m(zs.$$.fragment,t),ql=l(t),Os=g(t,"P",{"data-svelte-h":!0}),j(Os)!=="svelte-ibwsmj"&&(Os.textContent=tm),Wl=l(t),m(Ks.$$.fragment,t),Nl=l(t),pn=g(t,"DIV",{class:!0});var vo=I(pn);m(eo.$$.fragment,vo),lu=l(vo),ol=g(vo,"P",{"data-svelte-h":!0}),j(ol)!=="svelte-1qcnexe"&&(ol.innerHTML=am),vo.forEach(c),Gl=l(t),m(no.$$.fragment,t),Vl=l(t),gn=g(t,"DIV",{class:!0});var Jo=I(gn);m(to.$$.fragment,Jo),iu=l(Jo),rl=g(Jo,"P",{"data-svelte-h":!0}),j(rl)!=="svelte-nyifwi"&&(rl.innerHTML=sm),Jo.forEach(c),Al=l(t),m(ao.$$.fragment,t),Dl=l(t),un=g(t,"DIV",{class:!0});var Uo=I(un);m(so.$$.fragment,Uo),cu=l(Uo),ll=g(Uo,"P",{"data-svelte-h":!0}),j(ll)!=="svelte-18ffdgx"&&(ll.textContent=om),Uo.forEach(c),Yl=l(t),m(oo.$$.fragment,t),Rl=l(t),ro=g(t,"P",{"data-svelte-h":!0}),j(ro)!=="svelte-150enca"&&(ro.innerHTML=rm),Bl=l(t),lo=g(t,"P",{"data-svelte-h":!0}),j(lo)!=="svelte-1nqovab"&&(lo.innerHTML=lm),Hl=l(t),dn=g(t,"DIV",{class:!0});var ko=I(dn);m(io.$$.fragment,ko),pu=l(ko),il=g(ko,"P",{"data-svelte-h":!0}),j(il)!=="svelte-ck0h92"&&(il.textContent=im),ko.forEach(c),Sl=l(t),re=g(t,"DIV",{class:!0});var rt=I(re);m(co.$$.fragment,rt),gu=l(rt),cl=g(rt,"P",{"data-svelte-h":!0}),j(cl)!=="svelte-zdhksj"&&(cl.textContent=cm),uu=l(rt),pl=g(rt,"P",{"data-svelte-h":!0}),j(pl)!=="svelte-1rpgh5m"&&(pl.innerHTML=pm),rt.forEach(c),Ql=l(t),le=g(t,"DIV",{class:!0});var lt=I(le);m(po.$$.fragment,lt),du=l(lt),gl=g(lt,"P",{"data-svelte-h":!0}),j(gl)!=="svelte-197mlan"&&(gl.textContent=gm),mu=l(lt),ul=g(lt,"P",{"data-svelte-h":!0}),j(ul)!=="svelte-167fduw"&&(ul.innerHTML=um),lt.forEach(c),Fl=l(t),mn=g(t,"DIV",{class:!0});var Eo=I(mn);m(go.$$.fragment,Eo),hu=l(Eo),dl=g(Eo,"P",{"data-svelte-h":!0}),j(dl)!=="svelte-1hnl7dn"&&(dl.textContent=dm),Eo.forEach(c),Pl=l(t),hn=g(t,"DIV",{class:!0});var Zo=I(hn);m(uo.$$.fragment,Zo),fu=l(Zo),ml=g(Zo,"P",{"data-svelte-h":!0}),j(ml)!=="svelte-1qst4i7"&&(ml.textContent=mm),Zo.forEach(c),Ll=l(t),fn=g(t,"DIV",{class:!0});var si=I(fn);m(mo.$$.fragment,si),bu=l(si),hl=g(si,"P",{"data-svelte-h":!0}),j(hl)!=="svelte-ofujqi"&&(hl.textContent=hm),si.forEach(c),Xl=l(t),bn=g(t,"DIV",{class:!0});var oi=I(bn);m(ho.$$.fragment,oi),_u=l(oi),fl=g(oi,"P",{"data-svelte-h":!0}),j(fl)!=="svelte-1yqsutm"&&(fl.textContent=fm),oi.forEach(c),zl=l(t),_n=g(t,"DIV",{class:!0});var ri=I(_n);m(fo.$$.fragment,ri),yu=l(ri),bl=g(ri,"P",{"data-svelte-h":!0}),j(bl)!=="svelte-xw8x8a"&&(bl.textContent=bm),ri.forEach(c),Ol=l(t),yn=g(t,"DIV",{class:!0});var li=I(yn);m(bo.$$.fragment,li),xu=l(li),_l=g(li,"P",{"data-svelte-h":!0}),j(_l)!=="svelte-a6epfe"&&(_l.textContent=_m),li.forEach(c),Kl=l(t),m(_o.$$.fragment,t),ei=l(t),yo=g(t,"P",{"data-svelte-h":!0}),j(yo)!=="svelte-t9bv3o"&&(yo.innerHTML=ym),ni=l(t),N=g(t,"DIV",{class:!0});var rn=I(N);m(xo.$$.fragment,rn),Tu=l(rn),yl=g(rn,"P",{"data-svelte-h":!0}),j(yl)!=="svelte-xkrgz1"&&(yl.textContent=xm),ju=l(rn),m(Ua.$$.fragment,rn),$u=l(rn),ka=g(rn,"DIV",{class:!0});var ii=I(ka);m(To.$$.fragment,ii),Iu=l(ii),xl=g(ii,"P",{"data-svelte-h":!0}),j(xl)!=="svelte-1ruvvxs"&&(xl.textContent=Tm),ii.forEach(c),Mu=l(rn),Ea=g(rn,"DIV",{class:!0});var ci=I(Ea);m(jo.$$.fragment,ci),wu=l(ci),Tl=g(ci,"P",{"data-svelte-h":!0}),j(Tl)!=="svelte-ss15d2"&&(Tl.textContent=jm),ci.forEach(c),rn.forEach(c),ti=l(t),jl=g(t,"P",{}),I(jl).forEach(c),this.h()},h(){M(n,"name","hf:doc:metadata"),M(n,"content",Ph),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(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(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($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(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(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(bt,"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(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(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(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(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(vt,"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(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(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(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(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(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(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(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(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(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(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(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(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(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(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(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(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(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(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(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(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(na,"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(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(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(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(Y,"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(ua,"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(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(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(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(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(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(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(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(an,"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(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(v,"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(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(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(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(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(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(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(yn,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(ka,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(Ea,"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,y){s(document.head,n),T(t,x,y),T(t,o,y),T(t,a,y),h(i,t,y),T(t,e,y),T(t,u,y),T(t,$l,y),T(t,Za,y),T(t,Il,y),T(t,qa,y),T(t,Ml,y),h(Wa,t,y),T(t,wl,y),T(t,C,y),h(Na,C,null),s(C,pi),s(C,qo),s(C,gi),s(C,Wo),s(C,ui),s(C,xe),h(Ga,xe,null),s(xe,di),s(xe,No),s(xe,mi),h(it,xe,null),s(C,hi),s(C,Te),h(Va,Te,null),s(Te,fi),s(Te,Go),s(Te,bi),h(ct,Te,null),s(C,_i),s(C,je),h(Aa,je,null),s(je,yi),s(je,Vo),s(je,xi),h(pt,je,null),s(C,Ti),s(C,$e),h(Da,$e,null),s($e,ji),s($e,Ao),s($e,$i),h(gt,$e,null),s(C,Ii),s(C,Ie),h(Ya,Ie,null),s(Ie,Mi),s(Ie,Do),s(Ie,wi),h(ut,Ie,null),s(C,Ci),s(C,Me),h(Ra,Me,null),s(Me,vi),s(Me,Yo),s(Me,Ji),h(dt,Me,null),s(C,Ui),s(C,we),h(Ba,we,null),s(we,ki),s(we,Ro),s(we,Ei),h(mt,we,null),s(C,Zi),s(C,F),h(Ha,F,null),s(F,qi),s(F,Bo),s(F,Wi),h(ht,F,null),s(F,Ni),h(ft,F,null),s(C,Gi),s(C,bt),h(Sa,bt,null),s(bt,Vi),s(bt,Ho),s(C,Ai),s(C,Ce),h(Qa,Ce,null),s(Ce,Di),s(Ce,So),s(Ce,Yi),h(_t,Ce,null),s(C,Ri),s(C,P),h(Fa,P,null),s(P,Bi),s(P,Qo),s(P,Hi),h(yt,P,null),s(P,Si),h(xt,P,null),s(C,Qi),s(C,L),h(Pa,L,null),s(L,Fi),s(L,Fo),s(L,Pi),h(Tt,L,null),s(L,Li),h(jt,L,null),s(C,Xi),s(C,X),h(La,X,null),s(X,zi),s(X,Po),s(X,Oi),s(X,Lo),s(X,Ki),h($t,X,null),s(C,ec),s(C,A),h(Xa,A,null),s(A,nc),s(A,Xo),s(A,tc),s(A,zo),s(A,ac),h(It,A,null),s(A,sc),h(Mt,A,null),s(C,oc),s(C,z),h(za,z,null),s(z,rc),s(z,Oo),s(z,lc),h(wt,z,null),s(z,ic),h(Ct,z,null),s(C,cc),s(C,vt),h(Oa,vt,null),s(vt,pc),s(vt,Ko),s(C,gc),s(C,ve),h(Ka,ve,null),s(ve,uc),s(ve,er),s(ve,dc),h(Jt,ve,null),s(C,mc),s(C,Je),h(es,Je,null),s(Je,hc),s(Je,nr),s(Je,fc),h(Ut,Je,null),s(C,bc),s(C,Ue),h(ns,Ue,null),s(Ue,_c),s(Ue,tr),s(Ue,yc),h(kt,Ue,null),s(C,xc),s(C,ke),h(ts,ke,null),s(ke,Tc),s(ke,ar),s(ke,jc),h(Et,ke,null),s(C,$c),s(C,Ee),h(as,Ee,null),s(Ee,Ic),s(Ee,sr),s(Ee,Mc),h(Zt,Ee,null),s(C,wc),s(C,Ze),h(ss,Ze,null),s(Ze,Cc),s(Ze,or),s(Ze,vc),h(qt,Ze,null),s(C,Jc),s(C,qe),h(os,qe,null),s(qe,Uc),s(qe,rr),s(qe,kc),h(Wt,qe,null),s(C,Ec),s(C,q),h(rs,q,null),s(q,Zc),s(q,lr),s(q,qc),s(q,ir),s(q,Wc),s(q,cr),s(q,Nc),s(q,pr),s(q,Gc),h(Nt,q,null),s(C,Vc),s(C,O),h(ls,O,null),s(O,Ac),s(O,gr),s(O,Dc),h(Gt,O,null),s(O,Yc),h(Vt,O,null),s(C,Rc),s(C,We),h(is,We,null),s(We,Bc),s(We,ur),s(We,Hc),h(At,We,null),s(C,Sc),s(C,Ne),h(cs,Ne,null),s(Ne,Qc),s(Ne,dr),s(Ne,Fc),h(Dt,Ne,null),s(C,Pc),s(C,D),h(ps,D,null),s(D,Lc),s(D,mr),s(D,Xc),s(D,hr),s(D,zc),h(Yt,D,null),s(D,Oc),h(Rt,D,null),s(C,Kc),s(C,Ge),h(gs,Ge,null),s(Ge,ep),s(Ge,fr),s(Ge,np),h(Bt,Ge,null),s(C,tp),s(C,Ve),h(us,Ve,null),s(Ve,ap),s(Ve,br),s(Ve,sp),h(Ht,Ve,null),s(C,op),s(C,Ae),h(ds,Ae,null),s(Ae,rp),s(Ae,_r),s(Ae,lp),h(St,Ae,null),T(t,Cl,y),h(ms,t,y),T(t,vl,y),T(t,hs,y),T(t,Jl,y),h(fs,t,y),T(t,Ul,y),T(t,v,y),h(bs,v,null),s(v,ip),s(v,yr),s(v,cp),s(v,xr),s(v,pp),s(v,De),h(_s,De,null),s(De,gp),s(De,Tr),s(De,up),h(Qt,De,null),s(v,dp),s(v,Ye),h(ys,Ye,null),s(Ye,mp),s(Ye,jr),s(Ye,hp),h(Ft,Ye,null),s(v,fp),s(v,Re),h(xs,Re,null),s(Re,bp),s(Re,$r),s(Re,_p),h(Pt,Re,null),s(v,yp),s(v,Be),h(Ts,Be,null),s(Be,xp),s(Be,Ir),s(Be,Tp),h(Lt,Be,null),s(v,jp),s(v,He),h(js,He,null),s(He,$p),s(He,Mr),s(He,Ip),h(Xt,He,null),s(v,Mp),s(v,Se),h($s,Se,null),s(Se,wp),s(Se,wr),s(Se,Cp),h(zt,Se,null),s(v,vp),s(v,Qe),h(Is,Qe,null),s(Qe,Jp),s(Qe,Cr),s(Qe,Up),h(Ot,Qe,null),s(v,kp),s(v,K),h(Ms,K,null),s(K,Ep),s(K,vr),s(K,Zp),h(Kt,K,null),s(K,qp),h(ea,K,null),s(v,Wp),s(v,na),h(ws,na,null),s(na,Np),s(na,Jr),s(v,Gp),s(v,Fe),h(Cs,Fe,null),s(Fe,Vp),s(Fe,Ur),s(Fe,Ap),h(ta,Fe,null),s(v,Dp),s(v,ee),h(vs,ee,null),s(ee,Yp),s(ee,kr),s(ee,Rp),h(aa,ee,null),s(ee,Bp),h(sa,ee,null),s(v,Hp),s(v,ne),h(Js,ne,null),s(ne,Sp),s(ne,Er),s(ne,Qp),h(oa,ne,null),s(ne,Fp),h(ra,ne,null),s(v,Pp),s(v,te),h(Us,te,null),s(te,Lp),s(te,Zr),s(te,Xp),s(te,qr),s(te,zp),h(la,te,null),s(v,Op),s(v,Y),h(ks,Y,null),s(Y,Kp),s(Y,Wr),s(Y,eg),s(Y,Nr),s(Y,ng),h(ia,Y,null),s(Y,tg),h(ca,Y,null),s(v,ag),s(v,ae),h(Es,ae,null),s(ae,sg),s(ae,Gr),s(ae,og),h(pa,ae,null),s(ae,rg),h(ga,ae,null),s(v,lg),s(v,ua),h(Zs,ua,null),s(ua,ig),s(ua,Vr),s(v,cg),s(v,Pe),h(qs,Pe,null),s(Pe,pg),s(Pe,Ar),s(Pe,gg),h(da,Pe,null),s(v,ug),s(v,Le),h(Ws,Le,null),s(Le,dg),s(Le,Dr),s(Le,mg),h(ma,Le,null),s(v,hg),s(v,Xe),h(Ns,Xe,null),s(Xe,fg),s(Xe,Yr),s(Xe,bg),h(ha,Xe,null),s(v,_g),s(v,ze),h(Gs,ze,null),s(ze,yg),s(ze,Rr),s(ze,xg),h(fa,ze,null),s(v,Tg),s(v,Oe),h(Vs,Oe,null),s(Oe,jg),s(Oe,Br),s(Oe,$g),h(ba,Oe,null),s(v,Ig),s(v,Ke),h(As,Ke,null),s(Ke,Mg),s(Ke,Hr),s(Ke,wg),h(_a,Ke,null),s(v,Cg),s(v,en),h(Ds,en,null),s(en,vg),s(en,Sr),s(en,Jg),h(ya,en,null),s(v,Ug),s(v,W),h(Ys,W,null),s(W,kg),s(W,Qr),s(W,Eg),s(W,Fr),s(W,Zg),s(W,Pr),s(W,qg),s(W,Lr),s(W,Wg),h(xa,W,null),s(v,Ng),s(v,se),h(Rs,se,null),s(se,Gg),s(se,Xr),s(se,Vg),h(Ta,se,null),s(se,Ag),h(ja,se,null),s(v,Dg),s(v,nn),h(Bs,nn,null),s(nn,Yg),s(nn,zr),s(nn,Rg),h($a,nn,null),s(v,Bg),s(v,tn),h(Hs,tn,null),s(tn,Hg),s(tn,Or),s(tn,Sg),h(Ia,tn,null),s(v,Qg),s(v,R),h(Ss,R,null),s(R,Fg),s(R,Kr),s(R,Pg),s(R,el),s(R,Lg),h(Ma,R,null),s(R,Xg),h(wa,R,null),s(v,zg),s(v,an),h(Qs,an,null),s(an,Og),s(an,nl),s(an,Kg),h(Ca,an,null),s(v,eu),s(v,sn),h(Fs,sn,null),s(sn,nu),s(sn,tl),s(sn,tu),h(va,sn,null),s(v,au),s(v,on),h(Ps,on,null),s(on,su),s(on,al),s(on,ou),h(Ja,on,null),T(t,kl,y),h(Ls,t,y),T(t,El,y),T(t,cn,y),h(Xs,cn,null),s(cn,ru),s(cn,sl),T(t,Zl,y),h(zs,t,y),T(t,ql,y),T(t,Os,y),T(t,Wl,y),h(Ks,t,y),T(t,Nl,y),T(t,pn,y),h(eo,pn,null),s(pn,lu),s(pn,ol),T(t,Gl,y),h(no,t,y),T(t,Vl,y),T(t,gn,y),h(to,gn,null),s(gn,iu),s(gn,rl),T(t,Al,y),h(ao,t,y),T(t,Dl,y),T(t,un,y),h(so,un,null),s(un,cu),s(un,ll),T(t,Yl,y),h(oo,t,y),T(t,Rl,y),T(t,ro,y),T(t,Bl,y),T(t,lo,y),T(t,Hl,y),T(t,dn,y),h(io,dn,null),s(dn,pu),s(dn,il),T(t,Sl,y),T(t,re,y),h(co,re,null),s(re,gu),s(re,cl),s(re,uu),s(re,pl),T(t,Ql,y),T(t,le,y),h(po,le,null),s(le,du),s(le,gl),s(le,mu),s(le,ul),T(t,Fl,y),T(t,mn,y),h(go,mn,null),s(mn,hu),s(mn,dl),T(t,Pl,y),T(t,hn,y),h(uo,hn,null),s(hn,fu),s(hn,ml),T(t,Ll,y),T(t,fn,y),h(mo,fn,null),s(fn,bu),s(fn,hl),T(t,Xl,y),T(t,bn,y),h(ho,bn,null),s(bn,_u),s(bn,fl),T(t,zl,y),T(t,_n,y),h(fo,_n,null),s(_n,yu),s(_n,bl),T(t,Ol,y),T(t,yn,y),h(bo,yn,null),s(yn,xu),s(yn,_l),T(t,Kl,y),h(_o,t,y),T(t,ei,y),T(t,yo,y),T(t,ni,y),T(t,N,y),h(xo,N,null),s(N,Tu),s(N,yl),s(N,ju),h(Ua,N,null),s(N,$u),s(N,ka),h(To,ka,null),s(ka,Iu),s(ka,xl),s(N,Mu),s(N,Ea),h(jo,Ea,null),s(Ea,wu),s(Ea,Tl),T(t,ti,y),T(t,jl,y),ai=!0},p(t,[y]){const U={};y&2&&(U.$$scope={dirty:y,ctx:t}),it.$set(U);const xn={};y&2&&(xn.$$scope={dirty:y,ctx:t}),ct.$set(xn);const Tn={};y&2&&(Tn.$$scope={dirty:y,ctx:t}),pt.$set(Tn);const jn={};y&2&&(jn.$$scope={dirty:y,ctx:t}),gt.$set(jn);const $n={};y&2&&($n.$$scope={dirty:y,ctx:t}),ut.$set($n);const In={};y&2&&(In.$$scope={dirty:y,ctx:t}),dt.$set(In);const Mn={};y&2&&(Mn.$$scope={dirty:y,ctx:t}),mt.$set(Mn);const wn={};y&2&&(wn.$$scope={dirty:y,ctx:t}),ht.$set(wn);const ie={};y&2&&(ie.$$scope={dirty:y,ctx:t}),ft.$set(ie);const $o={};y&2&&($o.$$scope={dirty:y,ctx:t}),_t.$set($o);const Cn={};y&2&&(Cn.$$scope={dirty:y,ctx:t}),yt.$set(Cn);const ce={};y&2&&(ce.$$scope={dirty:y,ctx:t}),xt.$set(ce);const pe={};y&2&&(pe.$$scope={dirty:y,ctx:t}),Tt.$set(pe);const ge={};y&2&&(ge.$$scope={dirty:y,ctx:t}),jt.$set(ge);const B={};y&2&&(B.$$scope={dirty:y,ctx:t}),$t.$set(B);const ue={};y&2&&(ue.$$scope={dirty:y,ctx:t}),It.$set(ue);const Io={};y&2&&(Io.$$scope={dirty:y,ctx:t}),Mt.$set(Io);const vn={};y&2&&(vn.$$scope={dirty:y,ctx:t}),wt.$set(vn);const Jn={};y&2&&(Jn.$$scope={dirty:y,ctx:t}),Ct.$set(Jn);const Un={};y&2&&(Un.$$scope={dirty:y,ctx:t}),Jt.$set(Un);const kn={};y&2&&(kn.$$scope={dirty:y,ctx:t}),Ut.$set(kn);const En={};y&2&&(En.$$scope={dirty:y,ctx:t}),kt.$set(En);const Zn={};y&2&&(Zn.$$scope={dirty:y,ctx:t}),Et.$set(Zn);const qn={};y&2&&(qn.$$scope={dirty:y,ctx:t}),Zt.$set(qn);const G={};y&2&&(G.$$scope={dirty:y,ctx:t}),qt.$set(G);const de={};y&2&&(de.$$scope={dirty:y,ctx:t}),Wt.$set(de);const Wn={};y&2&&(Wn.$$scope={dirty:y,ctx:t}),Nt.$set(Wn);const Nn={};y&2&&(Nn.$$scope={dirty:y,ctx:t}),Gt.$set(Nn);const H={};y&2&&(H.$$scope={dirty:y,ctx:t}),Vt.$set(H);const Gn={};y&2&&(Gn.$$scope={dirty:y,ctx:t}),At.$set(Gn);const Vn={};y&2&&(Vn.$$scope={dirty:y,ctx:t}),Dt.$set(Vn);const An={};y&2&&(An.$$scope={dirty:y,ctx:t}),Yt.$set(An);const k={};y&2&&(k.$$scope={dirty:y,ctx:t}),Rt.$set(k);const Dn={};y&2&&(Dn.$$scope={dirty:y,ctx:t}),Bt.$set(Dn);const Yn={};y&2&&(Yn.$$scope={dirty:y,ctx:t}),Ht.$set(Yn);const Rn={};y&2&&(Rn.$$scope={dirty:y,ctx:t}),St.$set(Rn);const Bn={};y&2&&(Bn.$$scope={dirty:y,ctx:t}),Qt.$set(Bn);const Hn={};y&2&&(Hn.$$scope={dirty:y,ctx:t}),Ft.$set(Hn);const Sn={};y&2&&(Sn.$$scope={dirty:y,ctx:t}),Pt.$set(Sn);const Qn={};y&2&&(Qn.$$scope={dirty:y,ctx:t}),Lt.$set(Qn);const me={};y&2&&(me.$$scope={dirty:y,ctx:t}),Xt.$set(me);const Mo={};y&2&&(Mo.$$scope={dirty:y,ctx:t}),zt.$set(Mo);const Fn={};y&2&&(Fn.$$scope={dirty:y,ctx:t}),Ot.$set(Fn);const he={};y&2&&(he.$$scope={dirty:y,ctx:t}),Kt.$set(he);const fe={};y&2&&(fe.$$scope={dirty:y,ctx:t}),ea.$set(fe);const be={};y&2&&(be.$$scope={dirty:y,ctx:t}),ta.$set(be);const S={};y&2&&(S.$$scope={dirty:y,ctx:t}),aa.$set(S);const _e={};y&2&&(_e.$$scope={dirty:y,ctx:t}),sa.$set(_e);const wo={};y&2&&(wo.$$scope={dirty:y,ctx:t}),oa.$set(wo);const Pn={};y&2&&(Pn.$$scope={dirty:y,ctx:t}),ra.$set(Pn);const Ln={};y&2&&(Ln.$$scope={dirty:y,ctx:t}),la.$set(Ln);const Xn={};y&2&&(Xn.$$scope={dirty:y,ctx:t}),ia.$set(Xn);const zn={};y&2&&(zn.$$scope={dirty:y,ctx:t}),ca.$set(zn);const On={};y&2&&(On.$$scope={dirty:y,ctx:t}),pa.$set(On);const Kn={};y&2&&(Kn.$$scope={dirty:y,ctx:t}),ga.$set(Kn);const et={};y&2&&(et.$$scope={dirty:y,ctx:t}),da.$set(et);const V={};y&2&&(V.$$scope={dirty:y,ctx:t}),ma.$set(V);const ye={};y&2&&(ye.$$scope={dirty:y,ctx:t}),ha.$set(ye);const nt={};y&2&&(nt.$$scope={dirty:y,ctx:t}),fa.$set(nt);const tt={};y&2&&(tt.$$scope={dirty:y,ctx:t}),ba.$set(tt);const Q={};y&2&&(Q.$$scope={dirty:y,ctx:t}),_a.$set(Q);const at={};y&2&&(at.$$scope={dirty:y,ctx:t}),ya.$set(at);const st={};y&2&&(st.$$scope={dirty:y,ctx:t}),xa.$set(st);const ot={};y&2&&(ot.$$scope={dirty:y,ctx:t}),Ta.$set(ot);const Co={};y&2&&(Co.$$scope={dirty:y,ctx:t}),ja.$set(Co);const vo={};y&2&&(vo.$$scope={dirty:y,ctx:t}),$a.$set(vo);const Jo={};y&2&&(Jo.$$scope={dirty:y,ctx:t}),Ia.$set(Jo);const Uo={};y&2&&(Uo.$$scope={dirty:y,ctx:t}),Ma.$set(Uo);const ko={};y&2&&(ko.$$scope={dirty:y,ctx:t}),wa.$set(ko);const rt={};y&2&&(rt.$$scope={dirty:y,ctx:t}),Ca.$set(rt);const lt={};y&2&&(lt.$$scope={dirty:y,ctx:t}),va.$set(lt);const Eo={};y&2&&(Eo.$$scope={dirty:y,ctx:t}),Ja.$set(Eo);const Zo={};y&2&&(Zo.$$scope={dirty:y,ctx:t}),Ua.$set(Zo)},i(t){ai||(f(i.$$.fragment,t),f(Wa.$$.fragment,t),f(Na.$$.fragment,t),f(Ga.$$.fragment,t),f(it.$$.fragment,t),f(Va.$$.fragment,t),f(ct.$$.fragment,t),f(Aa.$$.fragment,t),f(pt.$$.fragment,t),f(Da.$$.fragment,t),f(gt.$$.fragment,t),f(Ya.$$.fragment,t),f(ut.$$.fragment,t),f(Ra.$$.fragment,t),f(dt.$$.fragment,t),f(Ba.$$.fragment,t),f(mt.$$.fragment,t),f(Ha.$$.fragment,t),f(ht.$$.fragment,t),f(ft.$$.fragment,t),f(Sa.$$.fragment,t),f(Qa.$$.fragment,t),f(_t.$$.fragment,t),f(Fa.$$.fragment,t),f(yt.$$.fragment,t),f(xt.$$.fragment,t),f(Pa.$$.fragment,t),f(Tt.$$.fragment,t),f(jt.$$.fragment,t),f(La.$$.fragment,t),f($t.$$.fragment,t),f(Xa.$$.fragment,t),f(It.$$.fragment,t),f(Mt.$$.fragment,t),f(za.$$.fragment,t),f(wt.$$.fragment,t),f(Ct.$$.fragment,t),f(Oa.$$.fragment,t),f(Ka.$$.fragment,t),f(Jt.$$.fragment,t),f(es.$$.fragment,t),f(Ut.$$.fragment,t),f(ns.$$.fragment,t),f(kt.$$.fragment,t),f(ts.$$.fragment,t),f(Et.$$.fragment,t),f(as.$$.fragment,t),f(Zt.$$.fragment,t),f(ss.$$.fragment,t),f(qt.$$.fragment,t),f(os.$$.fragment,t),f(Wt.$$.fragment,t),f(rs.$$.fragment,t),f(Nt.$$.fragment,t),f(ls.$$.fragment,t),f(Gt.$$.fragment,t),f(Vt.$$.fragment,t),f(is.$$.fragment,t),f(At.$$.fragment,t),f(cs.$$.fragment,t),f(Dt.$$.fragment,t),f(ps.$$.fragment,t),f(Yt.$$.fragment,t),f(Rt.$$.fragment,t),f(gs.$$.fragment,t),f(Bt.$$.fragment,t),f(us.$$.fragment,t),f(Ht.$$.fragment,t),f(ds.$$.fragment,t),f(St.$$.fragment,t),f(ms.$$.fragment,t),f(fs.$$.fragment,t),f(bs.$$.fragment,t),f(_s.$$.fragment,t),f(Qt.$$.fragment,t),f(ys.$$.fragment,t),f(Ft.$$.fragment,t),f(xs.$$.fragment,t),f(Pt.$$.fragment,t),f(Ts.$$.fragment,t),f(Lt.$$.fragment,t),f(js.$$.fragment,t),f(Xt.$$.fragment,t),f($s.$$.fragment,t),f(zt.$$.fragment,t),f(Is.$$.fragment,t),f(Ot.$$.fragment,t),f(Ms.$$.fragment,t),f(Kt.$$.fragment,t),f(ea.$$.fragment,t),f(ws.$$.fragment,t),f(Cs.$$.fragment,t),f(ta.$$.fragment,t),f(vs.$$.fragment,t),f(aa.$$.fragment,t),f(sa.$$.fragment,t),f(Js.$$.fragment,t),f(oa.$$.fragment,t),f(ra.$$.fragment,t),f(Us.$$.fragment,t),f(la.$$.fragment,t),f(ks.$$.fragment,t),f(ia.$$.fragment,t),f(ca.$$.fragment,t),f(Es.$$.fragment,t),f(pa.$$.fragment,t),f(ga.$$.fragment,t),f(Zs.$$.fragment,t),f(qs.$$.fragment,t),f(da.$$.fragment,t),f(Ws.$$.fragment,t),f(ma.$$.fragment,t),f(Ns.$$.fragment,t),f(ha.$$.fragment,t),f(Gs.$$.fragment,t),f(fa.$$.fragment,t),f(Vs.$$.fragment,t),f(ba.$$.fragment,t),f(As.$$.fragment,t),f(_a.$$.fragment,t),f(Ds.$$.fragment,t),f(ya.$$.fragment,t),f(Ys.$$.fragment,t),f(xa.$$.fragment,t),f(Rs.$$.fragment,t),f(Ta.$$.fragment,t),f(ja.$$.fragment,t),f(Bs.$$.fragment,t),f($a.$$.fragment,t),f(Hs.$$.fragment,t),f(Ia.$$.fragment,t),f(Ss.$$.fragment,t),f(Ma.$$.fragment,t),f(wa.$$.fragment,t),f(Qs.$$.fragment,t),f(Ca.$$.fragment,t),f(Fs.$$.fragment,t),f(va.$$.fragment,t),f(Ps.$$.fragment,t),f(Ja.$$.fragment,t),f(Ls.$$.fragment,t),f(Xs.$$.fragment,t),f(zs.$$.fragment,t),f(Ks.$$.fragment,t),f(eo.$$.fragment,t),f(no.$$.fragment,t),f(to.$$.fragment,t),f(ao.$$.fragment,t),f(so.$$.fragment,t),f(oo.$$.fragment,t),f(io.$$.fragment,t),f(co.$$.fragment,t),f(po.$$.fragment,t),f(go.$$.fragment,t),f(uo.$$.fragment,t),f(mo.$$.fragment,t),f(ho.$$.fragment,t),f(fo.$$.fragment,t),f(bo.$$.fragment,t),f(_o.$$.fragment,t),f(xo.$$.fragment,t),f(Ua.$$.fragment,t),f(To.$$.fragment,t),f(jo.$$.fragment,t),ai=!0)},o(t){b(i.$$.fragment,t),b(Wa.$$.fragment,t),b(Na.$$.fragment,t),b(Ga.$$.fragment,t),b(it.$$.fragment,t),b(Va.$$.fragment,t),b(ct.$$.fragment,t),b(Aa.$$.fragment,t),b(pt.$$.fragment,t),b(Da.$$.fragment,t),b(gt.$$.fragment,t),b(Ya.$$.fragment,t),b(ut.$$.fragment,t),b(Ra.$$.fragment,t),b(dt.$$.fragment,t),b(Ba.$$.fragment,t),b(mt.$$.fragment,t),b(Ha.$$.fragment,t),b(ht.$$.fragment,t),b(ft.$$.fragment,t),b(Sa.$$.fragment,t),b(Qa.$$.fragment,t),b(_t.$$.fragment,t),b(Fa.$$.fragment,t),b(yt.$$.fragment,t),b(xt.$$.fragment,t),b(Pa.$$.fragment,t),b(Tt.$$.fragment,t),b(jt.$$.fragment,t),b(La.$$.fragment,t),b($t.$$.fragment,t),b(Xa.$$.fragment,t),b(It.$$.fragment,t),b(Mt.$$.fragment,t),b(za.$$.fragment,t),b(wt.$$.fragment,t),b(Ct.$$.fragment,t),b(Oa.$$.fragment,t),b(Ka.$$.fragment,t),b(Jt.$$.fragment,t),b(es.$$.fragment,t),b(Ut.$$.fragment,t),b(ns.$$.fragment,t),b(kt.$$.fragment,t),b(ts.$$.fragment,t),b(Et.$$.fragment,t),b(as.$$.fragment,t),b(Zt.$$.fragment,t),b(ss.$$.fragment,t),b(qt.$$.fragment,t),b(os.$$.fragment,t),b(Wt.$$.fragment,t),b(rs.$$.fragment,t),b(Nt.$$.fragment,t),b(ls.$$.fragment,t),b(Gt.$$.fragment,t),b(Vt.$$.fragment,t),b(is.$$.fragment,t),b(At.$$.fragment,t),b(cs.$$.fragment,t),b(Dt.$$.fragment,t),b(ps.$$.fragment,t),b(Yt.$$.fragment,t),b(Rt.$$.fragment,t),b(gs.$$.fragment,t),b(Bt.$$.fragment,t),b(us.$$.fragment,t),b(Ht.$$.fragment,t),b(ds.$$.fragment,t),b(St.$$.fragment,t),b(ms.$$.fragment,t),b(fs.$$.fragment,t),b(bs.$$.fragment,t),b(_s.$$.fragment,t),b(Qt.$$.fragment,t),b(ys.$$.fragment,t),b(Ft.$$.fragment,t),b(xs.$$.fragment,t),b(Pt.$$.fragment,t),b(Ts.$$.fragment,t),b(Lt.$$.fragment,t),b(js.$$.fragment,t),b(Xt.$$.fragment,t),b($s.$$.fragment,t),b(zt.$$.fragment,t),b(Is.$$.fragment,t),b(Ot.$$.fragment,t),b(Ms.$$.fragment,t),b(Kt.$$.fragment,t),b(ea.$$.fragment,t),b(ws.$$.fragment,t),b(Cs.$$.fragment,t),b(ta.$$.fragment,t),b(vs.$$.fragment,t),b(aa.$$.fragment,t),b(sa.$$.fragment,t),b(Js.$$.fragment,t),b(oa.$$.fragment,t),b(ra.$$.fragment,t),b(Us.$$.fragment,t),b(la.$$.fragment,t),b(ks.$$.fragment,t),b(ia.$$.fragment,t),b(ca.$$.fragment,t),b(Es.$$.fragment,t),b(pa.$$.fragment,t),b(ga.$$.fragment,t),b(Zs.$$.fragment,t),b(qs.$$.fragment,t),b(da.$$.fragment,t),b(Ws.$$.fragment,t),b(ma.$$.fragment,t),b(Ns.$$.fragment,t),b(ha.$$.fragment,t),b(Gs.$$.fragment,t),b(fa.$$.fragment,t),b(Vs.$$.fragment,t),b(ba.$$.fragment,t),b(As.$$.fragment,t),b(_a.$$.fragment,t),b(Ds.$$.fragment,t),b(ya.$$.fragment,t),b(Ys.$$.fragment,t),b(xa.$$.fragment,t),b(Rs.$$.fragment,t),b(Ta.$$.fragment,t),b(ja.$$.fragment,t),b(Bs.$$.fragment,t),b($a.$$.fragment,t),b(Hs.$$.fragment,t),b(Ia.$$.fragment,t),b(Ss.$$.fragment,t),b(Ma.$$.fragment,t),b(wa.$$.fragment,t),b(Qs.$$.fragment,t),b(Ca.$$.fragment,t),b(Fs.$$.fragment,t),b(va.$$.fragment,t),b(Ps.$$.fragment,t),b(Ja.$$.fragment,t),b(Ls.$$.fragment,t),b(Xs.$$.fragment,t),b(zs.$$.fragment,t),b(Ks.$$.fragment,t),b(eo.$$.fragment,t),b(no.$$.fragment,t),b(to.$$.fragment,t),b(ao.$$.fragment,t),b(so.$$.fragment,t),b(oo.$$.fragment,t),b(io.$$.fragment,t),b(co.$$.fragment,t),b(po.$$.fragment,t),b(go.$$.fragment,t),b(uo.$$.fragment,t),b(mo.$$.fragment,t),b(ho.$$.fragment,t),b(fo.$$.fragment,t),b(bo.$$.fragment,t),b(_o.$$.fragment,t),b(xo.$$.fragment,t),b(Ua.$$.fragment,t),b(To.$$.fragment,t),b(jo.$$.fragment,t),ai=!1},d(t){t&&(c(x),c(o),c(a),c(e),c(u),c($l),c(Za),c(Il),c(qa),c(Ml),c(wl),c(C),c(Cl),c(vl),c(hs),c(Jl),c(Ul),c(v),c(kl),c(El),c(cn),c(Zl),c(ql),c(Os),c(Wl),c(Nl),c(pn),c(Gl),c(Vl),c(gn),c(Al),c(Dl),c(un),c(Yl),c(Rl),c(ro),c(Bl),c(lo),c(Hl),c(dn),c(Sl),c(re),c(Ql),c(le),c(Fl),c(mn),c(Pl),c(hn),c(Ll),c(fn),c(Xl),c(bn),c(zl),c(_n),c(Ol),c(yn),c(Kl),c(ei),c(yo),c(ni),c(N),c(ti),c(jl)),c(n),_(i,t),_(Wa,t),_(Na),_(Ga),_(it),_(Va),_(ct),_(Aa),_(pt),_(Da),_(gt),_(Ya),_(ut),_(Ra),_(dt),_(Ba),_(mt),_(Ha),_(ht),_(ft),_(Sa),_(Qa),_(_t),_(Fa),_(yt),_(xt),_(Pa),_(Tt),_(jt),_(La),_($t),_(Xa),_(It),_(Mt),_(za),_(wt),_(Ct),_(Oa),_(Ka),_(Jt),_(es),_(Ut),_(ns),_(kt),_(ts),_(Et),_(as),_(Zt),_(ss),_(qt),_(os),_(Wt),_(rs),_(Nt),_(ls),_(Gt),_(Vt),_(is),_(At),_(cs),_(Dt),_(ps),_(Yt),_(Rt),_(gs),_(Bt),_(us),_(Ht),_(ds),_(St),_(ms,t),_(fs,t),_(bs),_(_s),_(Qt),_(ys),_(Ft),_(xs),_(Pt),_(Ts),_(Lt),_(js),_(Xt),_($s),_(zt),_(Is),_(Ot),_(Ms),_(Kt),_(ea),_(ws),_(Cs),_(ta),_(vs),_(aa),_(sa),_(Js),_(oa),_(ra),_(Us),_(la),_(ks),_(ia),_(ca),_(Es),_(pa),_(ga),_(Zs),_(qs),_(da),_(Ws),_(ma),_(Ns),_(ha),_(Gs),_(fa),_(Vs),_(ba),_(As),_(_a),_(Ds),_(ya),_(Ys),_(xa),_(Rs),_(Ta),_(ja),_(Bs),_($a),_(Hs),_(Ia),_(Ss),_(Ma),_(wa),_(Qs),_(Ca),_(Fs),_(va),_(Ps),_(Ja),_(Ls,t),_(Xs),_(zs,t),_(Ks,t),_(eo),_(no,t),_(to),_(ao,t),_(so),_(oo,t),_(io),_(co),_(po),_(go),_(uo),_(mo),_(ho),_(fo),_(bo),_(_o,t),_(xo),_(Ua),_(To),_(jo)}}}const Ph='{"title":"Inference","local":"inference","sections":[{"title":"Inference Client","local":"huggingface_hub.InferenceClient","sections":[],"depth":2},{"title":"Async Inference Client","local":"huggingface_hub.AsyncInferenceClient","sections":[],"depth":2},{"title":"InferenceTimeoutError","local":"huggingface_hub.InferenceTimeoutError","sections":[],"depth":2},{"title":"Return types","local":"return-types","sections":[{"title":"ConversationalOutputConversation","local":"huggingface_hub.inference._types.ConversationalOutputConversation","sections":[],"depth":3},{"title":"ConversationalOutput","local":"huggingface_hub.inference._types.ConversationalOutput","sections":[],"depth":3},{"title":"ModelStatus","local":"huggingface_hub.inference._common.ModelStatus","sections":[],"depth":3},{"title":"Text generation types","local":"huggingface_hub.TextGenerationParameters","sections":[],"depth":3}],"depth":2},{"title":"InferenceAPI","local":"huggingface_hub.InferenceApi","sections":[],"depth":2}],"depth":1}';function Lh($){return Im(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class af extends Mm{constructor(n){super(),wm(this,n,Lh,Fh,$m,{})}}export{af as component};
