import{s as vm,o as Jm,n as k}from"../chunks/scheduler.6062bdaf.js";import{S as Um,i as km,g as p,s as r,r as m,A as qm,h as g,f as c,c as l,j as I,u as h,x as T,k as M,y as a,a as j,v as f,d as b,t as _,w as y}from"../chunks/index.4bca734e.js";import{T as ae}from"../chunks/Tip.b9ac1f03.js";import{D as w}from"../chunks/Docstring.ed07512f.js";import{C as q}from"../chunks/CodeBlock.fa01571c.js";import{E as Z}from"../chunks/ExampleCodeBlock.823fb173.js";import{H as Y}from"../chunks/Heading.723dceba.js";function Zm($){let t,x="Example:",o,s,i;return s=new q({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMEluZmVyZW5jZUNsaWVudCUwQWNsaWVudCUyMCUzRCUyMEluZmVyZW5jZUNsaWVudCgpJTBBY2xpZW50LmF1ZGlvX2NsYXNzaWZpY2F0aW9uKCUyMmF1ZGlvLmZsYWMlMjIp",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> InferenceClient
<span class="hljs-meta">&gt;&gt;&gt; </span>client = InferenceClient()
<span class="hljs-meta">&gt;&gt;&gt; </span>client.audio_classification(<span class="hljs-string">&quot;audio.flac&quot;</span>)
[{<span class="hljs-string">&#x27;score&#x27;</span>: <span class="hljs-number">0.4976358711719513</span>, <span class="hljs-string">&#x27;label&#x27;</span>: <span class="hljs-string">&#x27;hap&#x27;</span>}, {<span class="hljs-string">&#x27;score&#x27;</span>: <span class="hljs-number">0.3677836060523987</span>, <span class="hljs-string">&#x27;label&#x27;</span>: <span class="hljs-string">&#x27;neu&#x27;</span>},...]`,wrap:!1}}),{c(){t=p("p"),t.textContent=x,o=r(),m(s.$$.fragment)},l(e){t=g(e,"P",{"data-svelte-h":!0}),T(t)!=="svelte-11lpom8"&&(t.textContent=x),o=l(e),h(s.$$.fragment,e)},m(e,u){j(e,t,u),j(e,o,u),f(s,e,u),i=!0},p:k,i(e){i||(b(s.$$.fragment,e),i=!0)},o(e){_(s.$$.fragment,e),i=!1},d(e){e&&(c(t),c(o)),y(s,e)}}}function Em($){let t,x="Example:",o,s,i;return s=new q({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMEluZmVyZW5jZUNsaWVudCUwQWNsaWVudCUyMCUzRCUyMEluZmVyZW5jZUNsaWVudCgpJTBBY2xpZW50LmF1dG9tYXRpY19zcGVlY2hfcmVjb2duaXRpb24oJTIyaGVsbG9fd29ybGQuZmxhYyUyMik=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> InferenceClient
<span class="hljs-meta">&gt;&gt;&gt; </span>client = InferenceClient()
<span class="hljs-meta">&gt;&gt;&gt; </span>client.automatic_speech_recognition(<span class="hljs-string">&quot;hello_world.flac&quot;</span>)
<span class="hljs-string">&quot;hello world&quot;</span>`,wrap:!1}}),{c(){t=p("p"),t.textContent=x,o=r(),m(s.$$.fragment)},l(e){t=g(e,"P",{"data-svelte-h":!0}),T(t)!=="svelte-11lpom8"&&(t.textContent=x),o=l(e),h(s.$$.fragment,e)},m(e,u){j(e,t,u),j(e,o,u),f(s,e,u),i=!0},p:k,i(e){i||(b(s.$$.fragment,e),i=!0)},o(e){_(s.$$.fragment,e),i=!1},d(e){e&&(c(t),c(o)),y(s,e)}}}function Wm($){let t,x="Example:",o,s,i;return s=new q({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMEluZmVyZW5jZUNsaWVudCUwQWNsaWVudCUyMCUzRCUyMEluZmVyZW5jZUNsaWVudCgpJTBBb3V0cHV0JTIwJTNEJTIwY2xpZW50LmNvbnZlcnNhdGlvbmFsKCUyMkhpJTJDJTIwd2hvJTIwYXJlJTIweW91JTNGJTIyKSUwQW91dHB1dCUwQWNsaWVudC5jb252ZXJzYXRpb25hbCglMEElMjAlMjAlMjAlMjAlMjJXb3clMkMlMjB0aGF0J3MlMjBzY2FyeSElMjIlMkMlMEElMjAlMjAlMjAlMjBnZW5lcmF0ZWRfcmVzcG9uc2VzJTNEb3V0cHV0JTVCJTIyY29udmVyc2F0aW9uJTIyJTVEJTVCJTIyZ2VuZXJhdGVkX3Jlc3BvbnNlcyUyMiU1RCUyQyUwQSUyMCUyMCUyMCUyMHBhc3RfdXNlcl9pbnB1dHMlM0RvdXRwdXQlNUIlMjJjb252ZXJzYXRpb24lMjIlNUQlNUIlMjJwYXN0X3VzZXJfaW5wdXRzJTIyJTVEJTJDJTBBKQ==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> InferenceClient
<span class="hljs-meta">&gt;&gt;&gt; </span>client = InferenceClient()
<span class="hljs-meta">&gt;&gt;&gt; </span>output = client.conversational(<span class="hljs-string">&quot;Hi, who are you?&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>output
{<span class="hljs-string">&#x27;generated_text&#x27;</span>: <span class="hljs-string">&#x27;I am the one who knocks.&#x27;</span>, <span class="hljs-string">&#x27;conversation&#x27;</span>: {<span class="hljs-string">&#x27;generated_responses&#x27;</span>: [<span class="hljs-string">&#x27;I am the one who knocks.&#x27;</span>], <span class="hljs-string">&#x27;past_user_inputs&#x27;</span>: [<span class="hljs-string">&#x27;Hi, who are you?&#x27;</span>]}, <span class="hljs-string">&#x27;warnings&#x27;</span>: [<span class="hljs-string">&#x27;Setting \`pad_token_id\` to \`eos_token_id\`:50256 for open-end generation.&#x27;</span>]}
<span class="hljs-meta">&gt;&gt;&gt; </span>client.conversational(
<span class="hljs-meta">... </span>    <span class="hljs-string">&quot;Wow, that&#x27;s scary!&quot;</span>,
<span class="hljs-meta">... </span>    generated_responses=output[<span class="hljs-string">&quot;conversation&quot;</span>][<span class="hljs-string">&quot;generated_responses&quot;</span>],
<span class="hljs-meta">... </span>    past_user_inputs=output[<span class="hljs-string">&quot;conversation&quot;</span>][<span class="hljs-string">&quot;past_user_inputs&quot;</span>],
<span class="hljs-meta">... </span>)`,wrap:!1}}),{c(){t=p("p"),t.textContent=x,o=r(),m(s.$$.fragment)},l(e){t=g(e,"P",{"data-svelte-h":!0}),T(t)!=="svelte-11lpom8"&&(t.textContent=x),o=l(e),h(s.$$.fragment,e)},m(e,u){j(e,t,u),j(e,o,u),f(s,e,u),i=!0},p:k,i(e){i||(b(s.$$.fragment,e),i=!0)},o(e){_(s.$$.fragment,e),i=!1},d(e){e&&(c(t),c(o)),y(s,e)}}}function Nm($){let t,x="Example:",o,s,i;return s=new q({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMEluZmVyZW5jZUNsaWVudCUwQWNsaWVudCUyMCUzRCUyMEluZmVyZW5jZUNsaWVudCgpJTBBY2xpZW50LmRvY3VtZW50X3F1ZXN0aW9uX2Fuc3dlcmluZyhpbWFnZSUzRCUyMmh0dHBzJTNBJTJGJTJGaHVnZ2luZ2ZhY2UuY28lMkZzcGFjZXMlMkZpbXBpcmElMkZkb2NxdWVyeSUyRnJlc29sdmUlMkYyMzU5MjIzYzE4MzdhNzU4NzQwMmJkYTBmMjY0MzM4MmE2ZWVmZWFiJTJGaW52b2ljZS5wbmclMjIlMkMlMjBxdWVzdGlvbiUzRCUyMldoYXQlMjBpcyUyMHRoZSUyMGludm9pY2UlMjBudW1iZXIlM0YlMjIp",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> InferenceClient
<span class="hljs-meta">&gt;&gt;&gt; </span>client = InferenceClient()
<span class="hljs-meta">&gt;&gt;&gt; </span>client.document_question_answering(image=<span class="hljs-string">&quot;https://huggingface.co/spaces/impira/docquery/resolve/2359223c1837a7587402bda0f2643382a6eefeab/invoice.png&quot;</span>, question=<span class="hljs-string">&quot;What is the invoice number?&quot;</span>)
[{<span class="hljs-string">&#x27;score&#x27;</span>: <span class="hljs-number">0.42515629529953003</span>, <span class="hljs-string">&#x27;answer&#x27;</span>: <span class="hljs-string">&#x27;us-001&#x27;</span>, <span class="hljs-string">&#x27;start&#x27;</span>: <span class="hljs-number">16</span>, <span class="hljs-string">&#x27;end&#x27;</span>: <span class="hljs-number">16</span>}]`,wrap:!1}}),{c(){t=p("p"),t.textContent=x,o=r(),m(s.$$.fragment)},l(e){t=g(e,"P",{"data-svelte-h":!0}),T(t)!=="svelte-11lpom8"&&(t.textContent=x),o=l(e),h(s.$$.fragment,e)},m(e,u){j(e,t,u),j(e,o,u),f(s,e,u),i=!0},p:k,i(e){i||(b(s.$$.fragment,e),i=!0)},o(e){_(s.$$.fragment,e),i=!1},d(e){e&&(c(t),c(o)),y(s,e)}}}function Gm($){let t,x="Example:",o,s,i;return s=new q({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMEluZmVyZW5jZUNsaWVudCUwQWNsaWVudCUyMCUzRCUyMEluZmVyZW5jZUNsaWVudCgpJTBBY2xpZW50LmZlYXR1cmVfZXh0cmFjdGlvbiglMjJIaSUyQyUyMHdobyUyMGFyZSUyMHlvdSUzRiUyMik=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> InferenceClient
<span class="hljs-meta">&gt;&gt;&gt; </span>client = InferenceClient()
<span class="hljs-meta">&gt;&gt;&gt; </span>client.feature_extraction(<span class="hljs-string">&quot;Hi, who are you?&quot;</span>)
array([[ <span class="hljs-number">2.424802</span>  ,  <span class="hljs-number">2.93384</span>   ,  <span class="hljs-number">1.1750331</span> , ...,  <span class="hljs-number">1.240499</span>, -<span class="hljs-number">0.13776633</span>, -<span class="hljs-number">0.7889173</span> ],
[-<span class="hljs-number">0.42943227</span>, -<span class="hljs-number">0.6364878</span> , -<span class="hljs-number">1.693462</span>  , ...,  <span class="hljs-number">0.41978157</span>, -<span class="hljs-number">2.4336355</span> ,  <span class="hljs-number">0.6162071</span> ],
...,
[ <span class="hljs-number">0.28552425</span>, -<span class="hljs-number">0.928395</span>  , -<span class="hljs-number">1.2077185</span> , ...,  <span class="hljs-number">0.76810825</span>, -<span class="hljs-number">2.1069427</span> ,  <span class="hljs-number">0.6236161</span> ]], dtype=float32)`,wrap:!1}}),{c(){t=p("p"),t.textContent=x,o=r(),m(s.$$.fragment)},l(e){t=g(e,"P",{"data-svelte-h":!0}),T(t)!=="svelte-11lpom8"&&(t.textContent=x),o=l(e),h(s.$$.fragment,e)},m(e,u){j(e,t,u),j(e,o,u),f(s,e,u),i=!0},p:k,i(e){i||(b(s.$$.fragment,e),i=!0)},o(e){_(s.$$.fragment,e),i=!1},d(e){e&&(c(t),c(o)),y(s,e)}}}function Dm($){let t,x="Example:",o,s,i;return s=new q({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMEluZmVyZW5jZUNsaWVudCUwQWNsaWVudCUyMCUzRCUyMEluZmVyZW5jZUNsaWVudCgpJTBBY2xpZW50LmZpbGxfbWFzayglMjJUaGUlMjBnb2FsJTIwb2YlMjBsaWZlJTIwaXMlMjAlM0NtYXNrJTNFLiUyMik=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> InferenceClient
<span class="hljs-meta">&gt;&gt;&gt; </span>client = InferenceClient()
<span class="hljs-meta">&gt;&gt;&gt; </span>client.fill_mask(<span class="hljs-string">&quot;The goal of life is &lt;mask&gt;.&quot;</span>)
[{<span class="hljs-string">&#x27;score&#x27;</span>: <span class="hljs-number">0.06897063553333282</span>,
<span class="hljs-string">&#x27;token&#x27;</span>: <span class="hljs-number">11098</span>,
<span class="hljs-string">&#x27;token_str&#x27;</span>: <span class="hljs-string">&#x27; happiness&#x27;</span>,
<span class="hljs-string">&#x27;sequence&#x27;</span>: <span class="hljs-string">&#x27;The goal of life is happiness.&#x27;</span>},
{<span class="hljs-string">&#x27;score&#x27;</span>: <span class="hljs-number">0.06554922461509705</span>,
<span class="hljs-string">&#x27;token&#x27;</span>: <span class="hljs-number">45075</span>,
<span class="hljs-string">&#x27;token_str&#x27;</span>: <span class="hljs-string">&#x27; immortality&#x27;</span>,
<span class="hljs-string">&#x27;sequence&#x27;</span>: <span class="hljs-string">&#x27;The goal of life is immortality.&#x27;</span>}]`,wrap:!1}}),{c(){t=p("p"),t.textContent=x,o=r(),m(s.$$.fragment)},l(e){t=g(e,"P",{"data-svelte-h":!0}),T(t)!=="svelte-11lpom8"&&(t.textContent=x),o=l(e),h(s.$$.fragment,e)},m(e,u){j(e,t,u),j(e,o,u),f(s,e,u),i=!0},p:k,i(e){i||(b(s.$$.fragment,e),i=!0)},o(e){_(s.$$.fragment,e),i=!1},d(e){e&&(c(t),c(o)),y(s,e)}}}function Vm($){let t,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(){t=p("p"),t.innerHTML=x},l(o){t=g(o,"P",{"data-svelte-h":!0}),T(t)!=="svelte-1igz3dx"&&(t.innerHTML=x)},m(o,s){j(o,t,s)},p:k,d(o){o&&c(t)}}}function Am($){let t,x="Example:",o,s,i;return s=new q({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMEluZmVyZW5jZUNsaWVudCUwQWNsaWVudCUyMCUzRCUyMEluZmVyZW5jZUNsaWVudCgpJTBBY2xpZW50LmdldF9tb2RlbF9zdGF0dXMoJTIyYmlnY29kZSUyRnN0YXJjb2RlciUyMik=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> InferenceClient
<span class="hljs-meta">&gt;&gt;&gt; </span>client = InferenceClient()
<span class="hljs-meta">&gt;&gt;&gt; </span>client.get_model_status(<span class="hljs-string">&quot;bigcode/starcoder&quot;</span>)
ModelStatus(loaded=<span class="hljs-literal">True</span>, state=<span class="hljs-string">&#x27;Loaded&#x27;</span>, compute_type=<span class="hljs-string">&#x27;gpu&#x27;</span>, framework=<span class="hljs-string">&#x27;text-generation-inference&#x27;</span>)`,wrap:!1}}),{c(){t=p("p"),t.textContent=x,o=r(),m(s.$$.fragment)},l(e){t=g(e,"P",{"data-svelte-h":!0}),T(t)!=="svelte-11lpom8"&&(t.textContent=x),o=l(e),h(s.$$.fragment,e)},m(e,u){j(e,t,u),j(e,o,u),f(s,e,u),i=!0},p:k,i(e){i||(b(s.$$.fragment,e),i=!0)},o(e){_(s.$$.fragment,e),i=!1},d(e){e&&(c(t),c(o)),y(s,e)}}}function Rm($){let t,x="Example:",o,s,i;return s=new q({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMEluZmVyZW5jZUNsaWVudCUwQWNsaWVudCUyMCUzRCUyMEluZmVyZW5jZUNsaWVudCgpJTBBY2xpZW50LmltYWdlX2NsYXNzaWZpY2F0aW9uKCUyMmh0dHBzJTNBJTJGJTJGdXBsb2FkLndpa2ltZWRpYS5vcmclMkZ3aWtpcGVkaWElMkZjb21tb25zJTJGdGh1bWIlMkY0JTJGNDMlMkZDdXRlX2RvZy5qcGclMkYzMjBweC1DdXRlX2RvZy5qcGclMjIp",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> InferenceClient
<span class="hljs-meta">&gt;&gt;&gt; </span>client = InferenceClient()
<span class="hljs-meta">&gt;&gt;&gt; </span>client.image_classification(<span class="hljs-string">&quot;https://upload.wikimedia.org/wikipedia/commons/thumb/4/43/Cute_dog.jpg/320px-Cute_dog.jpg&quot;</span>)
[{<span class="hljs-string">&#x27;score&#x27;</span>: <span class="hljs-number">0.9779096841812134</span>, <span class="hljs-string">&#x27;label&#x27;</span>: <span class="hljs-string">&#x27;Blenheim spaniel&#x27;</span>}, ...]`,wrap:!1}}),{c(){t=p("p"),t.textContent=x,o=r(),m(s.$$.fragment)},l(e){t=g(e,"P",{"data-svelte-h":!0}),T(t)!=="svelte-11lpom8"&&(t.textContent=x),o=l(e),h(s.$$.fragment,e)},m(e,u){j(e,t,u),j(e,o,u),f(s,e,u),i=!0},p:k,i(e){i||(b(s.$$.fragment,e),i=!0)},o(e){_(s.$$.fragment,e),i=!1},d(e){e&&(c(t),c(o)),y(s,e)}}}function Bm($){let t,x="You must have <code>PIL</code> installed if you want to work with images (<code>pip install Pillow</code>).";return{c(){t=p("p"),t.innerHTML=x},l(o){t=g(o,"P",{"data-svelte-h":!0}),T(t)!=="svelte-s2e3n9"&&(t.innerHTML=x)},m(o,s){j(o,t,s)},p:k,d(o){o&&c(t)}}}function Ym($){let t,x="Example:",o,s,i;return s=new q({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMEluZmVyZW5jZUNsaWVudCUwQWNsaWVudCUyMCUzRCUyMEluZmVyZW5jZUNsaWVudCgpJTBBY2xpZW50LmltYWdlX3NlZ21lbnRhdGlvbiglMjJjYXQuanBnJTIyKSUzQQ==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> InferenceClient
<span class="hljs-meta">&gt;&gt;&gt; </span>client = InferenceClient()
<span class="hljs-meta">&gt;&gt;&gt; </span>client.image_segmentation(<span class="hljs-string">&quot;cat.jpg&quot;</span>):
[{<span class="hljs-string">&#x27;score&#x27;</span>: <span class="hljs-number">0.989008</span>, <span class="hljs-string">&#x27;label&#x27;</span>: <span class="hljs-string">&#x27;LABEL_184&#x27;</span>, <span class="hljs-string">&#x27;mask&#x27;</span>: &lt;PIL.PngImagePlugin.PngImageFile image mode=L size=400x300 at <span class="hljs-number">0x7FDD2B129CC0</span>&gt;}, ...]`,wrap:!1}}),{c(){t=p("p"),t.textContent=x,o=r(),m(s.$$.fragment)},l(e){t=g(e,"P",{"data-svelte-h":!0}),T(t)!=="svelte-11lpom8"&&(t.textContent=x),o=l(e),h(s.$$.fragment,e)},m(e,u){j(e,t,u),j(e,o,u),f(s,e,u),i=!0},p:k,i(e){i||(b(s.$$.fragment,e),i=!0)},o(e){_(s.$$.fragment,e),i=!1},d(e){e&&(c(t),c(o)),y(s,e)}}}function Hm($){let t,x="You must have <code>PIL</code> installed if you want to work with images (<code>pip install Pillow</code>).";return{c(){t=p("p"),t.innerHTML=x},l(o){t=g(o,"P",{"data-svelte-h":!0}),T(t)!=="svelte-s2e3n9"&&(t.innerHTML=x)},m(o,s){j(o,t,s)},p:k,d(o){o&&c(t)}}}function Pm($){let t,x="Example:",o,s,i;return s=new q({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMEluZmVyZW5jZUNsaWVudCUwQWNsaWVudCUyMCUzRCUyMEluZmVyZW5jZUNsaWVudCgpJTBBaW1hZ2UlMjAlM0QlMjBjbGllbnQuaW1hZ2VfdG9faW1hZ2UoJTIyY2F0LmpwZyUyMiUyQyUyMHByb21wdCUzRCUyMnR1cm4lMjB0aGUlMjBjYXQlMjBpbnRvJTIwYSUyMHRpZ2VyJTIyKSUwQWltYWdlLnNhdmUoJTIydGlnZXIuanBnJTIyKQ==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> InferenceClient
<span class="hljs-meta">&gt;&gt;&gt; </span>client = InferenceClient()
<span class="hljs-meta">&gt;&gt;&gt; </span>image = client.image_to_image(<span class="hljs-string">&quot;cat.jpg&quot;</span>, prompt=<span class="hljs-string">&quot;turn the cat into a tiger&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>image.save(<span class="hljs-string">&quot;tiger.jpg&quot;</span>)`,wrap:!1}}),{c(){t=p("p"),t.textContent=x,o=r(),m(s.$$.fragment)},l(e){t=g(e,"P",{"data-svelte-h":!0}),T(t)!=="svelte-11lpom8"&&(t.textContent=x),o=l(e),h(s.$$.fragment,e)},m(e,u){j(e,t,u),j(e,o,u),f(s,e,u),i=!0},p:k,i(e){i||(b(s.$$.fragment,e),i=!0)},o(e){_(s.$$.fragment,e),i=!1},d(e){e&&(c(t),c(o)),y(s,e)}}}function Lm($){let t,x="Example:",o,s,i;return s=new q({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMEluZmVyZW5jZUNsaWVudCUwQWNsaWVudCUyMCUzRCUyMEluZmVyZW5jZUNsaWVudCgpJTBBY2xpZW50LmltYWdlX3RvX3RleHQoJTIyY2F0LmpwZyUyMiklMEFjbGllbnQuaW1hZ2VfdG9fdGV4dCglMjJodHRwcyUzQSUyRiUyRnVwbG9hZC53aWtpbWVkaWEub3JnJTJGd2lraXBlZGlhJTJGY29tbW9ucyUyRnRodW1iJTJGNCUyRjQzJTJGQ3V0ZV9kb2cuanBnJTJGMzIwcHgtQ3V0ZV9kb2cuanBnJTIyKQ==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> InferenceClient
<span class="hljs-meta">&gt;&gt;&gt; </span>client = InferenceClient()
<span class="hljs-meta">&gt;&gt;&gt; </span>client.image_to_text(<span class="hljs-string">&quot;cat.jpg&quot;</span>)
<span class="hljs-string">&#x27;a cat standing in a grassy field &#x27;</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>client.image_to_text(<span class="hljs-string">&quot;https://upload.wikimedia.org/wikipedia/commons/thumb/4/43/Cute_dog.jpg/320px-Cute_dog.jpg&quot;</span>)
<span class="hljs-string">&#x27;a dog laying on the grass next to a flower pot &#x27;</span>`,wrap:!1}}),{c(){t=p("p"),t.textContent=x,o=r(),m(s.$$.fragment)},l(e){t=g(e,"P",{"data-svelte-h":!0}),T(t)!=="svelte-11lpom8"&&(t.textContent=x),o=l(e),h(s.$$.fragment,e)},m(e,u){j(e,t,u),j(e,o,u),f(s,e,u),i=!0},p:k,i(e){i||(b(s.$$.fragment,e),i=!0)},o(e){_(s.$$.fragment,e),i=!1},d(e){e&&(c(t),c(o)),y(s,e)}}}function Qm($){let t,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(){t=p("p"),t.innerHTML=x},l(o){t=g(o,"P",{"data-svelte-h":!0}),T(t)!=="svelte-wneo7r"&&(t.innerHTML=x)},m(o,s){j(o,t,s)},p:k,d(o){o&&c(t)}}}function Fm($){let t,x="Example:",o,s,i;return s=new q({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMEluZmVyZW5jZUNsaWVudCUwQWNsaWVudCUyMCUzRCUyMEluZmVyZW5jZUNsaWVudCgpJTBBJTBBbW9kZWxzJTIwJTNEJTIwY2xpZW50Lmxpc3RfZGVwbG95ZWRfbW9kZWxzKCklMEFtb2RlbHMlNUIlMjJ6ZXJvLXNob3QtY2xhc3NpZmljYXRpb24lMjIlNUQlMEElMEFjbGllbnQubGlzdF9kZXBsb3llZF9tb2RlbHMoJTIydGV4dC1nZW5lcmF0aW9uLWluZmVyZW5jZSUyMik=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> InferenceClient
<span class="hljs-meta">&gt;&gt;&gt; </span>client = InferenceClient()

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

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

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

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

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

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

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

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

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

<span class="hljs-meta">&gt;&gt;&gt; </span>client.zero_shot_image_classification(
<span class="hljs-meta">... </span>    <span class="hljs-string">&quot;https://upload.wikimedia.org/wikipedia/commons/thumb/4/43/Cute_dog.jpg/320px-Cute_dog.jpg&quot;</span>,
<span class="hljs-meta">... </span>    labels=[<span class="hljs-string">&quot;dog&quot;</span>, <span class="hljs-string">&quot;cat&quot;</span>, <span class="hljs-string">&quot;horse&quot;</span>],
<span class="hljs-meta">... </span>)
[{<span class="hljs-string">&quot;label&quot;</span>: <span class="hljs-string">&quot;dog&quot;</span>, <span class="hljs-string">&quot;score&quot;</span>: <span class="hljs-number">0.956</span>}, ...]`,wrap:!1}}),{c(){t=p("p"),t.textContent=x,o=r(),m(s.$$.fragment)},l(e){t=g(e,"P",{"data-svelte-h":!0}),T(t)!=="svelte-11lpom8"&&(t.textContent=x),o=l(e),h(s.$$.fragment,e)},m(e,u){j(e,t,u),j(e,o,u),f(s,e,u),i=!0},p:k,i(e){i||(b(s.$$.fragment,e),i=!0)},o(e){_(s.$$.fragment,e),i=!1},d(e){e&&(c(t),c(o)),y(s,e)}}}function dh($){let t,x="Example:",o,s,i;return s=new q({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMEFzeW5jSW5mZXJlbmNlQ2xpZW50JTBBY2xpZW50JTIwJTNEJTIwQXN5bmNJbmZlcmVuY2VDbGllbnQoKSUwQWF3YWl0JTIwY2xpZW50LmF1ZGlvX2NsYXNzaWZpY2F0aW9uKCUyMmF1ZGlvLmZsYWMlMjIp",highlighted:`<span class="hljs-comment"># Must be run in an async context</span>
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> AsyncInferenceClient
<span class="hljs-meta">&gt;&gt;&gt; </span>client = AsyncInferenceClient()
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">await</span> client.audio_classification(<span class="hljs-string">&quot;audio.flac&quot;</span>)
[{<span class="hljs-string">&#x27;score&#x27;</span>: <span class="hljs-number">0.4976358711719513</span>, <span class="hljs-string">&#x27;label&#x27;</span>: <span class="hljs-string">&#x27;hap&#x27;</span>}, {<span class="hljs-string">&#x27;score&#x27;</span>: <span class="hljs-number">0.3677836060523987</span>, <span class="hljs-string">&#x27;label&#x27;</span>: <span class="hljs-string">&#x27;neu&#x27;</span>},...]`,wrap:!1}}),{c(){t=p("p"),t.textContent=x,o=r(),m(s.$$.fragment)},l(e){t=g(e,"P",{"data-svelte-h":!0}),T(t)!=="svelte-11lpom8"&&(t.textContent=x),o=l(e),h(s.$$.fragment,e)},m(e,u){j(e,t,u),j(e,o,u),f(s,e,u),i=!0},p:k,i(e){i||(b(s.$$.fragment,e),i=!0)},o(e){_(s.$$.fragment,e),i=!1},d(e){e&&(c(t),c(o)),y(s,e)}}}function mh($){let t,x="Example:",o,s,i;return s=new q({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMEFzeW5jSW5mZXJlbmNlQ2xpZW50JTBBY2xpZW50JTIwJTNEJTIwQXN5bmNJbmZlcmVuY2VDbGllbnQoKSUwQWF3YWl0JTIwY2xpZW50LmF1dG9tYXRpY19zcGVlY2hfcmVjb2duaXRpb24oJTIyaGVsbG9fd29ybGQuZmxhYyUyMik=",highlighted:`<span class="hljs-comment"># Must be run in an async context</span>
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> AsyncInferenceClient
<span class="hljs-meta">&gt;&gt;&gt; </span>client = AsyncInferenceClient()
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">await</span> client.automatic_speech_recognition(<span class="hljs-string">&quot;hello_world.flac&quot;</span>)
<span class="hljs-string">&quot;hello world&quot;</span>`,wrap:!1}}),{c(){t=p("p"),t.textContent=x,o=r(),m(s.$$.fragment)},l(e){t=g(e,"P",{"data-svelte-h":!0}),T(t)!=="svelte-11lpom8"&&(t.textContent=x),o=l(e),h(s.$$.fragment,e)},m(e,u){j(e,t,u),j(e,o,u),f(s,e,u),i=!0},p:k,i(e){i||(b(s.$$.fragment,e),i=!0)},o(e){_(s.$$.fragment,e),i=!1},d(e){e&&(c(t),c(o)),y(s,e)}}}function hh($){let t,x="Example:",o,s,i;return s=new q({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMEFzeW5jSW5mZXJlbmNlQ2xpZW50JTBBY2xpZW50JTIwJTNEJTIwQXN5bmNJbmZlcmVuY2VDbGllbnQoKSUwQW91dHB1dCUyMCUzRCUyMGF3YWl0JTIwY2xpZW50LmNvbnZlcnNhdGlvbmFsKCUyMkhpJTJDJTIwd2hvJTIwYXJlJTIweW91JTNGJTIyKSUwQW91dHB1dCUwQWF3YWl0JTIwY2xpZW50LmNvbnZlcnNhdGlvbmFsKCUwQSUyMCUyMCUyMCUyMCUyMldvdyUyQyUyMHRoYXQncyUyMHNjYXJ5ISUyMiUyQyUwQSUyMCUyMCUyMCUyMGdlbmVyYXRlZF9yZXNwb25zZXMlM0RvdXRwdXQlNUIlMjJjb252ZXJzYXRpb24lMjIlNUQlNUIlMjJnZW5lcmF0ZWRfcmVzcG9uc2VzJTIyJTVEJTJDJTBBJTIwJTIwJTIwJTIwcGFzdF91c2VyX2lucHV0cyUzRG91dHB1dCU1QiUyMmNvbnZlcnNhdGlvbiUyMiU1RCU1QiUyMnBhc3RfdXNlcl9pbnB1dHMlMjIlNUQlMkMlMEEp",highlighted:`<span class="hljs-comment"># Must be run in an async context</span>
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> AsyncInferenceClient
<span class="hljs-meta">&gt;&gt;&gt; </span>client = AsyncInferenceClient()
<span class="hljs-meta">&gt;&gt;&gt; </span>output = <span class="hljs-keyword">await</span> client.conversational(<span class="hljs-string">&quot;Hi, who are you?&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>output
{<span class="hljs-string">&#x27;generated_text&#x27;</span>: <span class="hljs-string">&#x27;I am the one who knocks.&#x27;</span>, <span class="hljs-string">&#x27;conversation&#x27;</span>: {<span class="hljs-string">&#x27;generated_responses&#x27;</span>: [<span class="hljs-string">&#x27;I am the one who knocks.&#x27;</span>], <span class="hljs-string">&#x27;past_user_inputs&#x27;</span>: [<span class="hljs-string">&#x27;Hi, who are you?&#x27;</span>]}, <span class="hljs-string">&#x27;warnings&#x27;</span>: [<span class="hljs-string">&#x27;Setting \`pad_token_id\` to \`eos_token_id\`:50256 async for open-end generation.&#x27;</span>]}
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">await</span> client.conversational(
<span class="hljs-meta">... </span>    <span class="hljs-string">&quot;Wow, that&#x27;s scary!&quot;</span>,
<span class="hljs-meta">... </span>    generated_responses=output[<span class="hljs-string">&quot;conversation&quot;</span>][<span class="hljs-string">&quot;generated_responses&quot;</span>],
<span class="hljs-meta">... </span>    past_user_inputs=output[<span class="hljs-string">&quot;conversation&quot;</span>][<span class="hljs-string">&quot;past_user_inputs&quot;</span>],
<span class="hljs-meta">... </span>)`,wrap:!1}}),{c(){t=p("p"),t.textContent=x,o=r(),m(s.$$.fragment)},l(e){t=g(e,"P",{"data-svelte-h":!0}),T(t)!=="svelte-11lpom8"&&(t.textContent=x),o=l(e),h(s.$$.fragment,e)},m(e,u){j(e,t,u),j(e,o,u),f(s,e,u),i=!0},p:k,i(e){i||(b(s.$$.fragment,e),i=!0)},o(e){_(s.$$.fragment,e),i=!1},d(e){e&&(c(t),c(o)),y(s,e)}}}function fh($){let t,x="Example:",o,s,i;return s=new q({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMEFzeW5jSW5mZXJlbmNlQ2xpZW50JTBBY2xpZW50JTIwJTNEJTIwQXN5bmNJbmZlcmVuY2VDbGllbnQoKSUwQWF3YWl0JTIwY2xpZW50LmRvY3VtZW50X3F1ZXN0aW9uX2Fuc3dlcmluZyhpbWFnZSUzRCUyMmh0dHBzJTNBJTJGJTJGaHVnZ2luZ2ZhY2UuY28lMkZzcGFjZXMlMkZpbXBpcmElMkZkb2NxdWVyeSUyRnJlc29sdmUlMkYyMzU5MjIzYzE4MzdhNzU4NzQwMmJkYTBmMjY0MzM4MmE2ZWVmZWFiJTJGaW52b2ljZS5wbmclMjIlMkMlMjBxdWVzdGlvbiUzRCUyMldoYXQlMjBpcyUyMHRoZSUyMGludm9pY2UlMjBudW1iZXIlM0YlMjIp",highlighted:`<span class="hljs-comment"># Must be run in an async context</span>
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> AsyncInferenceClient
<span class="hljs-meta">&gt;&gt;&gt; </span>client = AsyncInferenceClient()
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">await</span> client.document_question_answering(image=<span class="hljs-string">&quot;https://huggingface.co/spaces/impira/docquery/resolve/2359223c1837a7587402bda0f2643382a6eefeab/invoice.png&quot;</span>, question=<span class="hljs-string">&quot;What is the invoice number?&quot;</span>)
[{<span class="hljs-string">&#x27;score&#x27;</span>: <span class="hljs-number">0.42515629529953003</span>, <span class="hljs-string">&#x27;answer&#x27;</span>: <span class="hljs-string">&#x27;us-001&#x27;</span>, <span class="hljs-string">&#x27;start&#x27;</span>: <span class="hljs-number">16</span>, <span class="hljs-string">&#x27;end&#x27;</span>: <span class="hljs-number">16</span>}]`,wrap:!1}}),{c(){t=p("p"),t.textContent=x,o=r(),m(s.$$.fragment)},l(e){t=g(e,"P",{"data-svelte-h":!0}),T(t)!=="svelte-11lpom8"&&(t.textContent=x),o=l(e),h(s.$$.fragment,e)},m(e,u){j(e,t,u),j(e,o,u),f(s,e,u),i=!0},p:k,i(e){i||(b(s.$$.fragment,e),i=!0)},o(e){_(s.$$.fragment,e),i=!1},d(e){e&&(c(t),c(o)),y(s,e)}}}function bh($){let t,x="Example:",o,s,i;return s=new q({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMEFzeW5jSW5mZXJlbmNlQ2xpZW50JTBBY2xpZW50JTIwJTNEJTIwQXN5bmNJbmZlcmVuY2VDbGllbnQoKSUwQWF3YWl0JTIwY2xpZW50LmZlYXR1cmVfZXh0cmFjdGlvbiglMjJIaSUyQyUyMHdobyUyMGFyZSUyMHlvdSUzRiUyMik=",highlighted:`<span class="hljs-comment"># Must be run in an async context</span>
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> AsyncInferenceClient
<span class="hljs-meta">&gt;&gt;&gt; </span>client = AsyncInferenceClient()
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">await</span> client.feature_extraction(<span class="hljs-string">&quot;Hi, who are you?&quot;</span>)
array([[ <span class="hljs-number">2.424802</span>  ,  <span class="hljs-number">2.93384</span>   ,  <span class="hljs-number">1.1750331</span> , ...,  <span class="hljs-number">1.240499</span>, -<span class="hljs-number">0.13776633</span>, -<span class="hljs-number">0.7889173</span> ],
[-<span class="hljs-number">0.42943227</span>, -<span class="hljs-number">0.6364878</span> , -<span class="hljs-number">1.693462</span>  , ...,  <span class="hljs-number">0.41978157</span>, -<span class="hljs-number">2.4336355</span> ,  <span class="hljs-number">0.6162071</span> ],
...,
[ <span class="hljs-number">0.28552425</span>, -<span class="hljs-number">0.928395</span>  , -<span class="hljs-number">1.2077185</span> , ...,  <span class="hljs-number">0.76810825</span>, -<span class="hljs-number">2.1069427</span> ,  <span class="hljs-number">0.6236161</span> ]], dtype=float32)`,wrap:!1}}),{c(){t=p("p"),t.textContent=x,o=r(),m(s.$$.fragment)},l(e){t=g(e,"P",{"data-svelte-h":!0}),T(t)!=="svelte-11lpom8"&&(t.textContent=x),o=l(e),h(s.$$.fragment,e)},m(e,u){j(e,t,u),j(e,o,u),f(s,e,u),i=!0},p:k,i(e){i||(b(s.$$.fragment,e),i=!0)},o(e){_(s.$$.fragment,e),i=!1},d(e){e&&(c(t),c(o)),y(s,e)}}}function _h($){let t,x="Example:",o,s,i;return s=new q({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMEFzeW5jSW5mZXJlbmNlQ2xpZW50JTBBY2xpZW50JTIwJTNEJTIwQXN5bmNJbmZlcmVuY2VDbGllbnQoKSUwQWF3YWl0JTIwY2xpZW50LmZpbGxfbWFzayglMjJUaGUlMjBnb2FsJTIwb2YlMjBsaWZlJTIwaXMlMjAlM0NtYXNrJTNFLiUyMik=",highlighted:`<span class="hljs-comment"># Must be run in an async context</span>
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> AsyncInferenceClient
<span class="hljs-meta">&gt;&gt;&gt; </span>client = AsyncInferenceClient()
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">await</span> client.fill_mask(<span class="hljs-string">&quot;The goal of life is &lt;mask&gt;.&quot;</span>)
[{<span class="hljs-string">&#x27;score&#x27;</span>: <span class="hljs-number">0.06897063553333282</span>,
<span class="hljs-string">&#x27;token&#x27;</span>: <span class="hljs-number">11098</span>,
<span class="hljs-string">&#x27;token_str&#x27;</span>: <span class="hljs-string">&#x27; happiness&#x27;</span>,
<span class="hljs-string">&#x27;sequence&#x27;</span>: <span class="hljs-string">&#x27;The goal of life is happiness.&#x27;</span>},
{<span class="hljs-string">&#x27;score&#x27;</span>: <span class="hljs-number">0.06554922461509705</span>,
<span class="hljs-string">&#x27;token&#x27;</span>: <span class="hljs-number">45075</span>,
<span class="hljs-string">&#x27;token_str&#x27;</span>: <span class="hljs-string">&#x27; immortality&#x27;</span>,
<span class="hljs-string">&#x27;sequence&#x27;</span>: <span class="hljs-string">&#x27;The goal of life is immortality.&#x27;</span>}]`,wrap:!1}}),{c(){t=p("p"),t.textContent=x,o=r(),m(s.$$.fragment)},l(e){t=g(e,"P",{"data-svelte-h":!0}),T(t)!=="svelte-11lpom8"&&(t.textContent=x),o=l(e),h(s.$$.fragment,e)},m(e,u){j(e,t,u),j(e,o,u),f(s,e,u),i=!0},p:k,i(e){i||(b(s.$$.fragment,e),i=!0)},o(e){_(s.$$.fragment,e),i=!1},d(e){e&&(c(t),c(o)),y(s,e)}}}function yh($){let t,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(){t=p("p"),t.innerHTML=x},l(o){t=g(o,"P",{"data-svelte-h":!0}),T(t)!=="svelte-1igz3dx"&&(t.innerHTML=x)},m(o,s){j(o,t,s)},p:k,d(o){o&&c(t)}}}function xh($){let t,x="Example:",o,s,i;return s=new q({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMEFzeW5jSW5mZXJlbmNlQ2xpZW50JTBBY2xpZW50JTIwJTNEJTIwQXN5bmNJbmZlcmVuY2VDbGllbnQoKSUwQWF3YWl0JTIwY2xpZW50LmdldF9tb2RlbF9zdGF0dXMoJTIyYmlnY29kZSUyRnN0YXJjb2RlciUyMik=",highlighted:`<span class="hljs-comment"># Must be run in an async context</span>
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> AsyncInferenceClient
<span class="hljs-meta">&gt;&gt;&gt; </span>client = AsyncInferenceClient()
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">await</span> client.get_model_status(<span class="hljs-string">&quot;bigcode/starcoder&quot;</span>)
ModelStatus(loaded=<span class="hljs-literal">True</span>, state=<span class="hljs-string">&#x27;Loaded&#x27;</span>, compute_type=<span class="hljs-string">&#x27;gpu&#x27;</span>, framework=<span class="hljs-string">&#x27;text-generation-inference&#x27;</span>)`,wrap:!1}}),{c(){t=p("p"),t.textContent=x,o=r(),m(s.$$.fragment)},l(e){t=g(e,"P",{"data-svelte-h":!0}),T(t)!=="svelte-11lpom8"&&(t.textContent=x),o=l(e),h(s.$$.fragment,e)},m(e,u){j(e,t,u),j(e,o,u),f(s,e,u),i=!0},p:k,i(e){i||(b(s.$$.fragment,e),i=!0)},o(e){_(s.$$.fragment,e),i=!1},d(e){e&&(c(t),c(o)),y(s,e)}}}function jh($){let t,x="Example:",o,s,i;return s=new q({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMEFzeW5jSW5mZXJlbmNlQ2xpZW50JTBBY2xpZW50JTIwJTNEJTIwQXN5bmNJbmZlcmVuY2VDbGllbnQoKSUwQWF3YWl0JTIwY2xpZW50LmltYWdlX2NsYXNzaWZpY2F0aW9uKCUyMmh0dHBzJTNBJTJGJTJGdXBsb2FkLndpa2ltZWRpYS5vcmclMkZ3aWtpcGVkaWElMkZjb21tb25zJTJGdGh1bWIlMkY0JTJGNDMlMkZDdXRlX2RvZy5qcGclMkYzMjBweC1DdXRlX2RvZy5qcGclMjIp",highlighted:`<span class="hljs-comment"># Must be run in an async context</span>
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> AsyncInferenceClient
<span class="hljs-meta">&gt;&gt;&gt; </span>client = AsyncInferenceClient()
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">await</span> client.image_classification(<span class="hljs-string">&quot;https://upload.wikimedia.org/wikipedia/commons/thumb/4/43/Cute_dog.jpg/320px-Cute_dog.jpg&quot;</span>)
[{<span class="hljs-string">&#x27;score&#x27;</span>: <span class="hljs-number">0.9779096841812134</span>, <span class="hljs-string">&#x27;label&#x27;</span>: <span class="hljs-string">&#x27;Blenheim spaniel&#x27;</span>}, ...]`,wrap:!1}}),{c(){t=p("p"),t.textContent=x,o=r(),m(s.$$.fragment)},l(e){t=g(e,"P",{"data-svelte-h":!0}),T(t)!=="svelte-11lpom8"&&(t.textContent=x),o=l(e),h(s.$$.fragment,e)},m(e,u){j(e,t,u),j(e,o,u),f(s,e,u),i=!0},p:k,i(e){i||(b(s.$$.fragment,e),i=!0)},o(e){_(s.$$.fragment,e),i=!1},d(e){e&&(c(t),c(o)),y(s,e)}}}function Th($){let t,x="You must have <code>PIL</code> installed if you want to work with images (<code>pip install Pillow</code>).";return{c(){t=p("p"),t.innerHTML=x},l(o){t=g(o,"P",{"data-svelte-h":!0}),T(t)!=="svelte-s2e3n9"&&(t.innerHTML=x)},m(o,s){j(o,t,s)},p:k,d(o){o&&c(t)}}}function $h($){let t,x="Example:",o,s,i;return s=new q({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMEFzeW5jSW5mZXJlbmNlQ2xpZW50JTBBY2xpZW50JTIwJTNEJTIwQXN5bmNJbmZlcmVuY2VDbGllbnQoKSUwQWF3YWl0JTIwY2xpZW50LmltYWdlX3NlZ21lbnRhdGlvbiglMjJjYXQuanBnJTIyKSUzQQ==",highlighted:`<span class="hljs-comment"># Must be run in an async context</span>
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> AsyncInferenceClient
<span class="hljs-meta">&gt;&gt;&gt; </span>client = AsyncInferenceClient()
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">await</span> client.image_segmentation(<span class="hljs-string">&quot;cat.jpg&quot;</span>):
[{<span class="hljs-string">&#x27;score&#x27;</span>: <span class="hljs-number">0.989008</span>, <span class="hljs-string">&#x27;label&#x27;</span>: <span class="hljs-string">&#x27;LABEL_184&#x27;</span>, <span class="hljs-string">&#x27;mask&#x27;</span>: &lt;PIL.PngImagePlugin.PngImageFile image mode=L size=400x300 at <span class="hljs-number">0x7FDD2B129CC0</span>&gt;}, ...]`,wrap:!1}}),{c(){t=p("p"),t.textContent=x,o=r(),m(s.$$.fragment)},l(e){t=g(e,"P",{"data-svelte-h":!0}),T(t)!=="svelte-11lpom8"&&(t.textContent=x),o=l(e),h(s.$$.fragment,e)},m(e,u){j(e,t,u),j(e,o,u),f(s,e,u),i=!0},p:k,i(e){i||(b(s.$$.fragment,e),i=!0)},o(e){_(s.$$.fragment,e),i=!1},d(e){e&&(c(t),c(o)),y(s,e)}}}function Ih($){let t,x="You must have <code>PIL</code> installed if you want to work with images (<code>pip install Pillow</code>).";return{c(){t=p("p"),t.innerHTML=x},l(o){t=g(o,"P",{"data-svelte-h":!0}),T(t)!=="svelte-s2e3n9"&&(t.innerHTML=x)},m(o,s){j(o,t,s)},p:k,d(o){o&&c(t)}}}function Mh($){let t,x="Example:",o,s,i;return s=new q({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMEFzeW5jSW5mZXJlbmNlQ2xpZW50JTBBY2xpZW50JTIwJTNEJTIwQXN5bmNJbmZlcmVuY2VDbGllbnQoKSUwQWltYWdlJTIwJTNEJTIwYXdhaXQlMjBjbGllbnQuaW1hZ2VfdG9faW1hZ2UoJTIyY2F0LmpwZyUyMiUyQyUyMHByb21wdCUzRCUyMnR1cm4lMjB0aGUlMjBjYXQlMjBpbnRvJTIwYSUyMHRpZ2VyJTIyKSUwQWltYWdlLnNhdmUoJTIydGlnZXIuanBnJTIyKQ==",highlighted:`<span class="hljs-comment"># Must be run in an async context</span>
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> AsyncInferenceClient
<span class="hljs-meta">&gt;&gt;&gt; </span>client = AsyncInferenceClient()
<span class="hljs-meta">&gt;&gt;&gt; </span>image = <span class="hljs-keyword">await</span> client.image_to_image(<span class="hljs-string">&quot;cat.jpg&quot;</span>, prompt=<span class="hljs-string">&quot;turn the cat into a tiger&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>image.save(<span class="hljs-string">&quot;tiger.jpg&quot;</span>)`,wrap:!1}}),{c(){t=p("p"),t.textContent=x,o=r(),m(s.$$.fragment)},l(e){t=g(e,"P",{"data-svelte-h":!0}),T(t)!=="svelte-11lpom8"&&(t.textContent=x),o=l(e),h(s.$$.fragment,e)},m(e,u){j(e,t,u),j(e,o,u),f(s,e,u),i=!0},p:k,i(e){i||(b(s.$$.fragment,e),i=!0)},o(e){_(s.$$.fragment,e),i=!1},d(e){e&&(c(t),c(o)),y(s,e)}}}function wh($){let t,x="Example:",o,s,i;return s=new q({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMEFzeW5jSW5mZXJlbmNlQ2xpZW50JTBBY2xpZW50JTIwJTNEJTIwQXN5bmNJbmZlcmVuY2VDbGllbnQoKSUwQWF3YWl0JTIwY2xpZW50LmltYWdlX3RvX3RleHQoJTIyY2F0LmpwZyUyMiklMEFhd2FpdCUyMGNsaWVudC5pbWFnZV90b190ZXh0KCUyMmh0dHBzJTNBJTJGJTJGdXBsb2FkLndpa2ltZWRpYS5vcmclMkZ3aWtpcGVkaWElMkZjb21tb25zJTJGdGh1bWIlMkY0JTJGNDMlMkZDdXRlX2RvZy5qcGclMkYzMjBweC1DdXRlX2RvZy5qcGclMjIp",highlighted:`<span class="hljs-comment"># Must be run in an async context</span>
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> AsyncInferenceClient
<span class="hljs-meta">&gt;&gt;&gt; </span>client = AsyncInferenceClient()
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">await</span> client.image_to_text(<span class="hljs-string">&quot;cat.jpg&quot;</span>)
<span class="hljs-string">&#x27;a cat standing in a grassy field &#x27;</span>
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">await</span> client.image_to_text(<span class="hljs-string">&quot;https://upload.wikimedia.org/wikipedia/commons/thumb/4/43/Cute_dog.jpg/320px-Cute_dog.jpg&quot;</span>)
<span class="hljs-string">&#x27;a dog laying on the grass next to a flower pot &#x27;</span>`,wrap:!1}}),{c(){t=p("p"),t.textContent=x,o=r(),m(s.$$.fragment)},l(e){t=g(e,"P",{"data-svelte-h":!0}),T(t)!=="svelte-11lpom8"&&(t.textContent=x),o=l(e),h(s.$$.fragment,e)},m(e,u){j(e,t,u),j(e,o,u),f(s,e,u),i=!0},p:k,i(e){i||(b(s.$$.fragment,e),i=!0)},o(e){_(s.$$.fragment,e),i=!1},d(e){e&&(c(t),c(o)),y(s,e)}}}function Ch($){let t,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(){t=p("p"),t.innerHTML=x},l(o){t=g(o,"P",{"data-svelte-h":!0}),T(t)!=="svelte-wneo7r"&&(t.innerHTML=x)},m(o,s){j(o,t,s)},p:k,d(o){o&&c(t)}}}function vh($){let t,x="Example:",o,s,i;return s=new q({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMEFzeW5jSW5mZXJlbmNlQ2xpZW50JTBBY2xpZW50JTIwJTNEJTIwQXN5bmNJbmZlcmVuY2VDbGllbnQoKSUwQSUwQW1vZGVscyUyMCUzRCUyMGF3YWl0JTIwY2xpZW50Lmxpc3RfZGVwbG95ZWRfbW9kZWxzKCklMEFtb2RlbHMlNUIlMjJ6ZXJvLXNob3QtY2xhc3NpZmljYXRpb24lMjIlNUQlMEElMEFhd2FpdCUyMGNsaWVudC5saXN0X2RlcGxveWVkX21vZGVscyglMjJ0ZXh0LWdlbmVyYXRpb24taW5mZXJlbmNlJTIyKQ==",highlighted:`<span class="hljs-comment"># Must be run in an async contextthon</span>
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> AsyncInferenceClient
<span class="hljs-meta">&gt;&gt;&gt; </span>client = AsyncInferenceClient()

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># Return as raw response to parse the output yourself</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>inference = InferenceApi(<span class="hljs-string">&quot;mio/amadeus&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>response = inference(<span class="hljs-string">&quot;hello world&quot;</span>, raw_response=<span class="hljs-literal">True</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>response.headers
{<span class="hljs-string">&quot;Content-Type&quot;</span>: <span class="hljs-string">&quot;audio/flac&quot;</span>, ...}
<span class="hljs-meta">&gt;&gt;&gt; </span>response.content <span class="hljs-comment"># raw bytes from server</span>
<span class="hljs-string">b&#x27;(...)&#x27;</span>`,wrap:!1}}),{c(){t=p("p"),t.textContent=x,o=r(),m(s.$$.fragment)},l(e){t=g(e,"P",{"data-svelte-h":!0}),T(t)!=="svelte-11lpom8"&&(t.textContent=x),o=l(e),h(s.$$.fragment,e)},m(e,u){j(e,t,u),j(e,o,u),f(s,e,u),i=!0},p:k,i(e){i||(b(s.$$.fragment,e),i=!0)},o(e){_(s.$$.fragment,e),i=!1},d(e){e&&(c(t),c(o)),y(s,e)}}}function Fh($){let t,x,o,s,i,e,u,ku=`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,ws,qu=`<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,Cs,Zu=`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,vs,wl,C,Js,yi,ko,Eu="Initialize a new Inference Client.",xi,qo,Wu=`<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.`,ji,je,Us,Ti,Zo,Nu="Perform audio classification on the provided audio content.",$i,ot,Ii,Te,ks,Mi,Eo,Gu="Perform automatic speech recognition (ASR or audio-to-text) on the given audio content.",wi,rt,Ci,$e,qs,vi,Wo,Du="Generate conversational responses based on the given input text (i.e. chat with the API).",Ji,lt,Ui,Ie,Zs,ki,No,Vu="Answer questions on document images.",qi,it,Zi,Me,Es,Ei,Go,Au="Generate embeddings for a given text.",Wi,ct,Ni,we,Ws,Gi,Do,Ru="Fill in a hole with a missing word (token to be precise).",Di,pt,Vi,H,Ns,Ai,Vo,Bu="Get the status of a model hosted on the Inference API.",Ri,gt,Bi,ut,Yi,dt,Gs,Hi,Ao,Yu="Get the model Hugging Face recommends for the input task.",Pi,Ce,Ds,Li,Ro,Hu="Perform image classification on the given image using the specified model.",Qi,mt,Fi,P,Vs,Si,Bo,Pu="Perform image segmentation on the given image using the specified model.",Xi,ht,zi,ft,Oi,L,As,Ki,Yo,Lu="Perform image-to-image translation using a specified model.",ec,bt,nc,_t,tc,Q,Rs,sc,Ho,Qu="Takes an input image and return text.",ac,Po,Fu=`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.`,oc,yt,rc,V,Bs,lc,Lo,Su="List models currently deployed on the Inference API service.",ic,Qo,Xu=`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.`,cc,xt,pc,jt,gc,F,Ys,uc,Fo,zu="Perform object detection on the given image using the specified model.",dc,Tt,mc,$t,hc,It,Hs,fc,So,Ou="Make a POST request to the inference server.",bc,ve,Ps,_c,Xo,Ku="Retrieve the answer to a question from a given text.",yc,Mt,xc,Je,Ls,jc,zo,ed="Compute the semantic similarity between a sentence and a list of other sentences by comparing their embeddings.",Tc,wt,$c,Ue,Qs,Ic,Oo,nd="Generate a summary of a given text using a specified model.",Mc,Ct,wc,ke,Fs,Cc,Ko,td="Retrieve the answer to a question from information given in a table.",vc,vt,Jc,qe,Ss,Uc,er,sd="Classifying a target category (a group) based on a set of attributes.",kc,Jt,qc,Ze,Xs,Zc,nr,ad="Predicting a numerical target value given a set of attributes/features in a table.",Ec,Ut,Wc,Ee,zs,Nc,tr,od="Perform text classification (e.g. sentiment-analysis) on the given text.",Gc,kt,Dc,E,Os,Vc,sr,rd="Given a prompt, generate the following text.",Ac,ar,ld=`It is recommended to have Pydantic installed in order to get inputs validated. This is preferable as it allow
early failures.`,Rc,or,id=`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.`,Bc,rr,cd='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>.',Yc,qt,Hc,S,Ks,Pc,lr,pd="Generate an image based on a given text using a specified model.",Lc,Zt,Qc,Et,Fc,We,ea,Sc,ir,gd="Synthesize an audio of a voice pronouncing a given text.",Xc,Wt,zc,Ne,na,Oc,cr,ud=`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.`,Kc,Nt,ep,X,ta,np,pr,dd="Convert text from one language to another.",tp,gr,md=`Check out <a href="https://huggingface.co/tasks/translation" rel="nofollow">https://huggingface.co/tasks/translation</a> for more information on how to choose the best model for
your specific use case. Source and target languages usually depends on the model.`,sp,Gt,ap,Ge,sa,op,ur,hd="Answering open-ended questions based on an image.",rp,Dt,lp,De,aa,ip,dr,fd="Provide as input a text and a set of candidate labels to classify the input text.",cp,Vt,pp,Ve,oa,gp,mr,bd="Provide input image and text labels to predict text labels for the image.",up,At,Cl,ra,vl,la,_d=`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,ia,Ul,v,ca,dp,hr,yd="Initialize a new Inference Client.",mp,fr,xd=`<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.`,hp,Ae,pa,fp,br,jd="Perform audio classification on the provided audio content.",bp,Rt,_p,Re,ga,yp,_r,Td="Perform automatic speech recognition (ASR or audio-to-text) on the given audio content.",xp,Bt,jp,Be,ua,Tp,yr,$d="Generate conversational responses based on the given input text (i.e. chat with the API).",$p,Yt,Ip,Ye,da,Mp,xr,Id="Answer questions on document images.",wp,Ht,Cp,He,ma,vp,jr,Md="Generate embeddings for a given text.",Jp,Pt,Up,Pe,ha,kp,Tr,wd="Fill in a hole with a missing word (token to be precise).",qp,Lt,Zp,z,fa,Ep,$r,Cd="Get the status of a model hosted on the Inference API.",Wp,Qt,Np,Ft,Gp,St,ba,Dp,Ir,vd="Get the model Hugging Face recommends for the input task.",Vp,Le,_a,Ap,Mr,Jd="Perform image classification on the given image using the specified model.",Rp,Xt,Bp,O,ya,Yp,wr,Ud="Perform image segmentation on the given image using the specified model.",Hp,zt,Pp,Ot,Lp,K,xa,Qp,Cr,kd="Perform image-to-image translation using a specified model.",Fp,Kt,Sp,es,Xp,ee,ja,zp,vr,qd="Takes an input image and return text.",Op,Jr,Zd=`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.`,Kp,ns,eg,A,Ta,ng,Ur,Ed="List models currently deployed on the Inference API service.",tg,kr,Wd=`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.`,sg,ts,ag,ss,og,ne,$a,rg,qr,Nd="Perform object detection on the given image using the specified model.",lg,as,ig,os,cg,rs,Ia,pg,Zr,Gd="Make a POST request to the inference server.",gg,Qe,Ma,ug,Er,Dd="Retrieve the answer to a question from a given text.",dg,ls,mg,Fe,wa,hg,Wr,Vd="Compute the semantic similarity between a sentence and a list of other sentences by comparing their embeddings.",fg,is,bg,Se,Ca,_g,Nr,Ad="Generate a summary of a given text using a specified model.",yg,cs,xg,Xe,va,jg,Gr,Rd="Retrieve the answer to a question from information given in a table.",Tg,ps,$g,ze,Ja,Ig,Dr,Bd="Classifying a target category (a group) based on a set of attributes.",Mg,gs,wg,Oe,Ua,Cg,Vr,Yd="Predicting a numerical target value given a set of attributes/features in a table.",vg,us,Jg,Ke,ka,Ug,Ar,Hd="Perform text classification (e.g. sentiment-analysis) on the given text.",kg,ds,qg,W,qa,Zg,Rr,Pd="Given a prompt, generate the following text.",Eg,Br,Ld=`It is recommended to have Pydantic installed in order to get inputs validated. This is preferable as it allow
early failures.`,Wg,Yr,Qd=`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.`,Ng,Hr,Fd='To learn more about the TGI project, please refer to <a href="https://github.com/huggingface/text-generation-inference" rel="nofollow">https://github.com/huggingface/text-generation-inference</a>.',Gg,ms,Dg,te,Za,Vg,Pr,Sd="Generate an image based on a given text using a specified model.",Ag,hs,Rg,fs,Bg,en,Ea,Yg,Lr,Xd="Synthesize an audio of a voice pronouncing a given text.",Hg,bs,Pg,nn,Wa,Lg,Qr,zd=`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.`,Qg,_s,Fg,se,Na,Sg,Fr,Od="Convert text from one language to another.",Xg,Sr,Kd=`Check out <a href="https://huggingface.co/tasks/translation" rel="nofollow">https://huggingface.co/tasks/translation</a> for more information on how to choose the best model for
your specific use case. Source and target languages usually depends on the model.`,zg,ys,Og,tn,Ga,Kg,Xr,em="Answering open-ended questions based on an image.",eu,xs,nu,sn,Da,tu,zr,nm="Provide as input a text and a set of candidate labels to classify the input text.",su,js,au,an,Va,ou,Or,tm="Provide input image and text labels to predict text labels for the image.",ru,Ts,kl,Aa,ql,rn,Ra,lu,Kr,sm="Error raised when a model is unavailable or the request times out.",Zl,Ba,El,Ya,am="For most tasks, the return value has a built-in type (string, list, image…). Here is a list for the more complex types.",Wl,Ha,Nl,ln,Pa,iu,el,om='Dictionary containing the output of a <a href="/docs/huggingface_hub/main/en/package_reference/inference_client#huggingface_hub.InferenceClient.audio_classification">audio_classification()</a> and  <a href="/docs/huggingface_hub/main/en/package_reference/inference_client#huggingface_hub.InferenceClient.image_classification">image_classification()</a> task.',Gl,La,Dl,cn,Qa,cu,nl,rm='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.',Vl,Fa,Al,pn,Sa,pu,tl,lm='Dictionary containing the output of a  <a href="/docs/huggingface_hub/main/en/package_reference/inference_client#huggingface_hub.InferenceClient.conversational">conversational()</a> task.',Rl,Xa,Bl,gn,za,gu,sl,im=`Dictionary containing information about a <a href="/docs/huggingface_hub/main/en/package_reference/inference_client#huggingface_hub.InferenceClient.image_segmentation">image_segmentation()</a> task. In practice, image segmentation returns a
list of <code>ImageSegmentationOutput</code> with 1 item per mask.`,Yl,Oa,Hl,un,Ka,uu,al,cm="This Dataclass represents the the model status in the Hugging Face Inference API.",Pl,eo,Ll,dn,no,du,ol,pm='Dictionary containing the output of a <a href="/docs/huggingface_hub/main/en/package_reference/inference_client#huggingface_hub.InferenceClient.token_classification">token_classification()</a> task.',Ql,to,Fl,so,gm=`<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.`,Sl,ao,um=`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.inference._text_generation.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).`,Xl,mn,oo,mu,rl,dm="Parameters for text generation.",zl,oe,ro,hu,ll,mm="Represents a response for text generation.",fu,il,hm="Only returned when <code>details=True</code>, otherwise a string is returned.",Ol,re,lo,bu,cl,fm="Represents a response for streaming text generation.",_u,pl,bm="Only returned when <code>details=True</code> and <code>stream=True</code>.",Kl,hn,io,yu,gl,_m="Represents an input token.",ei,fn,co,xu,ul,ym="Represents a token.",ni,bn,po,ju,dl,xm="An enumeration.",ti,_n,go,Tu,ml,jm="Represents a best-of sequence generated during text generation.",si,yn,uo,$u,hl,Tm="Represents details of a text generation.",ai,xn,mo,Iu,fl,$m="Represents details of a text generation stream.",oi,ho,ri,fo,Im=`<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.`,li,N,bo,Mu,bl,Mm="Client to configure requests and make calls to the HuggingFace Inference API.",wu,$s,Cu,Is,_o,vu,_l,wm="Inits headers and API call information.",Ju,Ms,yo,Uu,yl,Cm="Make a call to the Inference API.",ii,Tl,ci;return i=new Y({props:{title:"Inference",local:"inference",headingTag:"h1"}}),vs=new Y({props:{title:"Inference Client",local:"huggingface_hub.InferenceClient",headingTag:"h2"}}),Js=new w({props:{name:"class huggingface_hub.InferenceClient",anchor:"huggingface_hub.InferenceClient",parameters:[{name:"model",val:": typing.Optional[str] = None"},{name:"token",val:": typing.Union[str, bool, NoneType] = None"},{name:"timeout",val:": typing.Optional[float] = None"},{name:"headers",val:": typing.Union[typing.Dict[str, str], NoneType] = None"},{name:"cookies",val:": typing.Union[typing.Dict[str, str], NoneType] = None"}],parametersDescription:[{anchor:"huggingface_hub.InferenceClient.model",description:`<strong>model</strong> (<code>str</code>, <code>optional</code>) &#x2014;
The model to run inference with. Can be a model id hosted on the Hugging Face Hub, e.g. <code>bigcode/starcoder</code>
or a URL to a deployed Inference Endpoint. Defaults to None, in which case a recommended model is
automatically selected for the task.`,name:"model"},{anchor:"huggingface_hub.InferenceClient.token",description:`<strong>token</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Hugging Face token. Will default to the locally saved token. Pass <code>token=False</code> if you don&#x2019;t want to send
your token to the server.`,name:"token"},{anchor:"huggingface_hub.InferenceClient.timeout",description:`<strong>timeout</strong> (<code>float</code>, <code>optional</code>) &#x2014;
The maximum number of seconds to wait for a response from the server. Loading a new model in Inference
API can take up to several minutes. Defaults to None, meaning it will loop until the server is available.`,name:"timeout"},{anchor:"huggingface_hub.InferenceClient.headers",description:`<strong>headers</strong> (<code>Dict[str, str]</code>, <code>optional</code>) &#x2014;
Additional headers to send to the server. By default only the authorization and user-agent headers are sent.
Values in this dictionary will override the default values.`,name:"headers"},{anchor:"huggingface_hub.InferenceClient.cookies",description:`<strong>cookies</strong> (<code>Dict[str, str]</code>, <code>optional</code>) &#x2014;
Additional cookies to send to the server.`,name:"cookies"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/inference/_client.py#L105"}}),Us=new w({props:{name:"audio_classification",anchor:"huggingface_hub.InferenceClient.audio_classification",parameters:[{name:"audio",val:": typing.Union[bytes, typing.BinaryIO, str, pathlib.Path]"},{name:"model",val:": typing.Optional[str] = None"}],parametersDescription:[{anchor:"huggingface_hub.InferenceClient.audio_classification.audio",description:`<strong>audio</strong> (Union[str, Path, bytes, BinaryIO]) &#x2014;
The audio content to classify. It can be raw audio bytes, a local audio file, or a URL pointing to an
audio file.`,name:"audio"},{anchor:"huggingface_hub.InferenceClient.audio_classification.model",description:`<strong>model</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The model to use for audio classification. Can be a model ID hosted on the Hugging Face Hub
or a URL to a deployed Inference Endpoint. If not provided, the default recommended model for
audio classification will be used.`,name:"model"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/inference/_client.py#L264",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


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


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


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


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


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


<ul>
<li><a
  href="/docs/huggingface_hub/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>
`}}),rt=new Z({props:{anchor:"huggingface_hub.InferenceClient.automatic_speech_recognition.example",$$slots:{default:[Em]},$$scope:{ctx:$}}}),qs=new w({props:{name:"conversational",anchor:"huggingface_hub.InferenceClient.conversational",parameters:[{name:"text",val:": str"},{name:"generated_responses",val:": typing.Optional[typing.List[str]] = None"},{name:"past_user_inputs",val:": typing.Optional[typing.List[str]] = None"},{name:"parameters",val:": typing.Union[typing.Dict[str, typing.Any], NoneType] = None"},{name:"model",val:": typing.Optional[str] = None"}],parametersDescription:[{anchor:"huggingface_hub.InferenceClient.conversational.text",description:`<strong>text</strong> (<code>str</code>) &#x2014;
The last input from the user in the conversation.`,name:"text"},{anchor:"huggingface_hub.InferenceClient.conversational.generated_responses",description:`<strong>generated_responses</strong> (<code>List[str]</code>, <em>optional</em>) &#x2014;
A list of strings corresponding to the earlier replies from the model. Defaults to None.`,name:"generated_responses"},{anchor:"huggingface_hub.InferenceClient.conversational.past_user_inputs",description:`<strong>past_user_inputs</strong> (<code>List[str]</code>, <em>optional</em>) &#x2014;
A list of strings corresponding to the earlier replies from the user. Should be the same length as
<code>generated_responses</code>. Defaults to None.`,name:"past_user_inputs"},{anchor:"huggingface_hub.InferenceClient.conversational.parameters",description:`<strong>parameters</strong> (<code>Dict[str, Any]</code>, <em>optional</em>) &#x2014;
Additional parameters for the conversational task. Defaults to None. For more details about the available
parameters, please refer to <a href="https://huggingface.co/docs/api-inference/detailed_parameters#conversational-task" rel="nofollow">this page</a>`,name:"parameters"},{anchor:"huggingface_hub.InferenceClient.conversational.model",description:`<strong>model</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The model to use for the conversational task. Can be a model ID hosted on the Hugging Face Hub or a URL to
a deployed Inference Endpoint. If not provided, the default recommended conversational model will be used.
Defaults to None.`,name:"model"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/inference/_client.py#L338",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>
`}}),lt=new Z({props:{anchor:"huggingface_hub.InferenceClient.conversational.example",$$slots:{default:[Wm]},$$scope:{ctx:$}}}),Zs=new w({props:{name:"document_question_answering",anchor:"huggingface_hub.InferenceClient.document_question_answering",parameters:[{name:"image",val:": typing.Union[bytes, typing.BinaryIO, str, pathlib.Path]"},{name:"question",val:": str"},{name:"model",val:": typing.Optional[str] = None"}],parametersDescription:[{anchor:"huggingface_hub.InferenceClient.document_question_answering.image",description:`<strong>image</strong> (<code>Union[str, Path, bytes, BinaryIO]</code>) &#x2014;
The input image for the context. It can be raw bytes, an image file, or a URL to an online image.`,name:"image"},{anchor:"huggingface_hub.InferenceClient.document_question_answering.question",description:`<strong>question</strong> (<code>str</code>) &#x2014;
Question to be answered.`,name:"question"},{anchor:"huggingface_hub.InferenceClient.document_question_answering.model",description:`<strong>model</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The model to use for the document question answering task. Can be a model ID hosted on the Hugging Face Hub or a URL to
a deployed Inference Endpoint. If not provided, the default recommended document question answering model will be used.
Defaults to None.`,name:"model"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/inference/_client.py#L443",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


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


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


<ul>
<li><a
  href="/docs/huggingface_hub/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.document_question_answering.example",$$slots:{default:[Nm]},$$scope:{ctx:$}}}),Es=new w({props:{name:"feature_extraction",anchor:"huggingface_hub.InferenceClient.feature_extraction",parameters:[{name:"text",val:": str"},{name:"model",val:": typing.Optional[str] = None"}],parametersDescription:[{anchor:"huggingface_hub.InferenceClient.feature_extraction.text",description:`<strong>text</strong> (<code>str</code>) &#x2014;
The text to embed.`,name:"text"},{anchor:"huggingface_hub.InferenceClient.feature_extraction.model",description:`<strong>model</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The model to use for the conversational task. Can be a model ID hosted on the Hugging Face Hub or a URL to
a deployed Inference Endpoint. If not provided, the default recommended conversational model will be used.
Defaults to None.`,name:"model"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/inference/_client.py#L484",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>
`}}),ct=new Z({props:{anchor:"huggingface_hub.InferenceClient.feature_extraction.example",$$slots:{default:[Gm]},$$scope:{ctx:$}}}),Ws=new w({props:{name:"fill_mask",anchor:"huggingface_hub.InferenceClient.fill_mask",parameters:[{name:"text",val:": str"},{name:"model",val:": typing.Optional[str] = None"}],parametersDescription:[{anchor:"huggingface_hub.InferenceClient.fill_mask.text",description:`<strong>text</strong> (<code>str</code>) &#x2014;
a string to be filled from, must contain the [MASK] token (check model card for exact name of the mask).`,name:"text"},{anchor:"huggingface_hub.InferenceClient.fill_mask.model",description:`<strong>model</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The model to use for the fill mask task. Can be a model ID hosted on the Hugging Face Hub or a URL to
a deployed Inference Endpoint. If not provided, the default recommended fill mask model will be used.
Defaults to None.`,name:"model"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/inference/_client.py#L520",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


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


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


<ul>
<li><a
  href="/docs/huggingface_hub/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.fill_mask.example",$$slots:{default:[Dm]},$$scope:{ctx:$}}}),Ns=new w({props:{name:"get_model_status",anchor:"huggingface_hub.InferenceClient.get_model_status",parameters:[{name:"model",val:": typing.Optional[str] = None"}],parametersDescription:[{anchor:"huggingface_hub.InferenceClient.get_model_status.model",description:`<strong>model</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Identifier of the model for witch the status gonna be checked. If model is not provided,
the model associated with this instance of <a href="/docs/huggingface_hub/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#L1913",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


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


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


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


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


<ul>
<li><a
  href="/docs/huggingface_hub/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.image_classification.example",$$slots:{default:[Rm]},$$scope:{ctx:$}}}),Vs=new w({props:{name:"image_segmentation",anchor:"huggingface_hub.InferenceClient.image_segmentation",parameters:[{name:"image",val:": typing.Union[bytes, typing.BinaryIO, str, pathlib.Path]"},{name:"model",val:": typing.Optional[str] = None"}],parametersDescription:[{anchor:"huggingface_hub.InferenceClient.image_segmentation.image",description:`<strong>image</strong> (<code>Union[str, Path, bytes, BinaryIO]</code>) &#x2014;
The image to segment. It can be raw bytes, an image file, or a URL to an online image.`,name:"image"},{anchor:"huggingface_hub.InferenceClient.image_segmentation.model",description:`<strong>model</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The model to use for image segmentation. Can be a model ID hosted on the Hugging Face Hub or a URL to a
deployed Inference Endpoint. If not provided, the default recommended model for image segmentation will be used.`,name:"model"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/inference/_client.py#L596",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


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


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


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


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


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


<ul>
<li><a
  href="/docs/huggingface_hub/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>
`}}),bt=new ae({props:{warning:!0,$$slots:{default:[Hm]},$$scope:{ctx:$}}}),_t=new Z({props:{anchor:"huggingface_hub.InferenceClient.image_to_image.example",$$slots:{default:[Pm]},$$scope:{ctx:$}}}),Rs=new w({props:{name:"image_to_text",anchor:"huggingface_hub.InferenceClient.image_to_text",parameters:[{name:"image",val:": typing.Union[bytes, typing.BinaryIO, str, pathlib.Path]"},{name:"model",val:": typing.Optional[str] = None"}],parametersDescription:[{anchor:"huggingface_hub.InferenceClient.image_to_text.image",description:`<strong>image</strong> (<code>Union[str, Path, bytes, BinaryIO]</code>) &#x2014;
The input image to caption. It can be raw bytes, an image file, or a URL to an online image..`,name:"image"},{anchor:"huggingface_hub.InferenceClient.image_to_text.model",description:`<strong>model</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The model to use for inference. Can be a model ID hosted on the Hugging Face Hub or a URL to a deployed
Inference Endpoint. This parameter overrides the model defined at the instance level. Defaults to None.`,name:"model"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/inference/_client.py#L731",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


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


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


<ul>
<li><a
  href="/docs/huggingface_hub/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 Z({props:{anchor:"huggingface_hub.InferenceClient.image_to_text.example",$$slots:{default:[Lm]},$$scope:{ctx:$}}}),Bs=new w({props:{name:"list_deployed_models",anchor:"huggingface_hub.InferenceClient.list_deployed_models",parameters:[{name:"frameworks",val:": typing.Union[NoneType, str, typing.Literal['all'], typing.List[str]] = None"}],parametersDescription:[{anchor:"huggingface_hub.InferenceClient.list_deployed_models.frameworks",description:`<strong>frameworks</strong> (<code>Literal[&quot;all&quot;]</code> or <code>List[str]</code> or <code>str</code>, <em>optional</em>) &#x2014;
The frameworks to filter on. By default only a subset of the available frameworks are tested. If set to
&#x201C;all&#x201D;, all available frameworks will be tested. It is also possible to provide a single framework or a
custom set of frameworks to check.`,name:"frameworks"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/inference/_client.py#L767",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>
`}}),xt=new ae({props:{$$slots:{default:[Qm]},$$scope:{ctx:$}}}),jt=new Z({props:{anchor:"huggingface_hub.InferenceClient.list_deployed_models.example",$$slots:{default:[Fm]},$$scope:{ctx:$}}}),Ys=new w({props:{name:"object_detection",anchor:"huggingface_hub.InferenceClient.object_detection",parameters:[{name:"image",val:": typing.Union[bytes, typing.BinaryIO, str, pathlib.Path]"},{name:"model",val:": typing.Optional[str] = None"}],parametersDescription:[{anchor:"huggingface_hub.InferenceClient.object_detection.image",description:`<strong>image</strong> (<code>Union[str, Path, bytes, BinaryIO]</code>) &#x2014;
The image to detect objects on. It can be raw bytes, an image file, or a URL to an online image.`,name:"image"},{anchor:"huggingface_hub.InferenceClient.object_detection.model",description:`<strong>model</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The model to use for object detection. Can be a model ID hosted on the Hugging Face Hub or a URL to a
deployed Inference Endpoint. If not provided, the default recommended model for object detection (DETR) will be used.`,name:"model"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/inference/_client.py#L842",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


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


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


<ul>
<li><a
  href="/docs/huggingface_hub/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>
`}}),Tt=new ae({props:{warning:!0,$$slots:{default:[Sm]},$$scope:{ctx:$}}}),$t=new Z({props:{anchor:"huggingface_hub.InferenceClient.object_detection.example",$$slots:{default:[Xm]},$$scope:{ctx:$}}}),Hs=new w({props:{name:"post",anchor:"huggingface_hub.InferenceClient.post",parameters:[{name:"json",val:": typing.Union[str, typing.Dict, typing.List, NoneType] = None"},{name:"data",val:": typing.Union[bytes, typing.BinaryIO, str, pathlib.Path, NoneType] = None"},{name:"model",val:": typing.Optional[str] = None"},{name:"task",val:": typing.Optional[str] = None"},{name:"stream",val:": bool = False"}],parametersDescription:[{anchor:"huggingface_hub.InferenceClient.post.json",description:`<strong>json</strong> (<code>Union[str, Dict, List]</code>, <em>optional</em>) &#x2014;
The JSON data to send in the request body, 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#L172",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


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


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


<ul>
<li><a
  href="/docs/huggingface_hub/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>
`}}),Ps=new w({props:{name:"question_answering",anchor:"huggingface_hub.InferenceClient.question_answering",parameters:[{name:"question",val:": str"},{name:"context",val:": str"},{name:"model",val:": typing.Optional[str] = None"}],parametersDescription:[{anchor:"huggingface_hub.InferenceClient.question_answering.question",description:`<strong>question</strong> (<code>str</code>) &#x2014;
Question to be answered.`,name:"question"},{anchor:"huggingface_hub.InferenceClient.question_answering.context",description:`<strong>context</strong> (<code>str</code>) &#x2014;
The context of the question.`,name:"context"},{anchor:"huggingface_hub.InferenceClient.question_answering.model",description:`<strong>model</strong> (<code>str</code>) &#x2014;
The model to use for the question answering task. Can be a model ID hosted on the Hugging Face Hub or a URL to
a deployed Inference Endpoint.`,name:"model"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/inference/_client.py#L890",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


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


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


<ul>
<li><a
  href="/docs/huggingface_hub/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.question_answering.example",$$slots:{default:[zm]},$$scope:{ctx:$}}}),Ls=new w({props:{name:"sentence_similarity",anchor:"huggingface_hub.InferenceClient.sentence_similarity",parameters:[{name:"sentence",val:": str"},{name:"other_sentences",val:": typing.List[str]"},{name:"model",val:": typing.Optional[str] = None"}],parametersDescription:[{anchor:"huggingface_hub.InferenceClient.sentence_similarity.sentence",description:`<strong>sentence</strong> (<code>str</code>) &#x2014;
The main sentence to compare to others.`,name:"sentence"},{anchor:"huggingface_hub.InferenceClient.sentence_similarity.other_sentences",description:`<strong>other_sentences</strong> (<code>List[str]</code>) &#x2014;
The list of sentences to compare to.`,name:"other_sentences"},{anchor:"huggingface_hub.InferenceClient.sentence_similarity.model",description:`<strong>model</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The model to use for the conversational task. Can be a model ID hosted on the Hugging Face Hub or a URL to
a deployed Inference Endpoint. If not provided, the default recommended conversational model will be used.
Defaults to None.`,name:"model"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/inference/_client.py#L931",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>
`}}),wt=new Z({props:{anchor:"huggingface_hub.InferenceClient.sentence_similarity.example",$$slots:{default:[Om]},$$scope:{ctx:$}}}),Qs=new w({props:{name:"summarization",anchor:"huggingface_hub.InferenceClient.summarization",parameters:[{name:"text",val:": str"},{name:"parameters",val:": typing.Union[typing.Dict[str, typing.Any], NoneType] = None"},{name:"model",val:": typing.Optional[str] = None"}],parametersDescription:[{anchor:"huggingface_hub.InferenceClient.summarization.text",description:`<strong>text</strong> (<code>str</code>) &#x2014;
The input text to summarize.`,name:"text"},{anchor:"huggingface_hub.InferenceClient.summarization.parameters",description:`<strong>parameters</strong> (<code>Dict[str, Any]</code>, <em>optional</em>) &#x2014;
Additional parameters for summarization. Check out this <a href="https://huggingface.co/docs/api-inference/detailed_parameters#summarization-task" rel="nofollow">page</a>
for more details.`,name:"parameters"},{anchor:"huggingface_hub.InferenceClient.summarization.model",description:`<strong>model</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The model to use for inference. Can be a model ID hosted on the Hugging Face Hub or a URL to a deployed
Inference Endpoint. This parameter overrides the model defined at the instance level. Defaults to None.`,name:"model"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/inference/_client.py#L978",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


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


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


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


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


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


<ul>
<li><a
  href="/docs/huggingface_hub/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>
`}}),vt=new Z({props:{anchor:"huggingface_hub.InferenceClient.table_question_answering.example",$$slots:{default:[eh]},$$scope:{ctx:$}}}),Ss=new w({props:{name:"tabular_classification",anchor:"huggingface_hub.InferenceClient.tabular_classification",parameters:[{name:"table",val:": typing.Dict[str, typing.Any]"},{name:"model",val:": str"}],parametersDescription:[{anchor:"huggingface_hub.InferenceClient.tabular_classification.table",description:`<strong>table</strong> (<code>Dict[str, Any]</code>) &#x2014;
Set of attributes to classify.`,name:"table"},{anchor:"huggingface_hub.InferenceClient.tabular_classification.model",description:`<strong>model</strong> (<code>str</code>) &#x2014;
The model to use for the tabular-classification task. Can be a model ID hosted on the Hugging Face Hub or a URL to
a deployed Inference Endpoint.`,name:"model"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/inference/_client.py#L1066",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>
`}}),Jt=new Z({props:{anchor:"huggingface_hub.InferenceClient.tabular_classification.example",$$slots:{default:[nh]},$$scope:{ctx:$}}}),Xs=new w({props:{name:"tabular_regression",anchor:"huggingface_hub.InferenceClient.tabular_regression",parameters:[{name:"table",val:": typing.Dict[str, typing.Any]"},{name:"model",val:": str"}],parametersDescription:[{anchor:"huggingface_hub.InferenceClient.tabular_regression.table",description:`<strong>table</strong> (<code>Dict[str, Any]</code>) &#x2014;
Set of attributes stored in a table. The attributes used to predict the target can be both numerical and categorical.`,name:"table"},{anchor:"huggingface_hub.InferenceClient.tabular_regression.model",description:`<strong>model</strong> (<code>str</code>) &#x2014;
The model to use for the tabular-regression task. Can be a model ID hosted on the Hugging Face Hub or a URL to
a deployed Inference Endpoint.`,name:"model"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/inference/_client.py#L1110",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>
`}}),Ut=new Z({props:{anchor:"huggingface_hub.InferenceClient.tabular_regression.example",$$slots:{default:[th]},$$scope:{ctx:$}}}),zs=new w({props:{name:"text_classification",anchor:"huggingface_hub.InferenceClient.text_classification",parameters:[{name:"text",val:": str"},{name:"model",val:": typing.Optional[str] = None"}],parametersDescription:[{anchor:"huggingface_hub.InferenceClient.text_classification.text",description:`<strong>text</strong> (<code>str</code>) &#x2014;
A string to be classified.`,name:"text"},{anchor:"huggingface_hub.InferenceClient.text_classification.model",description:`<strong>model</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The model to use for the text classification task. Can be a model ID hosted on the Hugging Face Hub or a URL to
a deployed Inference Endpoint. If not provided, the default recommended text classification model will be used.
Defaults to None.`,name:"model"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/inference/_client.py#L1149",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


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


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


<ul>
<li><a
  href="/docs/huggingface_hub/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.text_classification.example",$$slots:{default:[sh]},$$scope:{ctx:$}}}),Os=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:": typing.Optional[str] = None"},{name:"do_sample",val:": bool = False"},{name:"max_new_tokens",val:": int = 20"},{name:"best_of",val:": typing.Optional[int] = None"},{name:"repetition_penalty",val:": typing.Optional[float] = None"},{name:"return_full_text",val:": bool = False"},{name:"seed",val:": typing.Optional[int] = None"},{name:"stop_sequences",val:": typing.Optional[typing.List[str]] = None"},{name:"temperature",val:": typing.Optional[float] = None"},{name:"top_k",val:": typing.Optional[int] = None"},{name:"top_p",val:": typing.Optional[float] = None"},{name:"truncate",val:": typing.Optional[int] = None"},{name:"typical_p",val:": typing.Optional[float] = None"},{name:"watermark",val:": bool = False"},{name:"decoder_input_details",val:": bool = False"}],parametersDescription:[{anchor:"huggingface_hub.InferenceClient.text_generation.prompt",description:`<strong>prompt</strong> (<code>str</code>) &#x2014;
Input text.`,name:"prompt"},{anchor:"huggingface_hub.InferenceClient.text_generation.details",description:`<strong>details</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
By default, text_generation returns a string. Pass <code>details=True</code> if you want a detailed output (tokens,
probabilities, seed, finish reason, etc.). Only available for models running on with the
<code>text-generation-inference</code> backend.`,name:"details"},{anchor:"huggingface_hub.InferenceClient.text_generation.stream",description:`<strong>stream</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
By default, text_generation returns the full generated text. Pass <code>stream=True</code> if you want a stream of
tokens to be returned. Only available for models running on with the <code>text-generation-inference</code>
backend.`,name:"stream"},{anchor:"huggingface_hub.InferenceClient.text_generation.model",description:`<strong>model</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The model to use for inference. Can be a model ID hosted on the Hugging Face Hub or a URL to a deployed
Inference Endpoint. This parameter overrides the model defined at the instance level. Defaults to None.`,name:"model"},{anchor:"huggingface_hub.InferenceClient.text_generation.do_sample",description:`<strong>do_sample</strong> (<code>bool</code>) &#x2014;
Activate logits sampling`,name:"do_sample"},{anchor:"huggingface_hub.InferenceClient.text_generation.max_new_tokens",description:`<strong>max_new_tokens</strong> (<code>int</code>) &#x2014;
Maximum number of generated tokens`,name:"max_new_tokens"},{anchor:"huggingface_hub.InferenceClient.text_generation.best_of",description:`<strong>best_of</strong> (<code>int</code>) &#x2014;
Generate best_of sequences and return the one if the highest token logprobs`,name:"best_of"},{anchor:"huggingface_hub.InferenceClient.text_generation.repetition_penalty",description:`<strong>repetition_penalty</strong> (<code>float</code>) &#x2014;
The parameter for repetition penalty. 1.0 means no penalty. See <a href="https://arxiv.org/pdf/1909.05858.pdf" rel="nofollow">this
paper</a> for more details.`,name:"repetition_penalty"},{anchor:"huggingface_hub.InferenceClient.text_generation.return_full_text",description:`<strong>return_full_text</strong> (<code>bool</code>) &#x2014;
Whether to prepend the prompt to the generated text`,name:"return_full_text"},{anchor:"huggingface_hub.InferenceClient.text_generation.seed",description:`<strong>seed</strong> (<code>int</code>) &#x2014;
Random sampling seed`,name:"seed"},{anchor:"huggingface_hub.InferenceClient.text_generation.stop_sequences",description:`<strong>stop_sequences</strong> (<code>List[str]</code>) &#x2014;
Stop generating tokens if a member of <code>stop_sequences</code> is generated`,name:"stop_sequences"},{anchor:"huggingface_hub.InferenceClient.text_generation.temperature",description:`<strong>temperature</strong> (<code>float</code>) &#x2014;
The value used to module the logits distribution.`,name:"temperature"},{anchor:"huggingface_hub.InferenceClient.text_generation.top_k",description:`<strong>top_k</strong> (<code>int</code>) &#x2014;
The number of highest probability vocabulary tokens to keep for top-k-filtering.`,name:"top_k"},{anchor:"huggingface_hub.InferenceClient.text_generation.top_p",description:`<strong>top_p</strong> (<code>float</code>) &#x2014;
If set to &lt; 1, only the smallest set of most probable tokens with probabilities that add up to <code>top_p</code> or
higher are kept for generation.`,name:"top_p"},{anchor:"huggingface_hub.InferenceClient.text_generation.truncate",description:`<strong>truncate</strong> (<code>int</code>) &#x2014;
Truncate inputs tokens to the given size`,name:"truncate"},{anchor:"huggingface_hub.InferenceClient.text_generation.typical_p",description:`<strong>typical_p</strong> (<code>float</code>) &#x2014;
Typical Decoding mass
See <a href="https://arxiv.org/abs/2202.00666" rel="nofollow">Typical Decoding for Natural Language Generation</a> for more information`,name:"typical_p"},{anchor:"huggingface_hub.InferenceClient.text_generation.watermark",description:`<strong>watermark</strong> (<code>bool</code>) &#x2014;
Watermarking with <a href="https://arxiv.org/abs/2301.10226" rel="nofollow">A Watermark for Large Language Models</a>`,name:"watermark"},{anchor:"huggingface_hub.InferenceClient.text_generation.decoder_input_details",description:`<strong>decoder_input_details</strong> (<code>bool</code>) &#x2014;
Return the decoder input token logprobs and ids. You must set <code>details=True</code> as well for it to be taken
into account. Defaults to <code>False</code>.`,name:"decoder_input_details"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/inference/_client.py#L1277",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>
`}}),qt=new Z({props:{anchor:"huggingface_hub.InferenceClient.text_generation.example",$$slots:{default:[ah]},$$scope:{ctx:$}}}),Ks=new w({props:{name:"text_to_image",anchor:"huggingface_hub.InferenceClient.text_to_image",parameters:[{name:"prompt",val:": str"},{name:"negative_prompt",val:": typing.Optional[str] = None"},{name:"height",val:": typing.Optional[float] = None"},{name:"width",val:": typing.Optional[float] = None"},{name:"num_inference_steps",val:": typing.Optional[float] = None"},{name:"guidance_scale",val:": typing.Optional[float] = None"},{name:"model",val:": typing.Optional[str] = None"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"huggingface_hub.InferenceClient.text_to_image.prompt",description:`<strong>prompt</strong> (<code>str</code>) &#x2014;
The prompt to generate an image from.`,name:"prompt"},{anchor:"huggingface_hub.InferenceClient.text_to_image.negative_prompt",description:`<strong>negative_prompt</strong> (<code>str</code>, <em>optional</em>) &#x2014;
An optional negative prompt for the image generation.`,name:"negative_prompt"},{anchor:"huggingface_hub.InferenceClient.text_to_image.height",description:`<strong>height</strong> (<code>float</code>, <em>optional</em>) &#x2014;
The height in pixels of the image to generate.`,name:"height"},{anchor:"huggingface_hub.InferenceClient.text_to_image.width",description:`<strong>width</strong> (<code>float</code>, <em>optional</em>) &#x2014;
The width in pixels of the image to generate.`,name:"width"},{anchor:"huggingface_hub.InferenceClient.text_to_image.num_inference_steps",description:`<strong>num_inference_steps</strong> (<code>int</code>, <em>optional</em>) &#x2014;
The number of denoising steps. More denoising steps usually lead to a higher quality image at the
expense of slower inference.`,name:"num_inference_steps"},{anchor:"huggingface_hub.InferenceClient.text_to_image.guidance_scale",description:`<strong>guidance_scale</strong> (<code>float</code>, <em>optional</em>) &#x2014;
Higher guidance scale encourages to generate images that are closely linked to the text <code>prompt</code>,
usually at the expense of lower image quality.`,name:"guidance_scale"},{anchor:"huggingface_hub.InferenceClient.text_to_image.model",description:`<strong>model</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The model to use for inference. Can be a model ID hosted on the Hugging Face Hub or a URL to a deployed
Inference Endpoint. This parameter overrides the model defined at the instance level. Defaults to None.`,name:"model"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/inference/_client.py#L1544",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>
`}}),Zt=new ae({props:{warning:!0,$$slots:{default:[oh]},$$scope:{ctx:$}}}),Et=new Z({props:{anchor:"huggingface_hub.InferenceClient.text_to_image.example",$$slots:{default:[rh]},$$scope:{ctx:$}}}),ea=new w({props:{name:"text_to_speech",anchor:"huggingface_hub.InferenceClient.text_to_speech",parameters:[{name:"text",val:": str"},{name:"model",val:": typing.Optional[str] = None"}],parametersDescription:[{anchor:"huggingface_hub.InferenceClient.text_to_speech.text",description:`<strong>text</strong> (<code>str</code>) &#x2014;
The text to synthesize.`,name:"text"},{anchor:"huggingface_hub.InferenceClient.text_to_speech.model",description:`<strong>model</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The model to use for inference. Can be a model ID hosted on the Hugging Face Hub or a URL to a deployed
Inference Endpoint. This parameter overrides the model defined at the instance level. Defaults to None.`,name:"model"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/inference/_client.py#L1624",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>
`}}),Wt=new Z({props:{anchor:"huggingface_hub.InferenceClient.text_to_speech.example",$$slots:{default:[lh]},$$scope:{ctx:$}}}),na=new w({props:{name:"token_classification",anchor:"huggingface_hub.InferenceClient.token_classification",parameters:[{name:"text",val:": str"},{name:"model",val:": typing.Optional[str] = None"}],parametersDescription:[{anchor:"huggingface_hub.InferenceClient.token_classification.text",description:`<strong>text</strong> (<code>str</code>) &#x2014;
A string to be classified.`,name:"text"},{anchor:"huggingface_hub.InferenceClient.token_classification.model",description:`<strong>model</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The model to use for the token classification task. Can be a model ID hosted on the Hugging Face Hub or a URL to
a deployed Inference Endpoint. If not provided, the default recommended token classification model will be used.
Defaults to None.`,name:"model"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/inference/_client.py#L1656",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


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


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


<ul>
<li><a
  href="/docs/huggingface_hub/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>
`}}),Nt=new Z({props:{anchor:"huggingface_hub.InferenceClient.token_classification.example",$$slots:{default:[ih]},$$scope:{ctx:$}}}),ta=new w({props:{name:"translation",anchor:"huggingface_hub.InferenceClient.translation",parameters:[{name:"text",val:": str"},{name:"model",val:": typing.Optional[str] = None"}],parametersDescription:[{anchor:"huggingface_hub.InferenceClient.translation.text",description:`<strong>text</strong> (<code>str</code>) &#x2014;
A string to be translated.`,name:"text"},{anchor:"huggingface_hub.InferenceClient.translation.model",description:`<strong>model</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The model to use for the translation task. Can be a model ID hosted on the Hugging Face Hub or a URL to
a deployed Inference Endpoint. If not provided, the default recommended translation model will be used.
Defaults to None.`,name:"model"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/inference/_client.py#L1703",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


<ul>
<li><a
  href="/docs/huggingface_hub/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>
`}}),Bt=new Z({props:{anchor:"huggingface_hub.AsyncInferenceClient.automatic_speech_recognition.example",$$slots:{default:[mh]},$$scope:{ctx:$}}}),ua=new w({props:{name:"conversational",anchor:"huggingface_hub.AsyncInferenceClient.conversational",parameters:[{name:"text",val:": str"},{name:"generated_responses",val:": typing.Optional[typing.List[str]] = None"},{name:"past_user_inputs",val:": typing.Optional[typing.List[str]] = None"},{name:"parameters",val:": typing.Union[typing.Dict[str, typing.Any], NoneType] = None"},{name:"model",val:": typing.Optional[str] = None"}],parametersDescription:[{anchor:"huggingface_hub.AsyncInferenceClient.conversational.text",description:`<strong>text</strong> (<code>str</code>) &#x2014;
The last input from the user in the conversation.`,name:"text"},{anchor:"huggingface_hub.AsyncInferenceClient.conversational.generated_responses",description:`<strong>generated_responses</strong> (<code>List[str]</code>, <em>optional</em>) &#x2014;
A list of strings corresponding to the earlier replies from the model. Defaults to None.`,name:"generated_responses"},{anchor:"huggingface_hub.AsyncInferenceClient.conversational.past_user_inputs",description:`<strong>past_user_inputs</strong> (<code>List[str]</code>, <em>optional</em>) &#x2014;
A list of strings corresponding to the earlier replies from the user. Should be the same length as
<code>generated_responses</code>. Defaults to None.`,name:"past_user_inputs"},{anchor:"huggingface_hub.AsyncInferenceClient.conversational.parameters",description:`<strong>parameters</strong> (<code>Dict[str, Any]</code>, <em>optional</em>) &#x2014;
Additional parameters for the conversational task. Defaults to None. For more details about the available
parameters, please refer to <a href="https://huggingface.co/docs/api-inference/detailed_parameters#conversational-task" rel="nofollow">this page</a>`,name:"parameters"},{anchor:"huggingface_hub.AsyncInferenceClient.conversational.model",description:`<strong>model</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The model to use for the conversational task. Can be a model ID hosted on the Hugging Face Hub or a URL to
a deployed Inference Endpoint. If not provided, the default recommended conversational model will be used.
Defaults to None.`,name:"model"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/inference/_generated/_async_client.py#L335",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>
`}}),Yt=new Z({props:{anchor:"huggingface_hub.AsyncInferenceClient.conversational.example",$$slots:{default:[hh]},$$scope:{ctx:$}}}),da=new w({props:{name:"document_question_answering",anchor:"huggingface_hub.AsyncInferenceClient.document_question_answering",parameters:[{name:"image",val:": typing.Union[bytes, typing.BinaryIO, str, pathlib.Path]"},{name:"question",val:": str"},{name:"model",val:": typing.Optional[str] = None"}],parametersDescription:[{anchor:"huggingface_hub.AsyncInferenceClient.document_question_answering.image",description:`<strong>image</strong> (<code>Union[str, Path, bytes, BinaryIO]</code>) &#x2014;
The input image for the context. It can be raw bytes, an image file, or a URL to an online image.`,name:"image"},{anchor:"huggingface_hub.AsyncInferenceClient.document_question_answering.question",description:`<strong>question</strong> (<code>str</code>) &#x2014;
Question to be answered.`,name:"question"},{anchor:"huggingface_hub.AsyncInferenceClient.document_question_answering.model",description:`<strong>model</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The model to use for the document question answering task. Can be a model ID hosted on the Hugging Face Hub or a URL to
a deployed Inference Endpoint. If not provided, the default recommended document question answering model will be used.
Defaults to None.`,name:"model"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/inference/_generated/_async_client.py#L442",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


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


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


<ul>
<li><a
  href="/docs/huggingface_hub/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>
`}}),Ht=new Z({props:{anchor:"huggingface_hub.AsyncInferenceClient.document_question_answering.example",$$slots:{default:[fh]},$$scope:{ctx:$}}}),ma=new w({props:{name:"feature_extraction",anchor:"huggingface_hub.AsyncInferenceClient.feature_extraction",parameters:[{name:"text",val:": str"},{name:"model",val:": typing.Optional[str] = None"}],parametersDescription:[{anchor:"huggingface_hub.AsyncInferenceClient.feature_extraction.text",description:`<strong>text</strong> (<code>str</code>) &#x2014;
The text to embed.`,name:"text"},{anchor:"huggingface_hub.AsyncInferenceClient.feature_extraction.model",description:`<strong>model</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The model to use for the conversational task. Can be a model ID hosted on the Hugging Face Hub or a URL to
a deployed Inference Endpoint. If not provided, the default recommended conversational model will be used.
Defaults to None.`,name:"model"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/inference/_generated/_async_client.py#L484",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>
`}}),Pt=new Z({props:{anchor:"huggingface_hub.AsyncInferenceClient.feature_extraction.example",$$slots:{default:[bh]},$$scope:{ctx:$}}}),ha=new w({props:{name:"fill_mask",anchor:"huggingface_hub.AsyncInferenceClient.fill_mask",parameters:[{name:"text",val:": str"},{name:"model",val:": typing.Optional[str] = None"}],parametersDescription:[{anchor:"huggingface_hub.AsyncInferenceClient.fill_mask.text",description:`<strong>text</strong> (<code>str</code>) &#x2014;
a string to be filled from, must contain the [MASK] token (check model card for exact name of the mask).`,name:"text"},{anchor:"huggingface_hub.AsyncInferenceClient.fill_mask.model",description:`<strong>model</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The model to use for the fill mask task. Can be a model ID hosted on the Hugging Face Hub or a URL to
a deployed Inference Endpoint. If not provided, the default recommended fill mask model will be used.
Defaults to None.`,name:"model"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/inference/_generated/_async_client.py#L521",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


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


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


<ul>
<li><a
  href="/docs/huggingface_hub/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.fill_mask.example",$$slots:{default:[_h]},$$scope:{ctx:$}}}),fa=new w({props:{name:"get_model_status",anchor:"huggingface_hub.AsyncInferenceClient.get_model_status",parameters:[{name:"model",val:": typing.Optional[str] = None"}],parametersDescription:[{anchor:"huggingface_hub.AsyncInferenceClient.get_model_status.model",description:`<strong>model</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Identifier of the model for witch the status gonna be checked. If model is not provided,
the model associated with this instance of <a href="/docs/huggingface_hub/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#L1941",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>
`}}),Qt=new ae({props:{$$slots:{default:[yh]},$$scope:{ctx:$}}}),Ft=new Z({props:{anchor:"huggingface_hub.AsyncInferenceClient.get_model_status.example",$$slots:{default:[xh]},$$scope:{ctx:$}}}),ba=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#L1917",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>
`}}),_a=new w({props:{name:"image_classification",anchor:"huggingface_hub.AsyncInferenceClient.image_classification",parameters:[{name:"image",val:": typing.Union[bytes, typing.BinaryIO, str, pathlib.Path]"},{name:"model",val:": typing.Optional[str] = None"}],parametersDescription:[{anchor:"huggingface_hub.AsyncInferenceClient.image_classification.image",description:`<strong>image</strong> (<code>Union[str, Path, bytes, BinaryIO]</code>) &#x2014;
The image to classify. It can be raw bytes, an image file, or a URL to an online image.`,name:"image"},{anchor:"huggingface_hub.AsyncInferenceClient.image_classification.model",description:`<strong>model</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The model to use for image classification. Can be a model ID hosted on the Hugging Face Hub or a URL to a
deployed Inference Endpoint. If not provided, the default recommended model for image classification will be used.`,name:"model"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/inference/_generated/_async_client.py#L562",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


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


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


<ul>
<li><a
  href="/docs/huggingface_hub/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.image_classification.example",$$slots:{default:[jh]},$$scope:{ctx:$}}}),ya=new w({props:{name:"image_segmentation",anchor:"huggingface_hub.AsyncInferenceClient.image_segmentation",parameters:[{name:"image",val:": typing.Union[bytes, typing.BinaryIO, str, pathlib.Path]"},{name:"model",val:": typing.Optional[str] = None"}],parametersDescription:[{anchor:"huggingface_hub.AsyncInferenceClient.image_segmentation.image",description:`<strong>image</strong> (<code>Union[str, Path, bytes, BinaryIO]</code>) &#x2014;
The image to segment. It can be raw bytes, an image file, or a URL to an online image.`,name:"image"},{anchor:"huggingface_hub.AsyncInferenceClient.image_segmentation.model",description:`<strong>model</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The model to use for image segmentation. Can be a model ID hosted on the Hugging Face Hub or a URL to a
deployed Inference Endpoint. If not provided, the default recommended model for image segmentation will be used.`,name:"model"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/inference/_generated/_async_client.py#L599",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


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


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


<ul>
<li><a
  href="/docs/huggingface_hub/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 ae({props:{warning:!0,$$slots:{default:[Th]},$$scope:{ctx:$}}}),Ot=new Z({props:{anchor:"huggingface_hub.AsyncInferenceClient.image_segmentation.example",$$slots:{default:[$h]},$$scope:{ctx:$}}}),xa=new w({props:{name:"image_to_image",anchor:"huggingface_hub.AsyncInferenceClient.image_to_image",parameters:[{name:"image",val:": typing.Union[bytes, typing.BinaryIO, str, pathlib.Path]"},{name:"prompt",val:": typing.Optional[str] = None"},{name:"negative_prompt",val:": typing.Optional[str] = None"},{name:"height",val:": typing.Optional[int] = None"},{name:"width",val:": typing.Optional[int] = None"},{name:"num_inference_steps",val:": typing.Optional[int] = None"},{name:"guidance_scale",val:": typing.Optional[float] = None"},{name:"model",val:": typing.Optional[str] = None"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"huggingface_hub.AsyncInferenceClient.image_to_image.image",description:`<strong>image</strong> (<code>Union[str, Path, bytes, BinaryIO]</code>) &#x2014;
The input image for translation. It can be raw bytes, an image file, or a URL to an online image.`,name:"image"},{anchor:"huggingface_hub.AsyncInferenceClient.image_to_image.prompt",description:`<strong>prompt</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The text prompt to guide the image generation.`,name:"prompt"},{anchor:"huggingface_hub.AsyncInferenceClient.image_to_image.negative_prompt",description:`<strong>negative_prompt</strong> (<code>str</code>, <em>optional</em>) &#x2014;
A negative prompt to guide the translation process.`,name:"negative_prompt"},{anchor:"huggingface_hub.AsyncInferenceClient.image_to_image.height",description:`<strong>height</strong> (<code>int</code>, <em>optional</em>) &#x2014;
The height in pixels of the generated image.`,name:"height"},{anchor:"huggingface_hub.AsyncInferenceClient.image_to_image.width",description:`<strong>width</strong> (<code>int</code>, <em>optional</em>) &#x2014;
The width in pixels of the generated image.`,name:"width"},{anchor:"huggingface_hub.AsyncInferenceClient.image_to_image.num_inference_steps",description:`<strong>num_inference_steps</strong> (<code>int</code>, <em>optional</em>) &#x2014;
The number of denoising steps. More denoising steps usually lead to a higher quality image at the
expense of slower inference.`,name:"num_inference_steps"},{anchor:"huggingface_hub.AsyncInferenceClient.image_to_image.guidance_scale",description:`<strong>guidance_scale</strong> (<code>float</code>, <em>optional</em>) &#x2014;
Higher guidance scale encourages to generate images that are closely linked to the text <code>prompt</code>,
usually at the expense of lower image quality.`,name:"guidance_scale"},{anchor:"huggingface_hub.AsyncInferenceClient.image_to_image.model",description:`<strong>model</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The model to use for inference. Can be a model ID hosted on the Hugging Face Hub or a URL to a deployed
Inference Endpoint. This parameter overrides the model defined at the instance level. Defaults to None.`,name:"model"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/inference/_generated/_async_client.py#L651",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>
`}}),Kt=new ae({props:{warning:!0,$$slots:{default:[Ih]},$$scope:{ctx:$}}}),es=new Z({props:{anchor:"huggingface_hub.AsyncInferenceClient.image_to_image.example",$$slots:{default:[Mh]},$$scope:{ctx:$}}}),ja=new w({props:{name:"image_to_text",anchor:"huggingface_hub.AsyncInferenceClient.image_to_text",parameters:[{name:"image",val:": typing.Union[bytes, typing.BinaryIO, str, pathlib.Path]"},{name:"model",val:": typing.Optional[str] = None"}],parametersDescription:[{anchor:"huggingface_hub.AsyncInferenceClient.image_to_text.image",description:`<strong>image</strong> (<code>Union[str, Path, bytes, BinaryIO]</code>) &#x2014;
The input image to caption. It can be raw bytes, an image file, or a URL to an online image..`,name:"image"},{anchor:"huggingface_hub.AsyncInferenceClient.image_to_text.model",description:`<strong>model</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The model to use for inference. Can be a model ID hosted on the Hugging Face Hub or a URL to a deployed
Inference Endpoint. This parameter overrides the model defined at the instance level. Defaults to None.`,name:"model"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/inference/_generated/_async_client.py#L736",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


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


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


<ul>
<li><a
  href="/docs/huggingface_hub/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>
`}}),ns=new Z({props:{anchor:"huggingface_hub.AsyncInferenceClient.image_to_text.example",$$slots:{default:[wh]},$$scope:{ctx:$}}}),Ta=new w({props:{name:"list_deployed_models",anchor:"huggingface_hub.AsyncInferenceClient.list_deployed_models",parameters:[{name:"frameworks",val:": typing.Union[NoneType, str, typing.Literal['all'], typing.List[str]] = None"}],parametersDescription:[{anchor:"huggingface_hub.AsyncInferenceClient.list_deployed_models.frameworks",description:`<strong>frameworks</strong> (<code>Literal[&quot;all&quot;]</code> or <code>List[str]</code> or <code>str</code>, <em>optional</em>) &#x2014;
The frameworks to filter on. By default only a subset of the available frameworks are tested. If set to
&#x201C;all&#x201D;, all available frameworks will be tested. It is also possible to provide a single framework or a
custom set of frameworks to check.`,name:"frameworks"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/inference/_generated/_async_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>
`}}),ts=new ae({props:{$$slots:{default:[Ch]},$$scope:{ctx:$}}}),ss=new Z({props:{anchor:"huggingface_hub.AsyncInferenceClient.list_deployed_models.example",$$slots:{default:[vh]},$$scope:{ctx:$}}}),$a=new w({props:{name:"object_detection",anchor:"huggingface_hub.AsyncInferenceClient.object_detection",parameters:[{name:"image",val:": typing.Union[bytes, typing.BinaryIO, str, pathlib.Path]"},{name:"model",val:": typing.Optional[str] = None"}],parametersDescription:[{anchor:"huggingface_hub.AsyncInferenceClient.object_detection.image",description:`<strong>image</strong> (<code>Union[str, Path, bytes, BinaryIO]</code>) &#x2014;
The image to detect objects on. It can be raw bytes, an image file, or a URL to an online image.`,name:"image"},{anchor:"huggingface_hub.AsyncInferenceClient.object_detection.model",description:`<strong>model</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The model to use for object detection. Can be a model ID hosted on the Hugging Face Hub or a URL to a
deployed Inference Endpoint. If not provided, the default recommended model for object detection (DETR) will be used.`,name:"model"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/inference/_generated/_async_client.py#L854",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


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


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


<ul>
<li><a
  href="/docs/huggingface_hub/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>
`}}),as=new ae({props:{warning:!0,$$slots:{default:[Jh]},$$scope:{ctx:$}}}),os=new Z({props:{anchor:"huggingface_hub.AsyncInferenceClient.object_detection.example",$$slots:{default:[Uh]},$$scope:{ctx:$}}}),Ia=new w({props:{name:"post",anchor:"huggingface_hub.AsyncInferenceClient.post",parameters:[{name:"json",val:": typing.Union[str, typing.Dict, typing.List, NoneType] = None"},{name:"data",val:": typing.Union[bytes, typing.BinaryIO, str, pathlib.Path, NoneType] = None"},{name:"model",val:": typing.Optional[str] = None"},{name:"task",val:": typing.Optional[str] = None"},{name:"stream",val:": bool = False"}],parametersDescription:[{anchor:"huggingface_hub.AsyncInferenceClient.post.json",description:`<strong>json</strong> (<code>Union[str, Dict, List]</code>, <em>optional</em>) &#x2014;
The JSON data to send in the request body, 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#L156",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


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


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


<ul>
<li><a
  href="/docs/huggingface_hub/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 w({props:{name:"question_answering",anchor:"huggingface_hub.AsyncInferenceClient.question_answering",parameters:[{name:"question",val:": str"},{name:"context",val:": str"},{name:"model",val:": typing.Optional[str] = None"}],parametersDescription:[{anchor:"huggingface_hub.AsyncInferenceClient.question_answering.question",description:`<strong>question</strong> (<code>str</code>) &#x2014;
Question to be answered.`,name:"question"},{anchor:"huggingface_hub.AsyncInferenceClient.question_answering.context",description:`<strong>context</strong> (<code>str</code>) &#x2014;
The context of the question.`,name:"context"},{anchor:"huggingface_hub.AsyncInferenceClient.question_answering.model",description:`<strong>model</strong> (<code>str</code>) &#x2014;
The model to use for the question answering task. Can be a model ID hosted on the Hugging Face Hub or a URL to
a deployed Inference Endpoint.`,name:"model"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/inference/_generated/_async_client.py#L903",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


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


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


<ul>
<li><a
  href="/docs/huggingface_hub/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>
`}}),ls=new Z({props:{anchor:"huggingface_hub.AsyncInferenceClient.question_answering.example",$$slots:{default:[kh]},$$scope:{ctx:$}}}),wa=new w({props:{name:"sentence_similarity",anchor:"huggingface_hub.AsyncInferenceClient.sentence_similarity",parameters:[{name:"sentence",val:": str"},{name:"other_sentences",val:": typing.List[str]"},{name:"model",val:": typing.Optional[str] = None"}],parametersDescription:[{anchor:"huggingface_hub.AsyncInferenceClient.sentence_similarity.sentence",description:`<strong>sentence</strong> (<code>str</code>) &#x2014;
The main sentence to compare to others.`,name:"sentence"},{anchor:"huggingface_hub.AsyncInferenceClient.sentence_similarity.other_sentences",description:`<strong>other_sentences</strong> (<code>List[str]</code>) &#x2014;
The list of sentences to compare to.`,name:"other_sentences"},{anchor:"huggingface_hub.AsyncInferenceClient.sentence_similarity.model",description:`<strong>model</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The model to use for the conversational task. Can be a model ID hosted on the Hugging Face Hub or a URL to
a deployed Inference Endpoint. If not provided, the default recommended conversational model will be used.
Defaults to None.`,name:"model"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/inference/_generated/_async_client.py#L945",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>
`}}),is=new Z({props:{anchor:"huggingface_hub.AsyncInferenceClient.sentence_similarity.example",$$slots:{default:[qh]},$$scope:{ctx:$}}}),Ca=new w({props:{name:"summarization",anchor:"huggingface_hub.AsyncInferenceClient.summarization",parameters:[{name:"text",val:": str"},{name:"parameters",val:": typing.Union[typing.Dict[str, typing.Any], NoneType] = None"},{name:"model",val:": typing.Optional[str] = None"}],parametersDescription:[{anchor:"huggingface_hub.AsyncInferenceClient.summarization.text",description:`<strong>text</strong> (<code>str</code>) &#x2014;
The input text to summarize.`,name:"text"},{anchor:"huggingface_hub.AsyncInferenceClient.summarization.parameters",description:`<strong>parameters</strong> (<code>Dict[str, Any]</code>, <em>optional</em>) &#x2014;
Additional parameters for summarization. Check out this <a href="https://huggingface.co/docs/api-inference/detailed_parameters#summarization-task" rel="nofollow">page</a>
for more details.`,name:"parameters"},{anchor:"huggingface_hub.AsyncInferenceClient.summarization.model",description:`<strong>model</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The model to use for inference. Can be a model ID hosted on the Hugging Face Hub or a URL to a deployed
Inference Endpoint. This parameter overrides the model defined at the instance level. Defaults to None.`,name:"model"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/inference/_generated/_async_client.py#L993",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


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


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


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


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


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


<ul>
<li><a
  href="/docs/huggingface_hub/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>
`}}),ps=new Z({props:{anchor:"huggingface_hub.AsyncInferenceClient.table_question_answering.example",$$slots:{default:[Eh]},$$scope:{ctx:$}}}),Ja=new w({props:{name:"tabular_classification",anchor:"huggingface_hub.AsyncInferenceClient.tabular_classification",parameters:[{name:"table",val:": typing.Dict[str, typing.Any]"},{name:"model",val:": str"}],parametersDescription:[{anchor:"huggingface_hub.AsyncInferenceClient.tabular_classification.table",description:`<strong>table</strong> (<code>Dict[str, Any]</code>) &#x2014;
Set of attributes to classify.`,name:"table"},{anchor:"huggingface_hub.AsyncInferenceClient.tabular_classification.model",description:`<strong>model</strong> (<code>str</code>) &#x2014;
The model to use for the tabular-classification task. Can be a model ID hosted on the Hugging Face Hub or a URL to
a deployed Inference Endpoint.`,name:"model"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/inference/_generated/_async_client.py#L1083",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>
`}}),gs=new Z({props:{anchor:"huggingface_hub.AsyncInferenceClient.tabular_classification.example",$$slots:{default:[Wh]},$$scope:{ctx:$}}}),Ua=new w({props:{name:"tabular_regression",anchor:"huggingface_hub.AsyncInferenceClient.tabular_regression",parameters:[{name:"table",val:": typing.Dict[str, typing.Any]"},{name:"model",val:": str"}],parametersDescription:[{anchor:"huggingface_hub.AsyncInferenceClient.tabular_regression.table",description:`<strong>table</strong> (<code>Dict[str, Any]</code>) &#x2014;
Set of attributes stored in a table. The attributes used to predict the target can be both numerical and categorical.`,name:"table"},{anchor:"huggingface_hub.AsyncInferenceClient.tabular_regression.model",description:`<strong>model</strong> (<code>str</code>) &#x2014;
The model to use for the tabular-regression task. Can be a model ID hosted on the Hugging Face Hub or a URL to
a deployed Inference Endpoint.`,name:"model"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/inference/_generated/_async_client.py#L1128",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>
`}}),us=new Z({props:{anchor:"huggingface_hub.AsyncInferenceClient.tabular_regression.example",$$slots:{default:[Nh]},$$scope:{ctx:$}}}),ka=new w({props:{name:"text_classification",anchor:"huggingface_hub.AsyncInferenceClient.text_classification",parameters:[{name:"text",val:": str"},{name:"model",val:": typing.Optional[str] = None"}],parametersDescription:[{anchor:"huggingface_hub.AsyncInferenceClient.text_classification.text",description:`<strong>text</strong> (<code>str</code>) &#x2014;
A string to be classified.`,name:"text"},{anchor:"huggingface_hub.AsyncInferenceClient.text_classification.model",description:`<strong>model</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The model to use for the text classification task. Can be a model ID hosted on the Hugging Face Hub or a URL to
a deployed Inference Endpoint. If not provided, the default recommended text classification model will be used.
Defaults to None.`,name:"model"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/inference/_generated/_async_client.py#L1168",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


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


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


<ul>
<li><a
  href="/docs/huggingface_hub/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>
`}}),ds=new Z({props:{anchor:"huggingface_hub.AsyncInferenceClient.text_classification.example",$$slots:{default:[Gh]},$$scope:{ctx:$}}}),qa=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:": typing.Optional[str] = None"},{name:"do_sample",val:": bool = False"},{name:"max_new_tokens",val:": int = 20"},{name:"best_of",val:": typing.Optional[int] = None"},{name:"repetition_penalty",val:": typing.Optional[float] = None"},{name:"return_full_text",val:": bool = False"},{name:"seed",val:": typing.Optional[int] = None"},{name:"stop_sequences",val:": typing.Optional[typing.List[str]] = None"},{name:"temperature",val:": typing.Optional[float] = None"},{name:"top_k",val:": typing.Optional[int] = None"},{name:"top_p",val:": typing.Optional[float] = None"},{name:"truncate",val:": typing.Optional[int] = None"},{name:"typical_p",val:": typing.Optional[float] = None"},{name:"watermark",val:": bool = False"},{name:"decoder_input_details",val:": bool = False"}],parametersDescription:[{anchor:"huggingface_hub.AsyncInferenceClient.text_generation.prompt",description:`<strong>prompt</strong> (<code>str</code>) &#x2014;
Input text.`,name:"prompt"},{anchor:"huggingface_hub.AsyncInferenceClient.text_generation.details",description:`<strong>details</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
By default, text_generation returns a string. Pass <code>details=True</code> if you want a detailed output (tokens,
probabilities, seed, finish reason, etc.). Only available for models running on with the
<code>text-generation-inference</code> backend.`,name:"details"},{anchor:"huggingface_hub.AsyncInferenceClient.text_generation.stream",description:`<strong>stream</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
By default, text_generation returns the full generated text. Pass <code>stream=True</code> if you want a stream of
tokens to be returned. Only available for models running on with the <code>text-generation-inference</code>
backend.`,name:"stream"},{anchor:"huggingface_hub.AsyncInferenceClient.text_generation.model",description:`<strong>model</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The model to use for inference. Can be a model ID hosted on the Hugging Face Hub or a URL to a deployed
Inference Endpoint. This parameter overrides the model defined at the instance level. Defaults to None.`,name:"model"},{anchor:"huggingface_hub.AsyncInferenceClient.text_generation.do_sample",description:`<strong>do_sample</strong> (<code>bool</code>) &#x2014;
Activate logits sampling`,name:"do_sample"},{anchor:"huggingface_hub.AsyncInferenceClient.text_generation.max_new_tokens",description:`<strong>max_new_tokens</strong> (<code>int</code>) &#x2014;
Maximum number of generated tokens`,name:"max_new_tokens"},{anchor:"huggingface_hub.AsyncInferenceClient.text_generation.best_of",description:`<strong>best_of</strong> (<code>int</code>) &#x2014;
Generate best_of sequences and return the one if the highest token logprobs`,name:"best_of"},{anchor:"huggingface_hub.AsyncInferenceClient.text_generation.repetition_penalty",description:`<strong>repetition_penalty</strong> (<code>float</code>) &#x2014;
The parameter for repetition penalty. 1.0 means no penalty. See <a href="https://arxiv.org/pdf/1909.05858.pdf" rel="nofollow">this
paper</a> for more details.`,name:"repetition_penalty"},{anchor:"huggingface_hub.AsyncInferenceClient.text_generation.return_full_text",description:`<strong>return_full_text</strong> (<code>bool</code>) &#x2014;
Whether to prepend the prompt to the generated text`,name:"return_full_text"},{anchor:"huggingface_hub.AsyncInferenceClient.text_generation.seed",description:`<strong>seed</strong> (<code>int</code>) &#x2014;
Random sampling seed`,name:"seed"},{anchor:"huggingface_hub.AsyncInferenceClient.text_generation.stop_sequences",description:`<strong>stop_sequences</strong> (<code>List[str]</code>) &#x2014;
Stop generating tokens if a member of <code>stop_sequences</code> is generated`,name:"stop_sequences"},{anchor:"huggingface_hub.AsyncInferenceClient.text_generation.temperature",description:`<strong>temperature</strong> (<code>float</code>) &#x2014;
The value used to module the logits distribution.`,name:"temperature"},{anchor:"huggingface_hub.AsyncInferenceClient.text_generation.top_k",description:`<strong>top_k</strong> (<code>int</code>) &#x2014;
The number of highest probability vocabulary tokens to keep for top-k-filtering.`,name:"top_k"},{anchor:"huggingface_hub.AsyncInferenceClient.text_generation.top_p",description:`<strong>top_p</strong> (<code>float</code>) &#x2014;
If set to &lt; 1, only the smallest set of most probable tokens with probabilities that add up to <code>top_p</code> or
higher are kept for generation.`,name:"top_p"},{anchor:"huggingface_hub.AsyncInferenceClient.text_generation.truncate",description:`<strong>truncate</strong> (<code>int</code>) &#x2014;
Truncate inputs tokens to the given size`,name:"truncate"},{anchor:"huggingface_hub.AsyncInferenceClient.text_generation.typical_p",description:`<strong>typical_p</strong> (<code>float</code>) &#x2014;
Typical Decoding mass
See <a href="https://arxiv.org/abs/2202.00666" rel="nofollow">Typical Decoding for Natural Language Generation</a> for more information`,name:"typical_p"},{anchor:"huggingface_hub.AsyncInferenceClient.text_generation.watermark",description:`<strong>watermark</strong> (<code>bool</code>) &#x2014;
Watermarking with <a href="https://arxiv.org/abs/2301.10226" rel="nofollow">A Watermark for Large Language Models</a>`,name:"watermark"},{anchor:"huggingface_hub.AsyncInferenceClient.text_generation.decoder_input_details",description:`<strong>decoder_input_details</strong> (<code>bool</code>) &#x2014;
Return the decoder input token logprobs and ids. You must set <code>details=True</code> as well for it to be taken
into account. Defaults to <code>False</code>.`,name:"decoder_input_details"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/inference/_generated/_async_client.py#L1297",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>
`}}),ms=new Z({props:{anchor:"huggingface_hub.AsyncInferenceClient.text_generation.example",$$slots:{default:[Dh]},$$scope:{ctx:$}}}),Za=new w({props:{name:"text_to_image",anchor:"huggingface_hub.AsyncInferenceClient.text_to_image",parameters:[{name:"prompt",val:": str"},{name:"negative_prompt",val:": typing.Optional[str] = None"},{name:"height",val:": typing.Optional[float] = None"},{name:"width",val:": typing.Optional[float] = None"},{name:"num_inference_steps",val:": typing.Optional[float] = None"},{name:"guidance_scale",val:": typing.Optional[float] = None"},{name:"model",val:": typing.Optional[str] = None"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"huggingface_hub.AsyncInferenceClient.text_to_image.prompt",description:`<strong>prompt</strong> (<code>str</code>) &#x2014;
The prompt to generate an image from.`,name:"prompt"},{anchor:"huggingface_hub.AsyncInferenceClient.text_to_image.negative_prompt",description:`<strong>negative_prompt</strong> (<code>str</code>, <em>optional</em>) &#x2014;
An optional negative prompt for the image generation.`,name:"negative_prompt"},{anchor:"huggingface_hub.AsyncInferenceClient.text_to_image.height",description:`<strong>height</strong> (<code>float</code>, <em>optional</em>) &#x2014;
The height in pixels of the image to generate.`,name:"height"},{anchor:"huggingface_hub.AsyncInferenceClient.text_to_image.width",description:`<strong>width</strong> (<code>float</code>, <em>optional</em>) &#x2014;
The width in pixels of the image to generate.`,name:"width"},{anchor:"huggingface_hub.AsyncInferenceClient.text_to_image.num_inference_steps",description:`<strong>num_inference_steps</strong> (<code>int</code>, <em>optional</em>) &#x2014;
The number of denoising steps. More denoising steps usually lead to a higher quality image at the
expense of slower inference.`,name:"num_inference_steps"},{anchor:"huggingface_hub.AsyncInferenceClient.text_to_image.guidance_scale",description:`<strong>guidance_scale</strong> (<code>float</code>, <em>optional</em>) &#x2014;
Higher guidance scale encourages to generate images that are closely linked to the text <code>prompt</code>,
usually at the expense of lower image quality.`,name:"guidance_scale"},{anchor:"huggingface_hub.AsyncInferenceClient.text_to_image.model",description:`<strong>model</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The model to use for inference. Can be a model ID hosted on the Hugging Face Hub or a URL to a deployed
Inference Endpoint. This parameter overrides the model defined at the instance level. Defaults to None.`,name:"model"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/inference/_generated/_async_client.py#L1566",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>
`}}),hs=new ae({props:{warning:!0,$$slots:{default:[Vh]},$$scope:{ctx:$}}}),fs=new Z({props:{anchor:"huggingface_hub.AsyncInferenceClient.text_to_image.example",$$slots:{default:[Ah]},$$scope:{ctx:$}}}),Ea=new w({props:{name:"text_to_speech",anchor:"huggingface_hub.AsyncInferenceClient.text_to_speech",parameters:[{name:"text",val:": str"},{name:"model",val:": typing.Optional[str] = None"}],parametersDescription:[{anchor:"huggingface_hub.AsyncInferenceClient.text_to_speech.text",description:`<strong>text</strong> (<code>str</code>) &#x2014;
The text to synthesize.`,name:"text"},{anchor:"huggingface_hub.AsyncInferenceClient.text_to_speech.model",description:`<strong>model</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The model to use for inference. Can be a model ID hosted on the Hugging Face Hub or a URL to a deployed
Inference Endpoint. This parameter overrides the model defined at the instance level. Defaults to None.`,name:"model"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/inference/_generated/_async_client.py#L1647",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>
`}}),bs=new Z({props:{anchor:"huggingface_hub.AsyncInferenceClient.text_to_speech.example",$$slots:{default:[Rh]},$$scope:{ctx:$}}}),Wa=new w({props:{name:"token_classification",anchor:"huggingface_hub.AsyncInferenceClient.token_classification",parameters:[{name:"text",val:": str"},{name:"model",val:": typing.Optional[str] = None"}],parametersDescription:[{anchor:"huggingface_hub.AsyncInferenceClient.token_classification.text",description:`<strong>text</strong> (<code>str</code>) &#x2014;
A string to be classified.`,name:"text"},{anchor:"huggingface_hub.AsyncInferenceClient.token_classification.model",description:`<strong>model</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The model to use for the token classification task. Can be a model ID hosted on the Hugging Face Hub or a URL to
a deployed Inference Endpoint. If not provided, the default recommended token classification model will be used.
Defaults to None.`,name:"model"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/inference/_generated/_async_client.py#L1680",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


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


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


<ul>
<li><a
  href="/docs/huggingface_hub/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>
`}}),_s=new Z({props:{anchor:"huggingface_hub.AsyncInferenceClient.token_classification.example",$$slots:{default:[Bh]},$$scope:{ctx:$}}}),Na=new w({props:{name:"translation",anchor:"huggingface_hub.AsyncInferenceClient.translation",parameters:[{name:"text",val:": str"},{name:"model",val:": typing.Optional[str] = None"}],parametersDescription:[{anchor:"huggingface_hub.AsyncInferenceClient.translation.text",description:`<strong>text</strong> (<code>str</code>) &#x2014;
A string to be translated.`,name:"text"},{anchor:"huggingface_hub.AsyncInferenceClient.translation.model",description:`<strong>model</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The model to use for the translation task. Can be a model ID hosted on the Hugging Face Hub or a URL to
a deployed Inference Endpoint. If not provided, the default recommended translation model will be used.
Defaults to None.`,name:"model"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/inference/_generated/_async_client.py#L1728",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


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


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


<ul>
<li><a
  href="/docs/huggingface_hub/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>
`}}),ys=new Z({props:{anchor:"huggingface_hub.AsyncInferenceClient.translation.example",$$slots:{default:[Yh]},$$scope:{ctx:$}}}),Ga=new w({props:{name:"visual_question_answering",anchor:"huggingface_hub.AsyncInferenceClient.visual_question_answering",parameters:[{name:"image",val:": typing.Union[bytes, typing.BinaryIO, str, pathlib.Path]"},{name:"question",val:": str"},{name:"model",val:": typing.Optional[str] = None"}],parametersDescription:[{anchor:"huggingface_hub.AsyncInferenceClient.visual_question_answering.image",description:`<strong>image</strong> (<code>Union[str, Path, bytes, BinaryIO]</code>) &#x2014;
The input image for the context. It can be raw bytes, an image file, or a URL to an online image.`,name:"image"},{anchor:"huggingface_hub.AsyncInferenceClient.visual_question_answering.question",description:`<strong>question</strong> (<code>str</code>) &#x2014;
Question to be answered.`,name:"question"},{anchor:"huggingface_hub.AsyncInferenceClient.visual_question_answering.model",description:`<strong>model</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The model to use for the visual question answering task. Can be a model ID hosted on the Hugging Face Hub or a URL to
a deployed Inference Endpoint. If not provided, the default recommended visual question answering model will be used.
Defaults to None.`,name:"model"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/inference/_generated/_async_client.py#L397",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


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


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


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


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


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


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


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


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


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


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