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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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


<p><a
  href="/docs/huggingface_hub/v0.19.0/en/package_reference/inference_client#huggingface_hub.InferenceTimeoutError"
>InferenceTimeoutError</a> or <code>HTTPError</code></p>
`}}),ot=new Z({props:{anchor:"huggingface_hub.InferenceClient.audio_classification.example",$$slots:{default:[Zh]},$$scope:{ctx:$}}}),ks=new M({props:{name:"automatic_speech_recognition",anchor:"huggingface_hub.InferenceClient.automatic_speech_recognition",parameters:[{name:"audio",val:": typing.Union[bytes, typing.BinaryIO, str, pathlib.Path]"},{name:"model",val:": typing.Optional[str] = None"}],parametersDescription:[{anchor:"huggingface_hub.InferenceClient.automatic_speech_recognition.audio",description:`<strong>audio</strong> (Union[str, Path, bytes, BinaryIO]) &#x2014;
The content to transcribe. It can be raw audio bytes, local audio file, or a URL to an audio file.`,name:"audio"},{anchor:"huggingface_hub.InferenceClient.automatic_speech_recognition.model",description:`<strong>model</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The model to use for ASR. Can be a model ID hosted on the Hugging Face Hub or a URL to a deployed
Inference Endpoint. If not provided, the default recommended model for ASR will be used.`,name:"model"}],source:"https://github.com/huggingface/huggingface_hub/blob/v0.19.0/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/v0.19.0/en/package_reference/inference_client#huggingface_hub.InferenceTimeoutError"
>InferenceTimeoutError</a> —
If the model is unavailable or the request times out.</li>
<li><code>HTTPError</code> —
If the request fails with an HTTP error status code other than HTTP 503.</li>
</ul>
`,raiseType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/huggingface_hub/v0.19.0/en/package_reference/inference_client#huggingface_hub.InferenceTimeoutError"
>InferenceTimeoutError</a> or <code>HTTPError</code></p>
`}}),rt=new Z({props:{anchor:"huggingface_hub.InferenceClient.automatic_speech_recognition.example",$$slots:{default:[Eh]},$$scope:{ctx:$}}}),qs=new M({props:{name:"conversational",anchor:"huggingface_hub.InferenceClient.conversational",parameters:[{name:"text",val:": str"},{name:"generated_responses",val:": typing.Optional[typing.List[str]] = None"},{name:"past_user_inputs",val:": typing.Optional[typing.List[str]] = None"},{name:"parameters",val:": typing.Union[typing.Dict[str, typing.Any], NoneType] = None"},{name:"model",val:": typing.Optional[str] = None"}],parametersDescription:[{anchor:"huggingface_hub.InferenceClient.conversational.text",description:`<strong>text</strong> (<code>str</code>) &#x2014;
The last input from the user in the conversation.`,name:"text"},{anchor:"huggingface_hub.InferenceClient.conversational.generated_responses",description:`<strong>generated_responses</strong> (<code>List[str]</code>, <em>optional</em>) &#x2014;
A list of strings corresponding to the earlier replies from the model. Defaults to None.`,name:"generated_responses"},{anchor:"huggingface_hub.InferenceClient.conversational.past_user_inputs",description:`<strong>past_user_inputs</strong> (<code>List[str]</code>, <em>optional</em>) &#x2014;
A list of strings corresponding to the earlier replies from the user. Should be the same length as
<code>generated_responses</code>. Defaults to None.`,name:"past_user_inputs"},{anchor:"huggingface_hub.InferenceClient.conversational.parameters",description:`<strong>parameters</strong> (<code>Dict[str, Any]</code>, <em>optional</em>) &#x2014;
Additional parameters for the conversational task. Defaults to None. For more details about the available
parameters, please refer to <a href="https://huggingface.co/docs/api-inference/detailed_parameters#conversational-task" rel="nofollow">this page</a>`,name:"parameters"},{anchor:"huggingface_hub.InferenceClient.conversational.model",description:`<strong>model</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The model to use for the conversational task. Can be a model ID hosted on the Hugging Face Hub or a URL to
a deployed Inference Endpoint. If not provided, the default recommended conversational model will be used.
Defaults to None.`,name:"model"}],source:"https://github.com/huggingface/huggingface_hub/blob/v0.19.0/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/v0.19.0/en/package_reference/inference_client#huggingface_hub.InferenceTimeoutError"
>InferenceTimeoutError</a> —
If the model is unavailable or the request times out.</li>
<li><code>HTTPError</code> —
If the request fails with an HTTP error status code other than HTTP 503.</li>
</ul>
`,raiseType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/huggingface_hub/v0.19.0/en/package_reference/inference_client#huggingface_hub.InferenceTimeoutError"
>InferenceTimeoutError</a> or <code>HTTPError</code></p>
`}}),lt=new Z({props:{anchor:"huggingface_hub.InferenceClient.conversational.example",$$slots:{default:[Wh]},$$scope:{ctx:$}}}),Zs=new M({props:{name:"document_question_answering",anchor:"huggingface_hub.InferenceClient.document_question_answering",parameters:[{name:"image",val:": typing.Union[bytes, typing.BinaryIO, str, pathlib.Path]"},{name:"question",val:": str"},{name:"model",val:": typing.Optional[str] = None"}],parametersDescription:[{anchor:"huggingface_hub.InferenceClient.document_question_answering.image",description:`<strong>image</strong> (<code>Union[str, Path, bytes, BinaryIO]</code>) &#x2014;
The input image for the context. It can be raw bytes, an image file, or a URL to an online image.`,name:"image"},{anchor:"huggingface_hub.InferenceClient.document_question_answering.question",description:`<strong>question</strong> (<code>str</code>) &#x2014;
Question to be answered.`,name:"question"},{anchor:"huggingface_hub.InferenceClient.document_question_answering.model",description:`<strong>model</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The model to use for the document question answering task. Can be a model ID hosted on the Hugging Face Hub or a URL to
a deployed Inference Endpoint. If not provided, the default recommended document question answering model will be used.
Defaults to None.`,name:"model"}],source:"https://github.com/huggingface/huggingface_hub/blob/v0.19.0/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/v0.19.0/en/package_reference/inference_client#huggingface_hub.InferenceTimeoutError"
>InferenceTimeoutError</a> —
If the model is unavailable or the request times out.</li>
<li><code>HTTPError</code> —
If the request fails with an HTTP error status code other than HTTP 503.</li>
</ul>
`,raiseType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/huggingface_hub/v0.19.0/en/package_reference/inference_client#huggingface_hub.InferenceTimeoutError"
>InferenceTimeoutError</a> or <code>HTTPError</code></p>
`}}),it=new Z({props:{anchor:"huggingface_hub.InferenceClient.document_question_answering.example",$$slots:{default:[Nh]},$$scope:{ctx:$}}}),Es=new M({props:{name:"feature_extraction",anchor:"huggingface_hub.InferenceClient.feature_extraction",parameters:[{name:"text",val:": str"},{name:"model",val:": typing.Optional[str] = None"}],parametersDescription:[{anchor:"huggingface_hub.InferenceClient.feature_extraction.text",description:`<strong>text</strong> (<code>str</code>) &#x2014;
The text to embed.`,name:"text"},{anchor:"huggingface_hub.InferenceClient.feature_extraction.model",description:`<strong>model</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The model to use for the conversational task. Can be a model ID hosted on the Hugging Face Hub or a URL to
a deployed Inference Endpoint. If not provided, the default recommended conversational model will be used.
Defaults to None.`,name:"model"}],source:"https://github.com/huggingface/huggingface_hub/blob/v0.19.0/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/v0.19.0/en/package_reference/inference_client#huggingface_hub.InferenceTimeoutError"
>InferenceTimeoutError</a> —
If the model is unavailable or the request times out.</li>
<li><code>HTTPError</code> —
If the request fails with an HTTP error status code other than HTTP 503.</li>
</ul>
`,raiseType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/huggingface_hub/v0.19.0/en/package_reference/inference_client#huggingface_hub.InferenceTimeoutError"
>InferenceTimeoutError</a> or <code>HTTPError</code></p>
`}}),ct=new Z({props:{anchor:"huggingface_hub.InferenceClient.feature_extraction.example",$$slots:{default:[Gh]},$$scope:{ctx:$}}}),Ws=new M({props:{name:"fill_mask",anchor:"huggingface_hub.InferenceClient.fill_mask",parameters:[{name:"text",val:": str"},{name:"model",val:": typing.Optional[str] = None"}],parametersDescription:[{anchor:"huggingface_hub.InferenceClient.fill_mask.text",description:`<strong>text</strong> (<code>str</code>) &#x2014;
a string to be filled from, must contain the [MASK] token (check model card for exact name of the mask).`,name:"text"},{anchor:"huggingface_hub.InferenceClient.fill_mask.model",description:`<strong>model</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The model to use for the fill mask task. Can be a model ID hosted on the Hugging Face Hub or a URL to
a deployed Inference Endpoint. If not provided, the default recommended fill mask model will be used.
Defaults to None.`,name:"model"}],source:"https://github.com/huggingface/huggingface_hub/blob/v0.19.0/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/v0.19.0/en/package_reference/inference_client#huggingface_hub.InferenceTimeoutError"
>InferenceTimeoutError</a> —
If the model is unavailable or the request times out.</li>
<li><code>HTTPError</code> —
If the request fails with an HTTP error status code other than HTTP 503.</li>
</ul>
`,raiseType:`<script context="module">export const metadata = 'undefined';<\/script>


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


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


<p><code>ModelStatus</code></p>
`}}),gt=new ae({props:{$$slots:{default:[Vh]},$$scope:{ctx:$}}}),ut=new Z({props:{anchor:"huggingface_hub.InferenceClient.get_model_status.example",$$slots:{default:[Ah]},$$scope:{ctx:$}}}),Gs=new M({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/v0.19.0/src/huggingface_hub/inference/_client.py#L1889",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


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


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


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


<p><code>ValueError</code></p>
`}}),Ds=new M({props:{name:"image_classification",anchor:"huggingface_hub.InferenceClient.image_classification",parameters:[{name:"image",val:": typing.Union[bytes, typing.BinaryIO, str, pathlib.Path]"},{name:"model",val:": typing.Optional[str] = None"}],parametersDescription:[{anchor:"huggingface_hub.InferenceClient.image_classification.image",description:`<strong>image</strong> (<code>Union[str, Path, bytes, BinaryIO]</code>) &#x2014;
The image to classify. It can be raw bytes, an image file, or a URL to an online image.`,name:"image"},{anchor:"huggingface_hub.InferenceClient.image_classification.model",description:`<strong>model</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The model to use for image classification. Can be a model ID hosted on the Hugging Face Hub or a URL to a
deployed Inference Endpoint. If not provided, the default recommended model for image classification will be used.`,name:"model"}],source:"https://github.com/huggingface/huggingface_hub/blob/v0.19.0/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/v0.19.0/en/package_reference/inference_client#huggingface_hub.InferenceTimeoutError"
>InferenceTimeoutError</a> —
If the model is unavailable or the request times out.</li>
<li><code>HTTPError</code> —
If the request fails with an HTTP error status code other than HTTP 503.</li>
</ul>
`,raiseType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/huggingface_hub/v0.19.0/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:[Rh]},$$scope:{ctx:$}}}),Vs=new M({props:{name:"image_segmentation",anchor:"huggingface_hub.InferenceClient.image_segmentation",parameters:[{name:"image",val:": typing.Union[bytes, typing.BinaryIO, str, pathlib.Path]"},{name:"model",val:": typing.Optional[str] = None"}],parametersDescription:[{anchor:"huggingface_hub.InferenceClient.image_segmentation.image",description:`<strong>image</strong> (<code>Union[str, Path, bytes, BinaryIO]</code>) &#x2014;
The image to segment. It can be raw bytes, an image file, or a URL to an online image.`,name:"image"},{anchor:"huggingface_hub.InferenceClient.image_segmentation.model",description:`<strong>model</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The model to use for image segmentation. Can be a model ID hosted on the Hugging Face Hub or a URL to a
deployed Inference Endpoint. If not provided, the default recommended model for image segmentation will be used.`,name:"model"}],source:"https://github.com/huggingface/huggingface_hub/blob/v0.19.0/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/v0.19.0/en/package_reference/inference_client#huggingface_hub.InferenceTimeoutError"
>InferenceTimeoutError</a> —
If the model is unavailable or the request times out.</li>
<li><code>HTTPError</code> —
If the request fails with an HTTP error status code other than HTTP 503.</li>
</ul>
`,raiseType:`<script context="module">export const metadata = 'undefined';<\/script>


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


<p><a
  href="/docs/huggingface_hub/v0.19.0/en/package_reference/inference_client#huggingface_hub.InferenceTimeoutError"
>InferenceTimeoutError</a> or <code>HTTPError</code></p>
`}}),bt=new ae({props:{warning:!0,$$slots:{default:[Hh]},$$scope:{ctx:$}}}),_t=new Z({props:{anchor:"huggingface_hub.InferenceClient.image_to_image.example",$$slots:{default:[Ph]},$$scope:{ctx:$}}}),Rs=new M({props:{name:"image_to_text",anchor:"huggingface_hub.InferenceClient.image_to_text",parameters:[{name:"image",val:": typing.Union[bytes, typing.BinaryIO, str, pathlib.Path]"},{name:"model",val:": typing.Optional[str] = None"}],parametersDescription:[{anchor:"huggingface_hub.InferenceClient.image_to_text.image",description:`<strong>image</strong> (<code>Union[str, Path, bytes, BinaryIO]</code>) &#x2014;
The input image to caption. It can be raw bytes, an image file, or a URL to an online image..`,name:"image"},{anchor:"huggingface_hub.InferenceClient.image_to_text.model",description:`<strong>model</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The model to use for inference. Can be a model ID hosted on the Hugging Face Hub or a URL to a deployed
Inference Endpoint. This parameter overrides the model defined at the instance level. Defaults to None.`,name:"model"}],source:"https://github.com/huggingface/huggingface_hub/blob/v0.19.0/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/v0.19.0/en/package_reference/inference_client#huggingface_hub.InferenceTimeoutError"
>InferenceTimeoutError</a> —
If the model is unavailable or the request times out.</li>
<li><code>HTTPError</code> —
If the request fails with an HTTP error status code other than HTTP 503.</li>
</ul>
`,raiseType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/huggingface_hub/v0.19.0/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:[Lh]},$$scope:{ctx:$}}}),Bs=new M({props:{name:"list_deployed_models",anchor:"huggingface_hub.InferenceClient.list_deployed_models",parameters:[{name:"frameworks",val:": typing.Union[NoneType, str, typing.Literal['all'], typing.List[str]] = None"}],parametersDescription:[{anchor:"huggingface_hub.InferenceClient.list_deployed_models.frameworks",description:`<strong>frameworks</strong> (<code>Literal[&quot;all&quot;]</code> or <code>List[str]</code> or <code>str</code>, <em>optional</em>) &#x2014;
The frameworks to filter on. By default only a subset of the available frameworks are tested. If set to
&#x201C;all&#x201D;, all available frameworks will be tested. It is also possible to provide a single framework or a
custom set of frameworks to check.`,name:"frameworks"}],source:"https://github.com/huggingface/huggingface_hub/blob/v0.19.0/src/huggingface_hub/inference/_client.py#L767",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


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


<p><code>Dict[str, List[str]]</code></p>
`}}),xt=new ae({props:{$$slots:{default:[Qh]},$$scope:{ctx:$}}}),jt=new Z({props:{anchor:"huggingface_hub.InferenceClient.list_deployed_models.example",$$slots:{default:[Fh]},$$scope:{ctx:$}}}),Ys=new M({props:{name:"object_detection",anchor:"huggingface_hub.InferenceClient.object_detection",parameters:[{name:"image",val:": typing.Union[bytes, typing.BinaryIO, str, pathlib.Path]"},{name:"model",val:": typing.Optional[str] = None"}],parametersDescription:[{anchor:"huggingface_hub.InferenceClient.object_detection.image",description:`<strong>image</strong> (<code>Union[str, Path, bytes, BinaryIO]</code>) &#x2014;
The image to detect objects on. It can be raw bytes, an image file, or a URL to an online image.`,name:"image"},{anchor:"huggingface_hub.InferenceClient.object_detection.model",description:`<strong>model</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The model to use for object detection. Can be a model ID hosted on the Hugging Face Hub or a URL to a
deployed Inference Endpoint. If not provided, the default recommended model for object detection (DETR) will be used.`,name:"model"}],source:"https://github.com/huggingface/huggingface_hub/blob/v0.19.0/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/v0.19.0/en/package_reference/inference_client#huggingface_hub.InferenceTimeoutError"
>InferenceTimeoutError</a> —
If the model is unavailable or the request times out.</li>
<li><code>HTTPError</code> —
If the request fails with an HTTP error status code other than HTTP 503.</li>
<li><code>ValueError</code> —
If the request output is not a List.</li>
</ul>
`,raiseType:`<script context="module">export const metadata = 'undefined';<\/script>


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


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


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


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


<p><a
  href="/docs/huggingface_hub/v0.19.0/en/package_reference/inference_client#huggingface_hub.InferenceTimeoutError"
>InferenceTimeoutError</a> or <code>HTTPError</code></p>
`}}),Ps=new M({props:{name:"question_answering",anchor:"huggingface_hub.InferenceClient.question_answering",parameters:[{name:"question",val:": str"},{name:"context",val:": str"},{name:"model",val:": typing.Optional[str] = None"}],parametersDescription:[{anchor:"huggingface_hub.InferenceClient.question_answering.question",description:`<strong>question</strong> (<code>str</code>) &#x2014;
Question to be answered.`,name:"question"},{anchor:"huggingface_hub.InferenceClient.question_answering.context",description:`<strong>context</strong> (<code>str</code>) &#x2014;
The context of the question.`,name:"context"},{anchor:"huggingface_hub.InferenceClient.question_answering.model",description:`<strong>model</strong> (<code>str</code>) &#x2014;
The model to use for the question answering task. Can be a model ID hosted on the Hugging Face Hub or a URL to
a deployed Inference Endpoint.`,name:"model"}],source:"https://github.com/huggingface/huggingface_hub/blob/v0.19.0/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/v0.19.0/en/package_reference/inference_client#huggingface_hub.InferenceTimeoutError"
>InferenceTimeoutError</a> —
If the model is unavailable or the request times out.</li>
<li><code>HTTPError</code> —
If the request fails with an HTTP error status code other than HTTP 503.</li>
</ul>
`,raiseType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/huggingface_hub/v0.19.0/en/package_reference/inference_client#huggingface_hub.InferenceTimeoutError"
>InferenceTimeoutError</a> or <code>HTTPError</code></p>
`}}),vt=new Z({props:{anchor:"huggingface_hub.InferenceClient.question_answering.example",$$slots:{default:[zh]},$$scope:{ctx:$}}}),Ls=new M({props:{name:"sentence_similarity",anchor:"huggingface_hub.InferenceClient.sentence_similarity",parameters:[{name:"sentence",val:": str"},{name:"other_sentences",val:": typing.List[str]"},{name:"model",val:": typing.Optional[str] = None"}],parametersDescription:[{anchor:"huggingface_hub.InferenceClient.sentence_similarity.sentence",description:`<strong>sentence</strong> (<code>str</code>) &#x2014;
The main sentence to compare to others.`,name:"sentence"},{anchor:"huggingface_hub.InferenceClient.sentence_similarity.other_sentences",description:`<strong>other_sentences</strong> (<code>List[str]</code>) &#x2014;
The list of sentences to compare to.`,name:"other_sentences"},{anchor:"huggingface_hub.InferenceClient.sentence_similarity.model",description:`<strong>model</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The model to use for the conversational task. Can be a model ID hosted on the Hugging Face Hub or a URL to
a deployed Inference Endpoint. If not provided, the default recommended conversational model will be used.
Defaults to None.`,name:"model"}],source:"https://github.com/huggingface/huggingface_hub/blob/v0.19.0/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/v0.19.0/en/package_reference/inference_client#huggingface_hub.InferenceTimeoutError"
>InferenceTimeoutError</a> —
If the model is unavailable or the request times out.</li>
<li><code>HTTPError</code> —
If the request fails with an HTTP error status code other than HTTP 503.</li>
</ul>
`,raiseType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/huggingface_hub/v0.19.0/en/package_reference/inference_client#huggingface_hub.InferenceTimeoutError"
>InferenceTimeoutError</a> or <code>HTTPError</code></p>
`}}),Mt=new Z({props:{anchor:"huggingface_hub.InferenceClient.sentence_similarity.example",$$slots:{default:[Oh]},$$scope:{ctx:$}}}),Qs=new M({props:{name:"summarization",anchor:"huggingface_hub.InferenceClient.summarization",parameters:[{name:"text",val:": str"},{name:"parameters",val:": typing.Union[typing.Dict[str, typing.Any], NoneType] = None"},{name:"model",val:": typing.Optional[str] = None"}],parametersDescription:[{anchor:"huggingface_hub.InferenceClient.summarization.text",description:`<strong>text</strong> (<code>str</code>) &#x2014;
The input text to summarize.`,name:"text"},{anchor:"huggingface_hub.InferenceClient.summarization.parameters",description:`<strong>parameters</strong> (<code>Dict[str, Any]</code>, <em>optional</em>) &#x2014;
Additional parameters for summarization. Check out this <a href="https://huggingface.co/docs/api-inference/detailed_parameters#summarization-task" rel="nofollow">page</a>
for more details.`,name:"parameters"},{anchor:"huggingface_hub.InferenceClient.summarization.model",description:`<strong>model</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The model to use for inference. Can be a model ID hosted on the Hugging Face Hub or a URL to a deployed
Inference Endpoint. This parameter overrides the model defined at the instance level. Defaults to None.`,name:"model"}],source:"https://github.com/huggingface/huggingface_hub/blob/v0.19.0/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/v0.19.0/en/package_reference/inference_client#huggingface_hub.InferenceTimeoutError"
>InferenceTimeoutError</a> —
If the model is unavailable or the request times out.</li>
<li><code>HTTPError</code> —
If the request fails with an HTTP error status code other than HTTP 503.</li>
</ul>
`,raiseType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/huggingface_hub/v0.19.0/en/package_reference/inference_client#huggingface_hub.InferenceTimeoutError"
>InferenceTimeoutError</a> or <code>HTTPError</code></p>
`}}),wt=new Z({props:{anchor:"huggingface_hub.InferenceClient.summarization.example",$$slots:{default:[Kh]},$$scope:{ctx:$}}}),Fs=new M({props:{name:"table_question_answering",anchor:"huggingface_hub.InferenceClient.table_question_answering",parameters:[{name:"table",val:": typing.Dict[str, typing.Any]"},{name:"query",val:": str"},{name:"model",val:": typing.Optional[str] = None"}],parametersDescription:[{anchor:"huggingface_hub.InferenceClient.table_question_answering.table",description:`<strong>table</strong> (<code>str</code>) &#x2014;
A table of data represented as a dict of lists where entries are headers and the lists are all the
values, all lists must have the same size.`,name:"table"},{anchor:"huggingface_hub.InferenceClient.table_question_answering.query",description:`<strong>query</strong> (<code>str</code>) &#x2014;
The query in plain text that you want to ask the table.`,name:"query"},{anchor:"huggingface_hub.InferenceClient.table_question_answering.model",description:`<strong>model</strong> (<code>str</code>) &#x2014;
The model to use for the table-question-answering task. Can be a model ID hosted on the Hugging Face
Hub or a URL to a deployed Inference Endpoint.`,name:"model"}],source:"https://github.com/huggingface/huggingface_hub/blob/v0.19.0/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/v0.19.0/en/package_reference/inference_client#huggingface_hub.InferenceTimeoutError"
>InferenceTimeoutError</a> —
If the model is unavailable or the request times out.</li>
<li><code>HTTPError</code> —
If the request fails with an HTTP error status code other than HTTP 503.</li>
</ul>
`,raiseType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/huggingface_hub/v0.19.0/en/package_reference/inference_client#huggingface_hub.InferenceTimeoutError"
>InferenceTimeoutError</a> or <code>HTTPError</code></p>
`}}),Ct=new Z({props:{anchor:"huggingface_hub.InferenceClient.table_question_answering.example",$$slots:{default:[em]},$$scope:{ctx:$}}}),Ss=new M({props:{name:"tabular_classification",anchor:"huggingface_hub.InferenceClient.tabular_classification",parameters:[{name:"table",val:": typing.Dict[str, typing.Any]"},{name:"model",val:": str"}],parametersDescription:[{anchor:"huggingface_hub.InferenceClient.tabular_classification.table",description:`<strong>table</strong> (<code>Dict[str, Any]</code>) &#x2014;
Set of attributes to classify.`,name:"table"},{anchor:"huggingface_hub.InferenceClient.tabular_classification.model",description:`<strong>model</strong> (<code>str</code>) &#x2014;
The model to use for the tabular-classification task. Can be a model ID hosted on the Hugging Face Hub or a URL to
a deployed Inference Endpoint.`,name:"model"}],source:"https://github.com/huggingface/huggingface_hub/blob/v0.19.0/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/v0.19.0/en/package_reference/inference_client#huggingface_hub.InferenceTimeoutError"
>InferenceTimeoutError</a> —
If the model is unavailable or the request times out.</li>
<li><code>HTTPError</code> —
If the request fails with an HTTP error status code other than HTTP 503.</li>
</ul>
`,raiseType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/huggingface_hub/v0.19.0/en/package_reference/inference_client#huggingface_hub.InferenceTimeoutError"
>InferenceTimeoutError</a> or <code>HTTPError</code></p>
`}}),Jt=new Z({props:{anchor:"huggingface_hub.InferenceClient.tabular_classification.example",$$slots:{default:[nm]},$$scope:{ctx:$}}}),Xs=new M({props:{name:"tabular_regression",anchor:"huggingface_hub.InferenceClient.tabular_regression",parameters:[{name:"table",val:": typing.Dict[str, typing.Any]"},{name:"model",val:": str"}],parametersDescription:[{anchor:"huggingface_hub.InferenceClient.tabular_regression.table",description:`<strong>table</strong> (<code>Dict[str, Any]</code>) &#x2014;
Set of attributes stored in a table. The attributes used to predict the target can be both numerical and categorical.`,name:"table"},{anchor:"huggingface_hub.InferenceClient.tabular_regression.model",description:`<strong>model</strong> (<code>str</code>) &#x2014;
The model to use for the tabular-regression task. Can be a model ID hosted on the Hugging Face Hub or a URL to
a deployed Inference Endpoint.`,name:"model"}],source:"https://github.com/huggingface/huggingface_hub/blob/v0.19.0/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/v0.19.0/en/package_reference/inference_client#huggingface_hub.InferenceTimeoutError"
>InferenceTimeoutError</a> —
If the model is unavailable or the request times out.</li>
<li><code>HTTPError</code> —
If the request fails with an HTTP error status code other than HTTP 503.</li>
</ul>
`,raiseType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/huggingface_hub/v0.19.0/en/package_reference/inference_client#huggingface_hub.InferenceTimeoutError"
>InferenceTimeoutError</a> or <code>HTTPError</code></p>
`}}),Ut=new Z({props:{anchor:"huggingface_hub.InferenceClient.tabular_regression.example",$$slots:{default:[tm]},$$scope:{ctx:$}}}),zs=new M({props:{name:"text_classification",anchor:"huggingface_hub.InferenceClient.text_classification",parameters:[{name:"text",val:": str"},{name:"model",val:": typing.Optional[str] = None"}],parametersDescription:[{anchor:"huggingface_hub.InferenceClient.text_classification.text",description:`<strong>text</strong> (<code>str</code>) &#x2014;
A string to be classified.`,name:"text"},{anchor:"huggingface_hub.InferenceClient.text_classification.model",description:`<strong>model</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The model to use for the text classification task. Can be a model ID hosted on the Hugging Face Hub or a URL to
a deployed Inference Endpoint. If not provided, the default recommended text classification model will be used.
Defaults to None.`,name:"model"}],source:"https://github.com/huggingface/huggingface_hub/blob/v0.19.0/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/v0.19.0/en/package_reference/inference_client#huggingface_hub.InferenceTimeoutError"
>InferenceTimeoutError</a> —
If the model is unavailable or the request times out.</li>
<li><code>HTTPError</code> —
If the request fails with an HTTP error status code other than HTTP 503.</li>
</ul>
`,raiseType:`<script context="module">export const metadata = 'undefined';<\/script>


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


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


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


<p><code>ValidationError</code> or <a
  href="/docs/huggingface_hub/v0.19.0/en/package_reference/inference_client#huggingface_hub.InferenceTimeoutError"
>InferenceTimeoutError</a> or <code>HTTPError</code></p>
`}}),qt=new Z({props:{anchor:"huggingface_hub.InferenceClient.text_generation.example",$$slots:{default:[am]},$$scope:{ctx:$}}}),Ks=new M({props:{name:"text_to_image",anchor:"huggingface_hub.InferenceClient.text_to_image",parameters:[{name:"prompt",val:": str"},{name:"negative_prompt",val:": typing.Optional[str] = None"},{name:"height",val:": typing.Optional[float] = None"},{name:"width",val:": typing.Optional[float] = None"},{name:"num_inference_steps",val:": typing.Optional[float] = None"},{name:"guidance_scale",val:": typing.Optional[float] = None"},{name:"model",val:": typing.Optional[str] = None"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"huggingface_hub.InferenceClient.text_to_image.prompt",description:`<strong>prompt</strong> (<code>str</code>) &#x2014;
The prompt to generate an image from.`,name:"prompt"},{anchor:"huggingface_hub.InferenceClient.text_to_image.negative_prompt",description:`<strong>negative_prompt</strong> (<code>str</code>, <em>optional</em>) &#x2014;
An optional negative prompt for the image generation.`,name:"negative_prompt"},{anchor:"huggingface_hub.InferenceClient.text_to_image.height",description:`<strong>height</strong> (<code>float</code>, <em>optional</em>) &#x2014;
The height in pixels of the image to generate.`,name:"height"},{anchor:"huggingface_hub.InferenceClient.text_to_image.width",description:`<strong>width</strong> (<code>float</code>, <em>optional</em>) &#x2014;
The width in pixels of the image to generate.`,name:"width"},{anchor:"huggingface_hub.InferenceClient.text_to_image.num_inference_steps",description:`<strong>num_inference_steps</strong> (<code>int</code>, <em>optional</em>) &#x2014;
The number of denoising steps. More denoising steps usually lead to a higher quality image at the
expense of slower inference.`,name:"num_inference_steps"},{anchor:"huggingface_hub.InferenceClient.text_to_image.guidance_scale",description:`<strong>guidance_scale</strong> (<code>float</code>, <em>optional</em>) &#x2014;
Higher guidance scale encourages to generate images that are closely linked to the text <code>prompt</code>,
usually at the expense of lower image quality.`,name:"guidance_scale"},{anchor:"huggingface_hub.InferenceClient.text_to_image.model",description:`<strong>model</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The model to use for inference. Can be a model ID hosted on the Hugging Face Hub or a URL to a deployed
Inference Endpoint. This parameter overrides the model defined at the instance level. Defaults to None.`,name:"model"}],source:"https://github.com/huggingface/huggingface_hub/blob/v0.19.0/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/v0.19.0/en/package_reference/inference_client#huggingface_hub.InferenceTimeoutError"
>InferenceTimeoutError</a> —
If the model is unavailable or the request times out.</li>
<li><code>HTTPError</code> —
If the request fails with an HTTP error status code other than HTTP 503.</li>
</ul>
`,raiseType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/huggingface_hub/v0.19.0/en/package_reference/inference_client#huggingface_hub.InferenceTimeoutError"
>InferenceTimeoutError</a> or <code>HTTPError</code></p>
`}}),Zt=new ae({props:{warning:!0,$$slots:{default:[om]},$$scope:{ctx:$}}}),Et=new Z({props:{anchor:"huggingface_hub.InferenceClient.text_to_image.example",$$slots:{default:[rm]},$$scope:{ctx:$}}}),ea=new M({props:{name:"text_to_speech",anchor:"huggingface_hub.InferenceClient.text_to_speech",parameters:[{name:"text",val:": str"},{name:"model",val:": typing.Optional[str] = None"}],parametersDescription:[{anchor:"huggingface_hub.InferenceClient.text_to_speech.text",description:`<strong>text</strong> (<code>str</code>) &#x2014;
The text to synthesize.`,name:"text"},{anchor:"huggingface_hub.InferenceClient.text_to_speech.model",description:`<strong>model</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The model to use for inference. Can be a model ID hosted on the Hugging Face Hub or a URL to a deployed
Inference Endpoint. This parameter overrides the model defined at the instance level. Defaults to None.`,name:"model"}],source:"https://github.com/huggingface/huggingface_hub/blob/v0.19.0/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/v0.19.0/en/package_reference/inference_client#huggingface_hub.InferenceTimeoutError"
>InferenceTimeoutError</a> —
If the model is unavailable or the request times out.</li>
<li><code>HTTPError</code> —
If the request fails with an HTTP error status code other than HTTP 503.</li>
</ul>
`,raiseType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/huggingface_hub/v0.19.0/en/package_reference/inference_client#huggingface_hub.InferenceTimeoutError"
>InferenceTimeoutError</a> or <code>HTTPError</code></p>
`}}),Wt=new Z({props:{anchor:"huggingface_hub.InferenceClient.text_to_speech.example",$$slots:{default:[lm]},$$scope:{ctx:$}}}),na=new M({props:{name:"token_classification",anchor:"huggingface_hub.InferenceClient.token_classification",parameters:[{name:"text",val:": str"},{name:"model",val:": typing.Optional[str] = None"}],parametersDescription:[{anchor:"huggingface_hub.InferenceClient.token_classification.text",description:`<strong>text</strong> (<code>str</code>) &#x2014;
A string to be classified.`,name:"text"},{anchor:"huggingface_hub.InferenceClient.token_classification.model",description:`<strong>model</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The model to use for the token classification task. Can be a model ID hosted on the Hugging Face Hub or a URL to
a deployed Inference Endpoint. If not provided, the default recommended token classification model will be used.
Defaults to None.`,name:"model"}],source:"https://github.com/huggingface/huggingface_hub/blob/v0.19.0/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/v0.19.0/en/package_reference/inference_client#huggingface_hub.InferenceTimeoutError"
>InferenceTimeoutError</a> —
If the model is unavailable or the request times out.</li>
<li><code>HTTPError</code> —
If the request fails with an HTTP error status code other than HTTP 503.</li>
</ul>
`,raiseType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/huggingface_hub/v0.19.0/en/package_reference/inference_client#huggingface_hub.InferenceTimeoutError"
>InferenceTimeoutError</a> or <code>HTTPError</code></p>
`}}),Nt=new Z({props:{anchor:"huggingface_hub.InferenceClient.token_classification.example",$$slots:{default:[im]},$$scope:{ctx:$}}}),ta=new M({props:{name:"translation",anchor:"huggingface_hub.InferenceClient.translation",parameters:[{name:"text",val:": str"},{name:"model",val:": typing.Optional[str] = None"}],parametersDescription:[{anchor:"huggingface_hub.InferenceClient.translation.text",description:`<strong>text</strong> (<code>str</code>) &#x2014;
A string to be translated.`,name:"text"},{anchor:"huggingface_hub.InferenceClient.translation.model",description:`<strong>model</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The model to use for the translation task. Can be a model ID hosted on the Hugging Face Hub or a URL to
a deployed Inference Endpoint. If not provided, the default recommended translation model will be used.
Defaults to None.`,name:"model"}],source:"https://github.com/huggingface/huggingface_hub/blob/v0.19.0/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/v0.19.0/en/package_reference/inference_client#huggingface_hub.InferenceTimeoutError"
>InferenceTimeoutError</a> —
If the model is unavailable or the request times out.</li>
<li><code>HTTPError</code> —
If the request fails with an HTTP error status code other than HTTP 503.</li>
</ul>
`,raiseType:`<script context="module">export const metadata = 'undefined';<\/script>


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


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


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


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


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


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


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


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


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


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


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


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


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


<p><a
  href="/docs/huggingface_hub/v0.19.0/en/package_reference/inference_client#huggingface_hub.InferenceTimeoutError"
>InferenceTimeoutError</a> or <code>aiohttp.ClientResponseError</code></p>
`}}),Rt=new Z({props:{anchor:"huggingface_hub.AsyncInferenceClient.audio_classification.example",$$slots:{default:[dm]},$$scope:{ctx:$}}}),ga=new M({props:{name:"automatic_speech_recognition",anchor:"huggingface_hub.AsyncInferenceClient.automatic_speech_recognition",parameters:[{name:"audio",val:": typing.Union[bytes, typing.BinaryIO, str, pathlib.Path]"},{name:"model",val:": typing.Optional[str] = None"}],parametersDescription:[{anchor:"huggingface_hub.AsyncInferenceClient.automatic_speech_recognition.audio",description:`<strong>audio</strong> (Union[str, Path, bytes, BinaryIO]) &#x2014;
The content to transcribe. It can be raw audio bytes, local audio file, or a URL to an audio file.`,name:"audio"},{anchor:"huggingface_hub.AsyncInferenceClient.automatic_speech_recognition.model",description:`<strong>model</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The model to use for ASR. Can be a model ID hosted on the Hugging Face Hub or a URL to a deployed
Inference Endpoint. If not provided, the default recommended model for ASR will be used.`,name:"model"}],source:"https://github.com/huggingface/huggingface_hub/blob/v0.19.0/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/v0.19.0/en/package_reference/inference_client#huggingface_hub.InferenceTimeoutError"
>InferenceTimeoutError</a> —
If the model is unavailable or the request times out.</li>
<li><code>aiohttp.ClientResponseError</code> —
If the request fails with an HTTP error status code other than HTTP 503.</li>
</ul>
`,raiseType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/huggingface_hub/v0.19.0/en/package_reference/inference_client#huggingface_hub.InferenceTimeoutError"
>InferenceTimeoutError</a> or <code>aiohttp.ClientResponseError</code></p>
`}}),Bt=new Z({props:{anchor:"huggingface_hub.AsyncInferenceClient.automatic_speech_recognition.example",$$slots:{default:[hm]},$$scope:{ctx:$}}}),ua=new M({props:{name:"conversational",anchor:"huggingface_hub.AsyncInferenceClient.conversational",parameters:[{name:"text",val:": str"},{name:"generated_responses",val:": typing.Optional[typing.List[str]] = None"},{name:"past_user_inputs",val:": typing.Optional[typing.List[str]] = None"},{name:"parameters",val:": typing.Union[typing.Dict[str, typing.Any], NoneType] = None"},{name:"model",val:": typing.Optional[str] = None"}],parametersDescription:[{anchor:"huggingface_hub.AsyncInferenceClient.conversational.text",description:`<strong>text</strong> (<code>str</code>) &#x2014;
The last input from the user in the conversation.`,name:"text"},{anchor:"huggingface_hub.AsyncInferenceClient.conversational.generated_responses",description:`<strong>generated_responses</strong> (<code>List[str]</code>, <em>optional</em>) &#x2014;
A list of strings corresponding to the earlier replies from the model. Defaults to None.`,name:"generated_responses"},{anchor:"huggingface_hub.AsyncInferenceClient.conversational.past_user_inputs",description:`<strong>past_user_inputs</strong> (<code>List[str]</code>, <em>optional</em>) &#x2014;
A list of strings corresponding to the earlier replies from the user. Should be the same length as
<code>generated_responses</code>. Defaults to None.`,name:"past_user_inputs"},{anchor:"huggingface_hub.AsyncInferenceClient.conversational.parameters",description:`<strong>parameters</strong> (<code>Dict[str, Any]</code>, <em>optional</em>) &#x2014;
Additional parameters for the conversational task. Defaults to None. For more details about the available
parameters, please refer to <a href="https://huggingface.co/docs/api-inference/detailed_parameters#conversational-task" rel="nofollow">this page</a>`,name:"parameters"},{anchor:"huggingface_hub.AsyncInferenceClient.conversational.model",description:`<strong>model</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The model to use for the conversational task. Can be a model ID hosted on the Hugging Face Hub or a URL to
a deployed Inference Endpoint. If not provided, the default recommended conversational model will be used.
Defaults to None.`,name:"model"}],source:"https://github.com/huggingface/huggingface_hub/blob/v0.19.0/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/v0.19.0/en/package_reference/inference_client#huggingface_hub.InferenceTimeoutError"
>InferenceTimeoutError</a> —
If the model is unavailable or the request times out.</li>
<li><code>aiohttp.ClientResponseError</code> —
If the request fails with an HTTP error status code other than HTTP 503.</li>
</ul>
`,raiseType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/huggingface_hub/v0.19.0/en/package_reference/inference_client#huggingface_hub.InferenceTimeoutError"
>InferenceTimeoutError</a> or <code>aiohttp.ClientResponseError</code></p>
`}}),Yt=new Z({props:{anchor:"huggingface_hub.AsyncInferenceClient.conversational.example",$$slots:{default:[mm]},$$scope:{ctx:$}}}),da=new M({props:{name:"document_question_answering",anchor:"huggingface_hub.AsyncInferenceClient.document_question_answering",parameters:[{name:"image",val:": typing.Union[bytes, typing.BinaryIO, str, pathlib.Path]"},{name:"question",val:": str"},{name:"model",val:": typing.Optional[str] = None"}],parametersDescription:[{anchor:"huggingface_hub.AsyncInferenceClient.document_question_answering.image",description:`<strong>image</strong> (<code>Union[str, Path, bytes, BinaryIO]</code>) &#x2014;
The input image for the context. It can be raw bytes, an image file, or a URL to an online image.`,name:"image"},{anchor:"huggingface_hub.AsyncInferenceClient.document_question_answering.question",description:`<strong>question</strong> (<code>str</code>) &#x2014;
Question to be answered.`,name:"question"},{anchor:"huggingface_hub.AsyncInferenceClient.document_question_answering.model",description:`<strong>model</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The model to use for the document question answering task. Can be a model ID hosted on the Hugging Face Hub or a URL to
a deployed Inference Endpoint. If not provided, the default recommended document question answering model will be used.
Defaults to None.`,name:"model"}],source:"https://github.com/huggingface/huggingface_hub/blob/v0.19.0/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/v0.19.0/en/package_reference/inference_client#huggingface_hub.InferenceTimeoutError"
>InferenceTimeoutError</a> —
If the model is unavailable or the request times out.</li>
<li><code>aiohttp.ClientResponseError</code> —
If the request fails with an HTTP error status code other than HTTP 503.</li>
</ul>
`,raiseType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/huggingface_hub/v0.19.0/en/package_reference/inference_client#huggingface_hub.InferenceTimeoutError"
>InferenceTimeoutError</a> or <code>aiohttp.ClientResponseError</code></p>
`}}),Ht=new Z({props:{anchor:"huggingface_hub.AsyncInferenceClient.document_question_answering.example",$$slots:{default:[fm]},$$scope:{ctx:$}}}),ha=new M({props:{name:"feature_extraction",anchor:"huggingface_hub.AsyncInferenceClient.feature_extraction",parameters:[{name:"text",val:": str"},{name:"model",val:": typing.Optional[str] = None"}],parametersDescription:[{anchor:"huggingface_hub.AsyncInferenceClient.feature_extraction.text",description:`<strong>text</strong> (<code>str</code>) &#x2014;
The text to embed.`,name:"text"},{anchor:"huggingface_hub.AsyncInferenceClient.feature_extraction.model",description:`<strong>model</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The model to use for the conversational task. Can be a model ID hosted on the Hugging Face Hub or a URL to
a deployed Inference Endpoint. If not provided, the default recommended conversational model will be used.
Defaults to None.`,name:"model"}],source:"https://github.com/huggingface/huggingface_hub/blob/v0.19.0/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/v0.19.0/en/package_reference/inference_client#huggingface_hub.InferenceTimeoutError"
>InferenceTimeoutError</a> —
If the model is unavailable or the request times out.</li>
<li><code>aiohttp.ClientResponseError</code> —
If the request fails with an HTTP error status code other than HTTP 503.</li>
</ul>
`,raiseType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/huggingface_hub/v0.19.0/en/package_reference/inference_client#huggingface_hub.InferenceTimeoutError"
>InferenceTimeoutError</a> or <code>aiohttp.ClientResponseError</code></p>
`}}),Pt=new Z({props:{anchor:"huggingface_hub.AsyncInferenceClient.feature_extraction.example",$$slots:{default:[bm]},$$scope:{ctx:$}}}),ma=new M({props:{name:"fill_mask",anchor:"huggingface_hub.AsyncInferenceClient.fill_mask",parameters:[{name:"text",val:": str"},{name:"model",val:": typing.Optional[str] = None"}],parametersDescription:[{anchor:"huggingface_hub.AsyncInferenceClient.fill_mask.text",description:`<strong>text</strong> (<code>str</code>) &#x2014;
a string to be filled from, must contain the [MASK] token (check model card for exact name of the mask).`,name:"text"},{anchor:"huggingface_hub.AsyncInferenceClient.fill_mask.model",description:`<strong>model</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The model to use for the fill mask task. Can be a model ID hosted on the Hugging Face Hub or a URL to
a deployed Inference Endpoint. If not provided, the default recommended fill mask model will be used.
Defaults to None.`,name:"model"}],source:"https://github.com/huggingface/huggingface_hub/blob/v0.19.0/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/v0.19.0/en/package_reference/inference_client#huggingface_hub.InferenceTimeoutError"
>InferenceTimeoutError</a> —
If the model is unavailable or the request times out.</li>
<li><code>aiohttp.ClientResponseError</code> —
If the request fails with an HTTP error status code other than HTTP 503.</li>
</ul>
`,raiseType:`<script context="module">export const metadata = 'undefined';<\/script>


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


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


<p><code>ModelStatus</code></p>
`}}),Qt=new ae({props:{$$slots:{default:[ym]},$$scope:{ctx:$}}}),Ft=new Z({props:{anchor:"huggingface_hub.AsyncInferenceClient.get_model_status.example",$$slots:{default:[xm]},$$scope:{ctx:$}}}),ba=new M({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/v0.19.0/src/huggingface_hub/inference/_generated/_async_client.py#L1917",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


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


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


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


<p><code>ValueError</code></p>
`}}),_a=new M({props:{name:"image_classification",anchor:"huggingface_hub.AsyncInferenceClient.image_classification",parameters:[{name:"image",val:": typing.Union[bytes, typing.BinaryIO, str, pathlib.Path]"},{name:"model",val:": typing.Optional[str] = None"}],parametersDescription:[{anchor:"huggingface_hub.AsyncInferenceClient.image_classification.image",description:`<strong>image</strong> (<code>Union[str, Path, bytes, BinaryIO]</code>) &#x2014;
The image to classify. It can be raw bytes, an image file, or a URL to an online image.`,name:"image"},{anchor:"huggingface_hub.AsyncInferenceClient.image_classification.model",description:`<strong>model</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The model to use for image classification. Can be a model ID hosted on the Hugging Face Hub or a URL to a
deployed Inference Endpoint. If not provided, the default recommended model for image classification will be used.`,name:"model"}],source:"https://github.com/huggingface/huggingface_hub/blob/v0.19.0/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/v0.19.0/en/package_reference/inference_client#huggingface_hub.InferenceTimeoutError"
>InferenceTimeoutError</a> —
If the model is unavailable or the request times out.</li>
<li><code>aiohttp.ClientResponseError</code> —
If the request fails with an HTTP error status code other than HTTP 503.</li>
</ul>
`,raiseType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/huggingface_hub/v0.19.0/en/package_reference/inference_client#huggingface_hub.InferenceTimeoutError"
>InferenceTimeoutError</a> or <code>aiohttp.ClientResponseError</code></p>
`}}),Xt=new Z({props:{anchor:"huggingface_hub.AsyncInferenceClient.image_classification.example",$$slots:{default:[jm]},$$scope:{ctx:$}}}),ya=new M({props:{name:"image_segmentation",anchor:"huggingface_hub.AsyncInferenceClient.image_segmentation",parameters:[{name:"image",val:": typing.Union[bytes, typing.BinaryIO, str, pathlib.Path]"},{name:"model",val:": typing.Optional[str] = None"}],parametersDescription:[{anchor:"huggingface_hub.AsyncInferenceClient.image_segmentation.image",description:`<strong>image</strong> (<code>Union[str, Path, bytes, BinaryIO]</code>) &#x2014;
The image to segment. It can be raw bytes, an image file, or a URL to an online image.`,name:"image"},{anchor:"huggingface_hub.AsyncInferenceClient.image_segmentation.model",description:`<strong>model</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The model to use for image segmentation. Can be a model ID hosted on the Hugging Face Hub or a URL to a
deployed Inference Endpoint. If not provided, the default recommended model for image segmentation will be used.`,name:"model"}],source:"https://github.com/huggingface/huggingface_hub/blob/v0.19.0/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/v0.19.0/en/package_reference/inference_client#huggingface_hub.InferenceTimeoutError"
>InferenceTimeoutError</a> —
If the model is unavailable or the request times out.</li>
<li><code>aiohttp.ClientResponseError</code> —
If the request fails with an HTTP error status code other than HTTP 503.</li>
</ul>
`,raiseType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/huggingface_hub/v0.19.0/en/package_reference/inference_client#huggingface_hub.InferenceTimeoutError"
>InferenceTimeoutError</a> or <code>aiohttp.ClientResponseError</code></p>
`}}),zt=new ae({props:{warning:!0,$$slots:{default:[Tm]},$$scope:{ctx:$}}}),Ot=new Z({props:{anchor:"huggingface_hub.AsyncInferenceClient.image_segmentation.example",$$slots:{default:[$m]},$$scope:{ctx:$}}}),xa=new M({props:{name:"image_to_image",anchor:"huggingface_hub.AsyncInferenceClient.image_to_image",parameters:[{name:"image",val:": typing.Union[bytes, typing.BinaryIO, str, pathlib.Path]"},{name:"prompt",val:": typing.Optional[str] = None"},{name:"negative_prompt",val:": typing.Optional[str] = None"},{name:"height",val:": typing.Optional[int] = None"},{name:"width",val:": typing.Optional[int] = None"},{name:"num_inference_steps",val:": typing.Optional[int] = None"},{name:"guidance_scale",val:": typing.Optional[float] = None"},{name:"model",val:": typing.Optional[str] = None"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"huggingface_hub.AsyncInferenceClient.image_to_image.image",description:`<strong>image</strong> (<code>Union[str, Path, bytes, BinaryIO]</code>) &#x2014;
The input image for translation. It can be raw bytes, an image file, or a URL to an online image.`,name:"image"},{anchor:"huggingface_hub.AsyncInferenceClient.image_to_image.prompt",description:`<strong>prompt</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The text prompt to guide the image generation.`,name:"prompt"},{anchor:"huggingface_hub.AsyncInferenceClient.image_to_image.negative_prompt",description:`<strong>negative_prompt</strong> (<code>str</code>, <em>optional</em>) &#x2014;
A negative prompt to guide the translation process.`,name:"negative_prompt"},{anchor:"huggingface_hub.AsyncInferenceClient.image_to_image.height",description:`<strong>height</strong> (<code>int</code>, <em>optional</em>) &#x2014;
The height in pixels of the generated image.`,name:"height"},{anchor:"huggingface_hub.AsyncInferenceClient.image_to_image.width",description:`<strong>width</strong> (<code>int</code>, <em>optional</em>) &#x2014;
The width in pixels of the generated image.`,name:"width"},{anchor:"huggingface_hub.AsyncInferenceClient.image_to_image.num_inference_steps",description:`<strong>num_inference_steps</strong> (<code>int</code>, <em>optional</em>) &#x2014;
The number of denoising steps. More denoising steps usually lead to a higher quality image at the
expense of slower inference.`,name:"num_inference_steps"},{anchor:"huggingface_hub.AsyncInferenceClient.image_to_image.guidance_scale",description:`<strong>guidance_scale</strong> (<code>float</code>, <em>optional</em>) &#x2014;
Higher guidance scale encourages to generate images that are closely linked to the text <code>prompt</code>,
usually at the expense of lower image quality.`,name:"guidance_scale"},{anchor:"huggingface_hub.AsyncInferenceClient.image_to_image.model",description:`<strong>model</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The model to use for inference. Can be a model ID hosted on the Hugging Face Hub or a URL to a deployed
Inference Endpoint. This parameter overrides the model defined at the instance level. Defaults to None.`,name:"model"}],source:"https://github.com/huggingface/huggingface_hub/blob/v0.19.0/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/v0.19.0/en/package_reference/inference_client#huggingface_hub.InferenceTimeoutError"
>InferenceTimeoutError</a> —
If the model is unavailable or the request times out.</li>
<li><code>aiohttp.ClientResponseError</code> —
If the request fails with an HTTP error status code other than HTTP 503.</li>
</ul>
`,raiseType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/huggingface_hub/v0.19.0/en/package_reference/inference_client#huggingface_hub.InferenceTimeoutError"
>InferenceTimeoutError</a> or <code>aiohttp.ClientResponseError</code></p>
`}}),Kt=new ae({props:{warning:!0,$$slots:{default:[Im]},$$scope:{ctx:$}}}),es=new Z({props:{anchor:"huggingface_hub.AsyncInferenceClient.image_to_image.example",$$slots:{default:[vm]},$$scope:{ctx:$}}}),ja=new M({props:{name:"image_to_text",anchor:"huggingface_hub.AsyncInferenceClient.image_to_text",parameters:[{name:"image",val:": typing.Union[bytes, typing.BinaryIO, str, pathlib.Path]"},{name:"model",val:": typing.Optional[str] = None"}],parametersDescription:[{anchor:"huggingface_hub.AsyncInferenceClient.image_to_text.image",description:`<strong>image</strong> (<code>Union[str, Path, bytes, BinaryIO]</code>) &#x2014;
The input image to caption. It can be raw bytes, an image file, or a URL to an online image..`,name:"image"},{anchor:"huggingface_hub.AsyncInferenceClient.image_to_text.model",description:`<strong>model</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The model to use for inference. Can be a model ID hosted on the Hugging Face Hub or a URL to a deployed
Inference Endpoint. This parameter overrides the model defined at the instance level. Defaults to None.`,name:"model"}],source:"https://github.com/huggingface/huggingface_hub/blob/v0.19.0/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/v0.19.0/en/package_reference/inference_client#huggingface_hub.InferenceTimeoutError"
>InferenceTimeoutError</a> —
If the model is unavailable or the request times out.</li>
<li><code>aiohttp.ClientResponseError</code> —
If the request fails with an HTTP error status code other than HTTP 503.</li>
</ul>
`,raiseType:`<script context="module">export const metadata = 'undefined';<\/script>


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


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


<p><code>Dict[str, List[str]]</code></p>
`}}),ts=new ae({props:{$$slots:{default:[wm]},$$scope:{ctx:$}}}),ss=new Z({props:{anchor:"huggingface_hub.AsyncInferenceClient.list_deployed_models.example",$$slots:{default:[Cm]},$$scope:{ctx:$}}}),$a=new M({props:{name:"object_detection",anchor:"huggingface_hub.AsyncInferenceClient.object_detection",parameters:[{name:"image",val:": typing.Union[bytes, typing.BinaryIO, str, pathlib.Path]"},{name:"model",val:": typing.Optional[str] = None"}],parametersDescription:[{anchor:"huggingface_hub.AsyncInferenceClient.object_detection.image",description:`<strong>image</strong> (<code>Union[str, Path, bytes, BinaryIO]</code>) &#x2014;
The image to detect objects on. It can be raw bytes, an image file, or a URL to an online image.`,name:"image"},{anchor:"huggingface_hub.AsyncInferenceClient.object_detection.model",description:`<strong>model</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The model to use for object detection. Can be a model ID hosted on the Hugging Face Hub or a URL to a
deployed Inference Endpoint. If not provided, the default recommended model for object detection (DETR) will be used.`,name:"model"}],source:"https://github.com/huggingface/huggingface_hub/blob/v0.19.0/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/v0.19.0/en/package_reference/inference_client#huggingface_hub.InferenceTimeoutError"
>InferenceTimeoutError</a> —
If the model is unavailable or the request times out.</li>
<li><code>aiohttp.ClientResponseError</code> —
If the request fails with an HTTP error status code other than HTTP 503.</li>
<li><code>ValueError</code> —
If the request output is not a List.</li>
</ul>
`,raiseType:`<script context="module">export const metadata = 'undefined';<\/script>


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


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


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


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


<p><a
  href="/docs/huggingface_hub/v0.19.0/en/package_reference/inference_client#huggingface_hub.InferenceTimeoutError"
>InferenceTimeoutError</a> or <code>aiohttp.ClientResponseError</code></p>
`}}),va=new M({props:{name:"question_answering",anchor:"huggingface_hub.AsyncInferenceClient.question_answering",parameters:[{name:"question",val:": str"},{name:"context",val:": str"},{name:"model",val:": typing.Optional[str] = None"}],parametersDescription:[{anchor:"huggingface_hub.AsyncInferenceClient.question_answering.question",description:`<strong>question</strong> (<code>str</code>) &#x2014;
Question to be answered.`,name:"question"},{anchor:"huggingface_hub.AsyncInferenceClient.question_answering.context",description:`<strong>context</strong> (<code>str</code>) &#x2014;
The context of the question.`,name:"context"},{anchor:"huggingface_hub.AsyncInferenceClient.question_answering.model",description:`<strong>model</strong> (<code>str</code>) &#x2014;
The model to use for the question answering task. Can be a model ID hosted on the Hugging Face Hub or a URL to
a deployed Inference Endpoint.`,name:"model"}],source:"https://github.com/huggingface/huggingface_hub/blob/v0.19.0/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/v0.19.0/en/package_reference/inference_client#huggingface_hub.InferenceTimeoutError"
>InferenceTimeoutError</a> —
If the model is unavailable or the request times out.</li>
<li><code>aiohttp.ClientResponseError</code> —
If the request fails with an HTTP error status code other than HTTP 503.</li>
</ul>
`,raiseType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/huggingface_hub/v0.19.0/en/package_reference/inference_client#huggingface_hub.InferenceTimeoutError"
>InferenceTimeoutError</a> or <code>aiohttp.ClientResponseError</code></p>
`}}),ls=new Z({props:{anchor:"huggingface_hub.AsyncInferenceClient.question_answering.example",$$slots:{default:[km]},$$scope:{ctx:$}}}),Ma=new M({props:{name:"sentence_similarity",anchor:"huggingface_hub.AsyncInferenceClient.sentence_similarity",parameters:[{name:"sentence",val:": str"},{name:"other_sentences",val:": typing.List[str]"},{name:"model",val:": typing.Optional[str] = None"}],parametersDescription:[{anchor:"huggingface_hub.AsyncInferenceClient.sentence_similarity.sentence",description:`<strong>sentence</strong> (<code>str</code>) &#x2014;
The main sentence to compare to others.`,name:"sentence"},{anchor:"huggingface_hub.AsyncInferenceClient.sentence_similarity.other_sentences",description:`<strong>other_sentences</strong> (<code>List[str]</code>) &#x2014;
The list of sentences to compare to.`,name:"other_sentences"},{anchor:"huggingface_hub.AsyncInferenceClient.sentence_similarity.model",description:`<strong>model</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The model to use for the conversational task. Can be a model ID hosted on the Hugging Face Hub or a URL to
a deployed Inference Endpoint. If not provided, the default recommended conversational model will be used.
Defaults to None.`,name:"model"}],source:"https://github.com/huggingface/huggingface_hub/blob/v0.19.0/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/v0.19.0/en/package_reference/inference_client#huggingface_hub.InferenceTimeoutError"
>InferenceTimeoutError</a> —
If the model is unavailable or the request times out.</li>
<li><code>aiohttp.ClientResponseError</code> —
If the request fails with an HTTP error status code other than HTTP 503.</li>
</ul>
`,raiseType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/huggingface_hub/v0.19.0/en/package_reference/inference_client#huggingface_hub.InferenceTimeoutError"
>InferenceTimeoutError</a> or <code>aiohttp.ClientResponseError</code></p>
`}}),is=new Z({props:{anchor:"huggingface_hub.AsyncInferenceClient.sentence_similarity.example",$$slots:{default:[qm]},$$scope:{ctx:$}}}),wa=new M({props:{name:"summarization",anchor:"huggingface_hub.AsyncInferenceClient.summarization",parameters:[{name:"text",val:": str"},{name:"parameters",val:": typing.Union[typing.Dict[str, typing.Any], NoneType] = None"},{name:"model",val:": typing.Optional[str] = None"}],parametersDescription:[{anchor:"huggingface_hub.AsyncInferenceClient.summarization.text",description:`<strong>text</strong> (<code>str</code>) &#x2014;
The input text to summarize.`,name:"text"},{anchor:"huggingface_hub.AsyncInferenceClient.summarization.parameters",description:`<strong>parameters</strong> (<code>Dict[str, Any]</code>, <em>optional</em>) &#x2014;
Additional parameters for summarization. Check out this <a href="https://huggingface.co/docs/api-inference/detailed_parameters#summarization-task" rel="nofollow">page</a>
for more details.`,name:"parameters"},{anchor:"huggingface_hub.AsyncInferenceClient.summarization.model",description:`<strong>model</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The model to use for inference. Can be a model ID hosted on the Hugging Face Hub or a URL to a deployed
Inference Endpoint. This parameter overrides the model defined at the instance level. Defaults to None.`,name:"model"}],source:"https://github.com/huggingface/huggingface_hub/blob/v0.19.0/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/v0.19.0/en/package_reference/inference_client#huggingface_hub.InferenceTimeoutError"
>InferenceTimeoutError</a> —
If the model is unavailable or the request times out.</li>
<li><code>aiohttp.ClientResponseError</code> —
If the request fails with an HTTP error status code other than HTTP 503.</li>
</ul>
`,raiseType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/huggingface_hub/v0.19.0/en/package_reference/inference_client#huggingface_hub.InferenceTimeoutError"
>InferenceTimeoutError</a> or <code>aiohttp.ClientResponseError</code></p>
`}}),cs=new Z({props:{anchor:"huggingface_hub.AsyncInferenceClient.summarization.example",$$slots:{default:[Zm]},$$scope:{ctx:$}}}),Ca=new M({props:{name:"table_question_answering",anchor:"huggingface_hub.AsyncInferenceClient.table_question_answering",parameters:[{name:"table",val:": typing.Dict[str, typing.Any]"},{name:"query",val:": str"},{name:"model",val:": typing.Optional[str] = None"}],parametersDescription:[{anchor:"huggingface_hub.AsyncInferenceClient.table_question_answering.table",description:`<strong>table</strong> (<code>str</code>) &#x2014;
A table of data represented as a dict of lists where entries are headers and the lists are all the
values, all lists must have the same size.`,name:"table"},{anchor:"huggingface_hub.AsyncInferenceClient.table_question_answering.query",description:`<strong>query</strong> (<code>str</code>) &#x2014;
The query in plain text that you want to ask the table.`,name:"query"},{anchor:"huggingface_hub.AsyncInferenceClient.table_question_answering.model",description:`<strong>model</strong> (<code>str</code>) &#x2014;
The model to use for the table-question-answering task. Can be a model ID hosted on the Hugging Face
Hub or a URL to a deployed Inference Endpoint.`,name:"model"}],source:"https://github.com/huggingface/huggingface_hub/blob/v0.19.0/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/v0.19.0/en/package_reference/inference_client#huggingface_hub.InferenceTimeoutError"
>InferenceTimeoutError</a> —
If the model is unavailable or the request times out.</li>
<li><code>aiohttp.ClientResponseError</code> —
If the request fails with an HTTP error status code other than HTTP 503.</li>
</ul>
`,raiseType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/huggingface_hub/v0.19.0/en/package_reference/inference_client#huggingface_hub.InferenceTimeoutError"
>InferenceTimeoutError</a> or <code>aiohttp.ClientResponseError</code></p>
`}}),ps=new Z({props:{anchor:"huggingface_hub.AsyncInferenceClient.table_question_answering.example",$$slots:{default:[Em]},$$scope:{ctx:$}}}),Ja=new M({props:{name:"tabular_classification",anchor:"huggingface_hub.AsyncInferenceClient.tabular_classification",parameters:[{name:"table",val:": typing.Dict[str, typing.Any]"},{name:"model",val:": str"}],parametersDescription:[{anchor:"huggingface_hub.AsyncInferenceClient.tabular_classification.table",description:`<strong>table</strong> (<code>Dict[str, Any]</code>) &#x2014;
Set of attributes to classify.`,name:"table"},{anchor:"huggingface_hub.AsyncInferenceClient.tabular_classification.model",description:`<strong>model</strong> (<code>str</code>) &#x2014;
The model to use for the tabular-classification task. Can be a model ID hosted on the Hugging Face Hub or a URL to
a deployed Inference Endpoint.`,name:"model"}],source:"https://github.com/huggingface/huggingface_hub/blob/v0.19.0/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/v0.19.0/en/package_reference/inference_client#huggingface_hub.InferenceTimeoutError"
>InferenceTimeoutError</a> —
If the model is unavailable or the request times out.</li>
<li><code>aiohttp.ClientResponseError</code> —
If the request fails with an HTTP error status code other than HTTP 503.</li>
</ul>
`,raiseType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/huggingface_hub/v0.19.0/en/package_reference/inference_client#huggingface_hub.InferenceTimeoutError"
>InferenceTimeoutError</a> or <code>aiohttp.ClientResponseError</code></p>
`}}),gs=new Z({props:{anchor:"huggingface_hub.AsyncInferenceClient.tabular_classification.example",$$slots:{default:[Wm]},$$scope:{ctx:$}}}),Ua=new M({props:{name:"tabular_regression",anchor:"huggingface_hub.AsyncInferenceClient.tabular_regression",parameters:[{name:"table",val:": typing.Dict[str, typing.Any]"},{name:"model",val:": str"}],parametersDescription:[{anchor:"huggingface_hub.AsyncInferenceClient.tabular_regression.table",description:`<strong>table</strong> (<code>Dict[str, Any]</code>) &#x2014;
Set of attributes stored in a table. The attributes used to predict the target can be both numerical and categorical.`,name:"table"},{anchor:"huggingface_hub.AsyncInferenceClient.tabular_regression.model",description:`<strong>model</strong> (<code>str</code>) &#x2014;
The model to use for the tabular-regression task. Can be a model ID hosted on the Hugging Face Hub or a URL to
a deployed Inference Endpoint.`,name:"model"}],source:"https://github.com/huggingface/huggingface_hub/blob/v0.19.0/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/v0.19.0/en/package_reference/inference_client#huggingface_hub.InferenceTimeoutError"
>InferenceTimeoutError</a> —
If the model is unavailable or the request times out.</li>
<li><code>aiohttp.ClientResponseError</code> —
If the request fails with an HTTP error status code other than HTTP 503.</li>
</ul>
`,raiseType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/huggingface_hub/v0.19.0/en/package_reference/inference_client#huggingface_hub.InferenceTimeoutError"
>InferenceTimeoutError</a> or <code>aiohttp.ClientResponseError</code></p>
`}}),us=new Z({props:{anchor:"huggingface_hub.AsyncInferenceClient.tabular_regression.example",$$slots:{default:[Nm]},$$scope:{ctx:$}}}),ka=new M({props:{name:"text_classification",anchor:"huggingface_hub.AsyncInferenceClient.text_classification",parameters:[{name:"text",val:": str"},{name:"model",val:": typing.Optional[str] = None"}],parametersDescription:[{anchor:"huggingface_hub.AsyncInferenceClient.text_classification.text",description:`<strong>text</strong> (<code>str</code>) &#x2014;
A string to be classified.`,name:"text"},{anchor:"huggingface_hub.AsyncInferenceClient.text_classification.model",description:`<strong>model</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The model to use for the text classification task. Can be a model ID hosted on the Hugging Face Hub or a URL to
a deployed Inference Endpoint. If not provided, the default recommended text classification model will be used.
Defaults to None.`,name:"model"}],source:"https://github.com/huggingface/huggingface_hub/blob/v0.19.0/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/v0.19.0/en/package_reference/inference_client#huggingface_hub.InferenceTimeoutError"
>InferenceTimeoutError</a> —
If the model is unavailable or the request times out.</li>
<li><code>aiohttp.ClientResponseError</code> —
If the request fails with an HTTP error status code other than HTTP 503.</li>
</ul>
`,raiseType:`<script context="module">export const metadata = 'undefined';<\/script>


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


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


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


<p><code>ValidationError</code> or <a
  href="/docs/huggingface_hub/v0.19.0/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_generation.example",$$slots:{default:[Dm]},$$scope:{ctx:$}}}),Za=new M({props:{name:"text_to_image",anchor:"huggingface_hub.AsyncInferenceClient.text_to_image",parameters:[{name:"prompt",val:": str"},{name:"negative_prompt",val:": typing.Optional[str] = None"},{name:"height",val:": typing.Optional[float] = None"},{name:"width",val:": typing.Optional[float] = None"},{name:"num_inference_steps",val:": typing.Optional[float] = None"},{name:"guidance_scale",val:": typing.Optional[float] = None"},{name:"model",val:": typing.Optional[str] = None"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"huggingface_hub.AsyncInferenceClient.text_to_image.prompt",description:`<strong>prompt</strong> (<code>str</code>) &#x2014;
The prompt to generate an image from.`,name:"prompt"},{anchor:"huggingface_hub.AsyncInferenceClient.text_to_image.negative_prompt",description:`<strong>negative_prompt</strong> (<code>str</code>, <em>optional</em>) &#x2014;
An optional negative prompt for the image generation.`,name:"negative_prompt"},{anchor:"huggingface_hub.AsyncInferenceClient.text_to_image.height",description:`<strong>height</strong> (<code>float</code>, <em>optional</em>) &#x2014;
The height in pixels of the image to generate.`,name:"height"},{anchor:"huggingface_hub.AsyncInferenceClient.text_to_image.width",description:`<strong>width</strong> (<code>float</code>, <em>optional</em>) &#x2014;
The width in pixels of the image to generate.`,name:"width"},{anchor:"huggingface_hub.AsyncInferenceClient.text_to_image.num_inference_steps",description:`<strong>num_inference_steps</strong> (<code>int</code>, <em>optional</em>) &#x2014;
The number of denoising steps. More denoising steps usually lead to a higher quality image at the
expense of slower inference.`,name:"num_inference_steps"},{anchor:"huggingface_hub.AsyncInferenceClient.text_to_image.guidance_scale",description:`<strong>guidance_scale</strong> (<code>float</code>, <em>optional</em>) &#x2014;
Higher guidance scale encourages to generate images that are closely linked to the text <code>prompt</code>,
usually at the expense of lower image quality.`,name:"guidance_scale"},{anchor:"huggingface_hub.AsyncInferenceClient.text_to_image.model",description:`<strong>model</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The model to use for inference. Can be a model ID hosted on the Hugging Face Hub or a URL to a deployed
Inference Endpoint. This parameter overrides the model defined at the instance level. Defaults to None.`,name:"model"}],source:"https://github.com/huggingface/huggingface_hub/blob/v0.19.0/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/v0.19.0/en/package_reference/inference_client#huggingface_hub.InferenceTimeoutError"
>InferenceTimeoutError</a> —
If the model is unavailable or the request times out.</li>
<li><code>aiohttp.ClientResponseError</code> —
If the request fails with an HTTP error status code other than HTTP 503.</li>
</ul>
`,raiseType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/huggingface_hub/v0.19.0/en/package_reference/inference_client#huggingface_hub.InferenceTimeoutError"
>InferenceTimeoutError</a> or <code>aiohttp.ClientResponseError</code></p>
`}}),ms=new ae({props:{warning:!0,$$slots:{default:[Vm]},$$scope:{ctx:$}}}),fs=new Z({props:{anchor:"huggingface_hub.AsyncInferenceClient.text_to_image.example",$$slots:{default:[Am]},$$scope:{ctx:$}}}),Ea=new M({props:{name:"text_to_speech",anchor:"huggingface_hub.AsyncInferenceClient.text_to_speech",parameters:[{name:"text",val:": str"},{name:"model",val:": typing.Optional[str] = None"}],parametersDescription:[{anchor:"huggingface_hub.AsyncInferenceClient.text_to_speech.text",description:`<strong>text</strong> (<code>str</code>) &#x2014;
The text to synthesize.`,name:"text"},{anchor:"huggingface_hub.AsyncInferenceClient.text_to_speech.model",description:`<strong>model</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The model to use for inference. Can be a model ID hosted on the Hugging Face Hub or a URL to a deployed
Inference Endpoint. This parameter overrides the model defined at the instance level. Defaults to None.`,name:"model"}],source:"https://github.com/huggingface/huggingface_hub/blob/v0.19.0/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/v0.19.0/en/package_reference/inference_client#huggingface_hub.InferenceTimeoutError"
>InferenceTimeoutError</a> —
If the model is unavailable or the request times out.</li>
<li><code>aiohttp.ClientResponseError</code> —
If the request fails with an HTTP error status code other than HTTP 503.</li>
</ul>
`,raiseType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/huggingface_hub/v0.19.0/en/package_reference/inference_client#huggingface_hub.InferenceTimeoutError"
>InferenceTimeoutError</a> or <code>aiohttp.ClientResponseError</code></p>
`}}),bs=new Z({props:{anchor:"huggingface_hub.AsyncInferenceClient.text_to_speech.example",$$slots:{default:[Rm]},$$scope:{ctx:$}}}),Wa=new M({props:{name:"token_classification",anchor:"huggingface_hub.AsyncInferenceClient.token_classification",parameters:[{name:"text",val:": str"},{name:"model",val:": typing.Optional[str] = None"}],parametersDescription:[{anchor:"huggingface_hub.AsyncInferenceClient.token_classification.text",description:`<strong>text</strong> (<code>str</code>) &#x2014;
A string to be classified.`,name:"text"},{anchor:"huggingface_hub.AsyncInferenceClient.token_classification.model",description:`<strong>model</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The model to use for the token classification task. Can be a model ID hosted on the Hugging Face Hub or a URL to
a deployed Inference Endpoint. If not provided, the default recommended token classification model will be used.
Defaults to None.`,name:"model"}],source:"https://github.com/huggingface/huggingface_hub/blob/v0.19.0/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/v0.19.0/en/package_reference/inference_client#huggingface_hub.InferenceTimeoutError"
>InferenceTimeoutError</a> —
If the model is unavailable or the request times out.</li>
<li><code>aiohttp.ClientResponseError</code> —
If the request fails with an HTTP error status code other than HTTP 503.</li>
</ul>
`,raiseType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/huggingface_hub/v0.19.0/en/package_reference/inference_client#huggingface_hub.InferenceTimeoutError"
>InferenceTimeoutError</a> or <code>aiohttp.ClientResponseError</code></p>
`}}),_s=new Z({props:{anchor:"huggingface_hub.AsyncInferenceClient.token_classification.example",$$slots:{default:[Bm]},$$scope:{ctx:$}}}),Na=new M({props:{name:"translation",anchor:"huggingface_hub.AsyncInferenceClient.translation",parameters:[{name:"text",val:": str"},{name:"model",val:": typing.Optional[str] = None"}],parametersDescription:[{anchor:"huggingface_hub.AsyncInferenceClient.translation.text",description:`<strong>text</strong> (<code>str</code>) &#x2014;
A string to be translated.`,name:"text"},{anchor:"huggingface_hub.AsyncInferenceClient.translation.model",description:`<strong>model</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The model to use for the translation task. Can be a model ID hosted on the Hugging Face Hub or a URL to
a deployed Inference Endpoint. If not provided, the default recommended translation model will be used.
Defaults to None.`,name:"model"}],source:"https://github.com/huggingface/huggingface_hub/blob/v0.19.0/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/v0.19.0/en/package_reference/inference_client#huggingface_hub.InferenceTimeoutError"
>InferenceTimeoutError</a> —
If the model is unavailable or the request times out.</li>
<li><code>aiohttp.ClientResponseError</code> —
If the request fails with an HTTP error status code other than HTTP 503.</li>
</ul>
`,raiseType:`<script context="module">export const metadata = 'undefined';<\/script>


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


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


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


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


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


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


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


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


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


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


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


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


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