import{s as qm,o as Zm,n as J}from"../chunks/scheduler.6062bdaf.js";import{S as Wm,i as Em,g as p,s as r,r as m,A as Nm,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 x}from"../chunks/index.4bca734e.js";import{T as re}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 L}from"../chunks/Heading.723dceba.js";function Gm($){let t,y="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=y,o=r(),m(s.$$.fragment)},l(e){t=g(e,"P",{"data-svelte-h":!0}),T(t)!=="svelte-11lpom8"&&(t.textContent=y),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:J,i(e){i||(b(s.$$.fragment,e),i=!0)},o(e){_(s.$$.fragment,e),i=!1},d(e){e&&(c(t),c(o)),x(s,e)}}}function Vm($){let t,y="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=y,o=r(),m(s.$$.fragment)},l(e){t=g(e,"P",{"data-svelte-h":!0}),T(t)!=="svelte-11lpom8"&&(t.textContent=y),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:J,i(e){i||(b(s.$$.fragment,e),i=!0)},o(e){_(s.$$.fragment,e),i=!1},d(e){e&&(c(t),c(o)),x(s,e)}}}function Dm($){let t,y="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=y,o=r(),m(s.$$.fragment)},l(e){t=g(e,"P",{"data-svelte-h":!0}),T(t)!=="svelte-11lpom8"&&(t.textContent=y),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:J,i(e){i||(b(s.$$.fragment,e),i=!0)},o(e){_(s.$$.fragment,e),i=!1},d(e){e&&(c(t),c(o)),x(s,e)}}}function Ym($){let t,y="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=y,o=r(),m(s.$$.fragment)},l(e){t=g(e,"P",{"data-svelte-h":!0}),T(t)!=="svelte-11lpom8"&&(t.textContent=y),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:J,i(e){i||(b(s.$$.fragment,e),i=!0)},o(e){_(s.$$.fragment,e),i=!1},d(e){e&&(c(t),c(o)),x(s,e)}}}function Rm($){let t,y="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=y,o=r(),m(s.$$.fragment)},l(e){t=g(e,"P",{"data-svelte-h":!0}),T(t)!=="svelte-11lpom8"&&(t.textContent=y),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:J,i(e){i||(b(s.$$.fragment,e),i=!0)},o(e){_(s.$$.fragment,e),i=!1},d(e){e&&(c(t),c(o)),x(s,e)}}}function Am($){let t,y="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=y,o=r(),m(s.$$.fragment)},l(e){t=g(e,"P",{"data-svelte-h":!0}),T(t)!=="svelte-11lpom8"&&(t.textContent=y),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:J,i(e){i||(b(s.$$.fragment,e),i=!0)},o(e){_(s.$$.fragment,e),i=!1},d(e){e&&(c(t),c(o)),x(s,e)}}}function Bm($){let t,y=`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=y},l(o){t=g(o,"P",{"data-svelte-h":!0}),T(t)!=="svelte-1igz3dx"&&(t.innerHTML=y)},m(o,s){j(o,t,s)},p:J,d(o){o&&c(t)}}}function Hm($){let t,y="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=y,o=r(),m(s.$$.fragment)},l(e){t=g(e,"P",{"data-svelte-h":!0}),T(t)!=="svelte-11lpom8"&&(t.textContent=y),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:J,i(e){i||(b(s.$$.fragment,e),i=!0)},o(e){_(s.$$.fragment,e),i=!1},d(e){e&&(c(t),c(o)),x(s,e)}}}function Fm($){let t,y="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=y,o=r(),m(s.$$.fragment)},l(e){t=g(e,"P",{"data-svelte-h":!0}),T(t)!=="svelte-11lpom8"&&(t.textContent=y),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:J,i(e){i||(b(s.$$.fragment,e),i=!0)},o(e){_(s.$$.fragment,e),i=!1},d(e){e&&(c(t),c(o)),x(s,e)}}}function Pm($){let t,y="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=y},l(o){t=g(o,"P",{"data-svelte-h":!0}),T(t)!=="svelte-s2e3n9"&&(t.innerHTML=y)},m(o,s){j(o,t,s)},p:J,d(o){o&&c(t)}}}function Lm($){let t,y="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=y,o=r(),m(s.$$.fragment)},l(e){t=g(e,"P",{"data-svelte-h":!0}),T(t)!=="svelte-11lpom8"&&(t.textContent=y),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:J,i(e){i||(b(s.$$.fragment,e),i=!0)},o(e){_(s.$$.fragment,e),i=!1},d(e){e&&(c(t),c(o)),x(s,e)}}}function Qm($){let t,y="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=y},l(o){t=g(o,"P",{"data-svelte-h":!0}),T(t)!=="svelte-s2e3n9"&&(t.innerHTML=y)},m(o,s){j(o,t,s)},p:J,d(o){o&&c(t)}}}function Sm($){let t,y="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=y,o=r(),m(s.$$.fragment)},l(e){t=g(e,"P",{"data-svelte-h":!0}),T(t)!=="svelte-11lpom8"&&(t.textContent=y),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:J,i(e){i||(b(s.$$.fragment,e),i=!0)},o(e){_(s.$$.fragment,e),i=!1},d(e){e&&(c(t),c(o)),x(s,e)}}}function Xm($){let t,y="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=y,o=r(),m(s.$$.fragment)},l(e){t=g(e,"P",{"data-svelte-h":!0}),T(t)!=="svelte-11lpom8"&&(t.textContent=y),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:J,i(e){i||(b(s.$$.fragment,e),i=!0)},o(e){_(s.$$.fragment,e),i=!1},d(e){e&&(c(t),c(o)),x(s,e)}}}function zm($){let t,y=`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=y},l(o){t=g(o,"P",{"data-svelte-h":!0}),T(t)!=="svelte-wneo7r"&&(t.innerHTML=y)},m(o,s){j(o,t,s)},p:J,d(o){o&&c(t)}}}function Om($){let t,y="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=y,o=r(),m(s.$$.fragment)},l(e){t=g(e,"P",{"data-svelte-h":!0}),T(t)!=="svelte-11lpom8"&&(t.textContent=y),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:J,i(e){i||(b(s.$$.fragment,e),i=!0)},o(e){_(s.$$.fragment,e),i=!1},d(e){e&&(c(t),c(o)),x(s,e)}}}function Km($){let t,y="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=y},l(o){t=g(o,"P",{"data-svelte-h":!0}),T(t)!=="svelte-s2e3n9"&&(t.innerHTML=y)},m(o,s){j(o,t,s)},p:J,d(o){o&&c(t)}}}function eh($){let t,y="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=y,o=r(),m(s.$$.fragment)},l(e){t=g(e,"P",{"data-svelte-h":!0}),T(t)!=="svelte-11lpom8"&&(t.textContent=y),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:J,i(e){i||(b(s.$$.fragment,e),i=!0)},o(e){_(s.$$.fragment,e),i=!1},d(e){e&&(c(t),c(o)),x(s,e)}}}function nh($){let t,y="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=y,o=r(),m(s.$$.fragment)},l(e){t=g(e,"P",{"data-svelte-h":!0}),T(t)!=="svelte-11lpom8"&&(t.textContent=y),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:J,i(e){i||(b(s.$$.fragment,e),i=!0)},o(e){_(s.$$.fragment,e),i=!1},d(e){e&&(c(t),c(o)),x(s,e)}}}function th($){let t,y="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=y,o=r(),m(s.$$.fragment)},l(e){t=g(e,"P",{"data-svelte-h":!0}),T(t)!=="svelte-11lpom8"&&(t.textContent=y),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:J,i(e){i||(b(s.$$.fragment,e),i=!0)},o(e){_(s.$$.fragment,e),i=!1},d(e){e&&(c(t),c(o)),x(s,e)}}}function sh($){let t,y="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=y,o=r(),m(s.$$.fragment)},l(e){t=g(e,"P",{"data-svelte-h":!0}),T(t)!=="svelte-11lpom8"&&(t.textContent=y),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:J,i(e){i||(b(s.$$.fragment,e),i=!0)},o(e){_(s.$$.fragment,e),i=!1},d(e){e&&(c(t),c(o)),x(s,e)}}}function ah($){let t,y="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=y,o=r(),m(s.$$.fragment)},l(e){t=g(e,"P",{"data-svelte-h":!0}),T(t)!=="svelte-11lpom8"&&(t.textContent=y),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:J,i(e){i||(b(s.$$.fragment,e),i=!0)},o(e){_(s.$$.fragment,e),i=!1},d(e){e&&(c(t),c(o)),x(s,e)}}}function oh($){let t,y="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=y,o=r(),m(s.$$.fragment)},l(e){t=g(e,"P",{"data-svelte-h":!0}),T(t)!=="svelte-11lpom8"&&(t.textContent=y),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:J,i(e){i||(b(s.$$.fragment,e),i=!0)},o(e){_(s.$$.fragment,e),i=!1},d(e){e&&(c(t),c(o)),x(s,e)}}}function rh($){let t,y="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=y,o=r(),m(s.$$.fragment)},l(e){t=g(e,"P",{"data-svelte-h":!0}),T(t)!=="svelte-11lpom8"&&(t.textContent=y),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:J,i(e){i||(b(s.$$.fragment,e),i=!0)},o(e){_(s.$$.fragment,e),i=!1},d(e){e&&(c(t),c(o)),x(s,e)}}}function lh($){let t,y="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=y,o=r(),m(s.$$.fragment)},l(e){t=g(e,"P",{"data-svelte-h":!0}),T(t)!=="svelte-11lpom8"&&(t.textContent=y),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:J,i(e){i||(b(s.$$.fragment,e),i=!0)},o(e){_(s.$$.fragment,e),i=!1},d(e){e&&(c(t),c(o)),x(s,e)}}}function ih($){let t,y="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=y,o=r(),m(s.$$.fragment)},l(e){t=g(e,"P",{"data-svelte-h":!0}),T(t)!=="svelte-11lpom8"&&(t.textContent=y),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:J,i(e){i||(b(s.$$.fragment,e),i=!0)},o(e){_(s.$$.fragment,e),i=!1},d(e){e&&(c(t),c(o)),x(s,e)}}}function ch($){let t,y="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=y},l(o){t=g(o,"P",{"data-svelte-h":!0}),T(t)!=="svelte-s2e3n9"&&(t.innerHTML=y)},m(o,s){j(o,t,s)},p:J,d(o){o&&c(t)}}}function ph($){let t,y="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=y,o=r(),m(s.$$.fragment)},l(e){t=g(e,"P",{"data-svelte-h":!0}),T(t)!=="svelte-11lpom8"&&(t.textContent=y),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:J,i(e){i||(b(s.$$.fragment,e),i=!0)},o(e){_(s.$$.fragment,e),i=!1},d(e){e&&(c(t),c(o)),x(s,e)}}}function gh($){let t,y="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=y,o=r(),m(s.$$.fragment)},l(e){t=g(e,"P",{"data-svelte-h":!0}),T(t)!=="svelte-11lpom8"&&(t.textContent=y),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:J,i(e){i||(b(s.$$.fragment,e),i=!0)},o(e){_(s.$$.fragment,e),i=!1},d(e){e&&(c(t),c(o)),x(s,e)}}}function uh($){let t,y="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=y,o=r(),m(s.$$.fragment)},l(e){t=g(e,"P",{"data-svelte-h":!0}),T(t)!=="svelte-11lpom8"&&(t.textContent=y),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:J,i(e){i||(b(s.$$.fragment,e),i=!0)},o(e){_(s.$$.fragment,e),i=!1},d(e){e&&(c(t),c(o)),x(s,e)}}}function dh($){let t,y="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=y,o=r(),m(s.$$.fragment)},l(e){t=g(e,"P",{"data-svelte-h":!0}),T(t)!=="svelte-11lpom8"&&(t.textContent=y),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:J,i(e){i||(b(s.$$.fragment,e),i=!0)},o(e){_(s.$$.fragment,e),i=!1},d(e){e&&(c(t),c(o)),x(s,e)}}}function mh($){let t,y="Specifying languages:",o,s,i;return s=new q({props:{code:"Y2xpZW50LnRyYW5zbGF0aW9uKCUyMk15JTIwbmFtZSUyMGlzJTIwU2FyYWglMjBKZXNzaWNhJTIwUGFya2VyJTIwYnV0JTIweW91JTIwY2FuJTIwY2FsbCUyMG1lJTIwSmVzc2ljYSUyMiUyQyUyMG1vZGVsJTNEJTIyZmFjZWJvb2slMkZtYmFydC1sYXJnZS01MC1tYW55LXRvLW1hbnktbW10JTIyJTJDJTIwc3JjX2xhbmclM0QlMjJlbl9YWCUyMiUyQyUyMHRndF9sYW5nJTNEJTIyZnJfWFglMjIp",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span>client.translation(<span class="hljs-string">&quot;My name is Sarah Jessica Parker but you can call me Jessica&quot;</span>, model=<span class="hljs-string">&quot;facebook/mbart-large-50-many-to-many-mmt&quot;</span>, src_lang=<span class="hljs-string">&quot;en_XX&quot;</span>, tgt_lang=<span class="hljs-string">&quot;fr_XX&quot;</span>)
<span class="hljs-string">&quot;Mon nom est Sarah Jessica Parker mais vous pouvez m&#x27;appeler Jessica&quot;</span>`,wrap:!1}}),{c(){t=p("p"),t.textContent=y,o=r(),m(s.$$.fragment)},l(e){t=g(e,"P",{"data-svelte-h":!0}),T(t)!=="svelte-mhcj6c"&&(t.textContent=y),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:J,i(e){i||(b(s.$$.fragment,e),i=!0)},o(e){_(s.$$.fragment,e),i=!1},d(e){e&&(c(t),c(o)),x(s,e)}}}function hh($){let t,y="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=y,o=r(),m(s.$$.fragment)},l(e){t=g(e,"P",{"data-svelte-h":!0}),T(t)!=="svelte-11lpom8"&&(t.textContent=y),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:J,i(e){i||(b(s.$$.fragment,e),i=!0)},o(e){_(s.$$.fragment,e),i=!1},d(e){e&&(c(t),c(o)),x(s,e)}}}function fh($){let t,y="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=y,o=r(),m(s.$$.fragment)},l(e){t=g(e,"P",{"data-svelte-h":!0}),T(t)!=="svelte-11lpom8"&&(t.textContent=y),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:J,i(e){i||(b(s.$$.fragment,e),i=!0)},o(e){_(s.$$.fragment,e),i=!1},d(e){e&&(c(t),c(o)),x(s,e)}}}function bh($){let t,y="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=y,o=r(),m(s.$$.fragment)},l(e){t=g(e,"P",{"data-svelte-h":!0}),T(t)!=="svelte-11lpom8"&&(t.textContent=y),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:J,i(e){i||(b(s.$$.fragment,e),i=!0)},o(e){_(s.$$.fragment,e),i=!1},d(e){e&&(c(t),c(o)),x(s,e)}}}function _h($){let t,y="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=y,o=r(),m(s.$$.fragment)},l(e){t=g(e,"P",{"data-svelte-h":!0}),T(t)!=="svelte-11lpom8"&&(t.textContent=y),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:J,i(e){i||(b(s.$$.fragment,e),i=!0)},o(e){_(s.$$.fragment,e),i=!1},d(e){e&&(c(t),c(o)),x(s,e)}}}function xh($){let t,y="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=y,o=r(),m(s.$$.fragment)},l(e){t=g(e,"P",{"data-svelte-h":!0}),T(t)!=="svelte-11lpom8"&&(t.textContent=y),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:J,i(e){i||(b(s.$$.fragment,e),i=!0)},o(e){_(s.$$.fragment,e),i=!1},d(e){e&&(c(t),c(o)),x(s,e)}}}function yh($){let t,y="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=y,o=r(),m(s.$$.fragment)},l(e){t=g(e,"P",{"data-svelte-h":!0}),T(t)!=="svelte-11lpom8"&&(t.textContent=y),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:J,i(e){i||(b(s.$$.fragment,e),i=!0)},o(e){_(s.$$.fragment,e),i=!1},d(e){e&&(c(t),c(o)),x(s,e)}}}function jh($){let t,y="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=y,o=r(),m(s.$$.fragment)},l(e){t=g(e,"P",{"data-svelte-h":!0}),T(t)!=="svelte-11lpom8"&&(t.textContent=y),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:J,i(e){i||(b(s.$$.fragment,e),i=!0)},o(e){_(s.$$.fragment,e),i=!1},d(e){e&&(c(t),c(o)),x(s,e)}}}function Th($){let t,y="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=y,o=r(),m(s.$$.fragment)},l(e){t=g(e,"P",{"data-svelte-h":!0}),T(t)!=="svelte-11lpom8"&&(t.textContent=y),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:J,i(e){i||(b(s.$$.fragment,e),i=!0)},o(e){_(s.$$.fragment,e),i=!1},d(e){e&&(c(t),c(o)),x(s,e)}}}function $h($){let t,y="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=y,o=r(),m(s.$$.fragment)},l(e){t=g(e,"P",{"data-svelte-h":!0}),T(t)!=="svelte-11lpom8"&&(t.textContent=y),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:J,i(e){i||(b(s.$$.fragment,e),i=!0)},o(e){_(s.$$.fragment,e),i=!1},d(e){e&&(c(t),c(o)),x(s,e)}}}function Ih($){let t,y=`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=y},l(o){t=g(o,"P",{"data-svelte-h":!0}),T(t)!=="svelte-1igz3dx"&&(t.innerHTML=y)},m(o,s){j(o,t,s)},p:J,d(o){o&&c(t)}}}function Mh($){let t,y="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=y,o=r(),m(s.$$.fragment)},l(e){t=g(e,"P",{"data-svelte-h":!0}),T(t)!=="svelte-11lpom8"&&(t.textContent=y),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:J,i(e){i||(b(s.$$.fragment,e),i=!0)},o(e){_(s.$$.fragment,e),i=!1},d(e){e&&(c(t),c(o)),x(s,e)}}}function wh($){let t,y="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=y,o=r(),m(s.$$.fragment)},l(e){t=g(e,"P",{"data-svelte-h":!0}),T(t)!=="svelte-11lpom8"&&(t.textContent=y),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:J,i(e){i||(b(s.$$.fragment,e),i=!0)},o(e){_(s.$$.fragment,e),i=!1},d(e){e&&(c(t),c(o)),x(s,e)}}}function Ch($){let t,y="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=y},l(o){t=g(o,"P",{"data-svelte-h":!0}),T(t)!=="svelte-s2e3n9"&&(t.innerHTML=y)},m(o,s){j(o,t,s)},p:J,d(o){o&&c(t)}}}function vh($){let t,y="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=y,o=r(),m(s.$$.fragment)},l(e){t=g(e,"P",{"data-svelte-h":!0}),T(t)!=="svelte-11lpom8"&&(t.textContent=y),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:J,i(e){i||(b(s.$$.fragment,e),i=!0)},o(e){_(s.$$.fragment,e),i=!1},d(e){e&&(c(t),c(o)),x(s,e)}}}function Jh($){let t,y="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=y},l(o){t=g(o,"P",{"data-svelte-h":!0}),T(t)!=="svelte-s2e3n9"&&(t.innerHTML=y)},m(o,s){j(o,t,s)},p:J,d(o){o&&c(t)}}}function Uh($){let t,y="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=y,o=r(),m(s.$$.fragment)},l(e){t=g(e,"P",{"data-svelte-h":!0}),T(t)!=="svelte-11lpom8"&&(t.textContent=y),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:J,i(e){i||(b(s.$$.fragment,e),i=!0)},o(e){_(s.$$.fragment,e),i=!1},d(e){e&&(c(t),c(o)),x(s,e)}}}function kh($){let t,y="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=y,o=r(),m(s.$$.fragment)},l(e){t=g(e,"P",{"data-svelte-h":!0}),T(t)!=="svelte-11lpom8"&&(t.textContent=y),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:J,i(e){i||(b(s.$$.fragment,e),i=!0)},o(e){_(s.$$.fragment,e),i=!1},d(e){e&&(c(t),c(o)),x(s,e)}}}function qh($){let t,y=`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=y},l(o){t=g(o,"P",{"data-svelte-h":!0}),T(t)!=="svelte-wneo7r"&&(t.innerHTML=y)},m(o,s){j(o,t,s)},p:J,d(o){o&&c(t)}}}function Zh($){let t,y="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=y,o=r(),m(s.$$.fragment)},l(e){t=g(e,"P",{"data-svelte-h":!0}),T(t)!=="svelte-11lpom8"&&(t.textContent=y),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:J,i(e){i||(b(s.$$.fragment,e),i=!0)},o(e){_(s.$$.fragment,e),i=!1},d(e){e&&(c(t),c(o)),x(s,e)}}}function Wh($){let t,y="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=y},l(o){t=g(o,"P",{"data-svelte-h":!0}),T(t)!=="svelte-s2e3n9"&&(t.innerHTML=y)},m(o,s){j(o,t,s)},p:J,d(o){o&&c(t)}}}function Eh($){let t,y="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=y,o=r(),m(s.$$.fragment)},l(e){t=g(e,"P",{"data-svelte-h":!0}),T(t)!=="svelte-11lpom8"&&(t.textContent=y),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:J,i(e){i||(b(s.$$.fragment,e),i=!0)},o(e){_(s.$$.fragment,e),i=!1},d(e){e&&(c(t),c(o)),x(s,e)}}}function Nh($){let t,y="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=y,o=r(),m(s.$$.fragment)},l(e){t=g(e,"P",{"data-svelte-h":!0}),T(t)!=="svelte-11lpom8"&&(t.textContent=y),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:J,i(e){i||(b(s.$$.fragment,e),i=!0)},o(e){_(s.$$.fragment,e),i=!1},d(e){e&&(c(t),c(o)),x(s,e)}}}function Gh($){let t,y="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=y,o=r(),m(s.$$.fragment)},l(e){t=g(e,"P",{"data-svelte-h":!0}),T(t)!=="svelte-11lpom8"&&(t.textContent=y),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:J,i(e){i||(b(s.$$.fragment,e),i=!0)},o(e){_(s.$$.fragment,e),i=!1},d(e){e&&(c(t),c(o)),x(s,e)}}}function Vh($){let t,y="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=y,o=r(),m(s.$$.fragment)},l(e){t=g(e,"P",{"data-svelte-h":!0}),T(t)!=="svelte-11lpom8"&&(t.textContent=y),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:J,i(e){i||(b(s.$$.fragment,e),i=!0)},o(e){_(s.$$.fragment,e),i=!1},d(e){e&&(c(t),c(o)),x(s,e)}}}function Dh($){let t,y="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=y,o=r(),m(s.$$.fragment)},l(e){t=g(e,"P",{"data-svelte-h":!0}),T(t)!=="svelte-11lpom8"&&(t.textContent=y),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:J,i(e){i||(b(s.$$.fragment,e),i=!0)},o(e){_(s.$$.fragment,e),i=!1},d(e){e&&(c(t),c(o)),x(s,e)}}}function Yh($){let t,y="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=y,o=r(),m(s.$$.fragment)},l(e){t=g(e,"P",{"data-svelte-h":!0}),T(t)!=="svelte-11lpom8"&&(t.textContent=y),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:J,i(e){i||(b(s.$$.fragment,e),i=!0)},o(e){_(s.$$.fragment,e),i=!1},d(e){e&&(c(t),c(o)),x(s,e)}}}function Rh($){let t,y="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=y,o=r(),m(s.$$.fragment)},l(e){t=g(e,"P",{"data-svelte-h":!0}),T(t)!=="svelte-11lpom8"&&(t.textContent=y),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:J,i(e){i||(b(s.$$.fragment,e),i=!0)},o(e){_(s.$$.fragment,e),i=!1},d(e){e&&(c(t),c(o)),x(s,e)}}}function Ah($){let t,y="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=y,o=r(),m(s.$$.fragment)},l(e){t=g(e,"P",{"data-svelte-h":!0}),T(t)!=="svelte-11lpom8"&&(t.textContent=y),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:J,i(e){i||(b(s.$$.fragment,e),i=!0)},o(e){_(s.$$.fragment,e),i=!1},d(e){e&&(c(t),c(o)),x(s,e)}}}function Bh($){let t,y="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=y,o=r(),m(s.$$.fragment)},l(e){t=g(e,"P",{"data-svelte-h":!0}),T(t)!=="svelte-11lpom8"&&(t.textContent=y),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:J,i(e){i||(b(s.$$.fragment,e),i=!0)},o(e){_(s.$$.fragment,e),i=!1},d(e){e&&(c(t),c(o)),x(s,e)}}}function Hh($){let t,y="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=y},l(o){t=g(o,"P",{"data-svelte-h":!0}),T(t)!=="svelte-s2e3n9"&&(t.innerHTML=y)},m(o,s){j(o,t,s)},p:J,d(o){o&&c(t)}}}function Fh($){let t,y="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=y,o=r(),m(s.$$.fragment)},l(e){t=g(e,"P",{"data-svelte-h":!0}),T(t)!=="svelte-11lpom8"&&(t.textContent=y),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:J,i(e){i||(b(s.$$.fragment,e),i=!0)},o(e){_(s.$$.fragment,e),i=!1},d(e){e&&(c(t),c(o)),x(s,e)}}}function Ph($){let t,y="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=y,o=r(),m(s.$$.fragment)},l(e){t=g(e,"P",{"data-svelte-h":!0}),T(t)!=="svelte-11lpom8"&&(t.textContent=y),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:J,i(e){i||(b(s.$$.fragment,e),i=!0)},o(e){_(s.$$.fragment,e),i=!1},d(e){e&&(c(t),c(o)),x(s,e)}}}function Lh($){let t,y="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=y,o=r(),m(s.$$.fragment)},l(e){t=g(e,"P",{"data-svelte-h":!0}),T(t)!=="svelte-11lpom8"&&(t.textContent=y),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:J,i(e){i||(b(s.$$.fragment,e),i=!0)},o(e){_(s.$$.fragment,e),i=!1},d(e){e&&(c(t),c(o)),x(s,e)}}}function Qh($){let t,y="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=y,o=r(),m(s.$$.fragment)},l(e){t=g(e,"P",{"data-svelte-h":!0}),T(t)!=="svelte-11lpom8"&&(t.textContent=y),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:J,i(e){i||(b(s.$$.fragment,e),i=!0)},o(e){_(s.$$.fragment,e),i=!1},d(e){e&&(c(t),c(o)),x(s,e)}}}function Sh($){let t,y="Specifying languages:",o,s,i;return s=new q({props:{code:"Y2xpZW50LnRyYW5zbGF0aW9uKCUyMk15JTIwbmFtZSUyMGlzJTIwU2FyYWglMjBKZXNzaWNhJTIwUGFya2VyJTIwYnV0JTIweW91JTIwY2FuJTIwY2FsbCUyMG1lJTIwSmVzc2ljYSUyMiUyQyUyMG1vZGVsJTNEJTIyZmFjZWJvb2slMkZtYmFydC1sYXJnZS01MC1tYW55LXRvLW1hbnktbW10JTIyJTJDJTIwc3JjX2xhbmclM0QlMjJlbl9YWCUyMiUyQyUyMHRndF9sYW5nJTNEJTIyZnJfWFglMjIp",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span>client.translation(<span class="hljs-string">&quot;My name is Sarah Jessica Parker but you can call me Jessica&quot;</span>, model=<span class="hljs-string">&quot;facebook/mbart-large-50-many-to-many-mmt&quot;</span>, src_lang=<span class="hljs-string">&quot;en_XX&quot;</span>, tgt_lang=<span class="hljs-string">&quot;fr_XX&quot;</span>)
<span class="hljs-string">&quot;Mon nom est Sarah Jessica Parker mais vous pouvez m&#x27;appeler Jessica&quot;</span>`,wrap:!1}}),{c(){t=p("p"),t.textContent=y,o=r(),m(s.$$.fragment)},l(e){t=g(e,"P",{"data-svelte-h":!0}),T(t)!=="svelte-mhcj6c"&&(t.textContent=y),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:J,i(e){i||(b(s.$$.fragment,e),i=!0)},o(e){_(s.$$.fragment,e),i=!1},d(e){e&&(c(t),c(o)),x(s,e)}}}function Xh($){let t,y="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=y,o=r(),m(s.$$.fragment)},l(e){t=g(e,"P",{"data-svelte-h":!0}),T(t)!=="svelte-11lpom8"&&(t.textContent=y),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:J,i(e){i||(b(s.$$.fragment,e),i=!0)},o(e){_(s.$$.fragment,e),i=!1},d(e){e&&(c(t),c(o)),x(s,e)}}}function zh($){let t,y="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=y,o=r(),m(s.$$.fragment)},l(e){t=g(e,"P",{"data-svelte-h":!0}),T(t)!=="svelte-11lpom8"&&(t.textContent=y),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:J,i(e){i||(b(s.$$.fragment,e),i=!0)},o(e){_(s.$$.fragment,e),i=!1},d(e){e&&(c(t),c(o)),x(s,e)}}}function Oh($){let t,y="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=y,o=r(),m(s.$$.fragment)},l(e){t=g(e,"P",{"data-svelte-h":!0}),T(t)!=="svelte-11lpom8"&&(t.textContent=y),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:J,i(e){i||(b(s.$$.fragment,e),i=!0)},o(e){_(s.$$.fragment,e),i=!1},d(e){e&&(c(t),c(o)),x(s,e)}}}function Kh($){let t,y="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=y,o=r(),m(s.$$.fragment)},l(e){t=g(e,"P",{"data-svelte-h":!0}),T(t)!=="svelte-11lpom8"&&(t.textContent=y),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:J,i(e){i||(b(s.$$.fragment,e),i=!0)},o(e){_(s.$$.fragment,e),i=!1},d(e){e&&(c(t),c(o)),x(s,e)}}}function ef($){let t,y,o,s,i,e,u,Eu=`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:`,wl,Js,Nu=`<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>`,Cl,Us,Gu=`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.`,vl,ks,Jl,C,qs,ji,Eo,Vu="Initialize a new Inference Client.",Ti,No,Du=`<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.`,$i,je,Zs,Ii,Go,Yu="Perform audio classification on the provided audio content.",Mi,rt,wi,Te,Ws,Ci,Vo,Ru="Perform automatic speech recognition (ASR or audio-to-text) on the given audio content.",vi,lt,Ji,$e,Es,Ui,Do,Au="Generate conversational responses based on the given input text (i.e. chat with the API).",ki,it,qi,Ie,Ns,Zi,Yo,Bu="Answer questions on document images.",Wi,ct,Ei,Me,Gs,Ni,Ro,Hu="Generate embeddings for a given text.",Gi,pt,Vi,we,Vs,Di,Ao,Fu="Fill in a hole with a missing word (token to be precise).",Yi,gt,Ri,Q,Ds,Ai,Bo,Pu="Get the status of a model hosted on the Inference API.",Bi,ut,Hi,dt,Fi,mt,Ys,Pi,Ho,Lu="Get the model Hugging Face recommends for the input task.",Li,Ce,Rs,Qi,Fo,Qu="Perform image classification on the given image using the specified model.",Si,ht,Xi,S,As,zi,Po,Su="Perform image segmentation on the given image using the specified model.",Oi,ft,Ki,bt,ec,X,Bs,nc,Lo,Xu="Perform image-to-image translation using a specified model.",tc,_t,sc,xt,ac,z,Hs,oc,Qo,zu="Takes an input image and return text.",rc,So,Ou=`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.`,lc,yt,ic,D,Fs,cc,Xo,Ku="List models currently deployed on the Inference API service.",pc,zo,ed=`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.`,gc,jt,uc,Tt,dc,O,Ps,mc,Oo,nd="Perform object detection on the given image using the specified model.",hc,$t,fc,It,bc,Mt,Ls,_c,Ko,td="Make a POST request to the inference server.",xc,ve,Qs,yc,er,sd="Retrieve the answer to a question from a given text.",jc,wt,Tc,Je,Ss,$c,nr,ad="Compute the semantic similarity between a sentence and a list of other sentences by comparing their embeddings.",Ic,Ct,Mc,Ue,Xs,wc,tr,od="Generate a summary of a given text using a specified model.",Cc,vt,vc,ke,zs,Jc,sr,rd="Retrieve the answer to a question from information given in a table.",Uc,Jt,kc,qe,Os,qc,ar,ld="Classifying a target category (a group) based on a set of attributes.",Zc,Ut,Wc,Ze,Ks,Ec,or,id="Predicting a numerical target value given a set of attributes/features in a table.",Nc,kt,Gc,We,ea,Vc,rr,cd="Perform text classification (e.g. sentiment-analysis) on the given text.",Dc,qt,Yc,W,na,Rc,lr,pd="Given a prompt, generate the following text.",Ac,ir,gd=`It is recommended to have Pydantic installed in order to get inputs validated. This is preferable as it allow
early failures.`,Bc,cr,ud=`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.`,Hc,pr,dd='To learn more about the TGI project, please refer to <a href="https://github.com/huggingface/text-generation-inference" rel="nofollow">https://github.com/huggingface/text-generation-inference</a>.',Fc,Zt,Pc,K,ta,Lc,gr,md="Generate an image based on a given text using a specified model.",Qc,Wt,Sc,Et,Xc,Ee,sa,zc,ur,hd="Synthesize an audio of a voice pronouncing a given text.",Oc,Nt,Kc,Ne,aa,ep,dr,fd=`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.`,np,Gt,tp,Y,oa,sp,mr,bd="Convert text from one language to another.",ap,hr,_d=`Check out <a href="https://huggingface.co/tasks/translation" rel="nofollow">https://huggingface.co/tasks/translation</a> for more information on how to choose the best model for
your specific use case. Source and target languages usually depend on the model.
However, it is possible to specify source and target languages for certain models. If you are working with one of these models,
you can use <code>src_lang</code> and <code>tgt_lang</code> arguments to pass the relevant information.
You can find this information in the model card.`,op,Vt,rp,Dt,lp,Ge,ra,ip,fr,xd="Answering open-ended questions based on an image.",cp,Yt,pp,Ve,la,gp,br,yd="Provide as input a text and a set of candidate labels to classify the input text.",up,Rt,dp,De,ia,mp,_r,jd="Provide input image and text labels to predict text labels for the image.",hp,At,Ul,ca,kl,pa,Td=`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:`,ql,ga,Zl,v,ua,fp,xr,$d="Initialize a new Inference Client.",bp,yr,Id=`<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.`,_p,Ye,da,xp,jr,Md="Perform audio classification on the provided audio content.",yp,Bt,jp,Re,ma,Tp,Tr,wd="Perform automatic speech recognition (ASR or audio-to-text) on the given audio content.",$p,Ht,Ip,Ae,ha,Mp,$r,Cd="Generate conversational responses based on the given input text (i.e. chat with the API).",wp,Ft,Cp,Be,fa,vp,Ir,vd="Answer questions on document images.",Jp,Pt,Up,He,ba,kp,Mr,Jd="Generate embeddings for a given text.",qp,Lt,Zp,Fe,_a,Wp,wr,Ud="Fill in a hole with a missing word (token to be precise).",Ep,Qt,Np,ee,xa,Gp,Cr,kd="Get the status of a model hosted on the Inference API.",Vp,St,Dp,Xt,Yp,zt,ya,Rp,vr,qd="Get the model Hugging Face recommends for the input task.",Ap,Pe,ja,Bp,Jr,Zd="Perform image classification on the given image using the specified model.",Hp,Ot,Fp,ne,Ta,Pp,Ur,Wd="Perform image segmentation on the given image using the specified model.",Lp,Kt,Qp,es,Sp,te,$a,Xp,kr,Ed="Perform image-to-image translation using a specified model.",zp,ns,Op,ts,Kp,se,Ia,eg,qr,Nd="Takes an input image and return text.",ng,Zr,Gd=`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.`,tg,ss,sg,R,Ma,ag,Wr,Vd="List models currently deployed on the Inference API service.",og,Er,Dd=`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.`,rg,as,lg,os,ig,ae,wa,cg,Nr,Yd="Perform object detection on the given image using the specified model.",pg,rs,gg,ls,ug,is,Ca,dg,Gr,Rd="Make a POST request to the inference server.",mg,Le,va,hg,Vr,Ad="Retrieve the answer to a question from a given text.",fg,cs,bg,Qe,Ja,_g,Dr,Bd="Compute the semantic similarity between a sentence and a list of other sentences by comparing their embeddings.",xg,ps,yg,Se,Ua,jg,Yr,Hd="Generate a summary of a given text using a specified model.",Tg,gs,$g,Xe,ka,Ig,Rr,Fd="Retrieve the answer to a question from information given in a table.",Mg,us,wg,ze,qa,Cg,Ar,Pd="Classifying a target category (a group) based on a set of attributes.",vg,ds,Jg,Oe,Za,Ug,Br,Ld="Predicting a numerical target value given a set of attributes/features in a table.",kg,ms,qg,Ke,Wa,Zg,Hr,Qd="Perform text classification (e.g. sentiment-analysis) on the given text.",Wg,hs,Eg,E,Ea,Ng,Fr,Sd="Given a prompt, generate the following text.",Gg,Pr,Xd=`It is recommended to have Pydantic installed in order to get inputs validated. This is preferable as it allow
early failures.`,Vg,Lr,zd=`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.`,Dg,Qr,Od='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>.',Yg,fs,Rg,oe,Na,Ag,Sr,Kd="Generate an image based on a given text using a specified model.",Bg,bs,Hg,_s,Fg,en,Ga,Pg,Xr,em="Synthesize an audio of a voice pronouncing a given text.",Lg,xs,Qg,nn,Va,Sg,zr,nm=`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.`,Xg,ys,zg,A,Da,Og,Or,tm="Convert text from one language to another.",Kg,Kr,sm=`Check out <a href="https://huggingface.co/tasks/translation" rel="nofollow">https://huggingface.co/tasks/translation</a> for more information on how to choose the best model for
your specific use case. Source and target languages usually depend on the model.
However, it is possible to specify source and target languages for certain models. If you are working with one of these models,
you can use <code>src_lang</code> and <code>tgt_lang</code> arguments to pass the relevant information.
You can find this information in the model card.`,eu,js,nu,Ts,tu,tn,Ya,su,el,am="Answering open-ended questions based on an image.",au,$s,ou,sn,Ra,ru,nl,om="Provide as input a text and a set of candidate labels to classify the input text.",lu,Is,iu,an,Aa,cu,tl,rm="Provide input image and text labels to predict text labels for the image.",pu,Ms,Wl,Ba,El,rn,Ha,gu,sl,lm="Error raised when a model is unavailable or the request times out.",Nl,Fa,Gl,Pa,im="For most tasks, the return value has a built-in type (string, list, image…). Here is a list for the more complex types.",Vl,La,Dl,ln,Qa,uu,al,cm='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.',Yl,Sa,Rl,cn,Xa,du,ol,pm='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.',Al,za,Bl,pn,Oa,mu,rl,gm='Dictionary containing the output of a  <a href="/docs/huggingface_hub/main/en/package_reference/inference_client#huggingface_hub.InferenceClient.conversational">conversational()</a> task.',Hl,Ka,Fl,gn,eo,hu,ll,um=`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.`,Pl,no,Ll,un,to,fu,il,dm="This Dataclass represents the the model status in the Hugging Face Inference API.",Ql,so,Sl,dn,ao,bu,cl,mm='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.',Xl,oo,zl,ro,hm=`<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.`,Ol,lo,fm=`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).`,Kl,mn,io,_u,pl,bm="Parameters for text generation.",ei,le,co,xu,gl,_m="Represents a response for text generation.",yu,ul,xm="Only returned when <code>details=True</code>, otherwise a string is returned.",ni,ie,po,ju,dl,ym="Represents a response for streaming text generation.",Tu,ml,jm="Only returned when <code>details=True</code> and <code>stream=True</code>.",ti,hn,go,$u,hl,Tm="Represents an input token.",si,fn,uo,Iu,fl,$m="Represents a token.",ai,bn,mo,Mu,bl,Im="An enumeration.",oi,_n,ho,wu,_l,Mm="Represents a best-of sequence generated during text generation.",ri,xn,fo,Cu,xl,wm="Represents details of a text generation.",li,yn,bo,vu,yl,Cm="Represents details of a text generation stream.",ii,_o,ci,xo,vm=`<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.`,pi,N,yo,Ju,jl,Jm="Client to configure requests and make calls to the HuggingFace Inference API.",Uu,ws,ku,Cs,jo,qu,Tl,Um="Inits headers and API call information.",Zu,vs,To,Wu,$l,km="Make a call to the Inference API.",gi,Ml,ui;return i=new L({props:{title:"Inference",local:"inference",headingTag:"h1"}}),ks=new L({props:{title:"Inference Client",local:"huggingface_hub.InferenceClient",headingTag:"h2"}}),qs=new w({props:{name:"class huggingface_hub.InferenceClient",anchor:"huggingface_hub.InferenceClient",parameters:[{name:"model",val:": Optional = None"},{name:"token",val:": Union = None"},{name:"timeout",val:": Optional = None"},{name:"headers",val:": Optional = None"},{name:"cookies",val:": Optional = None"}],parametersDescription:[{anchor:"huggingface_hub.InferenceClient.model",description:`<strong>model</strong> (<code>str</code>, <code>optional</code>) &#x2014;
The model to run inference with. Can be a model id hosted on the Hugging Face Hub, e.g. <code>bigcode/starcoder</code>
or a URL to a deployed Inference Endpoint. Defaults to None, in which case a recommended model is
automatically selected for the task.`,name:"model"},{anchor:"huggingface_hub.InferenceClient.token",description:`<strong>token</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Hugging Face token. Will default to the locally saved token. Pass <code>token=False</code> if you don&#x2019;t want to send
your token to the server.`,name:"token"},{anchor:"huggingface_hub.InferenceClient.timeout",description:`<strong>timeout</strong> (<code>float</code>, <code>optional</code>) &#x2014;
The maximum number of seconds to wait for a response from the server. Loading a new model in Inference
API can take up to several minutes. Defaults to None, meaning it will loop until the server is available.`,name:"timeout"},{anchor:"huggingface_hub.InferenceClient.headers",description:`<strong>headers</strong> (<code>Dict[str, str]</code>, <code>optional</code>) &#x2014;
Additional headers to send to the server. By default only the authorization and user-agent headers are sent.
Values in this dictionary will override the default values.`,name:"headers"},{anchor:"huggingface_hub.InferenceClient.cookies",description:`<strong>cookies</strong> (<code>Dict[str, str]</code>, <code>optional</code>) &#x2014;
Additional cookies to send to the server.`,name:"cookies"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/inference/_client.py#L105"}}),Zs=new w({props:{name:"audio_classification",anchor:"huggingface_hub.InferenceClient.audio_classification",parameters:[{name:"audio",val:": Union"},{name:"model",val:": Optional = None"}],parametersDescription:[{anchor:"huggingface_hub.InferenceClient.audio_classification.audio",description:`<strong>audio</strong> (Union[str, Path, bytes, BinaryIO]) &#x2014;
The audio content to classify. It can be raw audio bytes, a local audio file, or a URL pointing to an
audio file.`,name:"audio"},{anchor:"huggingface_hub.InferenceClient.audio_classification.model",description:`<strong>model</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The model to use for audio classification. Can be a model ID hosted on the Hugging Face Hub
or a URL to a deployed Inference Endpoint. If not provided, the default recommended model for
audio classification will be used.`,name:"model"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/inference/_client.py#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>
`}}),rt=new Z({props:{anchor:"huggingface_hub.InferenceClient.audio_classification.example",$$slots:{default:[Gm]},$$scope:{ctx:$}}}),Ws=new w({props:{name:"automatic_speech_recognition",anchor:"huggingface_hub.InferenceClient.automatic_speech_recognition",parameters:[{name:"audio",val:": Union"},{name:"model",val:": Optional = None"}],parametersDescription:[{anchor:"huggingface_hub.InferenceClient.automatic_speech_recognition.audio",description:`<strong>audio</strong> (Union[str, Path, bytes, BinaryIO]) &#x2014;
The content to transcribe. It can be raw audio bytes, local audio file, or a URL to an audio file.`,name:"audio"},{anchor:"huggingface_hub.InferenceClient.automatic_speech_recognition.model",description:`<strong>model</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The model to use for ASR. Can be a model ID hosted on the Hugging Face Hub or a URL to a deployed
Inference Endpoint. If not provided, the default recommended model for ASR will be used.`,name:"model"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/inference/_client.py#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>
`}}),lt=new Z({props:{anchor:"huggingface_hub.InferenceClient.automatic_speech_recognition.example",$$slots:{default:[Vm]},$$scope:{ctx:$}}}),Es=new w({props:{name:"conversational",anchor:"huggingface_hub.InferenceClient.conversational",parameters:[{name:"text",val:": str"},{name:"generated_responses",val:": Optional = None"},{name:"past_user_inputs",val:": Optional = None"},{name:"parameters",val:": Optional = None"},{name:"model",val:": Optional = None"}],parametersDescription:[{anchor:"huggingface_hub.InferenceClient.conversational.text",description:`<strong>text</strong> (<code>str</code>) &#x2014;
The last input from the user in the conversation.`,name:"text"},{anchor:"huggingface_hub.InferenceClient.conversational.generated_responses",description:`<strong>generated_responses</strong> (<code>List[str]</code>, <em>optional</em>) &#x2014;
A list of strings corresponding to the earlier replies from the model. Defaults to None.`,name:"generated_responses"},{anchor:"huggingface_hub.InferenceClient.conversational.past_user_inputs",description:`<strong>past_user_inputs</strong> (<code>List[str]</code>, <em>optional</em>) &#x2014;
A list of strings corresponding to the earlier replies from the user. Should be the same length as
<code>generated_responses</code>. Defaults to None.`,name:"past_user_inputs"},{anchor:"huggingface_hub.InferenceClient.conversational.parameters",description:`<strong>parameters</strong> (<code>Dict[str, Any]</code>, <em>optional</em>) &#x2014;
Additional parameters for the conversational task. Defaults to None. For more details about the available
parameters, please refer to <a href="https://huggingface.co/docs/api-inference/detailed_parameters#conversational-task" rel="nofollow">this page</a>`,name:"parameters"},{anchor:"huggingface_hub.InferenceClient.conversational.model",description:`<strong>model</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The model to use for the conversational task. Can be a model ID hosted on the Hugging Face Hub or a URL to
a deployed Inference Endpoint. If not provided, the default recommended conversational model will be used.
Defaults to None.`,name:"model"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/inference/_client.py#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>
`}}),it=new Z({props:{anchor:"huggingface_hub.InferenceClient.conversational.example",$$slots:{default:[Dm]},$$scope:{ctx:$}}}),Ns=new w({props:{name:"document_question_answering",anchor:"huggingface_hub.InferenceClient.document_question_answering",parameters:[{name:"image",val:": Union"},{name:"question",val:": str"},{name:"model",val:": Optional = None"}],parametersDescription:[{anchor:"huggingface_hub.InferenceClient.document_question_answering.image",description:`<strong>image</strong> (<code>Union[str, Path, bytes, BinaryIO]</code>) &#x2014;
The input image for the context. It can be raw bytes, an image file, or a URL to an online image.`,name:"image"},{anchor:"huggingface_hub.InferenceClient.document_question_answering.question",description:`<strong>question</strong> (<code>str</code>) &#x2014;
Question to be answered.`,name:"question"},{anchor:"huggingface_hub.InferenceClient.document_question_answering.model",description:`<strong>model</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The model to use for the document question answering task. Can be a model ID hosted on the Hugging Face Hub or a URL to
a deployed Inference Endpoint. If not provided, the default recommended document question answering model will be used.
Defaults to None.`,name:"model"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/inference/_client.py#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>
`}}),ct=new Z({props:{anchor:"huggingface_hub.InferenceClient.document_question_answering.example",$$slots:{default:[Ym]},$$scope:{ctx:$}}}),Gs=new w({props:{name:"feature_extraction",anchor:"huggingface_hub.InferenceClient.feature_extraction",parameters:[{name:"text",val:": str"},{name:"model",val:": Optional = None"}],parametersDescription:[{anchor:"huggingface_hub.InferenceClient.feature_extraction.text",description:`<strong>text</strong> (<code>str</code>) &#x2014;
The text to embed.`,name:"text"},{anchor:"huggingface_hub.InferenceClient.feature_extraction.model",description:`<strong>model</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The model to use for the conversational task. Can be a model ID hosted on the Hugging Face Hub or a URL to
a deployed Inference Endpoint. If not provided, the default recommended conversational model will be used.
Defaults to None.`,name:"model"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/inference/_client.py#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>
`}}),pt=new Z({props:{anchor:"huggingface_hub.InferenceClient.feature_extraction.example",$$slots:{default:[Rm]},$$scope:{ctx:$}}}),Vs=new w({props:{name:"fill_mask",anchor:"huggingface_hub.InferenceClient.fill_mask",parameters:[{name:"text",val:": str"},{name:"model",val:": Optional = None"}],parametersDescription:[{anchor:"huggingface_hub.InferenceClient.fill_mask.text",description:`<strong>text</strong> (<code>str</code>) &#x2014;
a string to be filled from, must contain the [MASK] token (check model card for exact name of the mask).`,name:"text"},{anchor:"huggingface_hub.InferenceClient.fill_mask.model",description:`<strong>model</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The model to use for the fill mask task. Can be a model ID hosted on the Hugging Face Hub or a URL to
a deployed Inference Endpoint. If not provided, the default recommended fill mask model will be used.
Defaults to None.`,name:"model"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/inference/_client.py#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>
`}}),gt=new Z({props:{anchor:"huggingface_hub.InferenceClient.fill_mask.example",$$slots:{default:[Am]},$$scope:{ctx:$}}}),Ds=new w({props:{name:"get_model_status",anchor:"huggingface_hub.InferenceClient.get_model_status",parameters:[{name:"model",val:": Optional = None"}],parametersDescription:[{anchor:"huggingface_hub.InferenceClient.get_model_status.model",description:`<strong>model</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Identifier of the model for witch the status gonna be checked. If model is not provided,
the model associated with this instance of <a href="/docs/huggingface_hub/main/en/package_reference/inference_client#huggingface_hub.InferenceClient">InferenceClient</a> will be used. Only InferenceAPI service can be checked so the
identifier cannot be a URL.`,name:"model"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/inference/_client.py#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>
`}}),ut=new re({props:{$$slots:{default:[Bm]},$$scope:{ctx:$}}}),dt=new Z({props:{anchor:"huggingface_hub.InferenceClient.get_model_status.example",$$slots:{default:[Hm]},$$scope:{ctx:$}}}),Ys=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#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>
`}}),Rs=new w({props:{name:"image_classification",anchor:"huggingface_hub.InferenceClient.image_classification",parameters:[{name:"image",val:": Union"},{name:"model",val:": Optional = None"}],parametersDescription:[{anchor:"huggingface_hub.InferenceClient.image_classification.image",description:`<strong>image</strong> (<code>Union[str, Path, bytes, BinaryIO]</code>) &#x2014;
The image to classify. It can be raw bytes, an image file, or a URL to an online image.`,name:"image"},{anchor:"huggingface_hub.InferenceClient.image_classification.model",description:`<strong>model</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The model to use for image classification. Can be a model ID hosted on the Hugging Face Hub or a URL to a
deployed Inference Endpoint. If not provided, the default recommended model for image classification will be used.`,name:"model"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/inference/_client.py#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>
`}}),ht=new Z({props:{anchor:"huggingface_hub.InferenceClient.image_classification.example",$$slots:{default:[Fm]},$$scope:{ctx:$}}}),As=new w({props:{name:"image_segmentation",anchor:"huggingface_hub.InferenceClient.image_segmentation",parameters:[{name:"image",val:": Union"},{name:"model",val:": Optional = None"}],parametersDescription:[{anchor:"huggingface_hub.InferenceClient.image_segmentation.image",description:`<strong>image</strong> (<code>Union[str, Path, bytes, BinaryIO]</code>) &#x2014;
The image to segment. It can be raw bytes, an image file, or a URL to an online image.`,name:"image"},{anchor:"huggingface_hub.InferenceClient.image_segmentation.model",description:`<strong>model</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The model to use for image segmentation. Can be a model ID hosted on the Hugging Face Hub or a URL to a
deployed Inference Endpoint. If not provided, the default recommended model for image segmentation will be used.`,name:"model"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/inference/_client.py#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>
`}}),ft=new re({props:{warning:!0,$$slots:{default:[Pm]},$$scope:{ctx:$}}}),bt=new Z({props:{anchor:"huggingface_hub.InferenceClient.image_segmentation.example",$$slots:{default:[Lm]},$$scope:{ctx:$}}}),Bs=new w({props:{name:"image_to_image",anchor:"huggingface_hub.InferenceClient.image_to_image",parameters:[{name:"image",val:": Union"},{name:"prompt",val:": Optional = None"},{name:"negative_prompt",val:": Optional = None"},{name:"height",val:": Optional = None"},{name:"width",val:": Optional = None"},{name:"num_inference_steps",val:": Optional = None"},{name:"guidance_scale",val:": Optional = None"},{name:"model",val:": Optional = None"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"huggingface_hub.InferenceClient.image_to_image.image",description:`<strong>image</strong> (<code>Union[str, Path, bytes, BinaryIO]</code>) &#x2014;
The input image for translation. It can be raw bytes, an image file, or a URL to an online image.`,name:"image"},{anchor:"huggingface_hub.InferenceClient.image_to_image.prompt",description:`<strong>prompt</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The text prompt to guide the image generation.`,name:"prompt"},{anchor:"huggingface_hub.InferenceClient.image_to_image.negative_prompt",description:`<strong>negative_prompt</strong> (<code>str</code>, <em>optional</em>) &#x2014;
A negative prompt to guide the translation process.`,name:"negative_prompt"},{anchor:"huggingface_hub.InferenceClient.image_to_image.height",description:`<strong>height</strong> (<code>int</code>, <em>optional</em>) &#x2014;
The height in pixels of the generated image.`,name:"height"},{anchor:"huggingface_hub.InferenceClient.image_to_image.width",description:`<strong>width</strong> (<code>int</code>, <em>optional</em>) &#x2014;
The width in pixels of the generated image.`,name:"width"},{anchor:"huggingface_hub.InferenceClient.image_to_image.num_inference_steps",description:`<strong>num_inference_steps</strong> (<code>int</code>, <em>optional</em>) &#x2014;
The number of denoising steps. More denoising steps usually lead to a higher quality image at the
expense of slower inference.`,name:"num_inference_steps"},{anchor:"huggingface_hub.InferenceClient.image_to_image.guidance_scale",description:`<strong>guidance_scale</strong> (<code>float</code>, <em>optional</em>) &#x2014;
Higher guidance scale encourages to generate images that are closely linked to the text <code>prompt</code>,
usually at the expense of lower image quality.`,name:"guidance_scale"},{anchor:"huggingface_hub.InferenceClient.image_to_image.model",description:`<strong>model</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The model to use for inference. Can be a model ID hosted on the Hugging Face Hub or a URL to a deployed
Inference Endpoint. This parameter overrides the model defined at the instance level. Defaults to None.`,name:"model"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/inference/_client.py#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>
`}}),_t=new re({props:{warning:!0,$$slots:{default:[Qm]},$$scope:{ctx:$}}}),xt=new Z({props:{anchor:"huggingface_hub.InferenceClient.image_to_image.example",$$slots:{default:[Sm]},$$scope:{ctx:$}}}),Hs=new w({props:{name:"image_to_text",anchor:"huggingface_hub.InferenceClient.image_to_text",parameters:[{name:"image",val:": Union"},{name:"model",val:": Optional = None"}],parametersDescription:[{anchor:"huggingface_hub.InferenceClient.image_to_text.image",description:`<strong>image</strong> (<code>Union[str, Path, bytes, BinaryIO]</code>) &#x2014;
The input image to caption. It can be raw bytes, an image file, or a URL to an online image..`,name:"image"},{anchor:"huggingface_hub.InferenceClient.image_to_text.model",description:`<strong>model</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The model to use for inference. Can be a model ID hosted on the Hugging Face Hub or a URL to a deployed
Inference Endpoint. This parameter overrides the model defined at the instance level. Defaults to None.`,name:"model"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/inference/_client.py#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:[Xm]},$$scope:{ctx:$}}}),Fs=new w({props:{name:"list_deployed_models",anchor:"huggingface_hub.InferenceClient.list_deployed_models",parameters:[{name:"frameworks",val:": Union = None"}],parametersDescription:[{anchor:"huggingface_hub.InferenceClient.list_deployed_models.frameworks",description:`<strong>frameworks</strong> (<code>Literal[&quot;all&quot;]</code> or <code>List[str]</code> or <code>str</code>, <em>optional</em>) &#x2014;
The frameworks to filter on. By default only a subset of the available frameworks are tested. If set to
&#x201C;all&#x201D;, all available frameworks will be tested. It is also possible to provide a single framework or a
custom set of frameworks to check.`,name:"frameworks"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/inference/_client.py#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>
`}}),jt=new re({props:{$$slots:{default:[zm]},$$scope:{ctx:$}}}),Tt=new Z({props:{anchor:"huggingface_hub.InferenceClient.list_deployed_models.example",$$slots:{default:[Om]},$$scope:{ctx:$}}}),Ps=new w({props:{name:"object_detection",anchor:"huggingface_hub.InferenceClient.object_detection",parameters:[{name:"image",val:": Union"},{name:"model",val:": Optional = None"}],parametersDescription:[{anchor:"huggingface_hub.InferenceClient.object_detection.image",description:`<strong>image</strong> (<code>Union[str, Path, bytes, BinaryIO]</code>) &#x2014;
The image to detect objects on. It can be raw bytes, an image file, or a URL to an online image.`,name:"image"},{anchor:"huggingface_hub.InferenceClient.object_detection.model",description:`<strong>model</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The model to use for object detection. Can be a model ID hosted on the Hugging Face Hub or a URL to a
deployed Inference Endpoint. If not provided, the default recommended model for object detection (DETR) will be used.`,name:"model"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/inference/_client.py#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>
`}}),$t=new re({props:{warning:!0,$$slots:{default:[Km]},$$scope:{ctx:$}}}),It=new Z({props:{anchor:"huggingface_hub.InferenceClient.object_detection.example",$$slots:{default:[eh]},$$scope:{ctx:$}}}),Ls=new w({props:{name:"post",anchor:"huggingface_hub.InferenceClient.post",parameters:[{name:"json",val:": Union = None"},{name:"data",val:": Union = None"},{name:"model",val:": Optional = None"},{name:"task",val:": Optional = None"},{name:"stream",val:": bool = False"}],parametersDescription:[{anchor:"huggingface_hub.InferenceClient.post.json",description:`<strong>json</strong> (<code>Union[str, Dict, List]</code>, <em>optional</em>) &#x2014;
The JSON data to send in the request body, specific to each task. Defaults to None.`,name:"json"},{anchor:"huggingface_hub.InferenceClient.post.data",description:`<strong>data</strong> (<code>Union[str, Path, bytes, BinaryIO]</code>, <em>optional</em>) &#x2014;
The content to send in the request body, specific to each task.
It can be raw bytes, a pointer to an opened file, a local file path,
or a URL to an online resource (image, audio file,&#x2026;). If both <code>json</code> and <code>data</code> are passed,
<code>data</code> will take precedence. At least <code>json</code> or <code>data</code> must be provided. Defaults to None.`,name:"data"},{anchor:"huggingface_hub.InferenceClient.post.model",description:`<strong>model</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The model to use for inference. Can be a model ID hosted on the Hugging Face Hub or a URL to a deployed
Inference Endpoint. Will override the model defined at the instance level. Defaults to None.`,name:"model"},{anchor:"huggingface_hub.InferenceClient.post.task",description:`<strong>task</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The task to perform on the inference. All available tasks can be found
<a href="https://huggingface.co/tasks" rel="nofollow">here</a>. Used only to default to a recommended model if <code>model</code> is not
provided. At least <code>model</code> or <code>task</code> must be provided. Defaults to None.`,name:"task"},{anchor:"huggingface_hub.InferenceClient.post.stream",description:`<strong>stream</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether to iterate over streaming APIs.`,name:"stream"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/inference/_client.py#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>
`}}),Qs=new w({props:{name:"question_answering",anchor:"huggingface_hub.InferenceClient.question_answering",parameters:[{name:"question",val:": str"},{name:"context",val:": str"},{name:"model",val:": Optional = None"}],parametersDescription:[{anchor:"huggingface_hub.InferenceClient.question_answering.question",description:`<strong>question</strong> (<code>str</code>) &#x2014;
Question to be answered.`,name:"question"},{anchor:"huggingface_hub.InferenceClient.question_answering.context",description:`<strong>context</strong> (<code>str</code>) &#x2014;
The context of the question.`,name:"context"},{anchor:"huggingface_hub.InferenceClient.question_answering.model",description:`<strong>model</strong> (<code>str</code>) &#x2014;
The model to use for the question answering task. Can be a model ID hosted on the Hugging Face Hub or a URL to
a deployed Inference Endpoint.`,name:"model"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/inference/_client.py#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>
`}}),wt=new Z({props:{anchor:"huggingface_hub.InferenceClient.question_answering.example",$$slots:{default:[nh]},$$scope:{ctx:$}}}),Ss=new w({props:{name:"sentence_similarity",anchor:"huggingface_hub.InferenceClient.sentence_similarity",parameters:[{name:"sentence",val:": str"},{name:"other_sentences",val:": List"},{name:"model",val:": Optional = None"}],parametersDescription:[{anchor:"huggingface_hub.InferenceClient.sentence_similarity.sentence",description:`<strong>sentence</strong> (<code>str</code>) &#x2014;
The main sentence to compare to others.`,name:"sentence"},{anchor:"huggingface_hub.InferenceClient.sentence_similarity.other_sentences",description:`<strong>other_sentences</strong> (<code>List[str]</code>) &#x2014;
The list of sentences to compare to.`,name:"other_sentences"},{anchor:"huggingface_hub.InferenceClient.sentence_similarity.model",description:`<strong>model</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The model to use for the conversational task. Can be a model ID hosted on the Hugging Face Hub or a URL to
a deployed Inference Endpoint. If not provided, the default recommended conversational model will be used.
Defaults to None.`,name:"model"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/inference/_client.py#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>
`}}),Ct=new Z({props:{anchor:"huggingface_hub.InferenceClient.sentence_similarity.example",$$slots:{default:[th]},$$scope:{ctx:$}}}),Xs=new w({props:{name:"summarization",anchor:"huggingface_hub.InferenceClient.summarization",parameters:[{name:"text",val:": str"},{name:"parameters",val:": Optional = None"},{name:"model",val:": Optional = None"}],parametersDescription:[{anchor:"huggingface_hub.InferenceClient.summarization.text",description:`<strong>text</strong> (<code>str</code>) &#x2014;
The input text to summarize.`,name:"text"},{anchor:"huggingface_hub.InferenceClient.summarization.parameters",description:`<strong>parameters</strong> (<code>Dict[str, Any]</code>, <em>optional</em>) &#x2014;
Additional parameters for summarization. Check out this <a href="https://huggingface.co/docs/api-inference/detailed_parameters#summarization-task" rel="nofollow">page</a>
for more details.`,name:"parameters"},{anchor:"huggingface_hub.InferenceClient.summarization.model",description:`<strong>model</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The model to use for inference. Can be a model ID hosted on the Hugging Face Hub or a URL to a deployed
Inference Endpoint. This parameter overrides the model defined at the instance level. Defaults to None.`,name:"model"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/inference/_client.py#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>
`}}),vt=new Z({props:{anchor:"huggingface_hub.InferenceClient.summarization.example",$$slots:{default:[sh]},$$scope:{ctx:$}}}),zs=new w({props:{name:"table_question_answering",anchor:"huggingface_hub.InferenceClient.table_question_answering",parameters:[{name:"table",val:": Dict"},{name:"query",val:": str"},{name:"model",val:": Optional = None"}],parametersDescription:[{anchor:"huggingface_hub.InferenceClient.table_question_answering.table",description:`<strong>table</strong> (<code>str</code>) &#x2014;
A table of data represented as a dict of lists where entries are headers and the lists are all the
values, all lists must have the same size.`,name:"table"},{anchor:"huggingface_hub.InferenceClient.table_question_answering.query",description:`<strong>query</strong> (<code>str</code>) &#x2014;
The query in plain text that you want to ask the table.`,name:"query"},{anchor:"huggingface_hub.InferenceClient.table_question_answering.model",description:`<strong>model</strong> (<code>str</code>) &#x2014;
The model to use for the table-question-answering task. Can be a model ID hosted on the Hugging Face
Hub or a URL to a deployed Inference Endpoint.`,name:"model"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/inference/_client.py#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>
`}}),Jt=new Z({props:{anchor:"huggingface_hub.InferenceClient.table_question_answering.example",$$slots:{default:[ah]},$$scope:{ctx:$}}}),Os=new w({props:{name:"tabular_classification",anchor:"huggingface_hub.InferenceClient.tabular_classification",parameters:[{name:"table",val:": Dict"},{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>
`}}),Ut=new Z({props:{anchor:"huggingface_hub.InferenceClient.tabular_classification.example",$$slots:{default:[oh]},$$scope:{ctx:$}}}),Ks=new w({props:{name:"tabular_regression",anchor:"huggingface_hub.InferenceClient.tabular_regression",parameters:[{name:"table",val:": Dict"},{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>
`}}),kt=new Z({props:{anchor:"huggingface_hub.InferenceClient.tabular_regression.example",$$slots:{default:[rh]},$$scope:{ctx:$}}}),ea=new w({props:{name:"text_classification",anchor:"huggingface_hub.InferenceClient.text_classification",parameters:[{name:"text",val:": str"},{name:"model",val:": Optional = None"}],parametersDescription:[{anchor:"huggingface_hub.InferenceClient.text_classification.text",description:`<strong>text</strong> (<code>str</code>) &#x2014;
A string to be classified.`,name:"text"},{anchor:"huggingface_hub.InferenceClient.text_classification.model",description:`<strong>model</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The model to use for the text classification task. Can be a model ID hosted on the Hugging Face Hub or a URL to
a deployed Inference Endpoint. If not provided, the default recommended text classification model will be used.
Defaults to None.`,name:"model"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/inference/_client.py#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>
`}}),qt=new Z({props:{anchor:"huggingface_hub.InferenceClient.text_classification.example",$$slots:{default:[lh]},$$scope:{ctx:$}}}),na=new w({props:{name:"text_generation",anchor:"huggingface_hub.InferenceClient.text_generation",parameters:[{name:"prompt",val:": str"},{name:"details",val:": bool = False"},{name:"stream",val:": bool = False"},{name:"model",val:": Optional = None"},{name:"do_sample",val:": bool = False"},{name:"max_new_tokens",val:": int = 20"},{name:"best_of",val:": Optional = None"},{name:"repetition_penalty",val:": Optional = None"},{name:"return_full_text",val:": bool = False"},{name:"seed",val:": Optional = None"},{name:"stop_sequences",val:": Optional = None"},{name:"temperature",val:": Optional = None"},{name:"top_k",val:": Optional = None"},{name:"top_p",val:": Optional = None"},{name:"truncate",val:": Optional = None"},{name:"typical_p",val:": Optional = None"},{name:"watermark",val:": bool = False"},{name:"decoder_input_details",val:": bool = False"}],parametersDescription:[{anchor:"huggingface_hub.InferenceClient.text_generation.prompt",description:`<strong>prompt</strong> (<code>str</code>) &#x2014;
Input text.`,name:"prompt"},{anchor:"huggingface_hub.InferenceClient.text_generation.details",description:`<strong>details</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
By default, text_generation returns a string. Pass <code>details=True</code> if you want a detailed output (tokens,
probabilities, seed, finish reason, etc.). Only available for models running on with the
<code>text-generation-inference</code> backend.`,name:"details"},{anchor:"huggingface_hub.InferenceClient.text_generation.stream",description:`<strong>stream</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
By default, text_generation returns the full generated text. Pass <code>stream=True</code> if you want a stream of
tokens to be returned. Only available for models running on with the <code>text-generation-inference</code>
backend.`,name:"stream"},{anchor:"huggingface_hub.InferenceClient.text_generation.model",description:`<strong>model</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The model to use for inference. Can be a model ID hosted on the Hugging Face Hub or a URL to a deployed
Inference Endpoint. This parameter overrides the model defined at the instance level. Defaults to None.`,name:"model"},{anchor:"huggingface_hub.InferenceClient.text_generation.do_sample",description:`<strong>do_sample</strong> (<code>bool</code>) &#x2014;
Activate logits sampling`,name:"do_sample"},{anchor:"huggingface_hub.InferenceClient.text_generation.max_new_tokens",description:`<strong>max_new_tokens</strong> (<code>int</code>) &#x2014;
Maximum number of generated tokens`,name:"max_new_tokens"},{anchor:"huggingface_hub.InferenceClient.text_generation.best_of",description:`<strong>best_of</strong> (<code>int</code>) &#x2014;
Generate best_of sequences and return the one if the highest token logprobs`,name:"best_of"},{anchor:"huggingface_hub.InferenceClient.text_generation.repetition_penalty",description:`<strong>repetition_penalty</strong> (<code>float</code>) &#x2014;
The parameter for repetition penalty. 1.0 means no penalty. See <a href="https://arxiv.org/pdf/1909.05858.pdf" rel="nofollow">this
paper</a> for more details.`,name:"repetition_penalty"},{anchor:"huggingface_hub.InferenceClient.text_generation.return_full_text",description:`<strong>return_full_text</strong> (<code>bool</code>) &#x2014;
Whether to prepend the prompt to the generated text`,name:"return_full_text"},{anchor:"huggingface_hub.InferenceClient.text_generation.seed",description:`<strong>seed</strong> (<code>int</code>) &#x2014;
Random sampling seed`,name:"seed"},{anchor:"huggingface_hub.InferenceClient.text_generation.stop_sequences",description:`<strong>stop_sequences</strong> (<code>List[str]</code>) &#x2014;
Stop generating tokens if a member of <code>stop_sequences</code> is generated`,name:"stop_sequences"},{anchor:"huggingface_hub.InferenceClient.text_generation.temperature",description:`<strong>temperature</strong> (<code>float</code>) &#x2014;
The value used to module the logits distribution.`,name:"temperature"},{anchor:"huggingface_hub.InferenceClient.text_generation.top_k",description:`<strong>top_k</strong> (<code>int</code>) &#x2014;
The number of highest probability vocabulary tokens to keep for top-k-filtering.`,name:"top_k"},{anchor:"huggingface_hub.InferenceClient.text_generation.top_p",description:`<strong>top_p</strong> (<code>float</code>) &#x2014;
If set to &lt; 1, only the smallest set of most probable tokens with probabilities that add up to <code>top_p</code> or
higher are kept for generation.`,name:"top_p"},{anchor:"huggingface_hub.InferenceClient.text_generation.truncate",description:`<strong>truncate</strong> (<code>int</code>) &#x2014;
Truncate inputs tokens to the given size`,name:"truncate"},{anchor:"huggingface_hub.InferenceClient.text_generation.typical_p",description:`<strong>typical_p</strong> (<code>float</code>) &#x2014;
Typical Decoding mass
See <a href="https://arxiv.org/abs/2202.00666" rel="nofollow">Typical Decoding for Natural Language Generation</a> for more information`,name:"typical_p"},{anchor:"huggingface_hub.InferenceClient.text_generation.watermark",description:`<strong>watermark</strong> (<code>bool</code>) &#x2014;
Watermarking with <a href="https://arxiv.org/abs/2301.10226" rel="nofollow">A Watermark for Large Language Models</a>`,name:"watermark"},{anchor:"huggingface_hub.InferenceClient.text_generation.decoder_input_details",description:`<strong>decoder_input_details</strong> (<code>bool</code>) &#x2014;
Return the decoder input token logprobs and ids. You must set <code>details=True</code> as well for it to be taken
into account. Defaults to <code>False</code>.`,name:"decoder_input_details"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/inference/_client.py#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>
`}}),Zt=new Z({props:{anchor:"huggingface_hub.InferenceClient.text_generation.example",$$slots:{default:[ih]},$$scope:{ctx:$}}}),ta=new w({props:{name:"text_to_image",anchor:"huggingface_hub.InferenceClient.text_to_image",parameters:[{name:"prompt",val:": str"},{name:"negative_prompt",val:": Optional = None"},{name:"height",val:": Optional = None"},{name:"width",val:": Optional = None"},{name:"num_inference_steps",val:": Optional = None"},{name:"guidance_scale",val:": Optional = None"},{name:"model",val:": Optional = None"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"huggingface_hub.InferenceClient.text_to_image.prompt",description:`<strong>prompt</strong> (<code>str</code>) &#x2014;
The prompt to generate an image from.`,name:"prompt"},{anchor:"huggingface_hub.InferenceClient.text_to_image.negative_prompt",description:`<strong>negative_prompt</strong> (<code>str</code>, <em>optional</em>) &#x2014;
An optional negative prompt for the image generation.`,name:"negative_prompt"},{anchor:"huggingface_hub.InferenceClient.text_to_image.height",description:`<strong>height</strong> (<code>float</code>, <em>optional</em>) &#x2014;
The height in pixels of the image to generate.`,name:"height"},{anchor:"huggingface_hub.InferenceClient.text_to_image.width",description:`<strong>width</strong> (<code>float</code>, <em>optional</em>) &#x2014;
The width in pixels of the image to generate.`,name:"width"},{anchor:"huggingface_hub.InferenceClient.text_to_image.num_inference_steps",description:`<strong>num_inference_steps</strong> (<code>int</code>, <em>optional</em>) &#x2014;
The number of denoising steps. More denoising steps usually lead to a higher quality image at the
expense of slower inference.`,name:"num_inference_steps"},{anchor:"huggingface_hub.InferenceClient.text_to_image.guidance_scale",description:`<strong>guidance_scale</strong> (<code>float</code>, <em>optional</em>) &#x2014;
Higher guidance scale encourages to generate images that are closely linked to the text <code>prompt</code>,
usually at the expense of lower image quality.`,name:"guidance_scale"},{anchor:"huggingface_hub.InferenceClient.text_to_image.model",description:`<strong>model</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The model to use for inference. Can be a model ID hosted on the Hugging Face Hub or a URL to a deployed
Inference Endpoint. This parameter overrides the model defined at the instance level. Defaults to None.`,name:"model"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/inference/_client.py#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>
`}}),Wt=new re({props:{warning:!0,$$slots:{default:[ch]},$$scope:{ctx:$}}}),Et=new Z({props:{anchor:"huggingface_hub.InferenceClient.text_to_image.example",$$slots:{default:[ph]},$$scope:{ctx:$}}}),sa=new w({props:{name:"text_to_speech",anchor:"huggingface_hub.InferenceClient.text_to_speech",parameters:[{name:"text",val:": str"},{name:"model",val:": Optional = None"}],parametersDescription:[{anchor:"huggingface_hub.InferenceClient.text_to_speech.text",description:`<strong>text</strong> (<code>str</code>) &#x2014;
The text to synthesize.`,name:"text"},{anchor:"huggingface_hub.InferenceClient.text_to_speech.model",description:`<strong>model</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The model to use for inference. Can be a model ID hosted on the Hugging Face Hub or a URL to a deployed
Inference Endpoint. This parameter overrides the model defined at the instance level. Defaults to None.`,name:"model"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/inference/_client.py#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>
`}}),Nt=new Z({props:{anchor:"huggingface_hub.InferenceClient.text_to_speech.example",$$slots:{default:[gh]},$$scope:{ctx:$}}}),aa=new w({props:{name:"token_classification",anchor:"huggingface_hub.InferenceClient.token_classification",parameters:[{name:"text",val:": str"},{name:"model",val:": Optional = None"}],parametersDescription:[{anchor:"huggingface_hub.InferenceClient.token_classification.text",description:`<strong>text</strong> (<code>str</code>) &#x2014;
A string to be classified.`,name:"text"},{anchor:"huggingface_hub.InferenceClient.token_classification.model",description:`<strong>model</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The model to use for the token classification task. Can be a model ID hosted on the Hugging Face Hub or a URL to
a deployed Inference Endpoint. If not provided, the default recommended token classification model will be used.
Defaults to None.`,name:"model"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/inference/_client.py#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>
`}}),Gt=new Z({props:{anchor:"huggingface_hub.InferenceClient.token_classification.example",$$slots:{default:[uh]},$$scope:{ctx:$}}}),oa=new w({props:{name:"translation",anchor:"huggingface_hub.InferenceClient.translation",parameters:[{name:"text",val:": str"},{name:"model",val:": Optional = None"},{name:"src_lang",val:": Optional = None"},{name:"tgt_lang",val:": Optional = None"}],parametersDescription:[{anchor:"huggingface_hub.InferenceClient.translation.text",description:`<strong>text</strong> (<code>str</code>) &#x2014;
A string to be translated.`,name:"text"},{anchor:"huggingface_hub.InferenceClient.translation.model",description:`<strong>model</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The model to use for the translation task. Can be a model ID hosted on the Hugging Face Hub or a URL to
a deployed Inference Endpoint. If not provided, the default recommended translation model will be used.
Defaults to None.`,name:"model"},{anchor:"huggingface_hub.InferenceClient.translation.src_lang",description:`<strong>src_lang</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Source language of the translation task, i.e. input language. Cannot be passed without <code>tgt_lang</code>.`,name:"src_lang"},{anchor:"huggingface_hub.InferenceClient.translation.tgt_lang",description:`<strong>tgt_lang</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Target language of the translation task, i.e. output language. Cannot be passed without <code>src_lang</code>.`,name:"tgt_lang"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/inference/_client.py#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>
<li><code>ValueError</code> —
If only one of the <code>src_lang</code> and <code>tgt_lang</code> arguments are provided.</li>
</ul>
`,raiseType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/huggingface_hub/main/en/package_reference/inference_client#huggingface_hub.InferenceTimeoutError"
>InferenceTimeoutError</a> or <code>HTTPError</code> or <code>ValueError</code></p>
`}}),Vt=new Z({props:{anchor:"huggingface_hub.InferenceClient.translation.example",$$slots:{default:[dh]},$$scope:{ctx:$}}}),Dt=new Z({props:{anchor:"huggingface_hub.InferenceClient.translation.example-2",$$slots:{default:[mh]},$$scope:{ctx:$}}}),ra=new w({props:{name:"visual_question_answering",anchor:"huggingface_hub.InferenceClient.visual_question_answering",parameters:[{name:"image",val:": Union"},{name:"question",val:": str"},{name:"model",val:": Optional = None"}],parametersDescription:[{anchor:"huggingface_hub.InferenceClient.visual_question_answering.image",description:`<strong>image</strong> (<code>Union[str, Path, bytes, BinaryIO]</code>) &#x2014;
The input image for the context. It can be raw bytes, an image file, or a URL to an online image.`,name:"image"},{anchor:"huggingface_hub.InferenceClient.visual_question_answering.question",description:`<strong>question</strong> (<code>str</code>) &#x2014;
Question to be answered.`,name:"question"},{anchor:"huggingface_hub.InferenceClient.visual_question_answering.model",description:`<strong>model</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The model to use for the visual question answering task. Can be a model ID hosted on the Hugging Face Hub or a URL to
a deployed Inference Endpoint. If not provided, the default recommended visual question answering model will be used.
Defaults to None.`,name:"model"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/inference/_client.py#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>
`}}),Yt=new Z({props:{anchor:"huggingface_hub.InferenceClient.visual_question_answering.example",$$slots:{default:[hh]},$$scope:{ctx:$}}}),la=new w({props:{name:"zero_shot_classification",anchor:"huggingface_hub.InferenceClient.zero_shot_classification",parameters:[{name:"text",val:": str"},{name:"labels",val:": List"},{name:"multi_label",val:": bool = False"},{name:"model",val:": Optional = None"}],parametersDescription:[{anchor:"huggingface_hub.InferenceClient.zero_shot_classification.text",description:`<strong>text</strong> (<code>str</code>) &#x2014;
The input text to classify.`,name:"text"},{anchor:"huggingface_hub.InferenceClient.zero_shot_classification.labels",description:`<strong>labels</strong> (<code>List[str]</code>) &#x2014;
List of string possible labels. There must be at least 2 labels.`,name:"labels"},{anchor:"huggingface_hub.InferenceClient.zero_shot_classification.multi_label",description:`<strong>multi_label</strong> (<code>bool</code>) &#x2014;
Boolean that is set to True if classes can overlap.`,name:"multi_label"},{anchor:"huggingface_hub.InferenceClient.zero_shot_classification.model",description:`<strong>model</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The model to use for inference. Can be a model ID hosted on the Hugging Face Hub or a URL to a deployed
Inference Endpoint. This parameter overrides the model defined at the instance level. Defaults to None.`,name:"model"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/inference/_client.py#L1768",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>
`}}),Rt=new Z({props:{anchor:"huggingface_hub.InferenceClient.zero_shot_classification.example",$$slots:{default:[fh]},$$scope:{ctx:$}}}),ia=new w({props:{name:"zero_shot_image_classification",anchor:"huggingface_hub.InferenceClient.zero_shot_image_classification",parameters:[{name:"image",val:": Union"},{name:"labels",val:": List"},{name:"model",val:": Optional = None"}],parametersDescription:[{anchor:"huggingface_hub.InferenceClient.zero_shot_image_classification.image",description:`<strong>image</strong> (<code>Union[str, Path, bytes, BinaryIO]</code>) &#x2014;
The input image to caption. It can be raw bytes, an image file, or a URL to an online image.`,name:"image"},{anchor:"huggingface_hub.InferenceClient.zero_shot_image_classification.labels",description:`<strong>labels</strong> (<code>List[str]</code>) &#x2014;
List of string possible labels. There must be at least 2 labels.`,name:"labels"},{anchor:"huggingface_hub.InferenceClient.zero_shot_image_classification.model",description:`<strong>model</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The model to use for inference. Can be a model ID hosted on the Hugging Face Hub or a URL to a deployed
Inference Endpoint. This parameter overrides the model defined at the instance level. Defaults to None.`,name:"model"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/inference/_client.py#L1840",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:[bh]},$$scope:{ctx:$}}}),ca=new L({props:{title:"Async Inference Client",local:"huggingface_hub.AsyncInferenceClient",headingTag:"h2"}}),ga=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}}),ua=new w({props:{name:"class huggingface_hub.AsyncInferenceClient",anchor:"huggingface_hub.AsyncInferenceClient",parameters:[{name:"model",val:": Optional = None"},{name:"token",val:": Union = None"},{name:"timeout",val:": Optional = None"},{name:"headers",val:": Optional = None"},{name:"cookies",val:": Optional = None"}],parametersDescription:[{anchor:"huggingface_hub.AsyncInferenceClient.model",description:`<strong>model</strong> (<code>str</code>, <code>optional</code>) &#x2014;
The model to run inference with. Can be a model id hosted on the Hugging Face Hub, e.g. <code>bigcode/starcoder</code>
or a URL to a deployed Inference Endpoint. Defaults to None, in which case a recommended model is
automatically selected for the task.`,name:"model"},{anchor:"huggingface_hub.AsyncInferenceClient.token",description:`<strong>token</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Hugging Face token. Will default to the locally saved token. Pass <code>token=False</code> if you don&#x2019;t want to send
your token to the server.`,name:"token"},{anchor:"huggingface_hub.AsyncInferenceClient.timeout",description:`<strong>timeout</strong> (<code>float</code>, <code>optional</code>) &#x2014;
The maximum number of seconds to wait for a response from the server. Loading a new model in Inference
API can take up to several minutes. Defaults to None, meaning it will loop until the server is available.`,name:"timeout"},{anchor:"huggingface_hub.AsyncInferenceClient.headers",description:`<strong>headers</strong> (<code>Dict[str, str]</code>, <code>optional</code>) &#x2014;
Additional headers to send to the server. By default only the authorization and user-agent headers are sent.
Values in this dictionary will override the default values.`,name:"headers"},{anchor:"huggingface_hub.AsyncInferenceClient.cookies",description:`<strong>cookies</strong> (<code>Dict[str, str]</code>, <code>optional</code>) &#x2014;
Additional cookies to send to the server.`,name:"cookies"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/inference/_generated/_async_client.py#L89"}}),da=new w({props:{name:"audio_classification",anchor:"huggingface_hub.AsyncInferenceClient.audio_classification",parameters:[{name:"audio",val:": Union"},{name:"model",val:": Optional = None"}],parametersDescription:[{anchor:"huggingface_hub.AsyncInferenceClient.audio_classification.audio",description:`<strong>audio</strong> (Union[str, Path, bytes, BinaryIO]) &#x2014;
The audio content to classify. It can be raw audio bytes, a local audio file, or a URL pointing to an
audio file.`,name:"audio"},{anchor:"huggingface_hub.AsyncInferenceClient.audio_classification.model",description:`<strong>model</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The model to use for audio classification. Can be a model ID hosted on the Hugging Face Hub
or a URL to a deployed Inference Endpoint. If not provided, the default recommended model for
audio classification will be used.`,name:"model"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/inference/_generated/_async_client.py#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>
`}}),Bt=new Z({props:{anchor:"huggingface_hub.AsyncInferenceClient.audio_classification.example",$$slots:{default:[_h]},$$scope:{ctx:$}}}),ma=new w({props:{name:"automatic_speech_recognition",anchor:"huggingface_hub.AsyncInferenceClient.automatic_speech_recognition",parameters:[{name:"audio",val:": Union"},{name:"model",val:": Optional = None"}],parametersDescription:[{anchor:"huggingface_hub.AsyncInferenceClient.automatic_speech_recognition.audio",description:`<strong>audio</strong> (Union[str, Path, bytes, BinaryIO]) &#x2014;
The content to transcribe. It can be raw audio bytes, local audio file, or a URL to an audio file.`,name:"audio"},{anchor:"huggingface_hub.AsyncInferenceClient.automatic_speech_recognition.model",description:`<strong>model</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The model to use for ASR. Can be a model ID hosted on the Hugging Face Hub or a URL to a deployed
Inference Endpoint. If not provided, the default recommended model for ASR will be used.`,name:"model"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/inference/_generated/_async_client.py#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>
`}}),Ht=new Z({props:{anchor:"huggingface_hub.AsyncInferenceClient.automatic_speech_recognition.example",$$slots:{default:[xh]},$$scope:{ctx:$}}}),ha=new w({props:{name:"conversational",anchor:"huggingface_hub.AsyncInferenceClient.conversational",parameters:[{name:"text",val:": str"},{name:"generated_responses",val:": Optional = None"},{name:"past_user_inputs",val:": Optional = None"},{name:"parameters",val:": Optional = None"},{name:"model",val:": Optional = None"}],parametersDescription:[{anchor:"huggingface_hub.AsyncInferenceClient.conversational.text",description:`<strong>text</strong> (<code>str</code>) &#x2014;
The last input from the user in the conversation.`,name:"text"},{anchor:"huggingface_hub.AsyncInferenceClient.conversational.generated_responses",description:`<strong>generated_responses</strong> (<code>List[str]</code>, <em>optional</em>) &#x2014;
A list of strings corresponding to the earlier replies from the model. Defaults to None.`,name:"generated_responses"},{anchor:"huggingface_hub.AsyncInferenceClient.conversational.past_user_inputs",description:`<strong>past_user_inputs</strong> (<code>List[str]</code>, <em>optional</em>) &#x2014;
A list of strings corresponding to the earlier replies from the user. Should be the same length as
<code>generated_responses</code>. Defaults to None.`,name:"past_user_inputs"},{anchor:"huggingface_hub.AsyncInferenceClient.conversational.parameters",description:`<strong>parameters</strong> (<code>Dict[str, Any]</code>, <em>optional</em>) &#x2014;
Additional parameters for the conversational task. Defaults to None. For more details about the available
parameters, please refer to <a href="https://huggingface.co/docs/api-inference/detailed_parameters#conversational-task" rel="nofollow">this page</a>`,name:"parameters"},{anchor:"huggingface_hub.AsyncInferenceClient.conversational.model",description:`<strong>model</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The model to use for the conversational task. Can be a model ID hosted on the Hugging Face Hub or a URL to
a deployed Inference Endpoint. If not provided, the default recommended conversational model will be used.
Defaults to None.`,name:"model"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/inference/_generated/_async_client.py#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>
`}}),Ft=new Z({props:{anchor:"huggingface_hub.AsyncInferenceClient.conversational.example",$$slots:{default:[yh]},$$scope:{ctx:$}}}),fa=new w({props:{name:"document_question_answering",anchor:"huggingface_hub.AsyncInferenceClient.document_question_answering",parameters:[{name:"image",val:": Union"},{name:"question",val:": str"},{name:"model",val:": Optional = None"}],parametersDescription:[{anchor:"huggingface_hub.AsyncInferenceClient.document_question_answering.image",description:`<strong>image</strong> (<code>Union[str, Path, bytes, BinaryIO]</code>) &#x2014;
The input image for the context. It can be raw bytes, an image file, or a URL to an online image.`,name:"image"},{anchor:"huggingface_hub.AsyncInferenceClient.document_question_answering.question",description:`<strong>question</strong> (<code>str</code>) &#x2014;
Question to be answered.`,name:"question"},{anchor:"huggingface_hub.AsyncInferenceClient.document_question_answering.model",description:`<strong>model</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The model to use for the document question answering task. Can be a model ID hosted on the Hugging Face Hub or a URL to
a deployed Inference Endpoint. If not provided, the default recommended document question answering model will be used.
Defaults to None.`,name:"model"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/inference/_generated/_async_client.py#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>
`}}),Pt=new Z({props:{anchor:"huggingface_hub.AsyncInferenceClient.document_question_answering.example",$$slots:{default:[jh]},$$scope:{ctx:$}}}),ba=new w({props:{name:"feature_extraction",anchor:"huggingface_hub.AsyncInferenceClient.feature_extraction",parameters:[{name:"text",val:": str"},{name:"model",val:": Optional = None"}],parametersDescription:[{anchor:"huggingface_hub.AsyncInferenceClient.feature_extraction.text",description:`<strong>text</strong> (<code>str</code>) &#x2014;
The text to embed.`,name:"text"},{anchor:"huggingface_hub.AsyncInferenceClient.feature_extraction.model",description:`<strong>model</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The model to use for the conversational task. Can be a model ID hosted on the Hugging Face Hub or a URL to
a deployed Inference Endpoint. If not provided, the default recommended conversational model will be used.
Defaults to None.`,name:"model"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/inference/_generated/_async_client.py#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>
`}}),Lt=new Z({props:{anchor:"huggingface_hub.AsyncInferenceClient.feature_extraction.example",$$slots:{default:[Th]},$$scope:{ctx:$}}}),_a=new w({props:{name:"fill_mask",anchor:"huggingface_hub.AsyncInferenceClient.fill_mask",parameters:[{name:"text",val:": str"},{name:"model",val:": Optional = None"}],parametersDescription:[{anchor:"huggingface_hub.AsyncInferenceClient.fill_mask.text",description:`<strong>text</strong> (<code>str</code>) &#x2014;
a string to be filled from, must contain the [MASK] token (check model card for exact name of the mask).`,name:"text"},{anchor:"huggingface_hub.AsyncInferenceClient.fill_mask.model",description:`<strong>model</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The model to use for the fill mask task. Can be a model ID hosted on the Hugging Face Hub or a URL to
a deployed Inference Endpoint. If not provided, the default recommended fill mask model will be used.
Defaults to None.`,name:"model"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/inference/_generated/_async_client.py#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>
`}}),Qt=new Z({props:{anchor:"huggingface_hub.AsyncInferenceClient.fill_mask.example",$$slots:{default:[$h]},$$scope:{ctx:$}}}),xa=new w({props:{name:"get_model_status",anchor:"huggingface_hub.AsyncInferenceClient.get_model_status",parameters:[{name:"model",val:": Optional = None"}],parametersDescription:[{anchor:"huggingface_hub.AsyncInferenceClient.get_model_status.model",description:`<strong>model</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Identifier of the model for witch the status gonna be checked. If model is not provided,
the model associated with this instance of <a href="/docs/huggingface_hub/main/en/package_reference/inference_client#huggingface_hub.InferenceClient">InferenceClient</a> will be used. Only InferenceAPI service can be checked so the
identifier cannot be a URL.`,name:"model"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/inference/_generated/_async_client.py#L1969",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>
`}}),St=new re({props:{$$slots:{default:[Ih]},$$scope:{ctx:$}}}),Xt=new Z({props:{anchor:"huggingface_hub.AsyncInferenceClient.get_model_status.example",$$slots:{default:[Mh]},$$scope:{ctx:$}}}),ya=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#L1945",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>
`}}),ja=new w({props:{name:"image_classification",anchor:"huggingface_hub.AsyncInferenceClient.image_classification",parameters:[{name:"image",val:": Union"},{name:"model",val:": Optional = None"}],parametersDescription:[{anchor:"huggingface_hub.AsyncInferenceClient.image_classification.image",description:`<strong>image</strong> (<code>Union[str, Path, bytes, BinaryIO]</code>) &#x2014;
The image to classify. It can be raw bytes, an image file, or a URL to an online image.`,name:"image"},{anchor:"huggingface_hub.AsyncInferenceClient.image_classification.model",description:`<strong>model</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The model to use for image classification. Can be a model ID hosted on the Hugging Face Hub or a URL to a
deployed Inference Endpoint. If not provided, the default recommended model for image classification will be used.`,name:"model"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/inference/_generated/_async_client.py#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>
`}}),Ot=new Z({props:{anchor:"huggingface_hub.AsyncInferenceClient.image_classification.example",$$slots:{default:[wh]},$$scope:{ctx:$}}}),Ta=new w({props:{name:"image_segmentation",anchor:"huggingface_hub.AsyncInferenceClient.image_segmentation",parameters:[{name:"image",val:": Union"},{name:"model",val:": Optional = None"}],parametersDescription:[{anchor:"huggingface_hub.AsyncInferenceClient.image_segmentation.image",description:`<strong>image</strong> (<code>Union[str, Path, bytes, BinaryIO]</code>) &#x2014;
The image to segment. It can be raw bytes, an image file, or a URL to an online image.`,name:"image"},{anchor:"huggingface_hub.AsyncInferenceClient.image_segmentation.model",description:`<strong>model</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The model to use for image segmentation. Can be a model ID hosted on the Hugging Face Hub or a URL to a
deployed Inference Endpoint. If not provided, the default recommended model for image segmentation will be used.`,name:"model"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/inference/_generated/_async_client.py#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>
`}}),Kt=new re({props:{warning:!0,$$slots:{default:[Ch]},$$scope:{ctx:$}}}),es=new Z({props:{anchor:"huggingface_hub.AsyncInferenceClient.image_segmentation.example",$$slots:{default:[vh]},$$scope:{ctx:$}}}),$a=new w({props:{name:"image_to_image",anchor:"huggingface_hub.AsyncInferenceClient.image_to_image",parameters:[{name:"image",val:": Union"},{name:"prompt",val:": Optional = None"},{name:"negative_prompt",val:": Optional = None"},{name:"height",val:": Optional = None"},{name:"width",val:": Optional = None"},{name:"num_inference_steps",val:": Optional = None"},{name:"guidance_scale",val:": Optional = None"},{name:"model",val:": Optional = None"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"huggingface_hub.AsyncInferenceClient.image_to_image.image",description:`<strong>image</strong> (<code>Union[str, Path, bytes, BinaryIO]</code>) &#x2014;
The input image for translation. It can be raw bytes, an image file, or a URL to an online image.`,name:"image"},{anchor:"huggingface_hub.AsyncInferenceClient.image_to_image.prompt",description:`<strong>prompt</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The text prompt to guide the image generation.`,name:"prompt"},{anchor:"huggingface_hub.AsyncInferenceClient.image_to_image.negative_prompt",description:`<strong>negative_prompt</strong> (<code>str</code>, <em>optional</em>) &#x2014;
A negative prompt to guide the translation process.`,name:"negative_prompt"},{anchor:"huggingface_hub.AsyncInferenceClient.image_to_image.height",description:`<strong>height</strong> (<code>int</code>, <em>optional</em>) &#x2014;
The height in pixels of the generated image.`,name:"height"},{anchor:"huggingface_hub.AsyncInferenceClient.image_to_image.width",description:`<strong>width</strong> (<code>int</code>, <em>optional</em>) &#x2014;
The width in pixels of the generated image.`,name:"width"},{anchor:"huggingface_hub.AsyncInferenceClient.image_to_image.num_inference_steps",description:`<strong>num_inference_steps</strong> (<code>int</code>, <em>optional</em>) &#x2014;
The number of denoising steps. More denoising steps usually lead to a higher quality image at the
expense of slower inference.`,name:"num_inference_steps"},{anchor:"huggingface_hub.AsyncInferenceClient.image_to_image.guidance_scale",description:`<strong>guidance_scale</strong> (<code>float</code>, <em>optional</em>) &#x2014;
Higher guidance scale encourages to generate images that are closely linked to the text <code>prompt</code>,
usually at the expense of lower image quality.`,name:"guidance_scale"},{anchor:"huggingface_hub.AsyncInferenceClient.image_to_image.model",description:`<strong>model</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The model to use for inference. Can be a model ID hosted on the Hugging Face Hub or a URL to a deployed
Inference Endpoint. This parameter overrides the model defined at the instance level. Defaults to None.`,name:"model"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/inference/_generated/_async_client.py#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>
`}}),ns=new re({props:{warning:!0,$$slots:{default:[Jh]},$$scope:{ctx:$}}}),ts=new Z({props:{anchor:"huggingface_hub.AsyncInferenceClient.image_to_image.example",$$slots:{default:[Uh]},$$scope:{ctx:$}}}),Ia=new w({props:{name:"image_to_text",anchor:"huggingface_hub.AsyncInferenceClient.image_to_text",parameters:[{name:"image",val:": Union"},{name:"model",val:": Optional = None"}],parametersDescription:[{anchor:"huggingface_hub.AsyncInferenceClient.image_to_text.image",description:`<strong>image</strong> (<code>Union[str, Path, bytes, BinaryIO]</code>) &#x2014;
The input image to caption. It can be raw bytes, an image file, or a URL to an online image..`,name:"image"},{anchor:"huggingface_hub.AsyncInferenceClient.image_to_text.model",description:`<strong>model</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The model to use for inference. Can be a model ID hosted on the Hugging Face Hub or a URL to a deployed
Inference Endpoint. This parameter overrides the model defined at the instance level. Defaults to None.`,name:"model"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/inference/_generated/_async_client.py#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>
`}}),ss=new Z({props:{anchor:"huggingface_hub.AsyncInferenceClient.image_to_text.example",$$slots:{default:[kh]},$$scope:{ctx:$}}}),Ma=new w({props:{name:"list_deployed_models",anchor:"huggingface_hub.AsyncInferenceClient.list_deployed_models",parameters:[{name:"frameworks",val:": Union = None"}],parametersDescription:[{anchor:"huggingface_hub.AsyncInferenceClient.list_deployed_models.frameworks",description:`<strong>frameworks</strong> (<code>Literal[&quot;all&quot;]</code> or <code>List[str]</code> or <code>str</code>, <em>optional</em>) &#x2014;
The frameworks to filter on. By default only a subset of the available frameworks are tested. If set to
&#x201C;all&#x201D;, all available frameworks will be tested. It is also possible to provide a single framework or a
custom set of frameworks to check.`,name:"frameworks"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/inference/_generated/_async_client.py#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>
`}}),as=new re({props:{$$slots:{default:[qh]},$$scope:{ctx:$}}}),os=new Z({props:{anchor:"huggingface_hub.AsyncInferenceClient.list_deployed_models.example",$$slots:{default:[Zh]},$$scope:{ctx:$}}}),wa=new w({props:{name:"object_detection",anchor:"huggingface_hub.AsyncInferenceClient.object_detection",parameters:[{name:"image",val:": Union"},{name:"model",val:": Optional = None"}],parametersDescription:[{anchor:"huggingface_hub.AsyncInferenceClient.object_detection.image",description:`<strong>image</strong> (<code>Union[str, Path, bytes, BinaryIO]</code>) &#x2014;
The image to detect objects on. It can be raw bytes, an image file, or a URL to an online image.`,name:"image"},{anchor:"huggingface_hub.AsyncInferenceClient.object_detection.model",description:`<strong>model</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The model to use for object detection. Can be a model ID hosted on the Hugging Face Hub or a URL to a
deployed Inference Endpoint. If not provided, the default recommended model for object detection (DETR) will be used.`,name:"model"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/inference/_generated/_async_client.py#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>
`}}),rs=new re({props:{warning:!0,$$slots:{default:[Wh]},$$scope:{ctx:$}}}),ls=new Z({props:{anchor:"huggingface_hub.AsyncInferenceClient.object_detection.example",$$slots:{default:[Eh]},$$scope:{ctx:$}}}),Ca=new w({props:{name:"post",anchor:"huggingface_hub.AsyncInferenceClient.post",parameters:[{name:"json",val:": Union = None"},{name:"data",val:": Union = None"},{name:"model",val:": Optional = None"},{name:"task",val:": Optional = None"},{name:"stream",val:": bool = False"}],parametersDescription:[{anchor:"huggingface_hub.AsyncInferenceClient.post.json",description:`<strong>json</strong> (<code>Union[str, Dict, List]</code>, <em>optional</em>) &#x2014;
The JSON data to send in the request body, specific to each task. Defaults to None.`,name:"json"},{anchor:"huggingface_hub.AsyncInferenceClient.post.data",description:`<strong>data</strong> (<code>Union[str, Path, bytes, BinaryIO]</code>, <em>optional</em>) &#x2014;
The content to send in the request body, specific to each task.
It can be raw bytes, a pointer to an opened file, a local file path,
or a URL to an online resource (image, audio file,&#x2026;). If both <code>json</code> and <code>data</code> are passed,
<code>data</code> will take precedence. At least <code>json</code> or <code>data</code> must be provided. Defaults to None.`,name:"data"},{anchor:"huggingface_hub.AsyncInferenceClient.post.model",description:`<strong>model</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The model to use for inference. Can be a model ID hosted on the Hugging Face Hub or a URL to a deployed
Inference Endpoint. Will override the model defined at the instance level. Defaults to None.`,name:"model"},{anchor:"huggingface_hub.AsyncInferenceClient.post.task",description:`<strong>task</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The task to perform on the inference. All available tasks can be found
<a href="https://huggingface.co/tasks" rel="nofollow">here</a>. Used only to default to a recommended model if <code>model</code> is not
provided. At least <code>model</code> or <code>task</code> must be provided. Defaults to None.`,name:"task"},{anchor:"huggingface_hub.AsyncInferenceClient.post.stream",description:`<strong>stream</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether to iterate over streaming APIs.`,name:"stream"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/inference/_generated/_async_client.py#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>
`}}),va=new w({props:{name:"question_answering",anchor:"huggingface_hub.AsyncInferenceClient.question_answering",parameters:[{name:"question",val:": str"},{name:"context",val:": str"},{name:"model",val:": Optional = None"}],parametersDescription:[{anchor:"huggingface_hub.AsyncInferenceClient.question_answering.question",description:`<strong>question</strong> (<code>str</code>) &#x2014;
Question to be answered.`,name:"question"},{anchor:"huggingface_hub.AsyncInferenceClient.question_answering.context",description:`<strong>context</strong> (<code>str</code>) &#x2014;
The context of the question.`,name:"context"},{anchor:"huggingface_hub.AsyncInferenceClient.question_answering.model",description:`<strong>model</strong> (<code>str</code>) &#x2014;
The model to use for the question answering task. Can be a model ID hosted on the Hugging Face Hub or a URL to
a deployed Inference Endpoint.`,name:"model"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/inference/_generated/_async_client.py#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>
`}}),cs=new Z({props:{anchor:"huggingface_hub.AsyncInferenceClient.question_answering.example",$$slots:{default:[Nh]},$$scope:{ctx:$}}}),Ja=new w({props:{name:"sentence_similarity",anchor:"huggingface_hub.AsyncInferenceClient.sentence_similarity",parameters:[{name:"sentence",val:": str"},{name:"other_sentences",val:": List"},{name:"model",val:": Optional = None"}],parametersDescription:[{anchor:"huggingface_hub.AsyncInferenceClient.sentence_similarity.sentence",description:`<strong>sentence</strong> (<code>str</code>) &#x2014;
The main sentence to compare to others.`,name:"sentence"},{anchor:"huggingface_hub.AsyncInferenceClient.sentence_similarity.other_sentences",description:`<strong>other_sentences</strong> (<code>List[str]</code>) &#x2014;
The list of sentences to compare to.`,name:"other_sentences"},{anchor:"huggingface_hub.AsyncInferenceClient.sentence_similarity.model",description:`<strong>model</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The model to use for the conversational task. Can be a model ID hosted on the Hugging Face Hub or a URL to
a deployed Inference Endpoint. If not provided, the default recommended conversational model will be used.
Defaults to None.`,name:"model"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/inference/_generated/_async_client.py#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>
`}}),ps=new Z({props:{anchor:"huggingface_hub.AsyncInferenceClient.sentence_similarity.example",$$slots:{default:[Gh]},$$scope:{ctx:$}}}),Ua=new w({props:{name:"summarization",anchor:"huggingface_hub.AsyncInferenceClient.summarization",parameters:[{name:"text",val:": str"},{name:"parameters",val:": Optional = None"},{name:"model",val:": Optional = None"}],parametersDescription:[{anchor:"huggingface_hub.AsyncInferenceClient.summarization.text",description:`<strong>text</strong> (<code>str</code>) &#x2014;
The input text to summarize.`,name:"text"},{anchor:"huggingface_hub.AsyncInferenceClient.summarization.parameters",description:`<strong>parameters</strong> (<code>Dict[str, Any]</code>, <em>optional</em>) &#x2014;
Additional parameters for summarization. Check out this <a href="https://huggingface.co/docs/api-inference/detailed_parameters#summarization-task" rel="nofollow">page</a>
for more details.`,name:"parameters"},{anchor:"huggingface_hub.AsyncInferenceClient.summarization.model",description:`<strong>model</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The model to use for inference. Can be a model ID hosted on the Hugging Face Hub or a URL to a deployed
Inference Endpoint. This parameter overrides the model defined at the instance level. Defaults to None.`,name:"model"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/inference/_generated/_async_client.py#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>
`}}),gs=new Z({props:{anchor:"huggingface_hub.AsyncInferenceClient.summarization.example",$$slots:{default:[Vh]},$$scope:{ctx:$}}}),ka=new w({props:{name:"table_question_answering",anchor:"huggingface_hub.AsyncInferenceClient.table_question_answering",parameters:[{name:"table",val:": Dict"},{name:"query",val:": str"},{name:"model",val:": Optional = None"}],parametersDescription:[{anchor:"huggingface_hub.AsyncInferenceClient.table_question_answering.table",description:`<strong>table</strong> (<code>str</code>) &#x2014;
A table of data represented as a dict of lists where entries are headers and the lists are all the
values, all lists must have the same size.`,name:"table"},{anchor:"huggingface_hub.AsyncInferenceClient.table_question_answering.query",description:`<strong>query</strong> (<code>str</code>) &#x2014;
The query in plain text that you want to ask the table.`,name:"query"},{anchor:"huggingface_hub.AsyncInferenceClient.table_question_answering.model",description:`<strong>model</strong> (<code>str</code>) &#x2014;
The model to use for the table-question-answering task. Can be a model ID hosted on the Hugging Face
Hub or a URL to a deployed Inference Endpoint.`,name:"model"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/inference/_generated/_async_client.py#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>
`}}),us=new Z({props:{anchor:"huggingface_hub.AsyncInferenceClient.table_question_answering.example",$$slots:{default:[Dh]},$$scope:{ctx:$}}}),qa=new w({props:{name:"tabular_classification",anchor:"huggingface_hub.AsyncInferenceClient.tabular_classification",parameters:[{name:"table",val:": Dict"},{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>
`}}),ds=new Z({props:{anchor:"huggingface_hub.AsyncInferenceClient.tabular_classification.example",$$slots:{default:[Yh]},$$scope:{ctx:$}}}),Za=new w({props:{name:"tabular_regression",anchor:"huggingface_hub.AsyncInferenceClient.tabular_regression",parameters:[{name:"table",val:": Dict"},{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>
`}}),ms=new Z({props:{anchor:"huggingface_hub.AsyncInferenceClient.tabular_regression.example",$$slots:{default:[Rh]},$$scope:{ctx:$}}}),Wa=new w({props:{name:"text_classification",anchor:"huggingface_hub.AsyncInferenceClient.text_classification",parameters:[{name:"text",val:": str"},{name:"model",val:": Optional = None"}],parametersDescription:[{anchor:"huggingface_hub.AsyncInferenceClient.text_classification.text",description:`<strong>text</strong> (<code>str</code>) &#x2014;
A string to be classified.`,name:"text"},{anchor:"huggingface_hub.AsyncInferenceClient.text_classification.model",description:`<strong>model</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The model to use for the text classification task. Can be a model ID hosted on the Hugging Face Hub or a URL to
a deployed Inference Endpoint. If not provided, the default recommended text classification model will be used.
Defaults to None.`,name:"model"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/inference/_generated/_async_client.py#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>
`}}),hs=new Z({props:{anchor:"huggingface_hub.AsyncInferenceClient.text_classification.example",$$slots:{default:[Ah]},$$scope:{ctx:$}}}),Ea=new w({props:{name:"text_generation",anchor:"huggingface_hub.AsyncInferenceClient.text_generation",parameters:[{name:"prompt",val:": str"},{name:"details",val:": bool = False"},{name:"stream",val:": bool = False"},{name:"model",val:": Optional = None"},{name:"do_sample",val:": bool = False"},{name:"max_new_tokens",val:": int = 20"},{name:"best_of",val:": Optional = None"},{name:"repetition_penalty",val:": Optional = None"},{name:"return_full_text",val:": bool = False"},{name:"seed",val:": Optional = None"},{name:"stop_sequences",val:": Optional = None"},{name:"temperature",val:": Optional = None"},{name:"top_k",val:": Optional = None"},{name:"top_p",val:": Optional = None"},{name:"truncate",val:": Optional = None"},{name:"typical_p",val:": Optional = None"},{name:"watermark",val:": bool = False"},{name:"decoder_input_details",val:": bool = False"}],parametersDescription:[{anchor:"huggingface_hub.AsyncInferenceClient.text_generation.prompt",description:`<strong>prompt</strong> (<code>str</code>) &#x2014;
Input text.`,name:"prompt"},{anchor:"huggingface_hub.AsyncInferenceClient.text_generation.details",description:`<strong>details</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
By default, text_generation returns a string. Pass <code>details=True</code> if you want a detailed output (tokens,
probabilities, seed, finish reason, etc.). Only available for models running on with the
<code>text-generation-inference</code> backend.`,name:"details"},{anchor:"huggingface_hub.AsyncInferenceClient.text_generation.stream",description:`<strong>stream</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
By default, text_generation returns the full generated text. Pass <code>stream=True</code> if you want a stream of
tokens to be returned. Only available for models running on with the <code>text-generation-inference</code>
backend.`,name:"stream"},{anchor:"huggingface_hub.AsyncInferenceClient.text_generation.model",description:`<strong>model</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The model to use for inference. Can be a model ID hosted on the Hugging Face Hub or a URL to a deployed
Inference Endpoint. This parameter overrides the model defined at the instance level. Defaults to None.`,name:"model"},{anchor:"huggingface_hub.AsyncInferenceClient.text_generation.do_sample",description:`<strong>do_sample</strong> (<code>bool</code>) &#x2014;
Activate logits sampling`,name:"do_sample"},{anchor:"huggingface_hub.AsyncInferenceClient.text_generation.max_new_tokens",description:`<strong>max_new_tokens</strong> (<code>int</code>) &#x2014;
Maximum number of generated tokens`,name:"max_new_tokens"},{anchor:"huggingface_hub.AsyncInferenceClient.text_generation.best_of",description:`<strong>best_of</strong> (<code>int</code>) &#x2014;
Generate best_of sequences and return the one if the highest token logprobs`,name:"best_of"},{anchor:"huggingface_hub.AsyncInferenceClient.text_generation.repetition_penalty",description:`<strong>repetition_penalty</strong> (<code>float</code>) &#x2014;
The parameter for repetition penalty. 1.0 means no penalty. See <a href="https://arxiv.org/pdf/1909.05858.pdf" rel="nofollow">this
paper</a> for more details.`,name:"repetition_penalty"},{anchor:"huggingface_hub.AsyncInferenceClient.text_generation.return_full_text",description:`<strong>return_full_text</strong> (<code>bool</code>) &#x2014;
Whether to prepend the prompt to the generated text`,name:"return_full_text"},{anchor:"huggingface_hub.AsyncInferenceClient.text_generation.seed",description:`<strong>seed</strong> (<code>int</code>) &#x2014;
Random sampling seed`,name:"seed"},{anchor:"huggingface_hub.AsyncInferenceClient.text_generation.stop_sequences",description:`<strong>stop_sequences</strong> (<code>List[str]</code>) &#x2014;
Stop generating tokens if a member of <code>stop_sequences</code> is generated`,name:"stop_sequences"},{anchor:"huggingface_hub.AsyncInferenceClient.text_generation.temperature",description:`<strong>temperature</strong> (<code>float</code>) &#x2014;
The value used to module the logits distribution.`,name:"temperature"},{anchor:"huggingface_hub.AsyncInferenceClient.text_generation.top_k",description:`<strong>top_k</strong> (<code>int</code>) &#x2014;
The number of highest probability vocabulary tokens to keep for top-k-filtering.`,name:"top_k"},{anchor:"huggingface_hub.AsyncInferenceClient.text_generation.top_p",description:`<strong>top_p</strong> (<code>float</code>) &#x2014;
If set to &lt; 1, only the smallest set of most probable tokens with probabilities that add up to <code>top_p</code> or
higher are kept for generation.`,name:"top_p"},{anchor:"huggingface_hub.AsyncInferenceClient.text_generation.truncate",description:`<strong>truncate</strong> (<code>int</code>) &#x2014;
Truncate inputs tokens to the given size`,name:"truncate"},{anchor:"huggingface_hub.AsyncInferenceClient.text_generation.typical_p",description:`<strong>typical_p</strong> (<code>float</code>) &#x2014;
Typical Decoding mass
See <a href="https://arxiv.org/abs/2202.00666" rel="nofollow">Typical Decoding for Natural Language Generation</a> for more information`,name:"typical_p"},{anchor:"huggingface_hub.AsyncInferenceClient.text_generation.watermark",description:`<strong>watermark</strong> (<code>bool</code>) &#x2014;
Watermarking with <a href="https://arxiv.org/abs/2301.10226" rel="nofollow">A Watermark for Large Language Models</a>`,name:"watermark"},{anchor:"huggingface_hub.AsyncInferenceClient.text_generation.decoder_input_details",description:`<strong>decoder_input_details</strong> (<code>bool</code>) &#x2014;
Return the decoder input token logprobs and ids. You must set <code>details=True</code> as well for it to be taken
into account. Defaults to <code>False</code>.`,name:"decoder_input_details"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/inference/_generated/_async_client.py#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>
`}}),fs=new Z({props:{anchor:"huggingface_hub.AsyncInferenceClient.text_generation.example",$$slots:{default:[Bh]},$$scope:{ctx:$}}}),Na=new w({props:{name:"text_to_image",anchor:"huggingface_hub.AsyncInferenceClient.text_to_image",parameters:[{name:"prompt",val:": str"},{name:"negative_prompt",val:": Optional = None"},{name:"height",val:": Optional = None"},{name:"width",val:": Optional = None"},{name:"num_inference_steps",val:": Optional = None"},{name:"guidance_scale",val:": Optional = None"},{name:"model",val:": Optional = None"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"huggingface_hub.AsyncInferenceClient.text_to_image.prompt",description:`<strong>prompt</strong> (<code>str</code>) &#x2014;
The prompt to generate an image from.`,name:"prompt"},{anchor:"huggingface_hub.AsyncInferenceClient.text_to_image.negative_prompt",description:`<strong>negative_prompt</strong> (<code>str</code>, <em>optional</em>) &#x2014;
An optional negative prompt for the image generation.`,name:"negative_prompt"},{anchor:"huggingface_hub.AsyncInferenceClient.text_to_image.height",description:`<strong>height</strong> (<code>float</code>, <em>optional</em>) &#x2014;
The height in pixels of the image to generate.`,name:"height"},{anchor:"huggingface_hub.AsyncInferenceClient.text_to_image.width",description:`<strong>width</strong> (<code>float</code>, <em>optional</em>) &#x2014;
The width in pixels of the image to generate.`,name:"width"},{anchor:"huggingface_hub.AsyncInferenceClient.text_to_image.num_inference_steps",description:`<strong>num_inference_steps</strong> (<code>int</code>, <em>optional</em>) &#x2014;
The number of denoising steps. More denoising steps usually lead to a higher quality image at the
expense of slower inference.`,name:"num_inference_steps"},{anchor:"huggingface_hub.AsyncInferenceClient.text_to_image.guidance_scale",description:`<strong>guidance_scale</strong> (<code>float</code>, <em>optional</em>) &#x2014;
Higher guidance scale encourages to generate images that are closely linked to the text <code>prompt</code>,
usually at the expense of lower image quality.`,name:"guidance_scale"},{anchor:"huggingface_hub.AsyncInferenceClient.text_to_image.model",description:`<strong>model</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The model to use for inference. Can be a model ID hosted on the Hugging Face Hub or a URL to a deployed
Inference Endpoint. This parameter overrides the model defined at the instance level. Defaults to None.`,name:"model"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/inference/_generated/_async_client.py#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>
`}}),bs=new re({props:{warning:!0,$$slots:{default:[Hh]},$$scope:{ctx:$}}}),_s=new Z({props:{anchor:"huggingface_hub.AsyncInferenceClient.text_to_image.example",$$slots:{default:[Fh]},$$scope:{ctx:$}}}),Ga=new w({props:{name:"text_to_speech",anchor:"huggingface_hub.AsyncInferenceClient.text_to_speech",parameters:[{name:"text",val:": str"},{name:"model",val:": Optional = None"}],parametersDescription:[{anchor:"huggingface_hub.AsyncInferenceClient.text_to_speech.text",description:`<strong>text</strong> (<code>str</code>) &#x2014;
The text to synthesize.`,name:"text"},{anchor:"huggingface_hub.AsyncInferenceClient.text_to_speech.model",description:`<strong>model</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The model to use for inference. Can be a model ID hosted on the Hugging Face Hub or a URL to a deployed
Inference Endpoint. This parameter overrides the model defined at the instance level. Defaults to None.`,name:"model"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/inference/_generated/_async_client.py#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>
`}}),xs=new Z({props:{anchor:"huggingface_hub.AsyncInferenceClient.text_to_speech.example",$$slots:{default:[Ph]},$$scope:{ctx:$}}}),Va=new w({props:{name:"token_classification",anchor:"huggingface_hub.AsyncInferenceClient.token_classification",parameters:[{name:"text",val:": str"},{name:"model",val:": Optional = None"}],parametersDescription:[{anchor:"huggingface_hub.AsyncInferenceClient.token_classification.text",description:`<strong>text</strong> (<code>str</code>) &#x2014;
A string to be classified.`,name:"text"},{anchor:"huggingface_hub.AsyncInferenceClient.token_classification.model",description:`<strong>model</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The model to use for the token classification task. Can be a model ID hosted on the Hugging Face Hub or a URL to
a deployed Inference Endpoint. If not provided, the default recommended token classification model will be used.
Defaults to None.`,name:"model"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/inference/_generated/_async_client.py#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>
`}}),ys=new Z({props:{anchor:"huggingface_hub.AsyncInferenceClient.token_classification.example",$$slots:{default:[Lh]},$$scope:{ctx:$}}}),Da=new w({props:{name:"translation",anchor:"huggingface_hub.AsyncInferenceClient.translation",parameters:[{name:"text",val:": str"},{name:"model",val:": Optional = None"},{name:"src_lang",val:": Optional = None"},{name:"tgt_lang",val:": Optional = None"}],parametersDescription:[{anchor:"huggingface_hub.AsyncInferenceClient.translation.text",description:`<strong>text</strong> (<code>str</code>) &#x2014;
A string to be translated.`,name:"text"},{anchor:"huggingface_hub.AsyncInferenceClient.translation.model",description:`<strong>model</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The model to use for the translation task. Can be a model ID hosted on the Hugging Face Hub or a URL to
a deployed Inference Endpoint. If not provided, the default recommended translation model will be used.
Defaults to None.`,name:"model"},{anchor:"huggingface_hub.AsyncInferenceClient.translation.src_lang",description:`<strong>src_lang</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Source language of the translation task, i.e. input language. Cannot be passed without <code>tgt_lang</code>.`,name:"src_lang"},{anchor:"huggingface_hub.AsyncInferenceClient.translation.tgt_lang",description:`<strong>tgt_lang</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Target language of the translation task, i.e. output language. Cannot be passed without <code>src_lang</code>.`,name:"tgt_lang"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/inference/_generated/_async_client.py#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>
<li><code>ValueError</code> —
If only one of the <code>src_lang</code> and <code>tgt_lang</code> arguments are provided.</li>
</ul>
`,raiseType:`<script context="module">export const metadata = 'undefined';<\/script>


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