import{s as By,o as Wy,n as J}from"../chunks/scheduler.9bc65507.js";import{S as Sy,i as Ly,g as i,s,r as f,A as Oy,h as l,f as o,c as a,j as v,u as g,x as m,k,y as n,a as d,v as u,d as T,t as b,w as y}from"../chunks/index.707bf1b6.js";import{T as wd}from"../chunks/Tip.c2ecdbf4.js";import{D as U}from"../chunks/Docstring.17db21ae.js";import{C as j}from"../chunks/CodeBlock.54a9f38d.js";import{E as P}from"../chunks/ExampleCodeBlock.4f515aa9.js";import{H as $}from"../chunks/Heading.342b1fa6.js";function Hy(x){let r,_="Examples:",h,p,w;return p=new j({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMHBpcGVsaW5lJTJDJTIwQXV0b01vZGVsRm9yVG9rZW5DbGFzc2lmaWNhdGlvbiUyQyUyMEF1dG9Ub2tlbml6ZXIlMEElMEElMjMlMjBTZW50aW1lbnQlMjBhbmFseXNpcyUyMHBpcGVsaW5lJTBBYW5hbHl6ZXIlMjAlM0QlMjBwaXBlbGluZSglMjJzZW50aW1lbnQtYW5hbHlzaXMlMjIpJTBBJTBBJTIzJTIwUXVlc3Rpb24lMjBhbnN3ZXJpbmclMjBwaXBlbGluZSUyQyUyMHNwZWNpZnlpbmclMjB0aGUlMjBjaGVja3BvaW50JTIwaWRlbnRpZmllciUwQW9yYWNsZSUyMCUzRCUyMHBpcGVsaW5lKCUwQSUyMCUyMCUyMCUyMCUyMnF1ZXN0aW9uLWFuc3dlcmluZyUyMiUyQyUyMG1vZGVsJTNEJTIyZGlzdGlsYmVydC1iYXNlLWNhc2VkLWRpc3RpbGxlZC1zcXVhZCUyMiUyQyUyMHRva2VuaXplciUzRCUyMmJlcnQtYmFzZS1jYXNlZCUyMiUwQSklMEElMEElMjMlMjBOYW1lZCUyMGVudGl0eSUyMHJlY29nbml0aW9uJTIwcGlwZWxpbmUlMkMlMjBwYXNzaW5nJTIwaW4lMjBhJTIwc3BlY2lmaWMlMjBtb2RlbCUyMGFuZCUyMHRva2VuaXplciUwQW1vZGVsJTIwJTNEJTIwQXV0b01vZGVsRm9yVG9rZW5DbGFzc2lmaWNhdGlvbi5mcm9tX3ByZXRyYWluZWQoJTIyZGJtZHolMkZiZXJ0LWxhcmdlLWNhc2VkLWZpbmV0dW5lZC1jb25sbDAzLWVuZ2xpc2glMjIpJTBBdG9rZW5pemVyJTIwJTNEJTIwQXV0b1Rva2VuaXplci5mcm9tX3ByZXRyYWluZWQoJTIyYmVydC1iYXNlLWNhc2VkJTIyKSUwQXJlY29nbml6ZXIlMjAlM0QlMjBwaXBlbGluZSglMjJuZXIlMjIlMkMlMjBtb2RlbCUzRG1vZGVsJTJDJTIwdG9rZW5pemVyJTNEdG9rZW5pemVyKQ==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> pipeline, AutoModelForTokenClassification, AutoTokenizer

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># Sentiment analysis pipeline</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>analyzer = pipeline(<span class="hljs-string">&quot;sentiment-analysis&quot;</span>)

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># Question answering pipeline, specifying the checkpoint identifier</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>oracle = pipeline(
<span class="hljs-meta">... </span>    <span class="hljs-string">&quot;question-answering&quot;</span>, model=<span class="hljs-string">&quot;distilbert-base-cased-distilled-squad&quot;</span>, tokenizer=<span class="hljs-string">&quot;bert-base-cased&quot;</span>
<span class="hljs-meta">... </span>)

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># Named entity recognition pipeline, passing in a specific model and tokenizer</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>model = AutoModelForTokenClassification.from_pretrained(<span class="hljs-string">&quot;dbmdz/bert-large-cased-finetuned-conll03-english&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>tokenizer = AutoTokenizer.from_pretrained(<span class="hljs-string">&quot;bert-base-cased&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>recognizer = pipeline(<span class="hljs-string">&quot;ner&quot;</span>, model=model, tokenizer=tokenizer)`,wrap:!1}}),{c(){r=i("p"),r.textContent=_,h=s(),f(p.$$.fragment)},l(t){r=l(t,"P",{"data-svelte-h":!0}),m(r)!=="svelte-kvfsh7"&&(r.textContent=_),h=a(t),g(p.$$.fragment,t)},m(t,M){d(t,r,M),d(t,h,M),u(p,t,M),w=!0},p:J,i(t){w||(T(p.$$.fragment,t),w=!0)},o(t){b(p.$$.fragment,t),w=!1},d(t){t&&(o(r),o(h)),y(p,t)}}}function Yy(x){let r,_=`However, this is not automatically a win for performance. It can be either a 10x speedup or 5x slowdown depending
on hardware, data and the actual model being used.`,h,p,w="Example where it’s mostly a speedup:";return{c(){r=i("p"),r.textContent=_,h=s(),p=i("p"),p.textContent=w},l(t){r=l(t,"P",{"data-svelte-h":!0}),m(r)!=="svelte-gpletg"&&(r.textContent=_),h=a(t),p=l(t,"P",{"data-svelte-h":!0}),m(p)!=="svelte-1aumu59"&&(p.textContent=w)},m(t,M){d(t,r,M),d(t,h,M),d(t,p,M)},p:J,d(t){t&&(o(r),o(h),o(p))}}}function Ey(x){let r,_="Example:",h,p,w;return p=new j({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMHBpcGVsaW5lJTBBJTBBY2xhc3NpZmllciUyMCUzRCUyMHBpcGVsaW5lKG1vZGVsJTNEJTIyc3VwZXJiJTJGd2F2MnZlYzItYmFzZS1zdXBlcmIta3MlMjIpJTBBY2xhc3NpZmllciglMjJodHRwcyUzQSUyRiUyRmh1Z2dpbmdmYWNlLmNvJTJGZGF0YXNldHMlMkZOYXJzaWwlMkZhc3JfZHVtbXklMkZyZXNvbHZlJTJGbWFpbiUyRjEuZmxhYyUyMik=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> pipeline

<span class="hljs-meta">&gt;&gt;&gt; </span>classifier = pipeline(model=<span class="hljs-string">&quot;superb/wav2vec2-base-superb-ks&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>classifier(<span class="hljs-string">&quot;https://huggingface.co/datasets/Narsil/asr_dummy/resolve/main/1.flac&quot;</span>)
[{<span class="hljs-string">&#x27;score&#x27;</span>: <span class="hljs-number">0.997</span>, <span class="hljs-string">&#x27;label&#x27;</span>: <span class="hljs-string">&#x27;_unknown_&#x27;</span>}, {<span class="hljs-string">&#x27;score&#x27;</span>: <span class="hljs-number">0.002</span>, <span class="hljs-string">&#x27;label&#x27;</span>: <span class="hljs-string">&#x27;left&#x27;</span>}, {<span class="hljs-string">&#x27;score&#x27;</span>: <span class="hljs-number">0.0</span>, <span class="hljs-string">&#x27;label&#x27;</span>: <span class="hljs-string">&#x27;yes&#x27;</span>}, {<span class="hljs-string">&#x27;score&#x27;</span>: <span class="hljs-number">0.0</span>, <span class="hljs-string">&#x27;label&#x27;</span>: <span class="hljs-string">&#x27;down&#x27;</span>}, {<span class="hljs-string">&#x27;score&#x27;</span>: <span class="hljs-number">0.0</span>, <span class="hljs-string">&#x27;label&#x27;</span>: <span class="hljs-string">&#x27;stop&#x27;</span>}]`,wrap:!1}}),{c(){r=i("p"),r.textContent=_,h=s(),f(p.$$.fragment)},l(t){r=l(t,"P",{"data-svelte-h":!0}),m(r)!=="svelte-11lpom8"&&(r.textContent=_),h=a(t),g(p.$$.fragment,t)},m(t,M){d(t,r,M),d(t,h,M),u(p,t,M),w=!0},p:J,i(t){w||(T(p.$$.fragment,t),w=!0)},o(t){b(p.$$.fragment,t),w=!1},d(t){t&&(o(r),o(h)),y(p,t)}}}function Qy(x){let r,_="Example:",h,p,w;return p=new j({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMHBpcGVsaW5lJTBBJTBBdHJhbnNjcmliZXIlMjAlM0QlMjBwaXBlbGluZShtb2RlbCUzRCUyMm9wZW5haSUyRndoaXNwZXItYmFzZSUyMiklMEF0cmFuc2NyaWJlciglMjJodHRwcyUzQSUyRiUyRmh1Z2dpbmdmYWNlLmNvJTJGZGF0YXNldHMlMkZOYXJzaWwlMkZhc3JfZHVtbXklMkZyZXNvbHZlJTJGbWFpbiUyRjEuZmxhYyUyMik=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> pipeline

<span class="hljs-meta">&gt;&gt;&gt; </span>transcriber = pipeline(model=<span class="hljs-string">&quot;openai/whisper-base&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>transcriber(<span class="hljs-string">&quot;https://huggingface.co/datasets/Narsil/asr_dummy/resolve/main/1.flac&quot;</span>)
{<span class="hljs-string">&#x27;text&#x27;</span>: <span class="hljs-string">&#x27; He hoped there would be stew for dinner, turnips and carrots and bruised potatoes and fat mutton pieces to be ladled out in thick, peppered flour-fatten sauce.&#x27;</span>}`,wrap:!1}}),{c(){r=i("p"),r.textContent=_,h=s(),f(p.$$.fragment)},l(t){r=l(t,"P",{"data-svelte-h":!0}),m(r)!=="svelte-11lpom8"&&(r.textContent=_),h=a(t),g(p.$$.fragment,t)},m(t,M){d(t,r,M),d(t,h,M),u(p,t,M),w=!0},p:J,i(t){w||(T(p.$$.fragment,t),w=!0)},o(t){b(p.$$.fragment,t),w=!1},d(t){t&&(o(r),o(h)),y(p,t)}}}function Xy(x){let r,_="Example:",h,p,w;return p=new j({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMHBpcGVsaW5lJTBBJTBBcGlwZSUyMCUzRCUyMHBpcGVsaW5lKG1vZGVsJTNEJTIyc3VubyUyRmJhcmstc21hbGwlMjIpJTBBb3V0cHV0JTIwJTNEJTIwcGlwZSglMjJIZXklMjBpdCdzJTIwSHVnZ2luZ0ZhY2UlMjBvbiUyMHRoZSUyMHBob25lISUyMiklMEElMEFhdWRpbyUyMCUzRCUyMG91dHB1dCU1QiUyMmF1ZGlvJTIyJTVEJTBBc2FtcGxpbmdfcmF0ZSUyMCUzRCUyMG91dHB1dCU1QiUyMnNhbXBsaW5nX3JhdGUlMjIlNUQ=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> pipeline

<span class="hljs-meta">&gt;&gt;&gt; </span>pipe = pipeline(model=<span class="hljs-string">&quot;suno/bark-small&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>output = pipe(<span class="hljs-string">&quot;Hey it&#x27;s HuggingFace on the phone!&quot;</span>)

<span class="hljs-meta">&gt;&gt;&gt; </span>audio = output[<span class="hljs-string">&quot;audio&quot;</span>]
<span class="hljs-meta">&gt;&gt;&gt; </span>sampling_rate = output[<span class="hljs-string">&quot;sampling_rate&quot;</span>]`,wrap:!1}}),{c(){r=i("p"),r.textContent=_,h=s(),f(p.$$.fragment)},l(t){r=l(t,"P",{"data-svelte-h":!0}),m(r)!=="svelte-11lpom8"&&(r.textContent=_),h=a(t),g(p.$$.fragment,t)},m(t,M){d(t,r,M),d(t,h,M),u(p,t,M),w=!0},p:J,i(t){w||(T(p.$$.fragment,t),w=!0)},o(t){b(p.$$.fragment,t),w=!1},d(t){t&&(o(r),o(h)),y(p,t)}}}function Ky(x){let r,_="Example:",h,p,w;return p=new j({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMHBpcGVsaW5lJTBBJTBBbXVzaWNfZ2VuZXJhdG9yJTIwJTNEJTIwcGlwZWxpbmUodGFzayUzRCUyMnRleHQtdG8tYXVkaW8lMjIlMkMlMjBtb2RlbCUzRCUyMmZhY2Vib29rJTJGbXVzaWNnZW4tc21hbGwlMjIlMkMlMjBmcmFtZXdvcmslM0QlMjJwdCUyMiklMEElMEElMjMlMjBkaXZlcnNpZnklMjB0aGUlMjBtdXNpYyUyMGdlbmVyYXRpb24lMjBieSUyMGFkZGluZyUyMHJhbmRvbW5lc3MlMjB3aXRoJTIwYSUyMGhpZ2glMjB0ZW1wZXJhdHVyZSUyMGFuZCUyMHNldCUyMGElMjBtYXhpbXVtJTIwbXVzaWMlMjBsZW5ndGglMEFnZW5lcmF0ZV9rd2FyZ3MlMjAlM0QlMjAlN0IlMEElMjAlMjAlMjAlMjAlMjJkb19zYW1wbGUlMjIlM0ElMjBUcnVlJTJDJTBBJTIwJTIwJTIwJTIwJTIydGVtcGVyYXR1cmUlMjIlM0ElMjAwLjclMkMlMEElMjAlMjAlMjAlMjAlMjJtYXhfbmV3X3Rva2VucyUyMiUzQSUyMDM1JTJDJTBBJTdEJTBBJTBBb3V0cHV0cyUyMCUzRCUyMG11c2ljX2dlbmVyYXRvciglMjJUZWNobm8lMjBtdXNpYyUyMHdpdGglMjBoaWdoJTIwbWVsb2RpYyUyMHJpZmZzJTIyJTJDJTIwZ2VuZXJhdGVfa3dhcmdzJTNEZ2VuZXJhdGVfa3dhcmdzKQ==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> pipeline

<span class="hljs-meta">&gt;&gt;&gt; </span>music_generator = pipeline(task=<span class="hljs-string">&quot;text-to-audio&quot;</span>, model=<span class="hljs-string">&quot;facebook/musicgen-small&quot;</span>, framework=<span class="hljs-string">&quot;pt&quot;</span>)

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># diversify the music generation by adding randomness with a high temperature and set a maximum music length</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>generate_kwargs = {
<span class="hljs-meta">... </span>    <span class="hljs-string">&quot;do_sample&quot;</span>: <span class="hljs-literal">True</span>,
<span class="hljs-meta">... </span>    <span class="hljs-string">&quot;temperature&quot;</span>: <span class="hljs-number">0.7</span>,
<span class="hljs-meta">... </span>    <span class="hljs-string">&quot;max_new_tokens&quot;</span>: <span class="hljs-number">35</span>,
<span class="hljs-meta">... </span>}

<span class="hljs-meta">&gt;&gt;&gt; </span>outputs = music_generator(<span class="hljs-string">&quot;Techno music with high melodic riffs&quot;</span>, generate_kwargs=generate_kwargs)`,wrap:!1}}),{c(){r=i("p"),r.textContent=_,h=s(),f(p.$$.fragment)},l(t){r=l(t,"P",{"data-svelte-h":!0}),m(r)!=="svelte-11lpom8"&&(r.textContent=_),h=a(t),g(p.$$.fragment,t)},m(t,M){d(t,r,M),d(t,h,M),u(p,t,M),w=!0},p:J,i(t){w||(T(p.$$.fragment,t),w=!0)},o(t){b(p.$$.fragment,t),w=!1},d(t){t&&(o(r),o(h)),y(p,t)}}}function ew(x){let r,_=`You can specify parameters passed to the model by using <code>TextToAudioPipeline.__call__.forward_params</code> or
<code>TextToAudioPipeline.__call__.generate_kwargs</code>.`,h,p,w;return p=new P({props:{anchor:"transformers.TextToAudioPipeline.example-2",$$slots:{default:[Ky]},$$scope:{ctx:x}}}),{c(){r=i("p"),r.innerHTML=_,h=s(),f(p.$$.fragment)},l(t){r=l(t,"P",{"data-svelte-h":!0}),m(r)!=="svelte-1g6q8re"&&(r.innerHTML=_),h=a(t),g(p.$$.fragment,t)},m(t,M){d(t,r,M),d(t,h,M),u(p,t,M),w=!0},p(t,M){const Sl={};M&2&&(Sl.$$scope={dirty:M,ctx:t}),p.$set(Sl)},i(t){w||(T(p.$$.fragment,t),w=!0)},o(t){b(p.$$.fragment,t),w=!1},d(t){t&&(o(r),o(h)),y(p,t)}}}function tw(x){let r,_="Example:",h,p,w;return p=new j({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMHBpcGVsaW5lJTBBZnJvbSUyMGRhdGFzZXRzJTIwaW1wb3J0JTIwbG9hZF9kYXRhc2V0JTBBJTBBZGF0YXNldCUyMCUzRCUyMGxvYWRfZGF0YXNldCglMjJhc2hyYXElMkZlc2M1MCUyMiklMEFhdWRpbyUyMCUzRCUyMG5leHQoaXRlcihkYXRhc2V0JTVCJTIydHJhaW4lMjIlNUQlNUIlMjJhdWRpbyUyMiU1RCkpJTVCJTIyYXJyYXklMjIlNUQlMEFjbGFzc2lmaWVyJTIwJTNEJTIwcGlwZWxpbmUodGFzayUzRCUyMnplcm8tc2hvdC1hdWRpby1jbGFzc2lmaWNhdGlvbiUyMiUyQyUyMG1vZGVsJTNEJTIybGFpb24lMkZjbGFwLWh0c2F0LXVuZnVzZWQlMjIpJTBBY2xhc3NpZmllcihhdWRpbyUyQyUyMGNhbmRpZGF0ZV9sYWJlbHMlM0QlNUIlMjJTb3VuZCUyMG9mJTIwYSUyMGRvZyUyMiUyQyUyMCUyMlNvdW5kJTIwb2YlMjB2YWNjdW0lMjBjbGVhbmVyJTIyJTVEKQ==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> pipeline
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> datasets <span class="hljs-keyword">import</span> load_dataset

<span class="hljs-meta">&gt;&gt;&gt; </span>dataset = load_dataset(<span class="hljs-string">&quot;ashraq/esc50&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>audio = <span class="hljs-built_in">next</span>(<span class="hljs-built_in">iter</span>(dataset[<span class="hljs-string">&quot;train&quot;</span>][<span class="hljs-string">&quot;audio&quot;</span>]))[<span class="hljs-string">&quot;array&quot;</span>]
<span class="hljs-meta">&gt;&gt;&gt; </span>classifier = pipeline(task=<span class="hljs-string">&quot;zero-shot-audio-classification&quot;</span>, model=<span class="hljs-string">&quot;laion/clap-htsat-unfused&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>classifier(audio, candidate_labels=[<span class="hljs-string">&quot;Sound of a dog&quot;</span>, <span class="hljs-string">&quot;Sound of vaccum cleaner&quot;</span>])
[{<span class="hljs-string">&#x27;score&#x27;</span>: <span class="hljs-number">0.9996</span>, <span class="hljs-string">&#x27;label&#x27;</span>: <span class="hljs-string">&#x27;Sound of a dog&#x27;</span>}, {<span class="hljs-string">&#x27;score&#x27;</span>: <span class="hljs-number">0.0004</span>, <span class="hljs-string">&#x27;label&#x27;</span>: <span class="hljs-string">&#x27;Sound of vaccum cleaner&#x27;</span>}]`,wrap:!1}}),{c(){r=i("p"),r.textContent=_,h=s(),f(p.$$.fragment)},l(t){r=l(t,"P",{"data-svelte-h":!0}),m(r)!=="svelte-11lpom8"&&(r.textContent=_),h=a(t),g(p.$$.fragment,t)},m(t,M){d(t,r,M),d(t,h,M),u(p,t,M),w=!0},p:J,i(t){w||(T(p.$$.fragment,t),w=!0)},o(t){b(p.$$.fragment,t),w=!1},d(t){t&&(o(r),o(h)),y(p,t)}}}function nw(x){let r,_="Example:",h,p,w;return p=new j({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMHBpcGVsaW5lJTBBJTBBZGVwdGhfZXN0aW1hdG9yJTIwJTNEJTIwcGlwZWxpbmUodGFzayUzRCUyMmRlcHRoLWVzdGltYXRpb24lMjIlMkMlMjBtb2RlbCUzRCUyMkludGVsJTJGZHB0LWxhcmdlJTIyKSUwQW91dHB1dCUyMCUzRCUyMGRlcHRoX2VzdGltYXRvciglMjJodHRwJTNBJTJGJTJGaW1hZ2VzLmNvY29kYXRhc2V0Lm9yZyUyRnZhbDIwMTclMkYwMDAwMDAwMzk3NjkuanBnJTIyKSUwQSUyMyUyMFRoaXMlMjBpcyUyMGElMjB0ZW5zb3IlMjB3aXRoJTIwdGhlJTIwdmFsdWVzJTIwYmVpbmclMjB0aGUlMjBkZXB0aCUyMGV4cHJlc3NlZCUyMGluJTIwbWV0ZXJzJTIwZm9yJTIwZWFjaCUyMHBpeGVsJTBBb3V0cHV0JTVCJTIycHJlZGljdGVkX2RlcHRoJTIyJTVELnNoYXBl",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> pipeline

<span class="hljs-meta">&gt;&gt;&gt; </span>depth_estimator = pipeline(task=<span class="hljs-string">&quot;depth-estimation&quot;</span>, model=<span class="hljs-string">&quot;Intel/dpt-large&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>output = depth_estimator(<span class="hljs-string">&quot;http://images.cocodataset.org/val2017/000000039769.jpg&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># This is a tensor with the values being the depth expressed in meters for each pixel</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>output[<span class="hljs-string">&quot;predicted_depth&quot;</span>].shape
torch.Size([<span class="hljs-number">1</span>, <span class="hljs-number">384</span>, <span class="hljs-number">384</span>])`,wrap:!1}}),{c(){r=i("p"),r.textContent=_,h=s(),f(p.$$.fragment)},l(t){r=l(t,"P",{"data-svelte-h":!0}),m(r)!=="svelte-11lpom8"&&(r.textContent=_),h=a(t),g(p.$$.fragment,t)},m(t,M){d(t,r,M),d(t,h,M),u(p,t,M),w=!0},p:J,i(t){w||(T(p.$$.fragment,t),w=!0)},o(t){b(p.$$.fragment,t),w=!1},d(t){t&&(o(r),o(h)),y(p,t)}}}function sw(x){let r,_="Example:",h,p,w;return p=new j({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMHBpcGVsaW5lJTBBJTBBY2xhc3NpZmllciUyMCUzRCUyMHBpcGVsaW5lKG1vZGVsJTNEJTIybWljcm9zb2Z0JTJGYmVpdC1iYXNlLXBhdGNoMTYtMjI0LXB0MjJrLWZ0MjJrJTIyKSUwQWNsYXNzaWZpZXIoJTIyaHR0cHMlM0ElMkYlMkZodWdnaW5nZmFjZS5jbyUyRmRhdGFzZXRzJTJGTmFyc2lsJTJGaW1hZ2VfZHVtbXklMkZyYXclMkZtYWluJTJGcGFycm90cy5wbmclMjIp",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> pipeline

<span class="hljs-meta">&gt;&gt;&gt; </span>classifier = pipeline(model=<span class="hljs-string">&quot;microsoft/beit-base-patch16-224-pt22k-ft22k&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>classifier(<span class="hljs-string">&quot;https://huggingface.co/datasets/Narsil/image_dummy/raw/main/parrots.png&quot;</span>)
[{<span class="hljs-string">&#x27;score&#x27;</span>: <span class="hljs-number">0.442</span>, <span class="hljs-string">&#x27;label&#x27;</span>: <span class="hljs-string">&#x27;macaw&#x27;</span>}, {<span class="hljs-string">&#x27;score&#x27;</span>: <span class="hljs-number">0.088</span>, <span class="hljs-string">&#x27;label&#x27;</span>: <span class="hljs-string">&#x27;popinjay&#x27;</span>}, {<span class="hljs-string">&#x27;score&#x27;</span>: <span class="hljs-number">0.075</span>, <span class="hljs-string">&#x27;label&#x27;</span>: <span class="hljs-string">&#x27;parrot&#x27;</span>}, {<span class="hljs-string">&#x27;score&#x27;</span>: <span class="hljs-number">0.073</span>, <span class="hljs-string">&#x27;label&#x27;</span>: <span class="hljs-string">&#x27;parodist, lampooner&#x27;</span>}, {<span class="hljs-string">&#x27;score&#x27;</span>: <span class="hljs-number">0.046</span>, <span class="hljs-string">&#x27;label&#x27;</span>: <span class="hljs-string">&#x27;poll, poll_parrot&#x27;</span>}]`,wrap:!1}}),{c(){r=i("p"),r.textContent=_,h=s(),f(p.$$.fragment)},l(t){r=l(t,"P",{"data-svelte-h":!0}),m(r)!=="svelte-11lpom8"&&(r.textContent=_),h=a(t),g(p.$$.fragment,t)},m(t,M){d(t,r,M),d(t,h,M),u(p,t,M),w=!0},p:J,i(t){w||(T(p.$$.fragment,t),w=!0)},o(t){b(p.$$.fragment,t),w=!1},d(t){t&&(o(r),o(h)),y(p,t)}}}function aw(x){let r,_="Example:",h,p,w;return p=new j({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMHBpcGVsaW5lJTBBJTBBc2VnbWVudGVyJTIwJTNEJTIwcGlwZWxpbmUobW9kZWwlM0QlMjJmYWNlYm9vayUyRmRldHItcmVzbmV0LTUwLXBhbm9wdGljJTIyKSUwQXNlZ21lbnRzJTIwJTNEJTIwc2VnbWVudGVyKCUyMmh0dHBzJTNBJTJGJTJGaHVnZ2luZ2ZhY2UuY28lMkZkYXRhc2V0cyUyRk5hcnNpbCUyRmltYWdlX2R1bW15JTJGcmF3JTJGbWFpbiUyRnBhcnJvdHMucG5nJTIyKSUwQWxlbihzZWdtZW50cyklMEElMEFzZWdtZW50cyU1QjAlNUQlNUIlMjJsYWJlbCUyMiU1RCUwQSUwQXNlZ21lbnRzJTVCMSU1RCU1QiUyMmxhYmVsJTIyJTVEJTBBJTBBdHlwZShzZWdtZW50cyU1QjAlNUQlNUIlMjJtYXNrJTIyJTVEKSUyMCUyMCUyMyUyMFRoaXMlMjBpcyUyMGElMjBibGFjayUyMGFuZCUyMHdoaXRlJTIwbWFzayUyMHNob3dpbmclMjB3aGVyZSUyMGlzJTIwdGhlJTIwYmlyZCUyMG9uJTIwdGhlJTIwb3JpZ2luYWwlMjBpbWFnZS4lMEElMEFzZWdtZW50cyU1QjAlNUQlNUIlMjJtYXNrJTIyJTVELnNpemU=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> pipeline

<span class="hljs-meta">&gt;&gt;&gt; </span>segmenter = pipeline(model=<span class="hljs-string">&quot;facebook/detr-resnet-50-panoptic&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>segments = segmenter(<span class="hljs-string">&quot;https://huggingface.co/datasets/Narsil/image_dummy/raw/main/parrots.png&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-built_in">len</span>(segments)
<span class="hljs-number">2</span>

<span class="hljs-meta">&gt;&gt;&gt; </span>segments[<span class="hljs-number">0</span>][<span class="hljs-string">&quot;label&quot;</span>]
<span class="hljs-string">&#x27;bird&#x27;</span>

<span class="hljs-meta">&gt;&gt;&gt; </span>segments[<span class="hljs-number">1</span>][<span class="hljs-string">&quot;label&quot;</span>]
<span class="hljs-string">&#x27;bird&#x27;</span>

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-built_in">type</span>(segments[<span class="hljs-number">0</span>][<span class="hljs-string">&quot;mask&quot;</span>])  <span class="hljs-comment"># This is a black and white mask showing where is the bird on the original image.</span>
&lt;<span class="hljs-keyword">class</span> <span class="hljs-string">&#x27;PIL.Image.Image&#x27;</span>&gt;

<span class="hljs-meta">&gt;&gt;&gt; </span>segments[<span class="hljs-number">0</span>][<span class="hljs-string">&quot;mask&quot;</span>].size
(<span class="hljs-number">768</span>, <span class="hljs-number">512</span>)`,wrap:!1}}),{c(){r=i("p"),r.textContent=_,h=s(),f(p.$$.fragment)},l(t){r=l(t,"P",{"data-svelte-h":!0}),m(r)!=="svelte-11lpom8"&&(r.textContent=_),h=a(t),g(p.$$.fragment,t)},m(t,M){d(t,r,M),d(t,h,M),u(p,t,M),w=!0},p:J,i(t){w||(T(p.$$.fragment,t),w=!0)},o(t){b(p.$$.fragment,t),w=!1},d(t){t&&(o(r),o(h)),y(p,t)}}}function ow(x){let r,_="Example:",h,p,w;return p=new j({props:{code:"ZnJvbSUyMFBJTCUyMGltcG9ydCUyMEltYWdlJTBBaW1wb3J0JTIwcmVxdWVzdHMlMEElMEFmcm9tJTIwdHJhbnNmb3JtZXJzJTIwaW1wb3J0JTIwcGlwZWxpbmUlMEElMEF1cHNjYWxlciUyMCUzRCUyMHBpcGVsaW5lKCUyMmltYWdlLXRvLWltYWdlJTIyJTJDJTIwbW9kZWwlM0QlMjJjYWlkYXMlMkZzd2luMlNSLWNsYXNzaWNhbC1zci14Mi02NCUyMiklMEFpbWclMjAlM0QlMjBJbWFnZS5vcGVuKHJlcXVlc3RzLmdldCglMjJodHRwJTNBJTJGJTJGaW1hZ2VzLmNvY29kYXRhc2V0Lm9yZyUyRnZhbDIwMTclMkYwMDAwMDAwMzk3NjkuanBnJTIyJTJDJTIwc3RyZWFtJTNEVHJ1ZSkucmF3KSUwQWltZyUyMCUzRCUyMGltZy5yZXNpemUoKDY0JTJDJTIwNjQpKSUwQXVwc2NhbGVkX2ltZyUyMCUzRCUyMHVwc2NhbGVyKGltZyklMEFpbWcuc2l6ZSUwQSUwQXVwc2NhbGVkX2ltZy5zaXpl",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> PIL <span class="hljs-keyword">import</span> Image
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">import</span> requests

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> pipeline

<span class="hljs-meta">&gt;&gt;&gt; </span>upscaler = pipeline(<span class="hljs-string">&quot;image-to-image&quot;</span>, model=<span class="hljs-string">&quot;caidas/swin2SR-classical-sr-x2-64&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>img = Image.<span class="hljs-built_in">open</span>(requests.get(<span class="hljs-string">&quot;http://images.cocodataset.org/val2017/000000039769.jpg&quot;</span>, stream=<span class="hljs-literal">True</span>).raw)
<span class="hljs-meta">&gt;&gt;&gt; </span>img = img.resize((<span class="hljs-number">64</span>, <span class="hljs-number">64</span>))
<span class="hljs-meta">&gt;&gt;&gt; </span>upscaled_img = upscaler(img)
<span class="hljs-meta">&gt;&gt;&gt; </span>img.size
(<span class="hljs-number">64</span>, <span class="hljs-number">64</span>)

<span class="hljs-meta">&gt;&gt;&gt; </span>upscaled_img.size
(<span class="hljs-number">144</span>, <span class="hljs-number">144</span>)`,wrap:!1}}),{c(){r=i("p"),r.textContent=_,h=s(),f(p.$$.fragment)},l(t){r=l(t,"P",{"data-svelte-h":!0}),m(r)!=="svelte-11lpom8"&&(r.textContent=_),h=a(t),g(p.$$.fragment,t)},m(t,M){d(t,r,M),d(t,h,M),u(p,t,M),w=!0},p:J,i(t){w||(T(p.$$.fragment,t),w=!0)},o(t){b(p.$$.fragment,t),w=!1},d(t){t&&(o(r),o(h)),y(p,t)}}}function rw(x){let r,_="Example:",h,p,w;return p=new j({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMHBpcGVsaW5lJTBBJTBBZGV0ZWN0b3IlMjAlM0QlMjBwaXBlbGluZShtb2RlbCUzRCUyMmZhY2Vib29rJTJGZGV0ci1yZXNuZXQtNTAlMjIpJTBBZGV0ZWN0b3IoJTIyaHR0cHMlM0ElMkYlMkZodWdnaW5nZmFjZS5jbyUyRmRhdGFzZXRzJTJGTmFyc2lsJTJGaW1hZ2VfZHVtbXklMkZyYXclMkZtYWluJTJGcGFycm90cy5wbmclMjIpJTBBJTBBJTIzJTIweCUyQyUyMHklMjAlMjBhcmUlMjBleHByZXNzZWQlMjByZWxhdGl2ZSUyMHRvJTIwdGhlJTIwdG9wJTIwbGVmdCUyMGhhbmQlMjBjb3JuZXIu",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> pipeline

<span class="hljs-meta">&gt;&gt;&gt; </span>detector = pipeline(model=<span class="hljs-string">&quot;facebook/detr-resnet-50&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>detector(<span class="hljs-string">&quot;https://huggingface.co/datasets/Narsil/image_dummy/raw/main/parrots.png&quot;</span>)
[{<span class="hljs-string">&#x27;score&#x27;</span>: <span class="hljs-number">0.997</span>, <span class="hljs-string">&#x27;label&#x27;</span>: <span class="hljs-string">&#x27;bird&#x27;</span>, <span class="hljs-string">&#x27;box&#x27;</span>: {<span class="hljs-string">&#x27;xmin&#x27;</span>: <span class="hljs-number">69</span>, <span class="hljs-string">&#x27;ymin&#x27;</span>: <span class="hljs-number">171</span>, <span class="hljs-string">&#x27;xmax&#x27;</span>: <span class="hljs-number">396</span>, <span class="hljs-string">&#x27;ymax&#x27;</span>: <span class="hljs-number">507</span>}}, {<span class="hljs-string">&#x27;score&#x27;</span>: <span class="hljs-number">0.999</span>, <span class="hljs-string">&#x27;label&#x27;</span>: <span class="hljs-string">&#x27;bird&#x27;</span>, <span class="hljs-string">&#x27;box&#x27;</span>: {<span class="hljs-string">&#x27;xmin&#x27;</span>: <span class="hljs-number">398</span>, <span class="hljs-string">&#x27;ymin&#x27;</span>: <span class="hljs-number">105</span>, <span class="hljs-string">&#x27;xmax&#x27;</span>: <span class="hljs-number">767</span>, <span class="hljs-string">&#x27;ymax&#x27;</span>: <span class="hljs-number">507</span>}}]

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># x, y  are expressed relative to the top left hand corner.</span>`,wrap:!1}}),{c(){r=i("p"),r.textContent=_,h=s(),f(p.$$.fragment)},l(t){r=l(t,"P",{"data-svelte-h":!0}),m(r)!=="svelte-11lpom8"&&(r.textContent=_),h=a(t),g(p.$$.fragment,t)},m(t,M){d(t,r,M),d(t,h,M),u(p,t,M),w=!0},p:J,i(t){w||(T(p.$$.fragment,t),w=!0)},o(t){b(p.$$.fragment,t),w=!1},d(t){t&&(o(r),o(h)),y(p,t)}}}function iw(x){let r,_="Example:",h,p,w;return p=new j({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMHBpcGVsaW5lJTBBJTBBY2xhc3NpZmllciUyMCUzRCUyMHBpcGVsaW5lKG1vZGVsJTNEJTIyb3BlbmFpJTJGY2xpcC12aXQtbGFyZ2UtcGF0Y2gxNCUyMiklMEFjbGFzc2lmaWVyKCUwQSUyMCUyMCUyMCUyMCUyMmh0dHBzJTNBJTJGJTJGaHVnZ2luZ2ZhY2UuY28lMkZkYXRhc2V0cyUyRk5hcnNpbCUyRmltYWdlX2R1bW15JTJGcmF3JTJGbWFpbiUyRnBhcnJvdHMucG5nJTIyJTJDJTBBJTIwJTIwJTIwJTIwY2FuZGlkYXRlX2xhYmVscyUzRCU1QiUyMmFuaW1hbHMlMjIlMkMlMjAlMjJodW1hbnMlMjIlMkMlMjAlMjJsYW5kc2NhcGUlMjIlNUQlMkMlMEEpJTBBJTBBY2xhc3NpZmllciglMEElMjAlMjAlMjAlMjAlMjJodHRwcyUzQSUyRiUyRmh1Z2dpbmdmYWNlLmNvJTJGZGF0YXNldHMlMkZOYXJzaWwlMkZpbWFnZV9kdW1teSUyRnJhdyUyRm1haW4lMkZwYXJyb3RzLnBuZyUyMiUyQyUwQSUyMCUyMCUyMCUyMGNhbmRpZGF0ZV9sYWJlbHMlM0QlNUIlMjJibGFjayUyMGFuZCUyMHdoaXRlJTIyJTJDJTIwJTIycGhvdG9yZWFsaXN0JTIyJTJDJTIwJTIycGFpbnRpbmclMjIlNUQlMkMlMEEp",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> pipeline

<span class="hljs-meta">&gt;&gt;&gt; </span>classifier = pipeline(model=<span class="hljs-string">&quot;openai/clip-vit-large-patch14&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>classifier(
<span class="hljs-meta">... </span>    <span class="hljs-string">&quot;https://huggingface.co/datasets/Narsil/image_dummy/raw/main/parrots.png&quot;</span>,
<span class="hljs-meta">... </span>    candidate_labels=[<span class="hljs-string">&quot;animals&quot;</span>, <span class="hljs-string">&quot;humans&quot;</span>, <span class="hljs-string">&quot;landscape&quot;</span>],
<span class="hljs-meta">... </span>)
[{<span class="hljs-string">&#x27;score&#x27;</span>: <span class="hljs-number">0.965</span>, <span class="hljs-string">&#x27;label&#x27;</span>: <span class="hljs-string">&#x27;animals&#x27;</span>}, {<span class="hljs-string">&#x27;score&#x27;</span>: <span class="hljs-number">0.03</span>, <span class="hljs-string">&#x27;label&#x27;</span>: <span class="hljs-string">&#x27;humans&#x27;</span>}, {<span class="hljs-string">&#x27;score&#x27;</span>: <span class="hljs-number">0.005</span>, <span class="hljs-string">&#x27;label&#x27;</span>: <span class="hljs-string">&#x27;landscape&#x27;</span>}]

<span class="hljs-meta">&gt;&gt;&gt; </span>classifier(
<span class="hljs-meta">... </span>    <span class="hljs-string">&quot;https://huggingface.co/datasets/Narsil/image_dummy/raw/main/parrots.png&quot;</span>,
<span class="hljs-meta">... </span>    candidate_labels=[<span class="hljs-string">&quot;black and white&quot;</span>, <span class="hljs-string">&quot;photorealist&quot;</span>, <span class="hljs-string">&quot;painting&quot;</span>],
<span class="hljs-meta">... </span>)
[{<span class="hljs-string">&#x27;score&#x27;</span>: <span class="hljs-number">0.996</span>, <span class="hljs-string">&#x27;label&#x27;</span>: <span class="hljs-string">&#x27;black and white&#x27;</span>}, {<span class="hljs-string">&#x27;score&#x27;</span>: <span class="hljs-number">0.003</span>, <span class="hljs-string">&#x27;label&#x27;</span>: <span class="hljs-string">&#x27;photorealist&#x27;</span>}, {<span class="hljs-string">&#x27;score&#x27;</span>: <span class="hljs-number">0.0</span>, <span class="hljs-string">&#x27;label&#x27;</span>: <span class="hljs-string">&#x27;painting&#x27;</span>}]`,wrap:!1}}),{c(){r=i("p"),r.textContent=_,h=s(),f(p.$$.fragment)},l(t){r=l(t,"P",{"data-svelte-h":!0}),m(r)!=="svelte-11lpom8"&&(r.textContent=_),h=a(t),g(p.$$.fragment,t)},m(t,M){d(t,r,M),d(t,h,M),u(p,t,M),w=!0},p:J,i(t){w||(T(p.$$.fragment,t),w=!0)},o(t){b(p.$$.fragment,t),w=!1},d(t){t&&(o(r),o(h)),y(p,t)}}}function lw(x){let r,_="Example:",h,p,w;return p=new j({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMHBpcGVsaW5lJTBBJTBBZGV0ZWN0b3IlMjAlM0QlMjBwaXBlbGluZShtb2RlbCUzRCUyMmdvb2dsZSUyRm93bHZpdC1iYXNlLXBhdGNoMzIlMjIlMkMlMjB0YXNrJTNEJTIyemVyby1zaG90LW9iamVjdC1kZXRlY3Rpb24lMjIpJTBBZGV0ZWN0b3IoJTBBJTIwJTIwJTIwJTIwJTIyaHR0cCUzQSUyRiUyRmltYWdlcy5jb2NvZGF0YXNldC5vcmclMkZ2YWwyMDE3JTJGMDAwMDAwMDM5NzY5LmpwZyUyMiUyQyUwQSUyMCUyMCUyMCUyMGNhbmRpZGF0ZV9sYWJlbHMlM0QlNUIlMjJjYXQlMjIlMkMlMjAlMjJjb3VjaCUyMiU1RCUyQyUwQSklMEElMEFkZXRlY3RvciglMEElMjAlMjAlMjAlMjAlMjJodHRwcyUzQSUyRiUyRmh1Z2dpbmdmYWNlLmNvJTJGZGF0YXNldHMlMkZOYXJzaWwlMkZpbWFnZV9kdW1teSUyRnJhdyUyRm1haW4lMkZwYXJyb3RzLnBuZyUyMiUyQyUwQSUyMCUyMCUyMCUyMGNhbmRpZGF0ZV9sYWJlbHMlM0QlNUIlMjJoZWFkJTIyJTJDJTIwJTIyYmlyZCUyMiU1RCUyQyUwQSk=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> pipeline

<span class="hljs-meta">&gt;&gt;&gt; </span>detector = pipeline(model=<span class="hljs-string">&quot;google/owlvit-base-patch32&quot;</span>, task=<span class="hljs-string">&quot;zero-shot-object-detection&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>detector(
<span class="hljs-meta">... </span>    <span class="hljs-string">&quot;http://images.cocodataset.org/val2017/000000039769.jpg&quot;</span>,
<span class="hljs-meta">... </span>    candidate_labels=[<span class="hljs-string">&quot;cat&quot;</span>, <span class="hljs-string">&quot;couch&quot;</span>],
<span class="hljs-meta">... </span>)
[{<span class="hljs-string">&#x27;score&#x27;</span>: <span class="hljs-number">0.287</span>, <span class="hljs-string">&#x27;label&#x27;</span>: <span class="hljs-string">&#x27;cat&#x27;</span>, <span class="hljs-string">&#x27;box&#x27;</span>: {<span class="hljs-string">&#x27;xmin&#x27;</span>: <span class="hljs-number">324</span>, <span class="hljs-string">&#x27;ymin&#x27;</span>: <span class="hljs-number">20</span>, <span class="hljs-string">&#x27;xmax&#x27;</span>: <span class="hljs-number">640</span>, <span class="hljs-string">&#x27;ymax&#x27;</span>: <span class="hljs-number">373</span>}}, {<span class="hljs-string">&#x27;score&#x27;</span>: <span class="hljs-number">0.254</span>, <span class="hljs-string">&#x27;label&#x27;</span>: <span class="hljs-string">&#x27;cat&#x27;</span>, <span class="hljs-string">&#x27;box&#x27;</span>: {<span class="hljs-string">&#x27;xmin&#x27;</span>: <span class="hljs-number">1</span>, <span class="hljs-string">&#x27;ymin&#x27;</span>: <span class="hljs-number">55</span>, <span class="hljs-string">&#x27;xmax&#x27;</span>: <span class="hljs-number">315</span>, <span class="hljs-string">&#x27;ymax&#x27;</span>: <span class="hljs-number">472</span>}}, {<span class="hljs-string">&#x27;score&#x27;</span>: <span class="hljs-number">0.121</span>, <span class="hljs-string">&#x27;label&#x27;</span>: <span class="hljs-string">&#x27;couch&#x27;</span>, <span class="hljs-string">&#x27;box&#x27;</span>: {<span class="hljs-string">&#x27;xmin&#x27;</span>: <span class="hljs-number">4</span>, <span class="hljs-string">&#x27;ymin&#x27;</span>: <span class="hljs-number">0</span>, <span class="hljs-string">&#x27;xmax&#x27;</span>: <span class="hljs-number">642</span>, <span class="hljs-string">&#x27;ymax&#x27;</span>: <span class="hljs-number">476</span>}}]

<span class="hljs-meta">&gt;&gt;&gt; </span>detector(
<span class="hljs-meta">... </span>    <span class="hljs-string">&quot;https://huggingface.co/datasets/Narsil/image_dummy/raw/main/parrots.png&quot;</span>,
<span class="hljs-meta">... </span>    candidate_labels=[<span class="hljs-string">&quot;head&quot;</span>, <span class="hljs-string">&quot;bird&quot;</span>],
<span class="hljs-meta">... </span>)
[{<span class="hljs-string">&#x27;score&#x27;</span>: <span class="hljs-number">0.119</span>, <span class="hljs-string">&#x27;label&#x27;</span>: <span class="hljs-string">&#x27;bird&#x27;</span>, <span class="hljs-string">&#x27;box&#x27;</span>: {<span class="hljs-string">&#x27;xmin&#x27;</span>: <span class="hljs-number">71</span>, <span class="hljs-string">&#x27;ymin&#x27;</span>: <span class="hljs-number">170</span>, <span class="hljs-string">&#x27;xmax&#x27;</span>: <span class="hljs-number">410</span>, <span class="hljs-string">&#x27;ymax&#x27;</span>: <span class="hljs-number">508</span>}}]`,wrap:!1}}),{c(){r=i("p"),r.textContent=_,h=s(),f(p.$$.fragment)},l(t){r=l(t,"P",{"data-svelte-h":!0}),m(r)!=="svelte-11lpom8"&&(r.textContent=_),h=a(t),g(p.$$.fragment,t)},m(t,M){d(t,r,M),d(t,h,M),u(p,t,M),w=!0},p:J,i(t){w||(T(p.$$.fragment,t),w=!0)},o(t){b(p.$$.fragment,t),w=!1},d(t){t&&(o(r),o(h)),y(p,t)}}}function cw(x){let r,_="Usage:",h,p,w;return p=new j({props:{code:"Y29udmVyc2F0aW9uJTIwJTNEJTIwQ29udmVyc2F0aW9uKCUyMkdvaW5nJTIwdG8lMjB0aGUlMjBtb3ZpZXMlMjB0b25pZ2h0JTIwLSUyMGFueSUyMHN1Z2dlc3Rpb25zJTNGJTIyKSUwQWNvbnZlcnNhdGlvbi5hZGRfbWVzc2FnZSglN0IlMjJyb2xlJTIyJTNBJTIwJTIyYXNzaXN0YW50JTIyJTJDJTIwJTIyY29udGVudCUyMiUzQSUyMCUyMlRoZSUyMEJpZyUyMGxlYm93c2tpLiUyMiU3RCklMEFjb252ZXJzYXRpb24uYWRkX21lc3NhZ2UoJTdCJTIycm9sZSUyMiUzQSUyMCUyMnVzZXIlMjIlMkMlMjAlMjJjb250ZW50JTIyJTNBJTIwJTIySXMlMjBpdCUyMGdvb2QlM0YlMjIlN0Qp",highlighted:`conversation = Conversation(<span class="hljs-string">&quot;Going to the movies tonight - any suggestions?&quot;</span>)
conversation.add_message({<span class="hljs-string">&quot;role&quot;</span>: <span class="hljs-string">&quot;assistant&quot;</span>, <span class="hljs-string">&quot;content&quot;</span>: <span class="hljs-string">&quot;The Big lebowski.&quot;</span>})
conversation.add_message({<span class="hljs-string">&quot;role&quot;</span>: <span class="hljs-string">&quot;user&quot;</span>, <span class="hljs-string">&quot;content&quot;</span>: <span class="hljs-string">&quot;Is it good?&quot;</span>})`,wrap:!1}}),{c(){r=i("p"),r.textContent=_,h=s(),f(p.$$.fragment)},l(t){r=l(t,"P",{"data-svelte-h":!0}),m(r)!=="svelte-5wyjqd"&&(r.textContent=_),h=a(t),g(p.$$.fragment,t)},m(t,M){d(t,r,M),d(t,h,M),u(p,t,M),w=!0},p:J,i(t){w||(T(p.$$.fragment,t),w=!0)},o(t){b(p.$$.fragment,t),w=!1},d(t){t&&(o(r),o(h)),y(p,t)}}}function pw(x){let r,_="Example:",h,p,w;return p=new j({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMHBpcGVsaW5lJTJDJTIwQ29udmVyc2F0aW9uJTBBJTBBY2hhdGJvdCUyMCUzRCUyMHBpcGVsaW5lKG1vZGVsJTNEJTIyZmFjZWJvb2slMkZibGVuZGVyYm90LTQwME0tZGlzdGlsbCUyMiklMEElMjMlMjBDb252ZXJzYXRpb24lMjBvYmplY3RzJTIwaW5pdGlhbGl6ZWQlMjB3aXRoJTIwYSUyMHN0cmluZyUyMHdpbGwlMjB0cmVhdCUyMGl0JTIwYXMlMjBhJTIwdXNlciUyMG1lc3NhZ2UlMEFjb252ZXJzYXRpb24lMjAlM0QlMjBDb252ZXJzYXRpb24oJTIySSdtJTIwbG9va2luZyUyMGZvciUyMGElMjBtb3ZpZSUyMC0lMjB3aGF0J3MlMjB5b3VyJTIwZmF2b3VyaXRlJTIwb25lJTNGJTIyKSUwQWNvbnZlcnNhdGlvbiUyMCUzRCUyMGNoYXRib3QoY29udmVyc2F0aW9uKSUwQWNvbnZlcnNhdGlvbi5tZXNzYWdlcyU1Qi0xJTVEJTVCJTIyY29udGVudCUyMiU1RCUwQSUwQWNvbnZlcnNhdGlvbi5hZGRfbWVzc2FnZSglN0IlMjJyb2xlJTIyJTNBJTIwJTIydXNlciUyMiUyQyUyMCUyMmNvbnRlbnQlMjIlM0ElMjAlMjJUaGF0J3MlMjBpbnRlcmVzdGluZyUyQyUyMHdoeSUyMGRvJTIweW91JTIwbGlrZSUyMGFjdGlvbiUyMG1vdmllcyUzRiUyMiU3RCklMEFjb252ZXJzYXRpb24lMjAlM0QlMjBjaGF0Ym90KGNvbnZlcnNhdGlvbiklMEFjb252ZXJzYXRpb24ubWVzc2FnZXMlNUItMSU1RCU1QiUyMmNvbnRlbnQlMjIlNUQ=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> pipeline, Conversation
<span class="hljs-comment"># Any model with a chat template can be used in a ConversationalPipeline.</span>

<span class="hljs-meta">&gt;&gt;&gt; </span>chatbot = pipeline(model=<span class="hljs-string">&quot;facebook/blenderbot-400M-distill&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># Conversation objects initialized with a string will treat it as a user message</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>conversation = Conversation(<span class="hljs-string">&quot;I&#x27;m looking for a movie - what&#x27;s your favourite one?&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>conversation = chatbot(conversation)
<span class="hljs-meta">&gt;&gt;&gt; </span>conversation.messages[-<span class="hljs-number">1</span>][<span class="hljs-string">&quot;content&quot;</span>]
<span class="hljs-string">&quot;I don&#x27;t really have a favorite movie, but I do like action movies. What about you?&quot;</span>

<span class="hljs-meta">&gt;&gt;&gt; </span>conversation.add_message({<span class="hljs-string">&quot;role&quot;</span>: <span class="hljs-string">&quot;user&quot;</span>, <span class="hljs-string">&quot;content&quot;</span>: <span class="hljs-string">&quot;That&#x27;s interesting, why do you like action movies?&quot;</span>})
<span class="hljs-meta">&gt;&gt;&gt; </span>conversation = chatbot(conversation)
<span class="hljs-meta">&gt;&gt;&gt; </span>conversation.messages[-<span class="hljs-number">1</span>][<span class="hljs-string">&quot;content&quot;</span>]
<span class="hljs-string">&quot; I think it&#x27;s just because they&#x27;re so fast-paced and action-fantastic.&quot;</span>`,wrap:!1}}),{c(){r=i("p"),r.textContent=_,h=s(),f(p.$$.fragment)},l(t){r=l(t,"P",{"data-svelte-h":!0}),m(r)!=="svelte-11lpom8"&&(r.textContent=_),h=a(t),g(p.$$.fragment,t)},m(t,M){d(t,r,M),d(t,h,M),u(p,t,M),w=!0},p:J,i(t){w||(T(p.$$.fragment,t),w=!0)},o(t){b(p.$$.fragment,t),w=!1},d(t){t&&(o(r),o(h)),y(p,t)}}}function dw(x){let r,_="Example:",h,p,w;return p=new j({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMHBpcGVsaW5lJTBBJTBBZmlsbF9tYXNrZXIlMjAlM0QlMjBwaXBlbGluZShtb2RlbCUzRCUyMmJlcnQtYmFzZS11bmNhc2VkJTIyKSUwQWZpbGxfbWFza2VyKCUyMlRoaXMlMjBpcyUyMGElMjBzaW1wbGUlMjAlNUJNQVNLJTVELiUyMik=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> pipeline

<span class="hljs-meta">&gt;&gt;&gt; </span>fill_masker = pipeline(model=<span class="hljs-string">&quot;bert-base-uncased&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>fill_masker(<span class="hljs-string">&quot;This is a simple [MASK].&quot;</span>)
[{<span class="hljs-string">&#x27;score&#x27;</span>: <span class="hljs-number">0.042</span>, <span class="hljs-string">&#x27;token&#x27;</span>: <span class="hljs-number">3291</span>, <span class="hljs-string">&#x27;token_str&#x27;</span>: <span class="hljs-string">&#x27;problem&#x27;</span>, <span class="hljs-string">&#x27;sequence&#x27;</span>: <span class="hljs-string">&#x27;this is a simple problem.&#x27;</span>}, {<span class="hljs-string">&#x27;score&#x27;</span>: <span class="hljs-number">0.031</span>, <span class="hljs-string">&#x27;token&#x27;</span>: <span class="hljs-number">3160</span>, <span class="hljs-string">&#x27;token_str&#x27;</span>: <span class="hljs-string">&#x27;question&#x27;</span>, <span class="hljs-string">&#x27;sequence&#x27;</span>: <span class="hljs-string">&#x27;this is a simple question.&#x27;</span>}, {<span class="hljs-string">&#x27;score&#x27;</span>: <span class="hljs-number">0.03</span>, <span class="hljs-string">&#x27;token&#x27;</span>: <span class="hljs-number">8522</span>, <span class="hljs-string">&#x27;token_str&#x27;</span>: <span class="hljs-string">&#x27;equation&#x27;</span>, <span class="hljs-string">&#x27;sequence&#x27;</span>: <span class="hljs-string">&#x27;this is a simple equation.&#x27;</span>}, {<span class="hljs-string">&#x27;score&#x27;</span>: <span class="hljs-number">0.027</span>, <span class="hljs-string">&#x27;token&#x27;</span>: <span class="hljs-number">2028</span>, <span class="hljs-string">&#x27;token_str&#x27;</span>: <span class="hljs-string">&#x27;one&#x27;</span>, <span class="hljs-string">&#x27;sequence&#x27;</span>: <span class="hljs-string">&#x27;this is a simple one.&#x27;</span>}, {<span class="hljs-string">&#x27;score&#x27;</span>: <span class="hljs-number">0.024</span>, <span class="hljs-string">&#x27;token&#x27;</span>: <span class="hljs-number">3627</span>, <span class="hljs-string">&#x27;token_str&#x27;</span>: <span class="hljs-string">&#x27;rule&#x27;</span>, <span class="hljs-string">&#x27;sequence&#x27;</span>: <span class="hljs-string">&#x27;this is a simple rule.&#x27;</span>}]`,wrap:!1}}),{c(){r=i("p"),r.textContent=_,h=s(),f(p.$$.fragment)},l(t){r=l(t,"P",{"data-svelte-h":!0}),m(r)!=="svelte-11lpom8"&&(r.textContent=_),h=a(t),g(p.$$.fragment,t)},m(t,M){d(t,r,M),d(t,h,M),u(p,t,M),w=!0},p:J,i(t){w||(T(p.$$.fragment,t),w=!0)},o(t){b(p.$$.fragment,t),w=!1},d(t){t&&(o(r),o(h)),y(p,t)}}}function mw(x){let r,_=`This pipeline only works for inputs with exactly one token masked. Experimental: We added support for multiple
masks. The returned values are raw model output, and correspond to disjoint probabilities where one might expect
joint probabilities (See <a href="https://github.com/huggingface/transformers/pull/10222" rel="nofollow">discussion</a>).`;return{c(){r=i("p"),r.innerHTML=_},l(h){r=l(h,"P",{"data-svelte-h":!0}),m(r)!=="svelte-126iymh"&&(r.innerHTML=_)},m(h,p){d(h,r,p)},p:J,d(h){h&&o(r)}}}function hw(x){let r,_="This pipeline now supports tokenizer_kwargs. For example try:",h,p,w;return p=new j({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMHBpcGVsaW5lJTBBJTBBZmlsbF9tYXNrZXIlMjAlM0QlMjBwaXBlbGluZShtb2RlbCUzRCUyMmJlcnQtYmFzZS11bmNhc2VkJTIyKSUwQXRva2VuaXplcl9rd2FyZ3MlMjAlM0QlMjAlN0IlMjJ0cnVuY2F0aW9uJTIyJTNBJTIwVHJ1ZSU3RCUwQWZpbGxfbWFza2VyKCUwQSUyMCUyMCUyMCUyMCUyMlRoaXMlMjBpcyUyMGElMjBzaW1wbGUlMjAlNUJNQVNLJTVELiUyMCUyMiUyMCUyQiUyMCUyMi4uLndpdGglMjBhJTIwbGFyZ2UlMjBhbW91bnQlMjBvZiUyMHJlcGVhdGVkJTIwdGV4dCUyMGFwcGVuZGVkLiUyMCUyMiUyMColMjAxMDAlMkMlMEElMjAlMjAlMjAlMjB0b2tlbml6ZXJfa3dhcmdzJTNEdG9rZW5pemVyX2t3YXJncyUyQyUwQSk=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> pipeline

<span class="hljs-meta">&gt;&gt;&gt; </span>fill_masker = pipeline(model=<span class="hljs-string">&quot;bert-base-uncased&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>tokenizer_kwargs = {<span class="hljs-string">&quot;truncation&quot;</span>: <span class="hljs-literal">True</span>}
<span class="hljs-meta">&gt;&gt;&gt; </span>fill_masker(
<span class="hljs-meta">... </span>    <span class="hljs-string">&quot;This is a simple [MASK]. &quot;</span> + <span class="hljs-string">&quot;...with a large amount of repeated text appended. &quot;</span> * <span class="hljs-number">100</span>,
<span class="hljs-meta">... </span>    tokenizer_kwargs=tokenizer_kwargs,
<span class="hljs-meta">... </span>)`,wrap:!1}}),{c(){r=i("p"),r.textContent=_,h=s(),f(p.$$.fragment)},l(t){r=l(t,"P",{"data-svelte-h":!0}),m(r)!=="svelte-1pudxyz"&&(r.textContent=_),h=a(t),g(p.$$.fragment,t)},m(t,M){d(t,r,M),d(t,h,M),u(p,t,M),w=!0},p:J,i(t){w||(T(p.$$.fragment,t),w=!0)},o(t){b(p.$$.fragment,t),w=!1},d(t){t&&(o(r),o(h)),y(p,t)}}}function fw(x){let r,_;return r=new P({props:{anchor:"transformers.FillMaskPipeline.example-2",$$slots:{default:[hw]},$$scope:{ctx:x}}}),{c(){f(r.$$.fragment)},l(h){g(r.$$.fragment,h)},m(h,p){u(r,h,p),_=!0},p(h,p){const w={};p&2&&(w.$$scope={dirty:p,ctx:h}),r.$set(w)},i(h){_||(T(r.$$.fragment,h),_=!0)},o(h){b(r.$$.fragment,h),_=!1},d(h){y(r,h)}}}function gw(x){let r,_="Example:",h,p,w;return p=new j({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMHBpcGVsaW5lJTBBJTBBb3JhY2xlJTIwJTNEJTIwcGlwZWxpbmUobW9kZWwlM0QlMjJkZWVwc2V0JTJGcm9iZXJ0YS1iYXNlLXNxdWFkMiUyMiklMEFvcmFjbGUocXVlc3Rpb24lM0QlMjJXaGVyZSUyMGRvJTIwSSUyMGxpdmUlM0YlMjIlMkMlMjBjb250ZXh0JTNEJTIyTXklMjBuYW1lJTIwaXMlMjBXb2xmZ2FuZyUyMGFuZCUyMEklMjBsaXZlJTIwaW4lMjBCZXJsaW4lMjIp",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> pipeline

<span class="hljs-meta">&gt;&gt;&gt; </span>oracle = pipeline(model=<span class="hljs-string">&quot;deepset/roberta-base-squad2&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>oracle(question=<span class="hljs-string">&quot;Where do I live?&quot;</span>, context=<span class="hljs-string">&quot;My name is Wolfgang and I live in Berlin&quot;</span>)
{<span class="hljs-string">&#x27;score&#x27;</span>: <span class="hljs-number">0.9191</span>, <span class="hljs-string">&#x27;start&#x27;</span>: <span class="hljs-number">34</span>, <span class="hljs-string">&#x27;end&#x27;</span>: <span class="hljs-number">40</span>, <span class="hljs-string">&#x27;answer&#x27;</span>: <span class="hljs-string">&#x27;Berlin&#x27;</span>}`,wrap:!1}}),{c(){r=i("p"),r.textContent=_,h=s(),f(p.$$.fragment)},l(t){r=l(t,"P",{"data-svelte-h":!0}),m(r)!=="svelte-11lpom8"&&(r.textContent=_),h=a(t),g(p.$$.fragment,t)},m(t,M){d(t,r,M),d(t,h,M),u(p,t,M),w=!0},p:J,i(t){w||(T(p.$$.fragment,t),w=!0)},o(t){b(p.$$.fragment,t),w=!1},d(t){t&&(o(r),o(h)),y(p,t)}}}function uw(x){let r,_="Usage:",h,p,w;return p=new j({props:{code:"JTIzJTIwdXNlJTIwYmFydCUyMGluJTIwcHl0b3JjaCUwQXN1bW1hcml6ZXIlMjAlM0QlMjBwaXBlbGluZSglMjJzdW1tYXJpemF0aW9uJTIyKSUwQXN1bW1hcml6ZXIoJTIyQW4lMjBhcHBsZSUyMGElMjBkYXklMkMlMjBrZWVwcyUyMHRoZSUyMGRvY3RvciUyMGF3YXklMjIlMkMlMjBtaW5fbGVuZ3RoJTNENSUyQyUyMG1heF9sZW5ndGglM0QyMCklMEElMEElMjMlMjB1c2UlMjB0NSUyMGluJTIwdGYlMEFzdW1tYXJpemVyJTIwJTNEJTIwcGlwZWxpbmUoJTIyc3VtbWFyaXphdGlvbiUyMiUyQyUyMG1vZGVsJTNEJTIydDUtYmFzZSUyMiUyQyUyMHRva2VuaXplciUzRCUyMnQ1LWJhc2UlMjIlMkMlMjBmcmFtZXdvcmslM0QlMjJ0ZiUyMiklMEFzdW1tYXJpemVyKCUyMkFuJTIwYXBwbGUlMjBhJTIwZGF5JTJDJTIwa2VlcHMlMjB0aGUlMjBkb2N0b3IlMjBhd2F5JTIyJTJDJTIwbWluX2xlbmd0aCUzRDUlMkMlMjBtYXhfbGVuZ3RoJTNEMjAp",highlighted:`<span class="hljs-comment"># use bart in pytorch</span>
summarizer = pipeline(<span class="hljs-string">&quot;summarization&quot;</span>)
summarizer(<span class="hljs-string">&quot;An apple a day, keeps the doctor away&quot;</span>, min_length=<span class="hljs-number">5</span>, max_length=<span class="hljs-number">20</span>)

<span class="hljs-comment"># use t5 in tf</span>
summarizer = pipeline(<span class="hljs-string">&quot;summarization&quot;</span>, model=<span class="hljs-string">&quot;t5-base&quot;</span>, tokenizer=<span class="hljs-string">&quot;t5-base&quot;</span>, framework=<span class="hljs-string">&quot;tf&quot;</span>)
summarizer(<span class="hljs-string">&quot;An apple a day, keeps the doctor away&quot;</span>, min_length=<span class="hljs-number">5</span>, max_length=<span class="hljs-number">20</span>)`,wrap:!1}}),{c(){r=i("p"),r.textContent=_,h=s(),f(p.$$.fragment)},l(t){r=l(t,"P",{"data-svelte-h":!0}),m(r)!=="svelte-5wyjqd"&&(r.textContent=_),h=a(t),g(p.$$.fragment,t)},m(t,M){d(t,r,M),d(t,h,M),u(p,t,M),w=!0},p:J,i(t){w||(T(p.$$.fragment,t),w=!0)},o(t){b(p.$$.fragment,t),w=!1},d(t){t&&(o(r),o(h)),y(p,t)}}}function Tw(x){let r,_="Example:",h,p,w;return p=new j({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMHBpcGVsaW5lJTBBJTBBb3JhY2xlJTIwJTNEJTIwcGlwZWxpbmUobW9kZWwlM0QlMjJnb29nbGUlMkZ0YXBhcy1iYXNlLWZpbmV0dW5lZC13dHElMjIpJTBBdGFibGUlMjAlM0QlMjAlN0IlMEElMjAlMjAlMjAlMjAlMjJSZXBvc2l0b3J5JTIyJTNBJTIwJTVCJTIyVHJhbnNmb3JtZXJzJTIyJTJDJTIwJTIyRGF0YXNldHMlMjIlMkMlMjAlMjJUb2tlbml6ZXJzJTIyJTVEJTJDJTBBJTIwJTIwJTIwJTIwJTIyU3RhcnMlMjIlM0ElMjAlNUIlMjIzNjU0MiUyMiUyQyUyMCUyMjQ1MTIlMjIlMkMlMjAlMjIzOTM0JTIyJTVEJTJDJTBBJTIwJTIwJTIwJTIwJTIyQ29udHJpYnV0b3JzJTIyJTNBJTIwJTVCJTIyNjUxJTIyJTJDJTIwJTIyNzclMjIlMkMlMjAlMjIzNCUyMiU1RCUyQyUwQSUyMCUyMCUyMCUyMCUyMlByb2dyYW1taW5nJTIwbGFuZ3VhZ2UlMjIlM0ElMjAlNUIlMjJQeXRob24lMjIlMkMlMjAlMjJQeXRob24lMjIlMkMlMjAlMjJSdXN0JTJDJTIwUHl0aG9uJTIwYW5kJTIwTm9kZUpTJTIyJTVEJTJDJTBBJTdEJTBBb3JhY2xlKHF1ZXJ5JTNEJTIySG93JTIwbWFueSUyMHN0YXJzJTIwZG9lcyUyMHRoZSUyMHRyYW5zZm9ybWVycyUyMHJlcG9zaXRvcnklMjBoYXZlJTNGJTIyJTJDJTIwdGFibGUlM0R0YWJsZSk=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> pipeline

<span class="hljs-meta">&gt;&gt;&gt; </span>oracle = pipeline(model=<span class="hljs-string">&quot;google/tapas-base-finetuned-wtq&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>table = {
<span class="hljs-meta">... </span>    <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-meta">... </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">... </span>    <span class="hljs-string">&quot;Contributors&quot;</span>: [<span class="hljs-string">&quot;651&quot;</span>, <span class="hljs-string">&quot;77&quot;</span>, <span class="hljs-string">&quot;34&quot;</span>],
<span class="hljs-meta">... </span>    <span class="hljs-string">&quot;Programming language&quot;</span>: [<span class="hljs-string">&quot;Python&quot;</span>, <span class="hljs-string">&quot;Python&quot;</span>, <span class="hljs-string">&quot;Rust, Python and NodeJS&quot;</span>],
<span class="hljs-meta">... </span>}
<span class="hljs-meta">&gt;&gt;&gt; </span>oracle(query=<span class="hljs-string">&quot;How many stars does the transformers repository have?&quot;</span>, table=table)
{<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(){r=i("p"),r.textContent=_,h=s(),f(p.$$.fragment)},l(t){r=l(t,"P",{"data-svelte-h":!0}),m(r)!=="svelte-11lpom8"&&(r.textContent=_),h=a(t),g(p.$$.fragment,t)},m(t,M){d(t,r,M),d(t,h,M),u(p,t,M),w=!0},p:J,i(t){w||(T(p.$$.fragment,t),w=!0)},o(t){b(p.$$.fragment,t),w=!1},d(t){t&&(o(r),o(h)),y(p,t)}}}function bw(x){let r,_="Example:",h,p,w;return p=new j({props:{code:"ZGF0YSUyMCUzRCUyMCU3QiUwQSUyMCUyMCUyMCUyMCUyMmFjdG9ycyUyMiUzQSUyMCU1QiUyMmJyYWQlMjBwaXR0JTIyJTJDJTIwJTIybGVvbmFyZG8lMjBkaSUyMGNhcHJpbyUyMiUyQyUyMCUyMmdlb3JnZSUyMGNsb29uZXklMjIlNUQlMkMlMEElMjAlMjAlMjAlMjAlMjJhZ2UlMjIlM0ElMjAlNUIlMjI1NiUyMiUyQyUyMCUyMjQ1JTIyJTJDJTIwJTIyNTklMjIlNUQlMkMlMEElMjAlMjAlMjAlMjAlMjJudW1iZXIlMjBvZiUyMG1vdmllcyUyMiUzQSUyMCU1QiUyMjg3JTIyJTJDJTIwJTIyNTMlMjIlMkMlMjAlMjI2OSUyMiU1RCUyQyUwQSUyMCUyMCUyMCUyMCUyMmRhdGUlMjBvZiUyMGJpcnRoJTIyJTNBJTIwJTVCJTIyNyUyMGZlYnJ1YXJ5JTIwMTk2NyUyMiUyQyUyMCUyMjEwJTIwanVuZSUyMDE5OTYlMjIlMkMlMjAlMjIyOCUyMG5vdmVtYmVyJTIwMTk2NyUyMiU1RCUyQyUwQSU3RA==",highlighted:`data = {
    <span class="hljs-string">&quot;actors&quot;</span>: [<span class="hljs-string">&quot;brad pitt&quot;</span>, <span class="hljs-string">&quot;leonardo di caprio&quot;</span>, <span class="hljs-string">&quot;george clooney&quot;</span>],
    <span class="hljs-string">&quot;age&quot;</span>: [<span class="hljs-string">&quot;56&quot;</span>, <span class="hljs-string">&quot;45&quot;</span>, <span class="hljs-string">&quot;59&quot;</span>],
    <span class="hljs-string">&quot;number of movies&quot;</span>: [<span class="hljs-string">&quot;87&quot;</span>, <span class="hljs-string">&quot;53&quot;</span>, <span class="hljs-string">&quot;69&quot;</span>],
    <span class="hljs-string">&quot;date of birth&quot;</span>: [<span class="hljs-string">&quot;7 february 1967&quot;</span>, <span class="hljs-string">&quot;10 june 1996&quot;</span>, <span class="hljs-string">&quot;28 november 1967&quot;</span>],
}`,wrap:!1}}),{c(){r=i("p"),r.textContent=_,h=s(),f(p.$$.fragment)},l(t){r=l(t,"P",{"data-svelte-h":!0}),m(r)!=="svelte-11lpom8"&&(r.textContent=_),h=a(t),g(p.$$.fragment,t)},m(t,M){d(t,r,M),d(t,h,M),u(p,t,M),w=!0},p:J,i(t){w||(T(p.$$.fragment,t),w=!0)},o(t){b(p.$$.fragment,t),w=!1},d(t){t&&(o(r),o(h)),y(p,t)}}}function yw(x){let r,_="Example:",h,p,w;return p=new j({props:{code:"aW1wb3J0JTIwcGFuZGFzJTIwYXMlMjBwZCUwQSUwQXRhYmxlJTIwJTNEJTIwcGQuRGF0YUZyYW1lLmZyb21fZGljdChkYXRhKQ==",highlighted:`<span class="hljs-keyword">import</span> pandas <span class="hljs-keyword">as</span> pd

table = pd.DataFrame.from_dict(data)`,wrap:!1}}),{c(){r=i("p"),r.textContent=_,h=s(),f(p.$$.fragment)},l(t){r=l(t,"P",{"data-svelte-h":!0}),m(r)!=="svelte-11lpom8"&&(r.textContent=_),h=a(t),g(p.$$.fragment,t)},m(t,M){d(t,r,M),d(t,h,M),u(p,t,M),w=!0},p:J,i(t){w||(T(p.$$.fragment,t),w=!0)},o(t){b(p.$$.fragment,t),w=!1},d(t){t&&(o(r),o(h)),y(p,t)}}}function ww(x){let r,_="Example:",h,p,w;return p=new j({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMHBpcGVsaW5lJTBBJTBBY2xhc3NpZmllciUyMCUzRCUyMHBpcGVsaW5lKG1vZGVsJTNEJTIyZGlzdGlsYmVydC1iYXNlLXVuY2FzZWQtZmluZXR1bmVkLXNzdC0yLWVuZ2xpc2glMjIpJTBBY2xhc3NpZmllciglMjJUaGlzJTIwbW92aWUlMjBpcyUyMGRpc2d1c3RpbmdseSUyMGdvb2QlMjAhJTIyKSUwQSUwQWNsYXNzaWZpZXIoJTIyRGlyZWN0b3IlMjB0cmllZCUyMHRvbyUyMG11Y2guJTIyKQ==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> pipeline

<span class="hljs-meta">&gt;&gt;&gt; </span>classifier = pipeline(model=<span class="hljs-string">&quot;distilbert-base-uncased-finetuned-sst-2-english&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>classifier(<span class="hljs-string">&quot;This movie is disgustingly good !&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">1.0</span>}]

<span class="hljs-meta">&gt;&gt;&gt; </span>classifier(<span class="hljs-string">&quot;Director tried too much.&quot;</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.996</span>}]`,wrap:!1}}),{c(){r=i("p"),r.textContent=_,h=s(),f(p.$$.fragment)},l(t){r=l(t,"P",{"data-svelte-h":!0}),m(r)!=="svelte-11lpom8"&&(r.textContent=_),h=a(t),g(p.$$.fragment,t)},m(t,M){d(t,r,M),d(t,h,M),u(p,t,M),w=!0},p:J,i(t){w||(T(p.$$.fragment,t),w=!0)},o(t){b(p.$$.fragment,t),w=!1},d(t){t&&(o(r),o(h)),y(p,t)}}}function Mw(x){let r,_="Example:",h,p,w;return p=new j({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMHBpcGVsaW5lJTBBJTBBZ2VuZXJhdG9yJTIwJTNEJTIwcGlwZWxpbmUobW9kZWwlM0QlMjJncHQyJTIyKSUwQWdlbmVyYXRvciglMjJJJTIwY2FuJ3QlMjBiZWxpZXZlJTIweW91JTIwZGlkJTIwc3VjaCUyMGElMjAlMjIlMkMlMjBkb19zYW1wbGUlM0RGYWxzZSklMEElMEElMjMlMjBUaGVzZSUyMHBhcmFtZXRlcnMlMjB3aWxsJTIwcmV0dXJuJTIwc3VnZ2VzdGlvbnMlMkMlMjBhbmQlMjBvbmx5JTIwdGhlJTIwbmV3bHklMjBjcmVhdGVkJTIwdGV4dCUyMG1ha2luZyUyMGl0JTIwZWFzaWVyJTIwZm9yJTIwcHJvbXB0aW5nJTIwc3VnZ2VzdGlvbnMuJTBBb3V0cHV0cyUyMCUzRCUyMGdlbmVyYXRvciglMjJNeSUyMHRhcnQlMjBuZWVkcyUyMHNvbWUlMjIlMkMlMjBudW1fcmV0dXJuX3NlcXVlbmNlcyUzRDQlMkMlMjByZXR1cm5fZnVsbF90ZXh0JTNERmFsc2Up",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> pipeline

<span class="hljs-meta">&gt;&gt;&gt; </span>generator = pipeline(model=<span class="hljs-string">&quot;gpt2&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>generator(<span class="hljs-string">&quot;I can&#x27;t believe you did such a &quot;</span>, do_sample=<span class="hljs-literal">False</span>)
[{<span class="hljs-string">&#x27;generated_text&#x27;</span>: <span class="hljs-string">&quot;I can&#x27;t believe you did such a icky thing to me. I&#x27;m so sorry. I&#x27;m so sorry. I&#x27;m so sorry. I&#x27;m so sorry. I&#x27;m so sorry. I&#x27;m so sorry. I&#x27;m so sorry. I&quot;</span>}]

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># These parameters will return suggestions, and only the newly created text making it easier for prompting suggestions.</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>outputs = generator(<span class="hljs-string">&quot;My tart needs some&quot;</span>, num_return_sequences=<span class="hljs-number">4</span>, return_full_text=<span class="hljs-literal">False</span>)`,wrap:!1}}),{c(){r=i("p"),r.textContent=_,h=s(),f(p.$$.fragment)},l(t){r=l(t,"P",{"data-svelte-h":!0}),m(r)!=="svelte-11lpom8"&&(r.textContent=_),h=a(t),g(p.$$.fragment,t)},m(t,M){d(t,r,M),d(t,h,M),u(p,t,M),w=!0},p:J,i(t){w||(T(p.$$.fragment,t),w=!0)},o(t){b(p.$$.fragment,t),w=!1},d(t){t&&(o(r),o(h)),y(p,t)}}}function _w(x){let r,_="Example:",h,p,w;return p=new j({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMHBpcGVsaW5lJTBBJTBBZ2VuZXJhdG9yJTIwJTNEJTIwcGlwZWxpbmUobW9kZWwlM0QlMjJtcm04NDg4JTJGdDUtYmFzZS1maW5ldHVuZWQtcXVlc3Rpb24tZ2VuZXJhdGlvbi1hcCUyMiklMEFnZW5lcmF0b3IoJTBBJTIwJTIwJTIwJTIwJTIyYW5zd2VyJTNBJTIwTWFudWVsJTIwY29udGV4dCUzQSUyME1hbnVlbCUyMGhhcyUyMGNyZWF0ZWQlMjBSdVBFUlRhLWJhc2UlMjB3aXRoJTIwdGhlJTIwc3VwcG9ydCUyMG9mJTIwSEYtVHJhbnNmb3JtZXJzJTIwYW5kJTIwR29vZ2xlJTIyJTBBKQ==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> pipeline

<span class="hljs-meta">&gt;&gt;&gt; </span>generator = pipeline(model=<span class="hljs-string">&quot;mrm8488/t5-base-finetuned-question-generation-ap&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>generator(
<span class="hljs-meta">... </span>    <span class="hljs-string">&quot;answer: Manuel context: Manuel has created RuPERTa-base with the support of HF-Transformers and Google&quot;</span>
<span class="hljs-meta">... </span>)
[{<span class="hljs-string">&#x27;generated_text&#x27;</span>: <span class="hljs-string">&#x27;question: Who created the RuPERTa-base?&#x27;</span>}]`,wrap:!1}}),{c(){r=i("p"),r.textContent=_,h=s(),f(p.$$.fragment)},l(t){r=l(t,"P",{"data-svelte-h":!0}),m(r)!=="svelte-11lpom8"&&(r.textContent=_),h=a(t),g(p.$$.fragment,t)},m(t,M){d(t,r,M),d(t,h,M),u(p,t,M),w=!0},p:J,i(t){w||(T(p.$$.fragment,t),w=!0)},o(t){b(p.$$.fragment,t),w=!1},d(t){t&&(o(r),o(h)),y(p,t)}}}function xw(x){let r,_="Usage:",h,p,w;return p=new j({props:{code:"dGV4dDJ0ZXh0X2dlbmVyYXRvciUyMCUzRCUyMHBpcGVsaW5lKCUyMnRleHQydGV4dC1nZW5lcmF0aW9uJTIyKSUwQXRleHQydGV4dF9nZW5lcmF0b3IoJTIycXVlc3Rpb24lM0ElMjBXaGF0JTIwaXMlMjA0MiUyMCUzRiUyMGNvbnRleHQlM0ElMjA0MiUyMGlzJTIwdGhlJTIwYW5zd2VyJTIwdG8lMjBsaWZlJTJDJTIwdGhlJTIwdW5pdmVyc2UlMjBhbmQlMjBldmVyeXRoaW5nJTIyKQ==",highlighted:`text2text_generator = pipeline(<span class="hljs-string">&quot;text2text-generation&quot;</span>)
text2text_generator(<span class="hljs-string">&quot;question: What is 42 ? context: 42 is the answer to life, the universe and everything&quot;</span>)`,wrap:!1}}),{c(){r=i("p"),r.textContent=_,h=s(),f(p.$$.fragment)},l(t){r=l(t,"P",{"data-svelte-h":!0}),m(r)!=="svelte-5wyjqd"&&(r.textContent=_),h=a(t),g(p.$$.fragment,t)},m(t,M){d(t,r,M),d(t,h,M),u(p,t,M),w=!0},p:J,i(t){w||(T(p.$$.fragment,t),w=!0)},o(t){b(p.$$.fragment,t),w=!1},d(t){t&&(o(r),o(h)),y(p,t)}}}function vw(x){let r,_="Example:",h,p,w;return p=new j({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMHBpcGVsaW5lJTBBJTBBdG9rZW5fY2xhc3NpZmllciUyMCUzRCUyMHBpcGVsaW5lKG1vZGVsJTNEJTIySmVhbi1CYXB0aXN0ZSUyRmNhbWVtYmVydC1uZXIlMjIlMkMlMjBhZ2dyZWdhdGlvbl9zdHJhdGVneSUzRCUyMnNpbXBsZSUyMiklMEFzZW50ZW5jZSUyMCUzRCUyMCUyMkplJTIwbSdhcHBlbGxlJTIwamVhbi1iYXB0aXN0ZSUyMGV0JTIwamUlMjB2aXMlMjAlQzMlQTAlMjBtb250ciVDMyVBOWFsJTIyJTBBdG9rZW5zJTIwJTNEJTIwdG9rZW5fY2xhc3NpZmllcihzZW50ZW5jZSklMEF0b2tlbnMlMEElMEF0b2tlbiUyMCUzRCUyMHRva2VucyU1QjAlNUQlMEElMjMlMjBTdGFydCUyMGFuZCUyMGVuZCUyMHByb3ZpZGUlMjBhbiUyMGVhc3klMjB3YXklMjB0byUyMGhpZ2hsaWdodCUyMHdvcmRzJTIwaW4lMjB0aGUlMjBvcmlnaW5hbCUyMHRleHQuJTBBc2VudGVuY2UlNUJ0b2tlbiU1QiUyMnN0YXJ0JTIyJTVEJTIwJTNBJTIwdG9rZW4lNUIlMjJlbmQlMjIlNUQlNUQlMEElMEElMjMlMjBTb21lJTIwbW9kZWxzJTIwdXNlJTIwdGhlJTIwc2FtZSUyMGlkZWElMjB0byUyMGRvJTIwcGFydCUyMG9mJTIwc3BlZWNoLiUwQXN5bnRheGVyJTIwJTNEJTIwcGlwZWxpbmUobW9kZWwlM0QlMjJ2YmxhZ29qZSUyRmJlcnQtZW5nbGlzaC11bmNhc2VkLWZpbmV0dW5lZC1wb3MlMjIlMkMlMjBhZ2dyZWdhdGlvbl9zdHJhdGVneSUzRCUyMnNpbXBsZSUyMiklMEFzeW50YXhlciglMjJNeSUyMG5hbWUlMjBpcyUyMFNhcmFoJTIwYW5kJTIwSSUyMGxpdmUlMjBpbiUyMExvbmRvbiUyMik=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> pipeline

<span class="hljs-meta">&gt;&gt;&gt; </span>token_classifier = pipeline(model=<span class="hljs-string">&quot;Jean-Baptiste/camembert-ner&quot;</span>, aggregation_strategy=<span class="hljs-string">&quot;simple&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>sentence = <span class="hljs-string">&quot;Je m&#x27;appelle jean-baptiste et je vis à montréal&quot;</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>tokens = token_classifier(sentence)
<span class="hljs-meta">&gt;&gt;&gt; </span>tokens
[{<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.9931</span>, <span class="hljs-string">&#x27;word&#x27;</span>: <span class="hljs-string">&#x27;jean-baptiste&#x27;</span>, <span class="hljs-string">&#x27;start&#x27;</span>: <span class="hljs-number">12</span>, <span class="hljs-string">&#x27;end&#x27;</span>: <span class="hljs-number">26</span>}, {<span class="hljs-string">&#x27;entity_group&#x27;</span>: <span class="hljs-string">&#x27;LOC&#x27;</span>, <span class="hljs-string">&#x27;score&#x27;</span>: <span class="hljs-number">0.998</span>, <span class="hljs-string">&#x27;word&#x27;</span>: <span class="hljs-string">&#x27;montréal&#x27;</span>, <span class="hljs-string">&#x27;start&#x27;</span>: <span class="hljs-number">38</span>, <span class="hljs-string">&#x27;end&#x27;</span>: <span class="hljs-number">47</span>}]

<span class="hljs-meta">&gt;&gt;&gt; </span>token = tokens[<span class="hljs-number">0</span>]
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># Start and end provide an easy way to highlight words in the original text.</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>sentence[token[<span class="hljs-string">&quot;start&quot;</span>] : token[<span class="hljs-string">&quot;end&quot;</span>]]
<span class="hljs-string">&#x27; jean-baptiste&#x27;</span>

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># Some models use the same idea to do part of speech.</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>syntaxer = pipeline(model=<span class="hljs-string">&quot;vblagoje/bert-english-uncased-finetuned-pos&quot;</span>, aggregation_strategy=<span class="hljs-string">&quot;simple&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>syntaxer(<span class="hljs-string">&quot;My name is Sarah and I live in London&quot;</span>)
[{<span class="hljs-string">&#x27;entity_group&#x27;</span>: <span class="hljs-string">&#x27;PRON&#x27;</span>, <span class="hljs-string">&#x27;score&#x27;</span>: <span class="hljs-number">0.999</span>, <span class="hljs-string">&#x27;word&#x27;</span>: <span class="hljs-string">&#x27;my&#x27;</span>, <span class="hljs-string">&#x27;start&#x27;</span>: <span class="hljs-number">0</span>, <span class="hljs-string">&#x27;end&#x27;</span>: <span class="hljs-number">2</span>}, {<span class="hljs-string">&#x27;entity_group&#x27;</span>: <span class="hljs-string">&#x27;NOUN&#x27;</span>, <span class="hljs-string">&#x27;score&#x27;</span>: <span class="hljs-number">0.997</span>, <span class="hljs-string">&#x27;word&#x27;</span>: <span class="hljs-string">&#x27;name&#x27;</span>, <span class="hljs-string">&#x27;start&#x27;</span>: <span class="hljs-number">3</span>, <span class="hljs-string">&#x27;end&#x27;</span>: <span class="hljs-number">7</span>}, {<span class="hljs-string">&#x27;entity_group&#x27;</span>: <span class="hljs-string">&#x27;AUX&#x27;</span>, <span class="hljs-string">&#x27;score&#x27;</span>: <span class="hljs-number">0.994</span>, <span class="hljs-string">&#x27;word&#x27;</span>: <span class="hljs-string">&#x27;is&#x27;</span>, <span class="hljs-string">&#x27;start&#x27;</span>: <span class="hljs-number">8</span>, <span class="hljs-string">&#x27;end&#x27;</span>: <span class="hljs-number">10</span>}, {<span class="hljs-string">&#x27;entity_group&#x27;</span>: <span class="hljs-string">&#x27;PROPN&#x27;</span>, <span class="hljs-string">&#x27;score&#x27;</span>: <span class="hljs-number">0.999</span>, <span class="hljs-string">&#x27;word&#x27;</span>: <span class="hljs-string">&#x27;sarah&#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">16</span>}, {<span class="hljs-string">&#x27;entity_group&#x27;</span>: <span class="hljs-string">&#x27;CCONJ&#x27;</span>, <span class="hljs-string">&#x27;score&#x27;</span>: <span class="hljs-number">0.999</span>, <span class="hljs-string">&#x27;word&#x27;</span>: <span class="hljs-string">&#x27;and&#x27;</span>, <span class="hljs-string">&#x27;start&#x27;</span>: <span class="hljs-number">17</span>, <span class="hljs-string">&#x27;end&#x27;</span>: <span class="hljs-number">20</span>}, {<span class="hljs-string">&#x27;entity_group&#x27;</span>: <span class="hljs-string">&#x27;PRON&#x27;</span>, <span class="hljs-string">&#x27;score&#x27;</span>: <span class="hljs-number">0.999</span>, <span class="hljs-string">&#x27;word&#x27;</span>: <span class="hljs-string">&#x27;i&#x27;</span>, <span class="hljs-string">&#x27;start&#x27;</span>: <span class="hljs-number">21</span>, <span class="hljs-string">&#x27;end&#x27;</span>: <span class="hljs-number">22</span>}, {<span class="hljs-string">&#x27;entity_group&#x27;</span>: <span class="hljs-string">&#x27;VERB&#x27;</span>, <span class="hljs-string">&#x27;score&#x27;</span>: <span class="hljs-number">0.998</span>, <span class="hljs-string">&#x27;word&#x27;</span>: <span class="hljs-string">&#x27;live&#x27;</span>, <span class="hljs-string">&#x27;start&#x27;</span>: <span class="hljs-number">23</span>, <span class="hljs-string">&#x27;end&#x27;</span>: <span class="hljs-number">27</span>}, {<span class="hljs-string">&#x27;entity_group&#x27;</span>: <span class="hljs-string">&#x27;ADP&#x27;</span>, <span class="hljs-string">&#x27;score&#x27;</span>: <span class="hljs-number">0.999</span>, <span class="hljs-string">&#x27;word&#x27;</span>: <span class="hljs-string">&#x27;in&#x27;</span>, <span class="hljs-string">&#x27;start&#x27;</span>: <span class="hljs-number">28</span>, <span class="hljs-string">&#x27;end&#x27;</span>: <span class="hljs-number">30</span>}, {<span class="hljs-string">&#x27;entity_group&#x27;</span>: <span class="hljs-string">&#x27;PROPN&#x27;</span>, <span class="hljs-string">&#x27;score&#x27;</span>: <span class="hljs-number">0.999</span>, <span class="hljs-string">&#x27;word&#x27;</span>: <span class="hljs-string">&#x27;london&#x27;</span>, <span class="hljs-string">&#x27;start&#x27;</span>: <span class="hljs-number">31</span>, <span class="hljs-string">&#x27;end&#x27;</span>: <span class="hljs-number">37</span>}]`,wrap:!1}}),{c(){r=i("p"),r.textContent=_,h=s(),f(p.$$.fragment)},l(t){r=l(t,"P",{"data-svelte-h":!0}),m(r)!=="svelte-11lpom8"&&(r.textContent=_),h=a(t),g(p.$$.fragment,t)},m(t,M){d(t,r,M),d(t,h,M),u(p,t,M),w=!0},p:J,i(t){w||(T(p.$$.fragment,t),w=!0)},o(t){b(p.$$.fragment,t),w=!1},d(t){t&&(o(r),o(h)),y(p,t)}}}function kw(x){let r,_="Usage:",h,p,w;return p=new j({props:{code:"ZW5fZnJfdHJhbnNsYXRvciUyMCUzRCUyMHBpcGVsaW5lKCUyMnRyYW5zbGF0aW9uX2VuX3RvX2ZyJTIyKSUwQWVuX2ZyX3RyYW5zbGF0b3IoJTIySG93JTIwb2xkJTIwYXJlJTIweW91JTNGJTIyKQ==",highlighted:`en_fr_translator = pipeline(<span class="hljs-string">&quot;translation_en_to_fr&quot;</span>)
en_fr_translator(<span class="hljs-string">&quot;How old are you?&quot;</span>)`,wrap:!1}}),{c(){r=i("p"),r.textContent=_,h=s(),f(p.$$.fragment)},l(t){r=l(t,"P",{"data-svelte-h":!0}),m(r)!=="svelte-5wyjqd"&&(r.textContent=_),h=a(t),g(p.$$.fragment,t)},m(t,M){d(t,r,M),d(t,h,M),u(p,t,M),w=!0},p:J,i(t){w||(T(p.$$.fragment,t),w=!0)},o(t){b(p.$$.fragment,t),w=!1},d(t){t&&(o(r),o(h)),y(p,t)}}}function Uw(x){let r,_="Example:",h,p,w;return p=new j({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMHBpcGVsaW5lJTBBJTBBb3JhY2xlJTIwJTNEJTIwcGlwZWxpbmUobW9kZWwlM0QlMjJmYWNlYm9vayUyRmJhcnQtbGFyZ2UtbW5saSUyMiklMEFvcmFjbGUoJTBBJTIwJTIwJTIwJTIwJTIySSUyMGhhdmUlMjBhJTIwcHJvYmxlbSUyMHdpdGglMjBteSUyMGlwaG9uZSUyMHRoYXQlMjBuZWVkcyUyMHRvJTIwYmUlMjByZXNvbHZlZCUyMGFzYXAhISUyMiUyQyUwQSUyMCUyMCUyMCUyMGNhbmRpZGF0ZV9sYWJlbHMlM0QlNUIlMjJ1cmdlbnQlMjIlMkMlMjAlMjJub3QlMjB1cmdlbnQlMjIlMkMlMjAlMjJwaG9uZSUyMiUyQyUyMCUyMnRhYmxldCUyMiUyQyUyMCUyMmNvbXB1dGVyJTIyJTVEJTJDJTBBKSUwQSUwQW9yYWNsZSglMEElMjAlMjAlMjAlMjAlMjJJJTIwaGF2ZSUyMGElMjBwcm9ibGVtJTIwd2l0aCUyMG15JTIwaXBob25lJTIwdGhhdCUyMG5lZWRzJTIwdG8lMjBiZSUyMHJlc29sdmVkJTIwYXNhcCEhJTIyJTJDJTBBJTIwJTIwJTIwJTIwY2FuZGlkYXRlX2xhYmVscyUzRCU1QiUyMmVuZ2xpc2glMjIlMkMlMjAlMjJnZXJtYW4lMjIlNUQlMkMlMEEp",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> pipeline

<span class="hljs-meta">&gt;&gt;&gt; </span>oracle = pipeline(model=<span class="hljs-string">&quot;facebook/bart-large-mnli&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>oracle(
<span class="hljs-meta">... </span>    <span class="hljs-string">&quot;I have a problem with my iphone that needs to be resolved asap!!&quot;</span>,
<span class="hljs-meta">... </span>    candidate_labels=[<span class="hljs-string">&quot;urgent&quot;</span>, <span class="hljs-string">&quot;not urgent&quot;</span>, <span class="hljs-string">&quot;phone&quot;</span>, <span class="hljs-string">&quot;tablet&quot;</span>, <span class="hljs-string">&quot;computer&quot;</span>],
<span class="hljs-meta">... </span>)
{<span class="hljs-string">&#x27;sequence&#x27;</span>: <span class="hljs-string">&#x27;I have a problem with my iphone that needs to be resolved asap!!&#x27;</span>, <span class="hljs-string">&#x27;labels&#x27;</span>: [<span class="hljs-string">&#x27;urgent&#x27;</span>, <span class="hljs-string">&#x27;phone&#x27;</span>, <span class="hljs-string">&#x27;computer&#x27;</span>, <span class="hljs-string">&#x27;not urgent&#x27;</span>, <span class="hljs-string">&#x27;tablet&#x27;</span>], <span class="hljs-string">&#x27;scores&#x27;</span>: [<span class="hljs-number">0.504</span>, <span class="hljs-number">0.479</span>, <span class="hljs-number">0.013</span>, <span class="hljs-number">0.003</span>, <span class="hljs-number">0.002</span>]}

<span class="hljs-meta">&gt;&gt;&gt; </span>oracle(
<span class="hljs-meta">... </span>    <span class="hljs-string">&quot;I have a problem with my iphone that needs to be resolved asap!!&quot;</span>,
<span class="hljs-meta">... </span>    candidate_labels=[<span class="hljs-string">&quot;english&quot;</span>, <span class="hljs-string">&quot;german&quot;</span>],
<span class="hljs-meta">... </span>)
{<span class="hljs-string">&#x27;sequence&#x27;</span>: <span class="hljs-string">&#x27;I have a problem with my iphone that needs to be resolved asap!!&#x27;</span>, <span class="hljs-string">&#x27;labels&#x27;</span>: [<span class="hljs-string">&#x27;english&#x27;</span>, <span class="hljs-string">&#x27;german&#x27;</span>], <span class="hljs-string">&#x27;scores&#x27;</span>: [<span class="hljs-number">0.814</span>, <span class="hljs-number">0.186</span>]}`,wrap:!1}}),{c(){r=i("p"),r.textContent=_,h=s(),f(p.$$.fragment)},l(t){r=l(t,"P",{"data-svelte-h":!0}),m(r)!=="svelte-11lpom8"&&(r.textContent=_),h=a(t),g(p.$$.fragment,t)},m(t,M){d(t,r,M),d(t,h,M),u(p,t,M),w=!0},p:J,i(t){w||(T(p.$$.fragment,t),w=!0)},o(t){b(p.$$.fragment,t),w=!1},d(t){t&&(o(r),o(h)),y(p,t)}}}function jw(x){let r,_="Example:",h,p,w;return p=new j({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMHBpcGVsaW5lJTBBJTBBZG9jdW1lbnRfcWElMjAlM0QlMjBwaXBlbGluZShtb2RlbCUzRCUyMmltcGlyYSUyRmxheW91dGxtLWRvY3VtZW50LXFhJTIyKSUwQWRvY3VtZW50X3FhKCUwQSUyMCUyMCUyMCUyMGltYWdlJTNEJTIyaHR0cHMlM0ElMkYlMkZodWdnaW5nZmFjZS5jbyUyRnNwYWNlcyUyRmltcGlyYSUyRmRvY3F1ZXJ5JTJGcmVzb2x2ZSUyRjIzNTkyMjNjMTgzN2E3NTg3NDAyYmRhMGYyNjQzMzgyYTZlZWZlYWIlMkZpbnZvaWNlLnBuZyUyMiUyQyUwQSUyMCUyMCUyMCUyMHF1ZXN0aW9uJTNEJTIyV2hhdCUyMGlzJTIwdGhlJTIwaW52b2ljZSUyMG51bWJlciUzRiUyMiUyQyUwQSk=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> pipeline

<span class="hljs-meta">&gt;&gt;&gt; </span>document_qa = pipeline(model=<span class="hljs-string">&quot;impira/layoutlm-document-qa&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>document_qa(
<span class="hljs-meta">... </span>    image=<span class="hljs-string">&quot;https://huggingface.co/spaces/impira/docquery/resolve/2359223c1837a7587402bda0f2643382a6eefeab/invoice.png&quot;</span>,
<span class="hljs-meta">... </span>    question=<span class="hljs-string">&quot;What is the invoice number?&quot;</span>,
<span class="hljs-meta">... </span>)
[{<span class="hljs-string">&#x27;score&#x27;</span>: <span class="hljs-number">0.425</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(){r=i("p"),r.textContent=_,h=s(),f(p.$$.fragment)},l(t){r=l(t,"P",{"data-svelte-h":!0}),m(r)!=="svelte-11lpom8"&&(r.textContent=_),h=a(t),g(p.$$.fragment,t)},m(t,M){d(t,r,M),d(t,h,M),u(p,t,M),w=!0},p:J,i(t){w||(T(p.$$.fragment,t),w=!0)},o(t){b(p.$$.fragment,t),w=!1},d(t){t&&(o(r),o(h)),y(p,t)}}}function $w(x){let r,_="Example:",h,p,w;return p=new j({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMHBpcGVsaW5lJTBBJTBBZXh0cmFjdG9yJTIwJTNEJTIwcGlwZWxpbmUobW9kZWwlM0QlMjJiZXJ0LWJhc2UtdW5jYXNlZCUyMiUyQyUyMHRhc2slM0QlMjJmZWF0dXJlLWV4dHJhY3Rpb24lMjIpJTBBcmVzdWx0JTIwJTNEJTIwZXh0cmFjdG9yKCUyMlRoaXMlMjBpcyUyMGElMjBzaW1wbGUlMjB0ZXN0LiUyMiUyQyUyMHJldHVybl90ZW5zb3JzJTNEVHJ1ZSklMEFyZXN1bHQuc2hhcGUlMjAlMjAlMjMlMjBUaGlzJTIwaXMlMjBhJTIwdGVuc29yJTIwb2YlMjBzaGFwZSUyMCU1QjElMkMlMjBzZXF1ZW5jZV9sZW50aCUyQyUyMGhpZGRlbl9kaW1lbnNpb24lNUQlMjByZXByZXNlbnRpbmclMjB0aGUlMjBpbnB1dCUyMHN0cmluZy4=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> pipeline

<span class="hljs-meta">&gt;&gt;&gt; </span>extractor = pipeline(model=<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>result = extractor(<span class="hljs-string">&quot;This is a simple test.&quot;</span>, return_tensors=<span class="hljs-literal">True</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>result.shape  <span class="hljs-comment"># This is a tensor of shape [1, sequence_lenth, hidden_dimension] representing the input string.</span>
torch.Size([<span class="hljs-number">1</span>, <span class="hljs-number">8</span>, <span class="hljs-number">768</span>])`,wrap:!1}}),{c(){r=i("p"),r.textContent=_,h=s(),f(p.$$.fragment)},l(t){r=l(t,"P",{"data-svelte-h":!0}),m(r)!=="svelte-11lpom8"&&(r.textContent=_),h=a(t),g(p.$$.fragment,t)},m(t,M){d(t,r,M),d(t,h,M),u(p,t,M),w=!0},p:J,i(t){w||(T(p.$$.fragment,t),w=!0)},o(t){b(p.$$.fragment,t),w=!1},d(t){t&&(o(r),o(h)),y(p,t)}}}function Jw(x){let r,_="Example:",h,p,w;return p=new j({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMHBpcGVsaW5lJTBBJTBBY2FwdGlvbmVyJTIwJTNEJTIwcGlwZWxpbmUobW9kZWwlM0QlMjJ5ZHNoaWVoJTJGdml0LWdwdDItY29jby1lbiUyMiklMEFjYXB0aW9uZXIoJTIyaHR0cHMlM0ElMkYlMkZodWdnaW5nZmFjZS5jbyUyRmRhdGFzZXRzJTJGTmFyc2lsJTJGaW1hZ2VfZHVtbXklMkZyYXclMkZtYWluJTJGcGFycm90cy5wbmclMjIp",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> pipeline

<span class="hljs-meta">&gt;&gt;&gt; </span>captioner = pipeline(model=<span class="hljs-string">&quot;ydshieh/vit-gpt2-coco-en&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>captioner(<span class="hljs-string">&quot;https://huggingface.co/datasets/Narsil/image_dummy/raw/main/parrots.png&quot;</span>)
[{<span class="hljs-string">&#x27;generated_text&#x27;</span>: <span class="hljs-string">&#x27;two birds are standing next to each other &#x27;</span>}]`,wrap:!1}}),{c(){r=i("p"),r.textContent=_,h=s(),f(p.$$.fragment)},l(t){r=l(t,"P",{"data-svelte-h":!0}),m(r)!=="svelte-11lpom8"&&(r.textContent=_),h=a(t),g(p.$$.fragment,t)},m(t,M){d(t,r,M),d(t,h,M),u(p,t,M),w=!0},p:J,i(t){w||(T(p.$$.fragment,t),w=!0)},o(t){b(p.$$.fragment,t),w=!1},d(t){t&&(o(r),o(h)),y(p,t)}}}function Pw(x){let r,_="Example:",h,p,w;return p=new j({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMHBpcGVsaW5lJTBBJTBBZ2VuZXJhdG9yJTIwJTNEJTIwcGlwZWxpbmUobW9kZWwlM0QlMjJmYWNlYm9vayUyRnNhbS12aXQtYmFzZSUyMiUyQyUyMHRhc2slM0QlMjJtYXNrLWdlbmVyYXRpb24lMjIpJTBBb3V0cHV0cyUyMCUzRCUyMGdlbmVyYXRvciglMEElMjAlMjAlMjAlMjAlMjJodHRwJTNBJTJGJTJGaW1hZ2VzLmNvY29kYXRhc2V0Lm9yZyUyRnZhbDIwMTclMkYwMDAwMDAwMzk3NjkuanBnJTIyJTJDJTBBKSUwQSUwQW91dHB1dHMlMjAlM0QlMjBnZW5lcmF0b3IoJTBBJTIwJTIwJTIwJTIwJTIyaHR0cHMlM0ElMkYlMkZodWdnaW5nZmFjZS5jbyUyRmRhdGFzZXRzJTJGTmFyc2lsJTJGaW1hZ2VfZHVtbXklMkZyYXclMkZtYWluJTJGcGFycm90cy5wbmclMjIlMkMlMjBwb2ludHNfcGVyX2JhdGNoJTNEMTI4JTBBKQ==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> pipeline

<span class="hljs-meta">&gt;&gt;&gt; </span>generator = pipeline(model=<span class="hljs-string">&quot;facebook/sam-vit-base&quot;</span>, task=<span class="hljs-string">&quot;mask-generation&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>outputs = generator(
<span class="hljs-meta">... </span>    <span class="hljs-string">&quot;http://images.cocodataset.org/val2017/000000039769.jpg&quot;</span>,
<span class="hljs-meta">... </span>)

<span class="hljs-meta">&gt;&gt;&gt; </span>outputs = generator(
<span class="hljs-meta">... </span>    <span class="hljs-string">&quot;https://huggingface.co/datasets/Narsil/image_dummy/raw/main/parrots.png&quot;</span>, points_per_batch=<span class="hljs-number">128</span>
<span class="hljs-meta">... </span>)`,wrap:!1}}),{c(){r=i("p"),r.textContent=_,h=s(),f(p.$$.fragment)},l(t){r=l(t,"P",{"data-svelte-h":!0}),m(r)!=="svelte-11lpom8"&&(r.textContent=_),h=a(t),g(p.$$.fragment,t)},m(t,M){d(t,r,M),d(t,h,M),u(p,t,M),w=!0},p:J,i(t){w||(T(p.$$.fragment,t),w=!0)},o(t){b(p.$$.fragment,t),w=!1},d(t){t&&(o(r),o(h)),y(p,t)}}}function Cw(x){let r,_="Example:",h,p,w;return p=new j({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMHBpcGVsaW5lJTBBJTBBb3JhY2xlJTIwJTNEJTIwcGlwZWxpbmUobW9kZWwlM0QlMjJkYW5kZWxpbiUyRnZpbHQtYjMyLWZpbmV0dW5lZC12cWElMjIpJTBBaW1hZ2VfdXJsJTIwJTNEJTIwJTIyaHR0cHMlM0ElMkYlMkZodWdnaW5nZmFjZS5jbyUyRmRhdGFzZXRzJTJGTmFyc2lsJTJGaW1hZ2VfZHVtbXklMkZyYXclMkZtYWluJTJGbGVuYS5wbmclMjIlMEFvcmFjbGUocXVlc3Rpb24lM0QlMjJXaGF0JTIwaXMlMjBzaGUlMjB3ZWFyaW5nJTIwJTNGJTIyJTJDJTIwaW1hZ2UlM0RpbWFnZV91cmwpJTBBJTBBb3JhY2xlKHF1ZXN0aW9uJTNEJTIyV2hhdCUyMGlzJTIwc2hlJTIwd2VhcmluZyUyMCUzRiUyMiUyQyUyMGltYWdlJTNEaW1hZ2VfdXJsJTJDJTIwdG9wX2slM0QxKSUwQSUwQW9yYWNsZShxdWVzdGlvbiUzRCUyMklzJTIwdGhpcyUyMGElMjBwZXJzb24lMjAlM0YlMjIlMkMlMjBpbWFnZSUzRGltYWdlX3VybCUyQyUyMHRvcF9rJTNEMSklMEElMEFvcmFjbGUocXVlc3Rpb24lM0QlMjJJcyUyMHRoaXMlMjBhJTIwbWFuJTIwJTNGJTIyJTJDJTIwaW1hZ2UlM0RpbWFnZV91cmwlMkMlMjB0b3BfayUzRDEp",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> pipeline

<span class="hljs-meta">&gt;&gt;&gt; </span>oracle = pipeline(model=<span class="hljs-string">&quot;dandelin/vilt-b32-finetuned-vqa&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>image_url = <span class="hljs-string">&quot;https://huggingface.co/datasets/Narsil/image_dummy/raw/main/lena.png&quot;</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>oracle(question=<span class="hljs-string">&quot;What is she wearing ?&quot;</span>, image=image_url)
[{<span class="hljs-string">&#x27;score&#x27;</span>: <span class="hljs-number">0.948</span>, <span class="hljs-string">&#x27;answer&#x27;</span>: <span class="hljs-string">&#x27;hat&#x27;</span>}, {<span class="hljs-string">&#x27;score&#x27;</span>: <span class="hljs-number">0.009</span>, <span class="hljs-string">&#x27;answer&#x27;</span>: <span class="hljs-string">&#x27;fedora&#x27;</span>}, {<span class="hljs-string">&#x27;score&#x27;</span>: <span class="hljs-number">0.003</span>, <span class="hljs-string">&#x27;answer&#x27;</span>: <span class="hljs-string">&#x27;clothes&#x27;</span>}, {<span class="hljs-string">&#x27;score&#x27;</span>: <span class="hljs-number">0.003</span>, <span class="hljs-string">&#x27;answer&#x27;</span>: <span class="hljs-string">&#x27;sun hat&#x27;</span>}, {<span class="hljs-string">&#x27;score&#x27;</span>: <span class="hljs-number">0.002</span>, <span class="hljs-string">&#x27;answer&#x27;</span>: <span class="hljs-string">&#x27;nothing&#x27;</span>}]

<span class="hljs-meta">&gt;&gt;&gt; </span>oracle(question=<span class="hljs-string">&quot;What is she wearing ?&quot;</span>, image=image_url, top_k=<span class="hljs-number">1</span>)
[{<span class="hljs-string">&#x27;score&#x27;</span>: <span class="hljs-number">0.948</span>, <span class="hljs-string">&#x27;answer&#x27;</span>: <span class="hljs-string">&#x27;hat&#x27;</span>}]

<span class="hljs-meta">&gt;&gt;&gt; </span>oracle(question=<span class="hljs-string">&quot;Is this a person ?&quot;</span>, image=image_url, top_k=<span class="hljs-number">1</span>)
[{<span class="hljs-string">&#x27;score&#x27;</span>: <span class="hljs-number">0.993</span>, <span class="hljs-string">&#x27;answer&#x27;</span>: <span class="hljs-string">&#x27;yes&#x27;</span>}]

<span class="hljs-meta">&gt;&gt;&gt; </span>oracle(question=<span class="hljs-string">&quot;Is this a man ?&quot;</span>, image=image_url, top_k=<span class="hljs-number">1</span>)
[{<span class="hljs-string">&#x27;score&#x27;</span>: <span class="hljs-number">0.996</span>, <span class="hljs-string">&#x27;answer&#x27;</span>: <span class="hljs-string">&#x27;no&#x27;</span>}]`,wrap:!1}}),{c(){r=i("p"),r.textContent=_,h=s(),f(p.$$.fragment)},l(t){r=l(t,"P",{"data-svelte-h":!0}),m(r)!=="svelte-11lpom8"&&(r.textContent=_),h=a(t),g(p.$$.fragment,t)},m(t,M){d(t,r,M),d(t,h,M),u(p,t,M),w=!0},p:J,i(t){w||(T(p.$$.fragment,t),w=!0)},o(t){b(p.$$.fragment,t),w=!1},d(t){t&&(o(r),o(h)),y(p,t)}}}function Iw(x){let r,_="Examples:",h,p,w;return p=new j({props:{code:"JTIzJTIwRXhwbGljaXRseSUyMGFzayUyMGZvciUyMHRlbnNvciUyMGFsbG9jYXRpb24lMjBvbiUyMENVREElMjBkZXZpY2UlMjAlM0EwJTBBcGlwZSUyMCUzRCUyMHBpcGVsaW5lKC4uLiUyQyUyMGRldmljZSUzRDApJTBBd2l0aCUyMHBpcGUuZGV2aWNlX3BsYWNlbWVudCgpJTNBJTBBJTIwJTIwJTIwJTIwJTIzJTIwRXZlcnklMjBmcmFtZXdvcmslMjBzcGVjaWZpYyUyMHRlbnNvciUyMGFsbG9jYXRpb24lMjB3aWxsJTIwYmUlMjBkb25lJTIwb24lMjB0aGUlMjByZXF1ZXN0JTIwZGV2aWNlJTBBJTIwJTIwJTIwJTIwb3V0cHV0JTIwJTNEJTIwcGlwZSguLi4p",highlighted:`<span class="hljs-comment"># Explicitly ask for tensor allocation on CUDA device :0</span>
pipe = pipeline(..., device=<span class="hljs-number">0</span>)
<span class="hljs-keyword">with</span> pipe.device_placement():
    <span class="hljs-comment"># Every framework specific tensor allocation will be done on the request device</span>
    output = pipe(...)`,wrap:!1}}),{c(){r=i("p"),r.textContent=_,h=s(),f(p.$$.fragment)},l(t){r=l(t,"P",{"data-svelte-h":!0}),m(r)!=="svelte-kvfsh7"&&(r.textContent=_),h=a(t),g(p.$$.fragment,t)},m(t,M){d(t,r,M),d(t,h,M),u(p,t,M),w=!0},p:J,i(t){w||(T(p.$$.fragment,t),w=!0)},o(t){b(p.$$.fragment,t),w=!1},d(t){t&&(o(r),o(h)),y(p,t)}}}function qw(x){let r,_,h,p,w,t,M,Sl=`The pipelines are a great and easy way to use models for inference. These pipelines are objects that abstract most of
the complex code from the library, offering a simple API dedicated to several tasks, including Named Entity
Recognition, Masked Language Modeling, Sentiment Analysis, Feature Extraction and Question Answering. See the
<a href="../task_summary">task summary</a> for examples of use.`,Ol,bn,ou="There are two categories of pipeline abstractions to be aware about:",Hl,yn,ru='<li>The <a href="/docs/transformers/v4.37.0/en/main_classes/pipelines#transformers.pipeline">pipeline()</a> which is the most powerful object encapsulating all other pipelines.</li> <li>Task-specific pipelines are available for <a href="#audio">audio</a>, <a href="#computer-vision">computer vision</a>, <a href="#natural-language-processing">natural language processing</a>, and <a href="#multimodal">multimodal</a> tasks.</li>',Yl,wn,El,Mn,iu=`The <em>pipeline</em> abstraction is a wrapper around all the other available pipelines. It is instantiated as any other
pipeline but can provide additional quality of life.`,Ql,_n,lu="Simple call on one item:",Xl,xn,Kl,vn,cu=`If you want to use a specific model from the <a href="https://huggingface.co" rel="nofollow">hub</a> you can ignore the task if the model on
the hub already defines it:`,ec,kn,tc,Un,pu="To call a pipeline on many items, you can call it with a <em>list</em>.",nc,jn,sc,$n,du=`To iterate over full datasets it is recommended to use a <code>dataset</code> directly. This means you don’t need to allocate
the whole dataset at once, nor do you need to do batching yourself. This should work just as fast as custom loops on
GPU. If it doesn’t don’t hesitate to create an issue.`,ac,Jn,oc,Pn,mu="For ease of use, a generator is also possible:",rc,Cn,ic,_e,In,Md,qo,hu='Utility factory method to build a <a href="/docs/transformers/v4.37.0/en/main_classes/pipelines#transformers.Pipeline">Pipeline</a>.',_d,Go,fu="Pipelines are made of:",xd,zo,gu='<li>A <a href="tokenizer">tokenizer</a> in charge of mapping raw textual input to token.</li> <li>A <a href="model">model</a> to make predictions from the inputs.</li> <li>Some (optional) post processing for enhancing model’s output.</li>',vd,Oe,lc,qn,cc,Gn,uu=`All pipelines can use batching. This will work
whenever the pipeline uses its streaming ability (so when passing lists or <code>Dataset</code> or <code>generator</code>).`,pc,zn,dc,He,mc,Zn,hc,Fn,fc,Dn,Tu="Example where it’s most a slowdown:",gc,Rn,uc,Vn,bu=`This is a occasional very long sentence compared to the other. In that case, the <strong>whole</strong> batch will need to be 400
tokens long, so the whole batch will be [64, 400] instead of [64, 4], leading to the high slowdown. Even worse, on
bigger batches, the program simply crashes.`,Tc,An,bc,Nn,yu=`There are no good (general) solutions for this problem, and your mileage may vary depending on your use cases. Rule of
thumb:`,yc,Bn,wu="For users, a rule of thumb is:",wc,Wn,Mu=`<li><p><strong>Measure performance on your load, with your hardware. Measure, measure, and keep measuring. Real numbers are the
only way to go.</strong></p></li> <li><p>If you are latency constrained (live product doing inference), don’t batch.</p></li> <li><p>If you are using CPU, don’t batch.</p></li> <li><p>If you are using throughput (you want to run your model on a bunch of static data), on GPU, then:</p> <ul><li>If you have no clue about the size of the sequence_length (“natural” data), by default don’t batch, measure and
try tentatively to add it, add OOM checks to recover when it will fail (and it will at some point if you don’t
control the sequence_length.)</li> <li>If your sequence_length is super regular, then batching is more likely to be VERY interesting, measure and push
it until you get OOMs.</li> <li>The larger the GPU the more likely batching is going to be more interesting</li></ul></li> <li><p>As soon as you enable batching, make sure you can handle OOMs nicely.</p></li>`,Mc,Sn,_c,Ln,_u=`<code>zero-shot-classification</code> and <code>question-answering</code> are slightly specific in the sense, that a single input might yield
multiple forward pass of a model. Under normal circumstances, this would yield issues with <code>batch_size</code> argument.`,xc,On,xu=`In order to circumvent this issue, both of these pipelines are a bit specific, they are <code>ChunkPipeline</code> instead of
regular <code>Pipeline</code>. In short:`,vc,Hn,kc,Yn,vu="Now becomes:",Uc,En,jc,Qn,ku=`This should be very transparent to your code because the pipelines are used in
the same way.`,$c,Xn,Uu=`This is a simplified view, since the pipeline can handle automatically the batch to ! Meaning you don’t have to care
about how many forward passes you inputs are actually going to trigger, you can optimize the <code>batch_size</code>
independently of the inputs. The caveats from the previous section still apply.`,Jc,Kn,Pc,es,ju="If you want to override a specific pipeline.",Cc,ts,$u=`Don’t hesitate to create an issue for your task at hand, the goal of the pipeline is to be easy to use and support most
cases, so <code>transformers</code> could maybe support your use case.`,Ic,ns,Ju="If you want to try simply you can:",qc,ss,Pu="<li>Subclass your pipeline of choice</li>",Gc,as,zc,os,Cu="That should enable you to do all the custom code you want.",Zc,rs,Fc,is,Iu='<a href="../add_new_pipeline">Implementing a new pipeline</a>',Dc,ls,Rc,cs,qu="Pipelines available for audio tasks include the following.",Vc,ps,Ac,W,ds,kd,Zo,Gu=`Audio classification pipeline using any <code>AutoModelForAudioClassification</code>. This pipeline predicts the class of a
raw waveform or an audio file. In case of an audio file, ffmpeg should be installed to support multiple audio
formats.`,Ud,Ye,jd,Fo,zu='Learn more about the basics of using a pipeline in the <a href="../pipeline_tutorial">pipeline tutorial</a>',$d,Do,Zu=`This pipeline can currently be loaded from <a href="/docs/transformers/v4.37.0/en/main_classes/pipelines#transformers.pipeline">pipeline()</a> using the following task identifier:
<code>&quot;audio-classification&quot;</code>.`,Jd,Ro,Fu=`See the list of available models on
<a href="https://huggingface.co/models?filter=audio-classification" rel="nofollow">huggingface.co/models</a>.`,Pd,Ee,ms,Cd,Vo,Du=`Classify the sequence(s) given as inputs. See the <a href="/docs/transformers/v4.37.0/en/main_classes/pipelines#transformers.AutomaticSpeechRecognitionPipeline">AutomaticSpeechRecognitionPipeline</a> documentation for more
information.`,Nc,hs,Bc,ie,fs,Id,Ao,Ru="Pipeline that aims at extracting spoken text contained within some audio.",qd,No,Vu=`The input can be either a raw waveform or a audio file. In case of the audio file, ffmpeg should be installed for
to support multiple audio formats`,Gd,Qe,zd,Bo,Au='Learn more about the basics of using a pipeline in the <a href="../pipeline_tutorial">pipeline tutorial</a>',Zd,Xe,gs,Fd,Wo,Nu=`Transcribe the audio sequence(s) given as inputs to text. See the <a href="/docs/transformers/v4.37.0/en/main_classes/pipelines#transformers.AutomaticSpeechRecognitionPipeline">AutomaticSpeechRecognitionPipeline</a>
documentation for more information.`,Wc,us,Sc,R,Ts,Dd,So,Bu=`Text-to-audio generation pipeline using any <code>AutoModelForTextToWaveform</code> or <code>AutoModelForTextToSpectrogram</code>. This
pipeline generates an audio file from an input text and optional other conditional inputs.`,Rd,Ke,Vd,Lo,Wu='Learn more about the basics of using a pipeline in the <a href="../pipeline_tutorial">pipeline tutorial</a>',Ad,et,Nd,Oo,Su=`This pipeline can currently be loaded from <a href="/docs/transformers/v4.37.0/en/main_classes/pipelines#transformers.pipeline">pipeline()</a> using the following task identifiers: <code>&quot;text-to-speech&quot;</code> or
<code>&quot;text-to-audio&quot;</code>.`,Bd,Ho,Lu='See the list of available models on <a href="https://huggingface.co/models?filter=text-to-speech" rel="nofollow">huggingface.co/models</a>.',Wd,tt,bs,Sd,Yo,Ou='Generates speech/audio from the inputs. See the <a href="/docs/transformers/v4.37.0/en/main_classes/pipelines#transformers.TextToAudioPipeline">TextToAudioPipeline</a> documentation for more information.',Lc,ys,Oc,xe,ws,Ld,Eo,Hu=`Zero shot audio classification pipeline using <code>ClapModel</code>. This pipeline predicts the class of an audio when you
provide an audio and a set of <code>candidate_labels</code>.`,Od,nt,Hd,Qo,Yu=`Learn more about the basics of using a pipeline in the <a href="../pipeline_tutorial">pipeline tutorial</a> This audio
classification pipeline can currently be loaded from <a href="/docs/transformers/v4.37.0/en/main_classes/pipelines#transformers.pipeline">pipeline()</a> using the following task identifier:
<code>&quot;zero-shot-audio-classification&quot;</code>. See the list of available models on
<a href="https://huggingface.co/models?filter=zero-shot-audio-classification" rel="nofollow">huggingface.co/models</a>.`,Yd,st,Ms,Ed,Xo,Eu="Assign labels to the audio(s) passed as inputs.",Hc,_s,Yc,xs,Qu="Pipelines available for computer vision tasks include the following.",Ec,vs,Qc,S,ks,Qd,Ko,Xu="Depth estimation pipeline using any <code>AutoModelForDepthEstimation</code>. This pipeline predicts the depth of an image.",Xd,at,Kd,er,Ku='Learn more about the basics of using a pipeline in the <a href="../pipeline_tutorial">pipeline tutorial</a>',em,tr,eT=`This depth estimation pipeline can currently be loaded from <a href="/docs/transformers/v4.37.0/en/main_classes/pipelines#transformers.pipeline">pipeline()</a> using the following task identifier:
<code>&quot;depth-estimation&quot;</code>.`,tm,nr,tT='See the list of available models on <a href="https://huggingface.co/models?filter=depth-estimation" rel="nofollow">huggingface.co/models</a>.',nm,ot,Us,sm,sr,nT="Assign labels to the image(s) passed as inputs.",Xc,js,Kc,L,$s,am,ar,sT=`Image classification pipeline using any <code>AutoModelForImageClassification</code>. This pipeline predicts the class of an
image.`,om,rt,rm,or,aT='Learn more about the basics of using a pipeline in the <a href="../pipeline_tutorial">pipeline tutorial</a>',im,rr,oT=`This image classification pipeline can currently be loaded from <a href="/docs/transformers/v4.37.0/en/main_classes/pipelines#transformers.pipeline">pipeline()</a> using the following task identifier:
<code>&quot;image-classification&quot;</code>.`,lm,ir,rT=`See the list of available models on
<a href="https://huggingface.co/models?filter=image-classification" rel="nofollow">huggingface.co/models</a>.`,cm,it,Js,pm,lr,iT="Assign labels to the image(s) passed as inputs.",ep,Ps,tp,le,Cs,dm,cr,lT=`Image segmentation pipeline using any <code>AutoModelForXXXSegmentation</code>. This pipeline predicts masks of objects and
their classes.`,mm,lt,hm,pr,cT=`This image segmentation pipeline can currently be loaded from <a href="/docs/transformers/v4.37.0/en/main_classes/pipelines#transformers.pipeline">pipeline()</a> using the following task identifier:
<code>&quot;image-segmentation&quot;</code>.`,fm,dr,pT=`See the list of available models on
<a href="https://huggingface.co/models?filter=image-segmentation" rel="nofollow">huggingface.co/models</a>.`,gm,ct,Is,um,mr,dT="Perform segmentation (detect masks & classes) in the image(s) passed as inputs.",np,qs,sp,ce,Gs,Tm,hr,mT=`Image to Image pipeline using any <code>AutoModelForImageToImage</code>. This pipeline generates an image based on a previous
image input.`,bm,pt,ym,fr,hT=`This image to image pipeline can currently be loaded from <a href="/docs/transformers/v4.37.0/en/main_classes/pipelines#transformers.pipeline">pipeline()</a> using the following task identifier:
<code>&quot;image-to-image&quot;</code>.`,wm,gr,fT='See the list of available models on <a href="https://huggingface.co/models?filter=image-to-image" rel="nofollow">huggingface.co/models</a>.',Mm,dt,zs,_m,ur,gT="Transform the image(s) passed as inputs.",ap,Zs,op,O,Fs,xm,Tr,uT=`Object detection pipeline using any <code>AutoModelForObjectDetection</code>. This pipeline predicts bounding boxes of objects
and their classes.`,vm,mt,km,br,TT='Learn more about the basics of using a pipeline in the <a href="../pipeline_tutorial">pipeline tutorial</a>',Um,yr,bT=`This object detection pipeline can currently be loaded from <a href="/docs/transformers/v4.37.0/en/main_classes/pipelines#transformers.pipeline">pipeline()</a> using the following task identifier:
<code>&quot;object-detection&quot;</code>.`,jm,wr,yT='See the list of available models on <a href="https://huggingface.co/models?filter=object-detection" rel="nofollow">huggingface.co/models</a>.',$m,ht,Ds,Jm,Mr,wT="Detect objects (bounding boxes & classes) in the image(s) passed as inputs.",rp,Rs,ip,ve,Vs,Pm,_r,MT=`Video classification pipeline using any <code>AutoModelForVideoClassification</code>. This pipeline predicts the class of a
video.`,Cm,xr,_T=`This video classification pipeline can currently be loaded from <a href="/docs/transformers/v4.37.0/en/main_classes/pipelines#transformers.pipeline">pipeline()</a> using the following task identifier:
<code>&quot;video-classification&quot;</code>.`,Im,vr,xT=`See the list of available models on
<a href="https://huggingface.co/models?filter=video-classification" rel="nofollow">huggingface.co/models</a>.`,qm,ft,As,Gm,kr,vT="Assign labels to the video(s) passed as inputs.",lp,Ns,cp,H,Bs,zm,Ur,kT=`Zero shot image classification pipeline using <code>CLIPModel</code>. This pipeline predicts the class of an image when you
provide an image and a set of <code>candidate_labels</code>.`,Zm,gt,Fm,jr,UT='Learn more about the basics of using a pipeline in the <a href="../pipeline_tutorial">pipeline tutorial</a>',Dm,$r,jT=`This image classification pipeline can currently be loaded from <a href="/docs/transformers/v4.37.0/en/main_classes/pipelines#transformers.pipeline">pipeline()</a> using the following task identifier:
<code>&quot;zero-shot-image-classification&quot;</code>.`,Rm,Jr,$T=`See the list of available models on
<a href="https://huggingface.co/models?filter=zero-shot-image-classification" rel="nofollow">huggingface.co/models</a>.`,Vm,ut,Ws,Am,Pr,JT="Assign labels to the image(s) passed as inputs.",pp,Ss,dp,Y,Ls,Nm,Cr,PT=`Zero shot object detection pipeline using <code>OwlViTForObjectDetection</code>. This pipeline predicts bounding boxes of
objects when you provide an image and a set of <code>candidate_labels</code>.`,Bm,Tt,Wm,Ir,CT='Learn more about the basics of using a pipeline in the <a href="../pipeline_tutorial">pipeline tutorial</a>',Sm,qr,IT=`This object detection pipeline can currently be loaded from <a href="/docs/transformers/v4.37.0/en/main_classes/pipelines#transformers.pipeline">pipeline()</a> using the following task identifier:
<code>&quot;zero-shot-object-detection&quot;</code>.`,Lm,Gr,qT=`See the list of available models on
<a href="https://huggingface.co/models?filter=zero-shot-object-detection" rel="nofollow">huggingface.co/models</a>.`,Om,bt,Os,Hm,zr,GT="Detect objects (bounding boxes & classes) in the image(s) passed as inputs.",mp,Hs,hp,Ys,zT="Pipelines available for natural language processing tasks include the following.",fp,Es,gp,pe,Qs,Ym,Zr,ZT=`Utility class containing a conversation and its history. This class is meant to be used as an input to the
<a href="/docs/transformers/v4.37.0/en/main_classes/pipelines#transformers.ConversationalPipeline">ConversationalPipeline</a>. The conversation contains several utility functions to manage the addition of new user
inputs and generated model responses.`,Em,yt,Qm,wt,Xs,Xm,Fr,FT=`Add a user input to the conversation for the next round. This is a legacy method that assumes that inputs must
alternate user/assistant/user/assistant, and so will not add multiple user messages in succession. We recommend
just using <code>add_message</code> with role “user” instead.`,Km,Mt,Ks,eh,Dr,DT="This is a legacy method. We recommend just using <code>add_message</code> with an appropriate role instead.",th,_t,ea,nh,Rr,RT=`This is a legacy method, as the Conversation no longer distinguishes between processed and unprocessed user
input. We set a counter here to keep behaviour mostly backward-compatible, but in general you should just read
the messages directly when writing new code.`,up,E,ta,sh,Vr,VT="Multi-turn conversational pipeline.",ah,xt,oh,Ar,AT='Learn more about the basics of using a pipeline in the <a href="../pipeline_tutorial">pipeline tutorial</a>',rh,Nr,NT=`This conversational pipeline can currently be loaded from <a href="/docs/transformers/v4.37.0/en/main_classes/pipelines#transformers.pipeline">pipeline()</a> using the following task identifier:
<code>&quot;conversational&quot;</code>.`,ih,Br,BT=`This pipeline can be used with any model that has a <a href="https://huggingface.co/docs/transformers/chat_templating" rel="nofollow">chat
template</a> set.`,lh,vt,na,ch,Wr,WT="Generate responses for the conversation(s) given as inputs.",Tp,sa,bp,G,aa,ph,Sr,ST=`Masked language modeling prediction pipeline using any <code>ModelWithLMHead</code>. See the <a href="../task_summary#masked-language-modeling">masked language modeling
examples</a> for more information.`,dh,kt,mh,Lr,LT='Learn more about the basics of using a pipeline in the <a href="../pipeline_tutorial">pipeline tutorial</a>',hh,Or,OT=`This mask filling pipeline can currently be loaded from <a href="/docs/transformers/v4.37.0/en/main_classes/pipelines#transformers.pipeline">pipeline()</a> using the following task identifier:
<code>&quot;fill-mask&quot;</code>.`,fh,Hr,HT=`The models that this pipeline can use are models that have been trained with a masked language modeling objective,
which includes the bi-directional models in the library. See the up-to-date list of available models on
<a href="https://huggingface.co/models?filter=fill-mask" rel="nofollow">huggingface.co/models</a>.`,gh,Ut,uh,jt,Th,$t,oa,bh,Yr,YT="Fill the masked token in the text(s) given as inputs.",yp,ra,wp,z,ia,yh,Er,ET=`Question Answering pipeline using any <code>ModelForQuestionAnswering</code>. See the <a href="../task_summary#question-answering">question answering
examples</a> for more information.`,wh,Jt,Mh,Qr,QT='Learn more about the basics of using a pipeline in the <a href="../pipeline_tutorial">pipeline tutorial</a>',_h,Xr,XT=`This question answering pipeline can currently be loaded from <a href="/docs/transformers/v4.37.0/en/main_classes/pipelines#transformers.pipeline">pipeline()</a> using the following task identifier:
<code>&quot;question-answering&quot;</code>.`,xh,Kr,KT=`The models that this pipeline can use are models that have been fine-tuned on a question answering task. See the
up-to-date list of available models on
<a href="https://huggingface.co/models?filter=question-answering" rel="nofollow">huggingface.co/models</a>.`,vh,Pt,la,kh,ei,eb="Answer the question(s) given as inputs by using the context(s).",Uh,Ne,ca,jh,ti,tb=`QuestionAnsweringPipeline leverages the <code>SquadExample</code> internally. This helper method encapsulate all the
logic for converting question(s) and context(s) to <code>SquadExample</code>.`,$h,ni,nb="We currently support extractive question answering.",Jh,Ct,pa,Ph,si,sb="When decoding from token probabilities, this method maps token indexes to actual word in the initial context.",Mp,da,_p,de,ma,Ch,ai,ab="Summarize news articles and other documents.",Ih,oi,ob=`This summarizing pipeline can currently be loaded from <a href="/docs/transformers/v4.37.0/en/main_classes/pipelines#transformers.pipeline">pipeline()</a> using the following task identifier:
<code>&quot;summarization&quot;</code>.`,qh,ri,rb=`The models that this pipeline can use are models that have been fine-tuned on a summarization task, which is
currently, ’<em>bart-large-cnn</em>’, ’<em>t5-small</em>’, ’<em>t5-base</em>’, ’<em>t5-large</em>’, ’<em>t5-3b</em>’, ’<em>t5-11b</em>’. See the up-to-date
list of available models on <a href="https://huggingface.co/models?filter=summarization" rel="nofollow">huggingface.co/models</a>. For a list
of available parameters, see the <a href="https://huggingface.co/docs/transformers/en/main_classes/text_generation#transformers.generation.GenerationMixin.generate" rel="nofollow">following
documentation</a>`,Gh,It,zh,qt,ha,Zh,ii,ib="Summarize the text(s) given as inputs.",xp,fa,vp,Q,ga,Fh,li,lb=`Table Question Answering pipeline using a <code>ModelForTableQuestionAnswering</code>. This pipeline is only available in
PyTorch.`,Dh,Gt,Rh,ci,cb='Learn more about the basics of using a pipeline in the <a href="../pipeline_tutorial">pipeline tutorial</a>',Vh,pi,pb=`This tabular question answering pipeline can currently be loaded from <a href="/docs/transformers/v4.37.0/en/main_classes/pipelines#transformers.pipeline">pipeline()</a> using the following task
identifier: <code>&quot;table-question-answering&quot;</code>.`,Ah,di,db=`The models that this pipeline can use are models that have been fine-tuned on a tabular question answering task.
See the up-to-date list of available models on
<a href="https://huggingface.co/models?filter=table-question-answering" rel="nofollow">huggingface.co/models</a>.`,Nh,ae,ua,Bh,mi,mb="Answers queries according to a table. The pipeline accepts several types of inputs which are detailed below:",Wh,hi,hb="<li><code>pipeline(table, query)</code></li> <li><code>pipeline(table, [query])</code></li> <li><code>pipeline(table=table, query=query)</code></li> <li><code>pipeline(table=table, query=[query])</code></li> <li><code>pipeline({&quot;table&quot;: table, &quot;query&quot;: query})</code></li> <li><code>pipeline({&quot;table&quot;: table, &quot;query&quot;: [query]})</code></li> <li><code>pipeline([{&quot;table&quot;: table, &quot;query&quot;: query}, {&quot;table&quot;: table, &quot;query&quot;: query}])</code></li>",Sh,fi,fb="The <code>table</code> argument should be a dict or a DataFrame built from that dict, containing the whole table:",Lh,zt,Oh,gi,gb="This dictionary can be passed in as such, or can be converted to a pandas DataFrame:",Hh,Zt,kp,Ta,Up,V,ba,Yh,ui,ub=`Text classification pipeline using any <code>ModelForSequenceClassification</code>. See the <a href="../task_summary#sequence-classification">sequence classification
examples</a> for more information.`,Eh,Ft,Qh,Ti,Tb='Learn more about the basics of using a pipeline in the <a href="../pipeline_tutorial">pipeline tutorial</a>',Xh,bi,bb=`This text classification pipeline can currently be loaded from <a href="/docs/transformers/v4.37.0/en/main_classes/pipelines#transformers.pipeline">pipeline()</a> using the following task identifier:
<code>&quot;sentiment-analysis&quot;</code> (for classifying sequences according to positive or negative sentiments).`,Kh,yi,yb=`If multiple classification labels are available (<code>model.config.num_labels &gt;= 2</code>), the pipeline will run a softmax
over the results. If there is a single label, the pipeline will run a sigmoid over the result.`,ef,wi,wb=`The models that this pipeline can use are models that have been fine-tuned on a sequence classification task. See
the up-to-date list of available models on
<a href="https://huggingface.co/models?filter=text-classification" rel="nofollow">huggingface.co/models</a>.`,tf,Dt,ya,nf,Mi,Mb="Classify the text(s) given as inputs.",jp,wa,$p,X,Ma,sf,_i,_b=`Language generation pipeline using any <code>ModelWithLMHead</code>. This pipeline predicts the words that will follow a
specified text prompt.`,af,Rt,of,xi,xb=`Learn more about the basics of using a pipeline in the <a href="../pipeline_tutorial">pipeline tutorial</a>. You can pass text
generation parameters to this pipeline to control stopping criteria, decoding strategy, and more. Learn more about
text generation parameters in <a href="../generation_strategies">Text generation strategies</a> and <a href="text_generation">Text
generation</a>.`,rf,vi,vb=`This language generation pipeline can currently be loaded from <a href="/docs/transformers/v4.37.0/en/main_classes/pipelines#transformers.pipeline">pipeline()</a> using the following task identifier:
<code>&quot;text-generation&quot;</code>.`,lf,ki,kb=`The models that this pipeline can use are models that have been trained with an autoregressive language modeling
objective, which includes the uni-directional models in the library (e.g. gpt2). See the list of available models
on <a href="https://huggingface.co/models?filter=text-generation" rel="nofollow">huggingface.co/models</a>.`,cf,Vt,_a,pf,Ui,Ub="Complete the prompt(s) given as inputs.",Jp,xa,Pp,Z,va,df,ji,jb="Pipeline for text to text generation using seq2seq models.",mf,At,hf,$i,$b=`Learn more about the basics of using a pipeline in the <a href="../pipeline_tutorial">pipeline tutorial</a>. You can pass text
generation parameters to this pipeline to control stopping criteria, decoding strategy, and more. Learn more about
text generation parameters in <a href="../generation_strategies">Text generation strategies</a> and <a href="text_generation">Text
generation</a>.`,ff,Ji,Jb=`This Text2TextGenerationPipeline pipeline can currently be loaded from <a href="/docs/transformers/v4.37.0/en/main_classes/pipelines#transformers.pipeline">pipeline()</a> using the following task
identifier: <code>&quot;text2text-generation&quot;</code>.`,gf,Pi,Pb=`The models that this pipeline can use are models that have been fine-tuned on a translation task. See the
up-to-date list of available models on
<a href="https://huggingface.co/models?filter=text2text-generation" rel="nofollow">huggingface.co/models</a>. For a list of available
parameters, see the <a href="https://huggingface.co/docs/transformers/en/main_classes/text_generation#transformers.generation.GenerationMixin.generate" rel="nofollow">following
documentation</a>`,uf,Nt,Tf,Bt,ka,bf,Ci,Cb="Generate the output text(s) using text(s) given as inputs.",yf,Wt,Ua,wf,Ii,Ib="Checks whether there might be something wrong with given input with regard to the model.",Cp,ja,Ip,q,$a,Mf,qi,qb=`Named Entity Recognition pipeline using any <code>ModelForTokenClassification</code>. See the <a href="../task_summary#named-entity-recognition">named entity recognition
examples</a> for more information.`,_f,St,xf,Gi,Gb='Learn more about the basics of using a pipeline in the <a href="../pipeline_tutorial">pipeline tutorial</a>',vf,zi,zb=`This token recognition pipeline can currently be loaded from <a href="/docs/transformers/v4.37.0/en/main_classes/pipelines#transformers.pipeline">pipeline()</a> using the following task identifier:
<code>&quot;ner&quot;</code> (for predicting the classes of tokens in a sequence: person, organisation, location or miscellaneous).`,kf,Zi,Zb=`The models that this pipeline can use are models that have been fine-tuned on a token classification task. See the
up-to-date list of available models on
<a href="https://huggingface.co/models?filter=token-classification" rel="nofollow">huggingface.co/models</a>.`,Uf,Lt,Ja,jf,Fi,Fb="Classify each token of the text(s) given as inputs.",$f,Be,Pa,Jf,Di,Db="Override tokens from a given word that disagree to force agreement on word boundaries.",Pf,Ri,Rb=`Example: micro|soft| com|pany| B-ENT I-NAME I-ENT I-ENT will be rewritten with first strategy as microsoft|
company| B-ENT I-ENT`,Cf,Ot,Ca,If,Vi,Vb="Fuse various numpy arrays into dicts with all the information needed for aggregation",qf,Ht,Ia,Gf,Ai,Ab="Find and group together the adjacent tokens with the same entity predicted.",zf,Yt,qa,Zf,Ni,Nb="Group together the adjacent tokens with the same entity predicted.",qp,Ga,Gp,me,za,Ff,Bi,Bb="Translates from one language to another.",Df,Wi,Wb=`This translation pipeline can currently be loaded from <a href="/docs/transformers/v4.37.0/en/main_classes/pipelines#transformers.pipeline">pipeline()</a> using the following task identifier:
<code>&quot;translation_xx_to_yy&quot;</code>.`,Rf,Si,Sb=`The models that this pipeline can use are models that have been fine-tuned on a translation task. See the
up-to-date list of available models on <a href="https://huggingface.co/models?filter=translation" rel="nofollow">huggingface.co/models</a>.
For a list of available parameters, see the <a href="https://huggingface.co/docs/transformers/en/main_classes/text_generation#transformers.generation.GenerationMixin.generate" rel="nofollow">following
documentation</a>`,Vf,Et,Af,Qt,Za,Nf,Li,Lb="Translate the text(s) given as inputs.",zp,Fa,Zp,A,Da,Bf,Oi,Ob=`NLI-based zero-shot classification pipeline using a <code>ModelForSequenceClassification</code> trained on NLI (natural
language inference) tasks. Equivalent of <code>text-classification</code> pipelines, but these models don’t require a
hardcoded number of potential classes, they can be chosen at runtime. It usually means it’s slower but it is
<strong>much</strong> more flexible.`,Wf,Hi,Hb=`Any combination of sequences and labels can be passed and each combination will be posed as a premise/hypothesis
pair and passed to the pretrained model. Then, the logit for <em>entailment</em> is taken as the logit for the candidate
label being valid. Any NLI model can be used, but the id of the <em>entailment</em> label must be included in the model
config’s :attr:<em>~transformers.PretrainedConfig.label2id</em>.`,Sf,Xt,Lf,Yi,Yb='Learn more about the basics of using a pipeline in the <a href="../pipeline_tutorial">pipeline tutorial</a>',Of,Ei,Eb=`This NLI pipeline can currently be loaded from <a href="/docs/transformers/v4.37.0/en/main_classes/pipelines#transformers.pipeline">pipeline()</a> using the following task identifier:
<code>&quot;zero-shot-classification&quot;</code>.`,Hf,Qi,Qb=`The models that this pipeline can use are models that have been fine-tuned on an NLI task. See the up-to-date list
of available models on <a href="https://huggingface.co/models?search=nli" rel="nofollow">huggingface.co/models</a>.`,Yf,Kt,Ra,Ef,Xi,Xb=`Classify the sequence(s) given as inputs. See the <a href="/docs/transformers/v4.37.0/en/main_classes/pipelines#transformers.ZeroShotClassificationPipeline">ZeroShotClassificationPipeline</a> documentation for more
information.`,Fp,Va,Dp,Aa,Kb="Pipelines available for multimodal tasks include the following.",Rp,Na,Vp,K,Ba,Qf,Ki,ey=`Document Question Answering pipeline using any <code>AutoModelForDocumentQuestionAnswering</code>. The inputs/outputs are
similar to the (extractive) question answering pipeline; however, the pipeline takes an image (and optional OCR’d
words/boxes) as input instead of text context.`,Xf,en,Kf,el,ty='Learn more about the basics of using a pipeline in the <a href="../pipeline_tutorial">pipeline tutorial</a>',eg,tl,ny=`This document question answering pipeline can currently be loaded from <a href="/docs/transformers/v4.37.0/en/main_classes/pipelines#transformers.pipeline">pipeline()</a> using the following task
identifier: <code>&quot;document-question-answering&quot;</code>.`,tg,nl,sy=`The models that this pipeline can use are models that have been fine-tuned on a document question answering task.
See the up-to-date list of available models on
<a href="https://huggingface.co/models?filter=document-question-answering" rel="nofollow">huggingface.co/models</a>.`,ng,Re,Wa,sg,sl,ay=`Answer the question(s) given as inputs by using the document(s). A document is defined as an image and an
optional list of (word, box) tuples which represent the text in the document. If the <code>word_boxes</code> are not
provided, it will use the Tesseract OCR engine (if available) to extract the words and boxes automatically for
LayoutLM-like models which require them as input. For Donut, no OCR is run.`,ag,al,oy="You can invoke the pipeline several ways:",og,ol,ry="<li><code>pipeline(image=image, question=question)</code></li> <li><code>pipeline(image=image, question=question, word_boxes=word_boxes)</code></li> <li><code>pipeline([{&quot;image&quot;: image, &quot;question&quot;: question}])</code></li> <li><code>pipeline([{&quot;image&quot;: image, &quot;question&quot;: question, &quot;word_boxes&quot;: word_boxes}])</code></li>",Ap,Sa,Np,ee,La,rg,rl,iy=`Feature extraction pipeline using no model head. This pipeline extracts the hidden states from the base
transformer, which can be used as features in downstream tasks.`,ig,tn,lg,il,ly='Learn more about the basics of using a pipeline in the <a href="../pipeline_tutorial">pipeline tutorial</a>',cg,ll,cy=`This feature extraction pipeline can currently be loaded from <a href="/docs/transformers/v4.37.0/en/main_classes/pipelines#transformers.pipeline">pipeline()</a> using the task identifier:
<code>&quot;feature-extraction&quot;</code>.`,pg,cl,py=`All models may be used for this pipeline. See a list of all models, including community-contributed models on
<a href="https://huggingface.co/models" rel="nofollow">huggingface.co/models</a>.`,dg,nn,Oa,mg,pl,dy="Extract the features of the input(s).",Bp,Ha,Wp,te,Ya,hg,dl,my="Image To Text pipeline using a <code>AutoModelForVision2Seq</code>. This pipeline predicts a caption for a given image.",fg,sn,gg,ml,hy='Learn more about the basics of using a pipeline in the <a href="../pipeline_tutorial">pipeline tutorial</a>',ug,hl,fy=`This image to text pipeline can currently be loaded from pipeline() using the following task identifier:
“image-to-text”.`,Tg,fl,gy=`See the list of available models on
<a href="https://huggingface.co/models?pipeline_tag=image-to-text" rel="nofollow">huggingface.co/models</a>.`,bg,an,Ea,yg,gl,uy="Assign labels to the image(s) passed as inputs.",Sp,Qa,Lp,F,Xa,wg,ul,Ty=`Automatic mask generation for images using <code>SamForMaskGeneration</code>. This pipeline predicts binary masks for an
image, given an image. It is a <code>ChunkPipeline</code> because you can seperate the points in a mini-batch in order to
avoid OOM issues. Use the <code>points_per_batch</code> argument to control the number of points that will be processed at the
same time. Default is <code>64</code>.`,Mg,Tl,by="The pipeline works in 3 steps:",_g,bl,yy=`<li><p><code>preprocess</code>: A grid of 1024 points evenly separated is generated along with bounding boxes and point
labels.
For more details on how the points and bounding boxes are created, check the <code>_generate_crop_boxes</code>
function. The image is also preprocessed using the <code>image_processor</code>. This function <code>yields</code> a minibatch of
<code>points_per_batch</code>.</p></li> <li><p><code>forward</code>: feeds the outputs of <code>preprocess</code> to the model. The image embedding is computed only once.
Calls both <code>self.model.get_image_embeddings</code> and makes sure that the gradients are not computed, and the
tensors and models are on the same device.</p></li> <li><p><code>postprocess</code>: The most important part of the automatic mask generation happens here. Three steps
are induced:</p> <ul><li>image_processor.postprocess_masks (run on each minibatch loop): takes in the raw output masks,
resizes them according
to the image size, and transforms there to binary masks.</li> <li>image_processor.filter_masks (on each minibatch loop): uses both <code>pred_iou_thresh</code> and
<code>stability_scores</code>. Also
applies a variety of filters based on non maximum suppression to remove bad masks.</li> <li>image_processor.postprocess_masks_for_amg applies the NSM on the mask to only keep relevant ones.</li></ul></li>`,xg,on,vg,yl,wy='Learn more about the basics of using a pipeline in the <a href="../pipeline_tutorial">pipeline tutorial</a>',kg,wl,My=`This segmentation pipeline can currently be loaded from <a href="/docs/transformers/v4.37.0/en/main_classes/pipelines#transformers.pipeline">pipeline()</a> using the following task identifier:
<code>&quot;mask-generation&quot;</code>.`,Ug,Ml,_y='See the list of available models on <a href="https://huggingface.co/models?filter=mask-generation" rel="nofollow">huggingface.co/models</a>.',jg,rn,Ka,$g,_l,xy="Generates binary segmentation masks",Op,eo,Hp,ne,to,Jg,xl,vy=`Visual Question Answering pipeline using a <code>AutoModelForVisualQuestionAnswering</code>. This pipeline is currently only
available in PyTorch.`,Pg,ln,Cg,vl,ky='Learn more about the basics of using a pipeline in the <a href="../pipeline_tutorial">pipeline tutorial</a>',Ig,kl,Uy=`This visual question answering pipeline can currently be loaded from <a href="/docs/transformers/v4.37.0/en/main_classes/pipelines#transformers.pipeline">pipeline()</a> using the following task
identifiers: <code>&quot;visual-question-answering&quot;, &quot;vqa&quot;</code>.`,qg,Ul,jy=`The models that this pipeline can use are models that have been fine-tuned on a visual question answering task. See
the up-to-date list of available models on
<a href="https://huggingface.co/models?filter=visual-question-answering" rel="nofollow">huggingface.co/models</a>.`,Gg,We,no,zg,jl,$y=`Answers open-ended questions about images. The pipeline accepts several types of inputs which are detailed
below:`,Zg,$l,Jy="<li><code>pipeline(image=image, question=question)</code></li> <li><code>pipeline({&quot;image&quot;: image, &quot;question&quot;: question})</code></li> <li><code>pipeline([{&quot;image&quot;: image, &quot;question&quot;: question}])</code></li> <li><code>pipeline([{&quot;image&quot;: image, &quot;question&quot;: question}, {&quot;image&quot;: image, &quot;question&quot;: question}])</code></li>",Yp,so,Ep,C,ao,Fg,Jl,Py=`The Pipeline class is the class from which all pipelines inherit. Refer to this class for methods shared across
different pipelines.`,Dg,Pl,Cy=`Base class implementing pipelined operations. Pipeline workflow is defined as a sequence of the following
operations:`,Rg,Cl,Iy="Input -> Tokenization -> Model Inference -> Post-Processing (task dependent) -> Output",Vg,Il,qy="Pipeline supports running on CPU or GPU through the device argument (see below).",Ag,ql,Gy=`Some pipeline, like for instance <a href="/docs/transformers/v4.37.0/en/main_classes/pipelines#transformers.FeatureExtractionPipeline">FeatureExtractionPipeline</a> (<code>&#39;feature-extraction&#39;</code>) output large tensor object
as nested-lists. In order to avoid dumping such large structure as textual data we provide the <code>binary_output</code>
constructor argument. If set to <code>True</code>, the output will be stored in the pickle format.`,Ng,cn,oo,Bg,Gl,zy="Check if the model class is in supported by the pipeline.",Wg,Se,ro,Sg,zl,Zy="Context Manager allowing tensor allocation on the user-specified device in framework agnostic way.",Lg,pn,Og,dn,io,Hg,Zl,Fy="Ensure PyTorch tensors are on the specified device.",Yg,mn,lo,Eg,Fl,Dy=`Postprocess will receive the raw outputs of the <code>_forward</code> method, generally tensors, and reformat them into
something more friendly. Generally it will output a list or a dict or results (containing just strings and
numbers).`,Qg,hn,co,Xg,Dl,Ry="Scikit / Keras interface to transformers’ pipelines. This method will forward to <strong>call</strong>().",Kg,fn,po,eu,Rl,Vy=`Preprocess will take the <code>input_</code> of a specific pipeline and return a dictionary of everything necessary for
<code>_forward</code> to run properly. It should contain at least one tensor, but might have arbitrary other items.`,tu,gn,mo,nu,Vl,Ay="Save the pipeline’s model and tokenizer.",su,un,ho,au,Al,Ny="Scikit / Keras interface to transformers’ pipelines. This method will forward to <strong>call</strong>().",Qp,Ll,Xp;return w=new $({props:{title:"Pipelines",local:"pipelines",headingTag:"h1"}}),wn=new $({props:{title:"The pipeline abstraction",local:"transformers.pipeline",headingTag:"h2"}}),xn=new j({props:{code:"cGlwZSUyMCUzRCUyMHBpcGVsaW5lKCUyMnRleHQtY2xhc3NpZmljYXRpb24lMjIpJTBBcGlwZSglMjJUaGlzJTIwcmVzdGF1cmFudCUyMGlzJTIwYXdlc29tZSUyMik=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span>pipe = pipeline(<span class="hljs-string">&quot;text-classification&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>pipe(<span class="hljs-string">&quot;This restaurant is awesome&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.9998743534088135</span>}]`,wrap:!1}}),kn=new j({props:{code:"cGlwZSUyMCUzRCUyMHBpcGVsaW5lKG1vZGVsJTNEJTIycm9iZXJ0YS1sYXJnZS1tbmxpJTIyKSUwQXBpcGUoJTIyVGhpcyUyMHJlc3RhdXJhbnQlMjBpcyUyMGF3ZXNvbWUlMjIp",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span>pipe = pipeline(model=<span class="hljs-string">&quot;roberta-large-mnli&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>pipe(<span class="hljs-string">&quot;This restaurant is awesome&quot;</span>)
[{<span class="hljs-string">&#x27;label&#x27;</span>: <span class="hljs-string">&#x27;NEUTRAL&#x27;</span>, <span class="hljs-string">&#x27;score&#x27;</span>: <span class="hljs-number">0.7313136458396912</span>}]`,wrap:!1}}),jn=new j({props:{code:"cGlwZSUyMCUzRCUyMHBpcGVsaW5lKCUyMnRleHQtY2xhc3NpZmljYXRpb24lMjIpJTBBcGlwZSglNUIlMjJUaGlzJTIwcmVzdGF1cmFudCUyMGlzJTIwYXdlc29tZSUyMiUyQyUyMCUyMlRoaXMlMjByZXN0YXVyYW50JTIwaXMlMjBhd2Z1bCUyMiU1RCk=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span>pipe = pipeline(<span class="hljs-string">&quot;text-classification&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>pipe([<span class="hljs-string">&quot;This restaurant is awesome&quot;</span>, <span class="hljs-string">&quot;This restaurant is awful&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.9998743534088135</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.9996669292449951</span>}]`,wrap:!1}}),Jn=new j({props:{code:"aW1wb3J0JTIwZGF0YXNldHMlMEFmcm9tJTIwdHJhbnNmb3JtZXJzJTIwaW1wb3J0JTIwcGlwZWxpbmUlMEFmcm9tJTIwdHJhbnNmb3JtZXJzLnBpcGVsaW5lcy5wdF91dGlscyUyMGltcG9ydCUyMEtleURhdGFzZXQlMEFmcm9tJTIwdHFkbS5hdXRvJTIwaW1wb3J0JTIwdHFkbSUwQSUwQXBpcGUlMjAlM0QlMjBwaXBlbGluZSglMjJhdXRvbWF0aWMtc3BlZWNoLXJlY29nbml0aW9uJTIyJTJDJTIwbW9kZWwlM0QlMjJmYWNlYm9vayUyRndhdjJ2ZWMyLWJhc2UtOTYwaCUyMiUyQyUyMGRldmljZSUzRDApJTBBZGF0YXNldCUyMCUzRCUyMGRhdGFzZXRzLmxvYWRfZGF0YXNldCglMjJzdXBlcmIlMjIlMkMlMjBuYW1lJTNEJTIyYXNyJTIyJTJDJTIwc3BsaXQlM0QlMjJ0ZXN0JTIyKSUwQSUwQSUyMyUyMEtleURhdGFzZXQlMjAob25seSUyMCpwdCopJTIwd2lsbCUyMHNpbXBseSUyMHJldHVybiUyMHRoZSUyMGl0ZW0lMjBpbiUyMHRoZSUyMGRpY3QlMjByZXR1cm5lZCUyMGJ5JTIwdGhlJTIwZGF0YXNldCUyMGl0ZW0lMEElMjMlMjBhcyUyMHdlJ3JlJTIwbm90JTIwaW50ZXJlc3RlZCUyMGluJTIwdGhlJTIwKnRhcmdldColMjBwYXJ0JTIwb2YlMjB0aGUlMjBkYXRhc2V0LiUyMEZvciUyMHNlbnRlbmNlJTIwcGFpciUyMHVzZSUyMEtleVBhaXJEYXRhc2V0JTBBZm9yJTIwb3V0JTIwaW4lMjB0cWRtKHBpcGUoS2V5RGF0YXNldChkYXRhc2V0JTJDJTIwJTIyZmlsZSUyMikpKSUzQSUwQSUyMCUyMCUyMCUyMHByaW50KG91dCklMEElMjAlMjAlMjAlMjAlMjMlMjAlN0IlMjJ0ZXh0JTIyJTNBJTIwJTIyTlVNQkVSJTIwVEVOJTIwRlJFU0glMjBORUxMWSUyMElTJTIwV0FJVElORyUyME9OJTIwWU9VJTIwR09PRCUyME5JR0hUJTIwSFVTQkFORCUyMiU3RCUwQSUyMCUyMCUyMCUyMCUyMyUyMCU3QiUyMnRleHQlMjIlM0ElMjAuLi4uJTdEJTBBJTIwJTIwJTIwJTIwJTIzJTIwLi4uLg==",highlighted:`<span class="hljs-keyword">import</span> datasets
<span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> pipeline
<span class="hljs-keyword">from</span> transformers.pipelines.pt_utils <span class="hljs-keyword">import</span> KeyDataset
<span class="hljs-keyword">from</span> tqdm.auto <span class="hljs-keyword">import</span> tqdm

pipe = pipeline(<span class="hljs-string">&quot;automatic-speech-recognition&quot;</span>, model=<span class="hljs-string">&quot;facebook/wav2vec2-base-960h&quot;</span>, device=<span class="hljs-number">0</span>)
dataset = datasets.load_dataset(<span class="hljs-string">&quot;superb&quot;</span>, name=<span class="hljs-string">&quot;asr&quot;</span>, split=<span class="hljs-string">&quot;test&quot;</span>)

<span class="hljs-comment"># KeyDataset (only *pt*) will simply return the item in the dict returned by the dataset item</span>
<span class="hljs-comment"># as we&#x27;re not interested in the *target* part of the dataset. For sentence pair use KeyPairDataset</span>
<span class="hljs-keyword">for</span> out <span class="hljs-keyword">in</span> tqdm(pipe(KeyDataset(dataset, <span class="hljs-string">&quot;file&quot;</span>))):
    <span class="hljs-built_in">print</span>(out)
    <span class="hljs-comment"># {&quot;text&quot;: &quot;NUMBER TEN FRESH NELLY IS WAITING ON YOU GOOD NIGHT HUSBAND&quot;}</span>
    <span class="hljs-comment"># {&quot;text&quot;: ....}</span>
    <span class="hljs-comment"># ....</span>`,wrap:!1}}),Cn=new j({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMHBpcGVsaW5lJTBBJTBBcGlwZSUyMCUzRCUyMHBpcGVsaW5lKCUyMnRleHQtY2xhc3NpZmljYXRpb24lMjIpJTBBJTBBJTBBZGVmJTIwZGF0YSgpJTNBJTBBJTIwJTIwJTIwJTIwd2hpbGUlMjBUcnVlJTNBJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIzJTIwVGhpcyUyMGNvdWxkJTIwY29tZSUyMGZyb20lMjBhJTIwZGF0YXNldCUyQyUyMGElMjBkYXRhYmFzZSUyQyUyMGElMjBxdWV1ZSUyMG9yJTIwSFRUUCUyMHJlcXVlc3QlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjMlMjBpbiUyMGElMjBzZXJ2ZXIlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjMlMjBDYXZlYXQlM0ElMjBiZWNhdXNlJTIwdGhpcyUyMGlzJTIwaXRlcmF0aXZlJTJDJTIweW91JTIwY2Fubm90JTIwdXNlJTIwJTYwbnVtX3dvcmtlcnMlMjAlM0UlMjAxJTYwJTIwdmFyaWFibGUlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjMlMjB0byUyMHVzZSUyMG11bHRpcGxlJTIwdGhyZWFkcyUyMHRvJTIwcHJlcHJvY2VzcyUyMGRhdGEuJTIwWW91JTIwY2FuJTIwc3RpbGwlMjBoYXZlJTIwMSUyMHRocmVhZCUyMHRoYXQlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjMlMjBkb2VzJTIwdGhlJTIwcHJlcHJvY2Vzc2luZyUyMHdoaWxlJTIwdGhlJTIwbWFpbiUyMHJ1bnMlMjB0aGUlMjBiaWclMjBpbmZlcmVuY2UlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjB5aWVsZCUyMCUyMlRoaXMlMjBpcyUyMGElMjB0ZXN0JTIyJTBBJTBBJTBBZm9yJTIwb3V0JTIwaW4lMjBwaXBlKGRhdGEoKSklM0ElMEElMjAlMjAlMjAlMjBwcmludChvdXQpJTBBJTIwJTIwJTIwJTIwJTIzJTIwJTdCJTIydGV4dCUyMiUzQSUyMCUyMk5VTUJFUiUyMFRFTiUyMEZSRVNIJTIwTkVMTFklMjBJUyUyMFdBSVRJTkclMjBPTiUyMFlPVSUyMEdPT0QlMjBOSUdIVCUyMEhVU0JBTkQlMjIlN0QlMEElMjAlMjAlMjAlMjAlMjMlMjAlN0IlMjJ0ZXh0JTIyJTNBJTIwLi4uLiU3RCUwQSUyMCUyMCUyMCUyMCUyMyUyMC4uLi4=",highlighted:`<span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> pipeline

pipe = pipeline(<span class="hljs-string">&quot;text-classification&quot;</span>)


<span class="hljs-keyword">def</span> <span class="hljs-title function_">data</span>():
    <span class="hljs-keyword">while</span> <span class="hljs-literal">True</span>:
        <span class="hljs-comment"># This could come from a dataset, a database, a queue or HTTP request</span>
        <span class="hljs-comment"># in a server</span>
        <span class="hljs-comment"># Caveat: because this is iterative, you cannot use \`num_workers &gt; 1\` variable</span>
        <span class="hljs-comment"># to use multiple threads to preprocess data. You can still have 1 thread that</span>
        <span class="hljs-comment"># does the preprocessing while the main runs the big inference</span>
        <span class="hljs-keyword">yield</span> <span class="hljs-string">&quot;This is a test&quot;</span>


<span class="hljs-keyword">for</span> out <span class="hljs-keyword">in</span> pipe(data()):
    <span class="hljs-built_in">print</span>(out)
    <span class="hljs-comment"># {&quot;text&quot;: &quot;NUMBER TEN FRESH NELLY IS WAITING ON YOU GOOD NIGHT HUSBAND&quot;}</span>
    <span class="hljs-comment"># {&quot;text&quot;: ....}</span>
    <span class="hljs-comment"># ....</span>`,wrap:!1}}),In=new U({props:{name:"transformers.pipeline",anchor:"transformers.pipeline",parameters:[{name:"task",val:": str = None"},{name:"model",val:": Union = None"},{name:"config",val:": Union = None"},{name:"tokenizer",val:": Union = None"},{name:"feature_extractor",val:": Union = None"},{name:"image_processor",val:": Union = None"},{name:"framework",val:": Optional = None"},{name:"revision",val:": Optional = None"},{name:"use_fast",val:": bool = True"},{name:"token",val:": Union = None"},{name:"device",val:": Union = None"},{name:"device_map",val:" = None"},{name:"torch_dtype",val:" = None"},{name:"trust_remote_code",val:": Optional = None"},{name:"model_kwargs",val:": Dict = None"},{name:"pipeline_class",val:": Optional = None"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.pipeline.task",description:`<strong>task</strong> (<code>str</code>) &#x2014;
The task defining which pipeline will be returned. Currently accepted tasks are:</p>
<ul>
<li><code>&quot;audio-classification&quot;</code>: will return a <a href="/docs/transformers/v4.37.0/en/main_classes/pipelines#transformers.AudioClassificationPipeline">AudioClassificationPipeline</a>.</li>
<li><code>&quot;automatic-speech-recognition&quot;</code>: will return a <a href="/docs/transformers/v4.37.0/en/main_classes/pipelines#transformers.AutomaticSpeechRecognitionPipeline">AutomaticSpeechRecognitionPipeline</a>.</li>
<li><code>&quot;conversational&quot;</code>: will return a <a href="/docs/transformers/v4.37.0/en/main_classes/pipelines#transformers.ConversationalPipeline">ConversationalPipeline</a>.</li>
<li><code>&quot;depth-estimation&quot;</code>: will return a <a href="/docs/transformers/v4.37.0/en/main_classes/pipelines#transformers.DepthEstimationPipeline">DepthEstimationPipeline</a>.</li>
<li><code>&quot;document-question-answering&quot;</code>: will return a <a href="/docs/transformers/v4.37.0/en/main_classes/pipelines#transformers.DocumentQuestionAnsweringPipeline">DocumentQuestionAnsweringPipeline</a>.</li>
<li><code>&quot;feature-extraction&quot;</code>: will return a <a href="/docs/transformers/v4.37.0/en/main_classes/pipelines#transformers.FeatureExtractionPipeline">FeatureExtractionPipeline</a>.</li>
<li><code>&quot;fill-mask&quot;</code>: will return a <a href="/docs/transformers/v4.37.0/en/main_classes/pipelines#transformers.FillMaskPipeline">FillMaskPipeline</a>:.</li>
<li><code>&quot;image-classification&quot;</code>: will return a <a href="/docs/transformers/v4.37.0/en/main_classes/pipelines#transformers.ImageClassificationPipeline">ImageClassificationPipeline</a>.</li>
<li><code>&quot;image-segmentation&quot;</code>: will return a <a href="/docs/transformers/v4.37.0/en/main_classes/pipelines#transformers.ImageSegmentationPipeline">ImageSegmentationPipeline</a>.</li>
<li><code>&quot;image-to-image&quot;</code>: will return a <a href="/docs/transformers/v4.37.0/en/main_classes/pipelines#transformers.ImageToImagePipeline">ImageToImagePipeline</a>.</li>
<li><code>&quot;image-to-text&quot;</code>: will return a <a href="/docs/transformers/v4.37.0/en/main_classes/pipelines#transformers.ImageToTextPipeline">ImageToTextPipeline</a>.</li>
<li><code>&quot;mask-generation&quot;</code>: will return a <a href="/docs/transformers/v4.37.0/en/main_classes/pipelines#transformers.MaskGenerationPipeline">MaskGenerationPipeline</a>.</li>
<li><code>&quot;object-detection&quot;</code>: will return a <a href="/docs/transformers/v4.37.0/en/main_classes/pipelines#transformers.ObjectDetectionPipeline">ObjectDetectionPipeline</a>.</li>
<li><code>&quot;question-answering&quot;</code>: will return a <a href="/docs/transformers/v4.37.0/en/main_classes/pipelines#transformers.QuestionAnsweringPipeline">QuestionAnsweringPipeline</a>.</li>
<li><code>&quot;summarization&quot;</code>: will return a <a href="/docs/transformers/v4.37.0/en/main_classes/pipelines#transformers.SummarizationPipeline">SummarizationPipeline</a>.</li>
<li><code>&quot;table-question-answering&quot;</code>: will return a <a href="/docs/transformers/v4.37.0/en/main_classes/pipelines#transformers.TableQuestionAnsweringPipeline">TableQuestionAnsweringPipeline</a>.</li>
<li><code>&quot;text2text-generation&quot;</code>: will return a <a href="/docs/transformers/v4.37.0/en/main_classes/pipelines#transformers.Text2TextGenerationPipeline">Text2TextGenerationPipeline</a>.</li>
<li><code>&quot;text-classification&quot;</code> (alias <code>&quot;sentiment-analysis&quot;</code> available): will return a
<a href="/docs/transformers/v4.37.0/en/main_classes/pipelines#transformers.TextClassificationPipeline">TextClassificationPipeline</a>.</li>
<li><code>&quot;text-generation&quot;</code>: will return a <a href="/docs/transformers/v4.37.0/en/main_classes/pipelines#transformers.TextGenerationPipeline">TextGenerationPipeline</a>:.</li>
<li><code>&quot;text-to-audio&quot;</code> (alias <code>&quot;text-to-speech&quot;</code> available): will return a <a href="/docs/transformers/v4.37.0/en/main_classes/pipelines#transformers.TextToAudioPipeline">TextToAudioPipeline</a>:.</li>
<li><code>&quot;token-classification&quot;</code> (alias <code>&quot;ner&quot;</code> available): will return a <a href="/docs/transformers/v4.37.0/en/main_classes/pipelines#transformers.TokenClassificationPipeline">TokenClassificationPipeline</a>.</li>
<li><code>&quot;translation&quot;</code>: will return a <a href="/docs/transformers/v4.37.0/en/main_classes/pipelines#transformers.TranslationPipeline">TranslationPipeline</a>.</li>
<li><code>&quot;translation_xx_to_yy&quot;</code>: will return a <a href="/docs/transformers/v4.37.0/en/main_classes/pipelines#transformers.TranslationPipeline">TranslationPipeline</a>.</li>
<li><code>&quot;video-classification&quot;</code>: will return a <a href="/docs/transformers/v4.37.0/en/main_classes/pipelines#transformers.VideoClassificationPipeline">VideoClassificationPipeline</a>.</li>
<li><code>&quot;visual-question-answering&quot;</code>: will return a <a href="/docs/transformers/v4.37.0/en/main_classes/pipelines#transformers.VisualQuestionAnsweringPipeline">VisualQuestionAnsweringPipeline</a>.</li>
<li><code>&quot;zero-shot-classification&quot;</code>: will return a <a href="/docs/transformers/v4.37.0/en/main_classes/pipelines#transformers.ZeroShotClassificationPipeline">ZeroShotClassificationPipeline</a>.</li>
<li><code>&quot;zero-shot-image-classification&quot;</code>: will return a <a href="/docs/transformers/v4.37.0/en/main_classes/pipelines#transformers.ZeroShotImageClassificationPipeline">ZeroShotImageClassificationPipeline</a>.</li>
<li><code>&quot;zero-shot-audio-classification&quot;</code>: will return a <a href="/docs/transformers/v4.37.0/en/main_classes/pipelines#transformers.ZeroShotAudioClassificationPipeline">ZeroShotAudioClassificationPipeline</a>.</li>
<li><code>&quot;zero-shot-object-detection&quot;</code>: will return a <a href="/docs/transformers/v4.37.0/en/main_classes/pipelines#transformers.ZeroShotObjectDetectionPipeline">ZeroShotObjectDetectionPipeline</a>.</li>
</ul>`,name:"task"},{anchor:"transformers.pipeline.model",description:`<strong>model</strong> (<code>str</code> or <a href="/docs/transformers/v4.37.0/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> or <a href="/docs/transformers/v4.37.0/en/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a>, <em>optional</em>) &#x2014;
The model that will be used by the pipeline to make predictions. This can be a model identifier or an
actual instance of a pretrained model inheriting from <a href="/docs/transformers/v4.37.0/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> (for PyTorch) or
<a href="/docs/transformers/v4.37.0/en/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a> (for TensorFlow).</p>
<p>If not provided, the default for the <code>task</code> will be loaded.`,name:"model"},{anchor:"transformers.pipeline.config",description:`<strong>config</strong> (<code>str</code> or <a href="/docs/transformers/v4.37.0/en/main_classes/configuration#transformers.PretrainedConfig">PretrainedConfig</a>, <em>optional</em>) &#x2014;
The configuration that will be used by the pipeline to instantiate the model. This can be a model
identifier or an actual pretrained model configuration inheriting from <a href="/docs/transformers/v4.37.0/en/main_classes/configuration#transformers.PretrainedConfig">PretrainedConfig</a>.</p>
<p>If not provided, the default configuration file for the requested model will be used. That means that if
<code>model</code> is given, its default configuration will be used. However, if <code>model</code> is not supplied, this
<code>task</code>&#x2019;s default model&#x2019;s config is used instead.`,name:"config"},{anchor:"transformers.pipeline.tokenizer",description:`<strong>tokenizer</strong> (<code>str</code> or <a href="/docs/transformers/v4.37.0/en/main_classes/tokenizer#transformers.PreTrainedTokenizer">PreTrainedTokenizer</a>, <em>optional</em>) &#x2014;
The tokenizer that will be used by the pipeline to encode data for the model. This can be a model
identifier or an actual pretrained tokenizer inheriting from <a href="/docs/transformers/v4.37.0/en/main_classes/tokenizer#transformers.PreTrainedTokenizer">PreTrainedTokenizer</a>.</p>
<p>If not provided, the default tokenizer for the given <code>model</code> will be loaded (if it is a string). If <code>model</code>
is not specified or not a string, then the default tokenizer for <code>config</code> is loaded (if it is a string).
However, if <code>config</code> is also not given or not a string, then the default tokenizer for the given <code>task</code>
will be loaded.`,name:"tokenizer"},{anchor:"transformers.pipeline.feature_extractor",description:`<strong>feature_extractor</strong> (<code>str</code> or <code>PreTrainedFeatureExtractor</code>, <em>optional</em>) &#x2014;
The feature extractor that will be used by the pipeline to encode data for the model. This can be a model
identifier or an actual pretrained feature extractor inheriting from <code>PreTrainedFeatureExtractor</code>.</p>
<p>Feature extractors are used for non-NLP models, such as Speech or Vision models as well as multi-modal
models. Multi-modal models will also require a tokenizer to be passed.</p>
<p>If not provided, the default feature extractor for the given <code>model</code> will be loaded (if it is a string). If
<code>model</code> is not specified or not a string, then the default feature extractor for <code>config</code> is loaded (if it
is a string). However, if <code>config</code> is also not given or not a string, then the default feature extractor
for the given <code>task</code> will be loaded.`,name:"feature_extractor"},{anchor:"transformers.pipeline.framework",description:`<strong>framework</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The framework to use, either <code>&quot;pt&quot;</code> for PyTorch or <code>&quot;tf&quot;</code> for TensorFlow. The specified framework must be
installed.</p>
<p>If no framework is specified, will default to the one currently installed. If no framework is specified and
both frameworks are installed, will default to the framework of the <code>model</code>, or to PyTorch if no model is
provided.`,name:"framework"},{anchor:"transformers.pipeline.revision",description:`<strong>revision</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;main&quot;</code>) &#x2014;
When passing a task name or a string model identifier: The specific model version to use. It can be a
branch name, a tag name, or a commit id, since we use a git-based system for storing models and other
artifacts on huggingface.co, so <code>revision</code> can be any identifier allowed by git.`,name:"revision"},{anchor:"transformers.pipeline.use_fast",description:`<strong>use_fast</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Whether or not to use a Fast tokenizer if possible (a <a href="/docs/transformers/v4.37.0/en/main_classes/tokenizer#transformers.PreTrainedTokenizerFast">PreTrainedTokenizerFast</a>).`,name:"use_fast"},{anchor:"transformers.pipeline.use_auth_token",description:`<strong>use_auth_token</strong> (<code>str</code> or <em>bool</em>, <em>optional</em>) &#x2014;
The token to use as HTTP bearer authorization for remote files. If <code>True</code>, will use the token generated
when running <code>huggingface-cli login</code> (stored in <code>~/.huggingface</code>).`,name:"use_auth_token"},{anchor:"transformers.pipeline.device",description:`<strong>device</strong> (<code>int</code> or <code>str</code> or <code>torch.device</code>) &#x2014;
Defines the device (<em>e.g.</em>, <code>&quot;cpu&quot;</code>, <code>&quot;cuda:1&quot;</code>, <code>&quot;mps&quot;</code>, or a GPU ordinal rank like <code>1</code>) on which this
pipeline will be allocated.`,name:"device"},{anchor:"transformers.pipeline.device_map",description:`<strong>device_map</strong> (<code>str</code> or <code>Dict[str, Union[int, str, torch.device]</code>, <em>optional</em>) &#x2014;
Sent directly as <code>model_kwargs</code> (just a simpler shortcut). When <code>accelerate</code> library is present, set
<code>device_map=&quot;auto&quot;</code> to compute the most optimized <code>device_map</code> automatically (see
<a href="https://huggingface.co/docs/accelerate/main/en/package_reference/big_modeling#accelerate.cpu_offload" rel="nofollow">here</a>
for more information).</p>
<div class="course-tip course-tip-orange bg-gradient-to-br dark:bg-gradient-to-r before:border-orange-500 dark:before:border-orange-800 from-orange-50 dark:from-gray-900 to-white dark:to-gray-950 border border-orange-50 text-orange-700 dark:text-gray-400">
						
<p>Do not use <code>device_map</code> AND <code>device</code> at the same time as they will conflict</p>

					</div>`,name:"device_map"},{anchor:"transformers.pipeline.torch_dtype",description:`<strong>torch_dtype</strong> (<code>str</code> or <code>torch.dtype</code>, <em>optional</em>) &#x2014;
Sent directly as <code>model_kwargs</code> (just a simpler shortcut) to use the available precision for this model
(<code>torch.float16</code>, <code>torch.bfloat16</code>, &#x2026; or <code>&quot;auto&quot;</code>).`,name:"torch_dtype"},{anchor:"transformers.pipeline.trust_remote_code",description:`<strong>trust_remote_code</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to allow for custom code defined on the Hub in their own modeling, configuration,
tokenization or even pipeline files. This option should only be set to <code>True</code> for repositories you trust
and in which you have read the code, as it will execute code present on the Hub on your local machine.`,name:"trust_remote_code"},{anchor:"transformers.pipeline.model_kwargs",description:`<strong>model_kwargs</strong> (<code>Dict[str, Any]</code>, <em>optional</em>) &#x2014;
Additional dictionary of keyword arguments passed along to the model&#x2019;s <code>from_pretrained(..., **model_kwargs)</code> function.`,name:"model_kwargs"},{anchor:"transformers.pipeline.kwargs",description:`<strong>kwargs</strong> (<code>Dict[str, Any]</code>, <em>optional</em>) &#x2014;
Additional keyword arguments passed along to the specific pipeline init (see the documentation for the
corresponding pipeline class for possible values).`,name:"kwargs"}],source:"https://github.com/huggingface/transformers/blob/v4.37.0/src/transformers/pipelines/__init__.py#L531",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>A suitable pipeline for the task.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/transformers/v4.37.0/en/main_classes/pipelines#transformers.Pipeline"
>Pipeline</a></p>
`}}),Oe=new P({props:{anchor:"transformers.pipeline.example",$$slots:{default:[Hy]},$$scope:{ctx:x}}}),qn=new $({props:{title:"Pipeline batching",local:"pipeline-batching",headingTag:"h2"}}),zn=new j({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMHBpcGVsaW5lJTBBZnJvbSUyMHRyYW5zZm9ybWVycy5waXBlbGluZXMucHRfdXRpbHMlMjBpbXBvcnQlMjBLZXlEYXRhc2V0JTBBaW1wb3J0JTIwZGF0YXNldHMlMEElMEFkYXRhc2V0JTIwJTNEJTIwZGF0YXNldHMubG9hZF9kYXRhc2V0KCUyMmltZGIlMjIlMkMlMjBuYW1lJTNEJTIycGxhaW5fdGV4dCUyMiUyQyUyMHNwbGl0JTNEJTIydW5zdXBlcnZpc2VkJTIyKSUwQXBpcGUlMjAlM0QlMjBwaXBlbGluZSglMjJ0ZXh0LWNsYXNzaWZpY2F0aW9uJTIyJTJDJTIwZGV2aWNlJTNEMCklMEFmb3IlMjBvdXQlMjBpbiUyMHBpcGUoS2V5RGF0YXNldChkYXRhc2V0JTJDJTIwJTIydGV4dCUyMiklMkMlMjBiYXRjaF9zaXplJTNEOCUyQyUyMHRydW5jYXRpb24lM0QlMjJvbmx5X2ZpcnN0JTIyKSUzQSUwQSUyMCUyMCUyMCUyMHByaW50KG91dCklMEElMjAlMjAlMjAlMjAlMjMlMjAlNUIlN0InbGFiZWwnJTNBJTIwJ1BPU0lUSVZFJyUyQyUyMCdzY29yZSclM0ElMjAwLjk5OTg3NDM1MzQwODgxMzUlN0QlNUQlMEElMjAlMjAlMjAlMjAlMjMlMjBFeGFjdGx5JTIwdGhlJTIwc2FtZSUyMG91dHB1dCUyMGFzJTIwYmVmb3JlJTJDJTIwYnV0JTIwdGhlJTIwY29udGVudCUyMGFyZSUyMHBhc3NlZCUwQSUyMCUyMCUyMCUyMCUyMyUyMGFzJTIwYmF0Y2hlcyUyMHRvJTIwdGhlJTIwbW9kZWw=",highlighted:`<span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> pipeline
<span class="hljs-keyword">from</span> transformers.pipelines.pt_utils <span class="hljs-keyword">import</span> KeyDataset
<span class="hljs-keyword">import</span> datasets

dataset = datasets.load_dataset(<span class="hljs-string">&quot;imdb&quot;</span>, name=<span class="hljs-string">&quot;plain_text&quot;</span>, split=<span class="hljs-string">&quot;unsupervised&quot;</span>)
pipe = pipeline(<span class="hljs-string">&quot;text-classification&quot;</span>, device=<span class="hljs-number">0</span>)
<span class="hljs-keyword">for</span> out <span class="hljs-keyword">in</span> pipe(KeyDataset(dataset, <span class="hljs-string">&quot;text&quot;</span>), batch_size=<span class="hljs-number">8</span>, truncation=<span class="hljs-string">&quot;only_first&quot;</span>):
    <span class="hljs-built_in">print</span>(out)
    <span class="hljs-comment"># [{&#x27;label&#x27;: &#x27;POSITIVE&#x27;, &#x27;score&#x27;: 0.9998743534088135}]</span>
    <span class="hljs-comment"># Exactly the same output as before, but the content are passed</span>
    <span class="hljs-comment"># as batches to the model</span>`,wrap:!1}}),He=new wd({props:{warning:!0,$$slots:{default:[Yy]},$$scope:{ctx:x}}}),Zn=new j({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMHBpcGVsaW5lJTBBZnJvbSUyMHRvcmNoLnV0aWxzLmRhdGElMjBpbXBvcnQlMjBEYXRhc2V0JTBBZnJvbSUyMHRxZG0uYXV0byUyMGltcG9ydCUyMHRxZG0lMEElMEFwaXBlJTIwJTNEJTIwcGlwZWxpbmUoJTIydGV4dC1jbGFzc2lmaWNhdGlvbiUyMiUyQyUyMGRldmljZSUzRDApJTBBJTBBJTBBY2xhc3MlMjBNeURhdGFzZXQoRGF0YXNldCklM0ElMEElMjAlMjAlMjAlMjBkZWYlMjBfX2xlbl9fKHNlbGYpJTNBJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwcmV0dXJuJTIwNTAwMCUwQSUwQSUyMCUyMCUyMCUyMGRlZiUyMF9fZ2V0aXRlbV9fKHNlbGYlMkMlMjBpKSUzQSUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMHJldHVybiUyMCUyMlRoaXMlMjBpcyUyMGElMjB0ZXN0JTIyJTBBJTBBJTBBZGF0YXNldCUyMCUzRCUyME15RGF0YXNldCgpJTBBJTBBZm9yJTIwYmF0Y2hfc2l6ZSUyMGluJTIwJTVCMSUyQyUyMDglMkMlMjA2NCUyQyUyMDI1NiU1RCUzQSUwQSUyMCUyMCUyMCUyMHByaW50KCUyMi0lMjIlMjAqJTIwMzApJTBBJTIwJTIwJTIwJTIwcHJpbnQoZiUyMlN0cmVhbWluZyUyMGJhdGNoX3NpemUlM0QlN0JiYXRjaF9zaXplJTdEJTIyKSUwQSUyMCUyMCUyMCUyMGZvciUyMG91dCUyMGluJTIwdHFkbShwaXBlKGRhdGFzZXQlMkMlMjBiYXRjaF9zaXplJTNEYmF0Y2hfc2l6ZSklMkMlMjB0b3RhbCUzRGxlbihkYXRhc2V0KSklM0ElMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjBwYXNz",highlighted:`<span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> pipeline
<span class="hljs-keyword">from</span> torch.utils.data <span class="hljs-keyword">import</span> Dataset
<span class="hljs-keyword">from</span> tqdm.auto <span class="hljs-keyword">import</span> tqdm

pipe = pipeline(<span class="hljs-string">&quot;text-classification&quot;</span>, device=<span class="hljs-number">0</span>)


<span class="hljs-keyword">class</span> <span class="hljs-title class_">MyDataset</span>(<span class="hljs-title class_ inherited__">Dataset</span>):
    <span class="hljs-keyword">def</span> <span class="hljs-title function_">__len__</span>(<span class="hljs-params">self</span>):
        <span class="hljs-keyword">return</span> <span class="hljs-number">5000</span>

    <span class="hljs-keyword">def</span> <span class="hljs-title function_">__getitem__</span>(<span class="hljs-params">self, i</span>):
        <span class="hljs-keyword">return</span> <span class="hljs-string">&quot;This is a test&quot;</span>


dataset = MyDataset()

<span class="hljs-keyword">for</span> batch_size <span class="hljs-keyword">in</span> [<span class="hljs-number">1</span>, <span class="hljs-number">8</span>, <span class="hljs-number">64</span>, <span class="hljs-number">256</span>]:
    <span class="hljs-built_in">print</span>(<span class="hljs-string">&quot;-&quot;</span> * <span class="hljs-number">30</span>)
    <span class="hljs-built_in">print</span>(<span class="hljs-string">f&quot;Streaming batch_size=<span class="hljs-subst">{batch_size}</span>&quot;</span>)
    <span class="hljs-keyword">for</span> out <span class="hljs-keyword">in</span> tqdm(pipe(dataset, batch_size=batch_size), total=<span class="hljs-built_in">len</span>(dataset)):
        <span class="hljs-keyword">pass</span>`,wrap:!1}}),Fn=new j({props:{code:" ",highlighted:`<span class="hljs-section"># On GTX 970
------------------------------</span>
Streaming no batching
100%|██████████████████████████████████████████████████████████████████████| 5000/5000 [00:26&lt;00:00, 187.52it/s]
<span class="hljs-code">------------------------------
Streaming batch_size=8
100%|█████████████████████████████████████████████████████████████████████| 5000/5000 [00:04&lt;00:00, 1205.95it/s]
------------------------------</span>
Streaming batch<span class="hljs-emphasis">_size=64
100%|█████████████████████████████████████████████████████████████████████| 5000/5000 [00:02&lt;00:00, 2478.24it/s]
------------------------------
Streaming batch_</span>size=256
100%|█████████████████████████████████████████████████████████████████████| 5000/5000 [00:01&lt;00:00, 2554.43it/s]
(diminishing returns, saturated the GPU)`,wrap:!1}}),Rn=new j({props:{code:"Y2xhc3MlMjBNeURhdGFzZXQoRGF0YXNldCklM0ElMEElMjAlMjAlMjAlMjBkZWYlMjBfX2xlbl9fKHNlbGYpJTNBJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwcmV0dXJuJTIwNTAwMCUwQSUwQSUyMCUyMCUyMCUyMGRlZiUyMF9fZ2V0aXRlbV9fKHNlbGYlMkMlMjBpKSUzQSUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMGlmJTIwaSUyMCUyNSUyMDY0JTIwJTNEJTNEJTIwMCUzQSUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMG4lMjAlM0QlMjAxMDAlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjBlbHNlJTNBJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwbiUyMCUzRCUyMDElMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjByZXR1cm4lMjAlMjJUaGlzJTIwaXMlMjBhJTIwdGVzdCUyMiUyMColMjBu",highlighted:`<span class="hljs-keyword">class</span> <span class="hljs-title class_">MyDataset</span>(<span class="hljs-title class_ inherited__">Dataset</span>):
    <span class="hljs-keyword">def</span> <span class="hljs-title function_">__len__</span>(<span class="hljs-params">self</span>):
        <span class="hljs-keyword">return</span> <span class="hljs-number">5000</span>

    <span class="hljs-keyword">def</span> <span class="hljs-title function_">__getitem__</span>(<span class="hljs-params">self, i</span>):
        <span class="hljs-keyword">if</span> i % <span class="hljs-number">64</span> == <span class="hljs-number">0</span>:
            n = <span class="hljs-number">100</span>
        <span class="hljs-keyword">else</span>:
            n = <span class="hljs-number">1</span>
        <span class="hljs-keyword">return</span> <span class="hljs-string">&quot;This is a test&quot;</span> * n`,wrap:!1}}),An=new j({props:{code:" ",highlighted:`<span class="hljs-comment">------------------------------</span>
Streaming no batching
<span class="hljs-number">100</span>%|█████████████████████████████████████████████████████████████████████| <span class="hljs-number">1000</span>/<span class="hljs-number">1000</span> [<span class="hljs-number">00</span>:<span class="hljs-number">05</span>&lt;<span class="hljs-number">00</span>:<span class="hljs-number">00</span>, <span class="hljs-number">183.69</span><span class="hljs-keyword">it</span>/s]
<span class="hljs-comment">------------------------------</span>
Streaming batch_size=<span class="hljs-number">8</span>
<span class="hljs-number">100</span>%|█████████████████████████████████████████████████████████████████████| <span class="hljs-number">1000</span>/<span class="hljs-number">1000</span> [<span class="hljs-number">00</span>:<span class="hljs-number">03</span>&lt;<span class="hljs-number">00</span>:<span class="hljs-number">00</span>, <span class="hljs-number">265.74</span><span class="hljs-keyword">it</span>/s]
<span class="hljs-comment">------------------------------</span>
Streaming batch_size=<span class="hljs-number">64</span>
<span class="hljs-number">100</span>%|██████████████████████████████████████████████████████████████████████| <span class="hljs-number">1000</span>/<span class="hljs-number">1000</span> [<span class="hljs-number">00</span>:<span class="hljs-number">26</span>&lt;<span class="hljs-number">00</span>:<span class="hljs-number">00</span>, <span class="hljs-number">37.80</span><span class="hljs-keyword">it</span>/s]
<span class="hljs-comment">------------------------------</span>
Streaming batch_size=<span class="hljs-number">256</span>
  <span class="hljs-number">0</span>%|                                                                                 | <span class="hljs-number">0</span>/<span class="hljs-number">1000</span> [<span class="hljs-number">00</span>:<span class="hljs-number">00</span><span class="hljs-meta">&lt;?</span>, ?<span class="hljs-keyword">it</span>/s]
Traceback (most recent call <span class="hljs-keyword">last</span>):
  File <span class="hljs-string">&quot;/home/nicolas/src/transformers/test.py&quot;</span>, <span class="hljs-built_in">line</span> <span class="hljs-number">42</span>, <span class="hljs-keyword">in</span> &lt;module&gt;
    <span class="hljs-keyword">for</span> out <span class="hljs-keyword">in</span> tqdm(pipe(dataset, batch_size=<span class="hljs-number">256</span>), total=<span class="hljs-built_in">len</span>(dataset)):
....
    q = q / math.<span class="hljs-built_in">sqrt</span>(dim_per_head)  <span class="hljs-comment"># (bs, n_heads, q_length, dim_per_head)</span>
RuntimeError: CUDA out <span class="hljs-keyword">of</span> memory. Tried <span class="hljs-built_in">to</span> allocate <span class="hljs-number">376.00</span> MiB (GPU <span class="hljs-number">0</span>; <span class="hljs-number">3.95</span> GiB total capacity; <span class="hljs-number">1.72</span> GiB already allocated; <span class="hljs-number">354.88</span> MiB free; <span class="hljs-number">2.46</span> GiB reserved <span class="hljs-keyword">in</span> total <span class="hljs-keyword">by</span> PyTorch)`,wrap:!1}}),Sn=new $({props:{title:"Pipeline chunk batching",local:"pipeline-chunk-batching",headingTag:"h2"}}),Hn=new j({props:{code:"cHJlcHJvY2Vzc2VkJTIwJTNEJTIwcGlwZS5wcmVwcm9jZXNzKGlucHV0cyklMEFtb2RlbF9vdXRwdXRzJTIwJTNEJTIwcGlwZS5mb3J3YXJkKHByZXByb2Nlc3NlZCklMEFvdXRwdXRzJTIwJTNEJTIwcGlwZS5wb3N0cHJvY2Vzcyhtb2RlbF9vdXRwdXRzKQ==",highlighted:`preprocessed = pipe.preprocess(inputs)
model_outputs = pipe.forward(preprocessed)
outputs = pipe.postprocess(model_outputs)`,wrap:!1}}),En=new j({props:{code:"YWxsX21vZGVsX291dHB1dHMlMjAlM0QlMjAlNUIlNUQlMEFmb3IlMjBwcmVwcm9jZXNzZWQlMjBpbiUyMHBpcGUucHJlcHJvY2VzcyhpbnB1dHMpJTNBJTBBJTIwJTIwJTIwJTIwbW9kZWxfb3V0cHV0cyUyMCUzRCUyMHBpcGUuZm9yd2FyZChwcmVwcm9jZXNzZWQpJTBBJTIwJTIwJTIwJTIwYWxsX21vZGVsX291dHB1dHMuYXBwZW5kKG1vZGVsX291dHB1dHMpJTBBb3V0cHV0cyUyMCUzRCUyMHBpcGUucG9zdHByb2Nlc3MoYWxsX21vZGVsX291dHB1dHMp",highlighted:`all_model_outputs = []
<span class="hljs-keyword">for</span> preprocessed <span class="hljs-keyword">in</span> pipe.preprocess(inputs):
    model_outputs = pipe.forward(preprocessed)
    all_model_outputs.append(model_outputs)
outputs = pipe.postprocess(all_model_outputs)`,wrap:!1}}),Kn=new $({props:{title:"Pipeline custom code",local:"pipeline-custom-code",headingTag:"h2"}}),as=new j({props:{code:"Y2xhc3MlMjBNeVBpcGVsaW5lKFRleHRDbGFzc2lmaWNhdGlvblBpcGVsaW5lKSUzQSUwQSUyMCUyMCUyMCUyMGRlZiUyMHBvc3Rwcm9jZXNzKCklM0ElMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjMlMjBZb3VyJTIwY29kZSUyMGdvZXMlMjBoZXJlJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwc2NvcmVzJTIwJTNEJTIwc2NvcmVzJTIwKiUyMDEwMCUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMyUyMEFuZCUyMGhlcmUlMEElMEElMEFteV9waXBlbGluZSUyMCUzRCUyME15UGlwZWxpbmUobW9kZWwlM0Rtb2RlbCUyQyUyMHRva2VuaXplciUzRHRva2VuaXplciUyQyUyMC4uLiklMEElMjMlMjBvciUyMGlmJTIweW91JTIwdXNlJTIwKnBpcGVsaW5lKiUyMGZ1bmN0aW9uJTJDJTIwdGhlbiUzQSUwQW15X3BpcGVsaW5lJTIwJTNEJTIwcGlwZWxpbmUobW9kZWwlM0QlMjJ4eHh4JTIyJTJDJTIwcGlwZWxpbmVfY2xhc3MlM0RNeVBpcGVsaW5lKQ==",highlighted:`<span class="hljs-keyword">class</span> <span class="hljs-title class_">MyPipeline</span>(<span class="hljs-title class_ inherited__">TextClassificationPipeline</span>):
    <span class="hljs-keyword">def</span> <span class="hljs-title function_">postprocess</span>():
        <span class="hljs-comment"># Your code goes here</span>
        scores = scores * <span class="hljs-number">100</span>
        <span class="hljs-comment"># And here</span>


my_pipeline = MyPipeline(model=model, tokenizer=tokenizer, ...)
<span class="hljs-comment"># or if you use *pipeline* function, then:</span>
my_pipeline = pipeline(model=<span class="hljs-string">&quot;xxxx&quot;</span>, pipeline_class=MyPipeline)`,wrap:!1}}),rs=new $({props:{title:"Implementing a pipeline",local:"implementing-a-pipeline",headingTag:"h2"}}),ls=new $({props:{title:"Audio",local:"audio",headingTag:"h2"}}),ps=new $({props:{title:"AudioClassificationPipeline",local:"transformers.AudioClassificationPipeline",headingTag:"h3"}}),ds=new U({props:{name:"class transformers.AudioClassificationPipeline",anchor:"transformers.AudioClassificationPipeline",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.AudioClassificationPipeline.model",description:`<strong>model</strong> (<a href="/docs/transformers/v4.37.0/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> or <a href="/docs/transformers/v4.37.0/en/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a>) &#x2014;
The model that will be used by the pipeline to make predictions. This needs to be a model inheriting from
<a href="/docs/transformers/v4.37.0/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> for PyTorch and <a href="/docs/transformers/v4.37.0/en/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a> for TensorFlow.`,name:"model"},{anchor:"transformers.AudioClassificationPipeline.tokenizer",description:`<strong>tokenizer</strong> (<a href="/docs/transformers/v4.37.0/en/main_classes/tokenizer#transformers.PreTrainedTokenizer">PreTrainedTokenizer</a>) &#x2014;
The tokenizer that will be used by the pipeline to encode data for the model. This object inherits from
<a href="/docs/transformers/v4.37.0/en/main_classes/tokenizer#transformers.PreTrainedTokenizer">PreTrainedTokenizer</a>.`,name:"tokenizer"},{anchor:"transformers.AudioClassificationPipeline.modelcard",description:`<strong>modelcard</strong> (<code>str</code> or <code>ModelCard</code>, <em>optional</em>) &#x2014;
Model card attributed to the model for this pipeline.`,name:"modelcard"},{anchor:"transformers.AudioClassificationPipeline.framework",description:`<strong>framework</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The framework to use, either <code>&quot;pt&quot;</code> for PyTorch or <code>&quot;tf&quot;</code> for TensorFlow. The specified framework must be
installed.</p>
<p>If no framework is specified, will default to the one currently installed. If no framework is specified and
both frameworks are installed, will default to the framework of the <code>model</code>, or to PyTorch if no model is
provided.`,name:"framework"},{anchor:"transformers.AudioClassificationPipeline.task",description:`<strong>task</strong> (<code>str</code>, defaults to <code>&quot;&quot;</code>) &#x2014;
A task-identifier for the pipeline.`,name:"task"},{anchor:"transformers.AudioClassificationPipeline.num_workers",description:`<strong>num_workers</strong> (<code>int</code>, <em>optional</em>, defaults to 8) &#x2014;
When the pipeline will use <em>DataLoader</em> (when passing a dataset, on GPU for a Pytorch model), the number of
workers to be used.`,name:"num_workers"},{anchor:"transformers.AudioClassificationPipeline.batch_size",description:`<strong>batch_size</strong> (<code>int</code>, <em>optional</em>, defaults to 1) &#x2014;
When the pipeline will use <em>DataLoader</em> (when passing a dataset, on GPU for a Pytorch model), the size of
the batch to use, for inference this is not always beneficial, please read <a href="https://huggingface.co/transformers/main_classes/pipelines.html#pipeline-batching" rel="nofollow">Batching with
pipelines</a> .`,name:"batch_size"},{anchor:"transformers.AudioClassificationPipeline.args_parser",description:`<strong>args_parser</strong> (<a href="/docs/transformers/v4.37.0/en/internal/pipelines_utils#transformers.pipelines.ArgumentHandler">ArgumentHandler</a>, <em>optional</em>) &#x2014;
Reference to the object in charge of parsing supplied pipeline parameters.`,name:"args_parser"},{anchor:"transformers.AudioClassificationPipeline.device",description:`<strong>device</strong> (<code>int</code>, <em>optional</em>, defaults to -1) &#x2014;
Device ordinal for CPU/GPU supports. Setting this to -1 will leverage CPU, a positive will run the model on
the associated CUDA device id. You can pass native <code>torch.device</code> or a <code>str</code> too.`,name:"device"},{anchor:"transformers.AudioClassificationPipeline.binary_output",description:`<strong>binary_output</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Flag indicating if the output the pipeline should happen in a binary format (i.e., pickle) or as raw text.`,name:"binary_output"}],source:"https://github.com/huggingface/transformers/blob/v4.37.0/src/transformers/pipelines/audio_classification.py#L66"}}),Ye=new P({props:{anchor:"transformers.AudioClassificationPipeline.example",$$slots:{default:[Ey]},$$scope:{ctx:x}}}),ms=new U({props:{name:"__call__",anchor:"transformers.AudioClassificationPipeline.__call__",parameters:[{name:"inputs",val:": Union"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.AudioClassificationPipeline.__call__.inputs",description:`<strong>inputs</strong> (<code>np.ndarray</code> or <code>bytes</code> or <code>str</code> or <code>dict</code>) &#x2014;
The inputs is either :<ul>
<li><code>str</code> that is the filename of the audio file, the file will be read at the correct sampling rate
to get the waveform using <em>ffmpeg</em>. This requires <em>ffmpeg</em> to be installed on the system.</li>
<li><code>bytes</code> it is supposed to be the content of an audio file and is interpreted by <em>ffmpeg</em> in the
same way.</li>
<li>(<code>np.ndarray</code> of shape (n, ) of type <code>np.float32</code> or <code>np.float64</code>)
Raw audio at the correct sampling rate (no further check will be done)</li>
<li><code>dict</code> form can be used to pass raw audio sampled at arbitrary <code>sampling_rate</code> and let this
pipeline do the resampling. The dict must be either be in the format <code>{&quot;sampling_rate&quot;: int, &quot;raw&quot;: np.array}</code>, or <code>{&quot;sampling_rate&quot;: int, &quot;array&quot;: np.array}</code>, where the key <code>&quot;raw&quot;</code> or
<code>&quot;array&quot;</code> is used to denote the raw audio waveform.</li>
</ul>`,name:"inputs"},{anchor:"transformers.AudioClassificationPipeline.__call__.top_k",description:`<strong>top_k</strong> (<code>int</code>, <em>optional</em>, defaults to None) &#x2014;
The number of top labels that will be returned by the pipeline. If the provided number is <code>None</code> or
higher than the number of labels available in the model configuration, it will default to the number of
labels.`,name:"top_k"}],source:"https://github.com/huggingface/transformers/blob/v4.37.0/src/transformers/pipelines/audio_classification.py#L103",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<ul>
<li><strong>label</strong> (<code>str</code>) — The label predicted.</li>
<li><strong>score</strong> (<code>float</code>) — The corresponding probability.</li>
</ul>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p>A list of <code>dict</code> with the following keys</p>
`}}),hs=new $({props:{title:"AutomaticSpeechRecognitionPipeline",local:"transformers.AutomaticSpeechRecognitionPipeline",headingTag:"h3"}}),fs=new U({props:{name:"class transformers.AutomaticSpeechRecognitionPipeline",anchor:"transformers.AutomaticSpeechRecognitionPipeline",parameters:[{name:"model",val:": PreTrainedModel"},{name:"feature_extractor",val:": Union = None"},{name:"tokenizer",val:": Optional = None"},{name:"decoder",val:": Union = None"},{name:"device",val:": Union = None"},{name:"torch_dtype",val:": Union = None"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.AutomaticSpeechRecognitionPipeline.model",description:`<strong>model</strong> (<a href="/docs/transformers/v4.37.0/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> or <a href="/docs/transformers/v4.37.0/en/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a>) &#x2014;
The model that will be used by the pipeline to make predictions. This needs to be a model inheriting from
<a href="/docs/transformers/v4.37.0/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> for PyTorch and <a href="/docs/transformers/v4.37.0/en/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a> for TensorFlow.`,name:"model"},{anchor:"transformers.AutomaticSpeechRecognitionPipeline.feature_extractor",description:`<strong>feature_extractor</strong> (<a href="/docs/transformers/v4.37.0/en/main_classes/feature_extractor#transformers.SequenceFeatureExtractor">SequenceFeatureExtractor</a>) &#x2014;
The feature extractor that will be used by the pipeline to encode waveform for the model.`,name:"feature_extractor"},{anchor:"transformers.AutomaticSpeechRecognitionPipeline.tokenizer",description:`<strong>tokenizer</strong> (<a href="/docs/transformers/v4.37.0/en/main_classes/tokenizer#transformers.PreTrainedTokenizer">PreTrainedTokenizer</a>) &#x2014;
The tokenizer that will be used by the pipeline to encode data for the model. This object inherits from
<a href="/docs/transformers/v4.37.0/en/main_classes/tokenizer#transformers.PreTrainedTokenizer">PreTrainedTokenizer</a>.`,name:"tokenizer"},{anchor:"transformers.AutomaticSpeechRecognitionPipeline.decoder",description:`<strong>decoder</strong> (<code>pyctcdecode.BeamSearchDecoderCTC</code>, <em>optional</em>) &#x2014;
<a href="https://github.com/kensho-technologies/pyctcdecode/blob/2fd33dc37c4111417e08d89ccd23d28e9b308d19/pyctcdecode/decoder.py#L180" rel="nofollow">PyCTCDecode&#x2019;s
BeamSearchDecoderCTC</a>
can be passed for language model boosted decoding. See <a href="/docs/transformers/v4.37.0/en/model_doc/wav2vec2#transformers.Wav2Vec2ProcessorWithLM">Wav2Vec2ProcessorWithLM</a> for more information.`,name:"decoder"},{anchor:"transformers.AutomaticSpeechRecognitionPipeline.chunk_length_s",description:`<strong>chunk_length_s</strong> (<code>float</code>, <em>optional</em>, defaults to 0) &#x2014;
The input length for in each chunk. If <code>chunk_length_s = 0</code> then chunking is disabled (default).</p>
<div class="course-tip  bg-gradient-to-br dark:bg-gradient-to-r before:border-green-500 dark:before:border-green-800 from-green-50 dark:from-gray-900 to-white dark:to-gray-950 border border-green-50 text-green-700 dark:text-gray-400">
						
<p>For more information on how to effectively use <code>chunk_length_s</code>, please have a look at the <a href="https://huggingface.co/blog/asr-chunking" rel="nofollow">ASR chunking
blog post</a>.</p>

					</div>`,name:"chunk_length_s"},{anchor:"transformers.AutomaticSpeechRecognitionPipeline.stride_length_s",description:`<strong>stride_length_s</strong> (<code>float</code>, <em>optional</em>, defaults to <code>chunk_length_s / 6</code>) &#x2014;
The length of stride on the left and right of each chunk. Used only with <code>chunk_length_s &gt; 0</code>. This enables
the model to <em>see</em> more context and infer letters better than without this context but the pipeline
discards the stride bits at the end to make the final reconstitution as perfect as possible.</p>
<div class="course-tip  bg-gradient-to-br dark:bg-gradient-to-r before:border-green-500 dark:before:border-green-800 from-green-50 dark:from-gray-900 to-white dark:to-gray-950 border border-green-50 text-green-700 dark:text-gray-400">
						
<p>For more information on how to effectively use <code>stride_length_s</code>, please have a look at the <a href="https://huggingface.co/blog/asr-chunking" rel="nofollow">ASR chunking
blog post</a>.</p>

					</div>`,name:"stride_length_s"},{anchor:"transformers.AutomaticSpeechRecognitionPipeline.framework",description:`<strong>framework</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The framework to use, either <code>&quot;pt&quot;</code> for PyTorch or <code>&quot;tf&quot;</code> for TensorFlow. The specified framework must be
installed. If no framework is specified, will default to the one currently installed. If no framework is
specified and both frameworks are installed, will default to the framework of the <code>model</code>, or to PyTorch if
no model is provided.`,name:"framework"},{anchor:"transformers.AutomaticSpeechRecognitionPipeline.device",description:`<strong>device</strong> (Union[<code>int</code>, <code>torch.device</code>], <em>optional</em>) &#x2014;
Device ordinal for CPU/GPU supports. Setting this to <code>None</code> will leverage CPU, a positive will run the
model on the associated CUDA device id.`,name:"device"},{anchor:"transformers.AutomaticSpeechRecognitionPipeline.torch_dtype",description:`<strong>torch_dtype</strong> (Union[<code>int</code>, <code>torch.dtype</code>], <em>optional</em>) &#x2014;
The data-type (dtype) of the computation. Setting this to <code>None</code> will use float32 precision. Set to
<code>torch.float16</code> or <code>torch.bfloat16</code> to use half-precision in the respective dtypes.`,name:"torch_dtype"}],source:"https://github.com/huggingface/transformers/blob/v4.37.0/src/transformers/pipelines/automatic_speech_recognition.py#L134"}}),Qe=new P({props:{anchor:"transformers.AutomaticSpeechRecognitionPipeline.example",$$slots:{default:[Qy]},$$scope:{ctx:x}}}),gs=new U({props:{name:"__call__",anchor:"transformers.AutomaticSpeechRecognitionPipeline.__call__",parameters:[{name:"inputs",val:": Union"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.AutomaticSpeechRecognitionPipeline.__call__.inputs",description:`<strong>inputs</strong> (<code>np.ndarray</code> or <code>bytes</code> or <code>str</code> or <code>dict</code>) &#x2014;
The inputs is either :</p>
<ul>
<li><code>str</code> that is either the filename of a local audio file, or a public URL address to download the
audio file. The file will be read at the correct sampling rate to get the waveform using
<em>ffmpeg</em>. This requires <em>ffmpeg</em> to be installed on the system.</li>
<li><code>bytes</code> it is supposed to be the content of an audio file and is interpreted by <em>ffmpeg</em> in the
same way.</li>
<li>(<code>np.ndarray</code> of shape (n, ) of type <code>np.float32</code> or <code>np.float64</code>)
Raw audio at the correct sampling rate (no further check will be done)</li>
<li><code>dict</code> form can be used to pass raw audio sampled at arbitrary <code>sampling_rate</code> and let this
pipeline do the resampling. The dict must be in the format <code>{&quot;sampling_rate&quot;: int, &quot;raw&quot;: np.array}</code> with optionally a <code>&quot;stride&quot;: (left: int, right: int)</code> than can ask the pipeline to
treat the first <code>left</code> samples and last <code>right</code> samples to be ignored in decoding (but used at
inference to provide more context to the model). Only use <code>stride</code> with CTC models.</li>
</ul>`,name:"inputs"},{anchor:"transformers.AutomaticSpeechRecognitionPipeline.__call__.return_timestamps",description:`<strong>return_timestamps</strong> (<em>optional</em>, <code>str</code> or <code>bool</code>) &#x2014;
Only available for pure CTC models (Wav2Vec2, HuBERT, etc) and the Whisper model. Not available for
other sequence-to-sequence models.</p>
<p>For CTC models, timestamps can take one of two formats:</p>
<ul>
<li><code>&quot;char&quot;</code>: the pipeline will return timestamps along the text for every character in the text. For
instance, if you get <code>[{&quot;text&quot;: &quot;h&quot;, &quot;timestamp&quot;: (0.5, 0.6)}, {&quot;text&quot;: &quot;i&quot;, &quot;timestamp&quot;: (0.7, 0.9)}]</code>, then it means the model predicts that the letter &#x201C;h&#x201D; was spoken after <code>0.5</code> and before
<code>0.6</code> seconds.</li>
<li><code>&quot;word&quot;</code>: the pipeline will return timestamps along the text for every word in the text. For
instance, if you get <code>[{&quot;text&quot;: &quot;hi &quot;, &quot;timestamp&quot;: (0.5, 0.9)}, {&quot;text&quot;: &quot;there&quot;, &quot;timestamp&quot;: (1.0, 1.5)}]</code>, then it means the model predicts that the word &#x201C;hi&#x201D; was spoken after <code>0.5</code> and
before <code>0.9</code> seconds.</li>
</ul>
<p>For the Whisper model, timestamps can take one of two formats:</p>
<ul>
<li><code>&quot;word&quot;</code>: same as above for word-level CTC timestamps. Word-level timestamps are predicted
through the <em>dynamic-time warping (DTW)</em> algorithm, an approximation to word-level timestamps
by inspecting the cross-attention weights.</li>
<li><code>True</code>: the pipeline will return timestamps along the text for <em>segments</em> of words in the text.
For instance, if you get <code>[{&quot;text&quot;: &quot; Hi there!&quot;, &quot;timestamp&quot;: (0.5, 1.5)}]</code>, then it means the
model predicts that the segment &#x201C;Hi there!&#x201D; was spoken after <code>0.5</code> and before <code>1.5</code> seconds.
Note that a segment of text refers to a sequence of one or more words, rather than individual
words as with word-level timestamps.</li>
</ul>`,name:"return_timestamps"},{anchor:"transformers.AutomaticSpeechRecognitionPipeline.__call__.generate_kwargs",description:`<strong>generate_kwargs</strong> (<code>dict</code>, <em>optional</em>) &#x2014;
The dictionary of ad-hoc parametrization of <code>generate_config</code> to be used for the generation call. For a
complete overview of generate, check the <a href="https://huggingface.co/docs/transformers/en/main_classes/text_generation" rel="nofollow">following
guide</a>.`,name:"generate_kwargs"},{anchor:"transformers.AutomaticSpeechRecognitionPipeline.__call__.max_new_tokens",description:`<strong>max_new_tokens</strong> (<code>int</code>, <em>optional</em>) &#x2014;
The maximum numbers of tokens to generate, ignoring the number of tokens in the prompt.`,name:"max_new_tokens"}],source:"https://github.com/huggingface/transformers/blob/v4.37.0/src/transformers/pipelines/automatic_speech_recognition.py#L229",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>A dictionary with the following keys:</p>
<ul>
<li><strong>text</strong> (<code>str</code>): The recognized text.</li>
<li><strong>chunks</strong> (<em>optional(, <code>List[Dict]</code>)
When using <code>return_timestamps</code>, the <code>chunks</code> will become a list containing all the various text
chunks identified by the model, </em>e.g.* <code>[&#123;"text": "hi ", "timestamp": (0.5, 0.9)&#125;, &#123;"text": "there", "timestamp": (1.0, 1.5)&#125;]</code>. The original full text can roughly be recovered by doing
<code>"".join(chunk["text"] for chunk in output["chunks"])</code>.</li>
</ul>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>Dict</code></p>
`}}),us=new $({props:{title:"TextToAudioPipeline",local:"transformers.TextToAudioPipeline",headingTag:"h3"}}),Ts=new U({props:{name:"class transformers.TextToAudioPipeline",anchor:"transformers.TextToAudioPipeline",parameters:[{name:"*args",val:""},{name:"vocoder",val:" = None"},{name:"sampling_rate",val:" = None"},{name:"**kwargs",val:""}],source:"https://github.com/huggingface/transformers/blob/v4.37.0/src/transformers/pipelines/text_to_audio.py#L27"}}),Ke=new P({props:{anchor:"transformers.TextToAudioPipeline.example",$$slots:{default:[Xy]},$$scope:{ctx:x}}}),et=new wd({props:{$$slots:{default:[ew]},$$scope:{ctx:x}}}),bs=new U({props:{name:"__call__",anchor:"transformers.TextToAudioPipeline.__call__",parameters:[{name:"text_inputs",val:": Union"},{name:"**forward_params",val:""}],parametersDescription:[{anchor:"transformers.TextToAudioPipeline.__call__.text_inputs",description:`<strong>text_inputs</strong> (<code>str</code> or <code>List[str]</code>) &#x2014;
The text(s) to generate.`,name:"text_inputs"},{anchor:"transformers.TextToAudioPipeline.__call__.forward_params",description:`<strong>forward_params</strong> (<code>dict</code>, <em>optional</em>) &#x2014;
Parameters passed to the model generation/forward method. <code>forward_params</code> are always passed to the
underlying model.`,name:"forward_params"},{anchor:"transformers.TextToAudioPipeline.__call__.generate_kwargs",description:`<strong>generate_kwargs</strong> (<code>dict</code>, <em>optional</em>) &#x2014;
The dictionary of ad-hoc parametrization of <code>generate_config</code> to be used for the generation call. For a
complete overview of generate, check the <a href="https://huggingface.co/docs/transformers/en/main_classes/text_generation" rel="nofollow">following
guide</a>. <code>generate_kwargs</code> are
only passed to the underlying model if the latter is a generative model.`,name:"generate_kwargs"}],source:"https://github.com/huggingface/transformers/blob/v4.37.0/src/transformers/pipelines/text_to_audio.py#L160",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>The dictionaries have two keys:</p>
<ul>
<li><strong>audio</strong> (<code>np.ndarray</code> of shape <code>(nb_channels, audio_length)</code>) — The generated audio waveform.</li>
<li><strong>sampling_rate</strong> (<code>int</code>) — The sampling rate of the generated audio waveform.</li>
</ul>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p>A <code>dict</code> or a list of <code>dict</code></p>
`}}),ys=new $({props:{title:"ZeroShotAudioClassificationPipeline",local:"transformers.ZeroShotAudioClassificationPipeline",headingTag:"h3"}}),ws=new U({props:{name:"class transformers.ZeroShotAudioClassificationPipeline",anchor:"transformers.ZeroShotAudioClassificationPipeline",parameters:[{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.ZeroShotAudioClassificationPipeline.model",description:`<strong>model</strong> (<a href="/docs/transformers/v4.37.0/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> or <a href="/docs/transformers/v4.37.0/en/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a>) &#x2014;
The model that will be used by the pipeline to make predictions. This needs to be a model inheriting from
<a href="/docs/transformers/v4.37.0/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> for PyTorch and <a href="/docs/transformers/v4.37.0/en/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a> for TensorFlow.`,name:"model"},{anchor:"transformers.ZeroShotAudioClassificationPipeline.tokenizer",description:`<strong>tokenizer</strong> (<a href="/docs/transformers/v4.37.0/en/main_classes/tokenizer#transformers.PreTrainedTokenizer">PreTrainedTokenizer</a>) &#x2014;
The tokenizer that will be used by the pipeline to encode data for the model. This object inherits from
<a href="/docs/transformers/v4.37.0/en/main_classes/tokenizer#transformers.PreTrainedTokenizer">PreTrainedTokenizer</a>.`,name:"tokenizer"},{anchor:"transformers.ZeroShotAudioClassificationPipeline.modelcard",description:`<strong>modelcard</strong> (<code>str</code> or <code>ModelCard</code>, <em>optional</em>) &#x2014;
Model card attributed to the model for this pipeline.`,name:"modelcard"},{anchor:"transformers.ZeroShotAudioClassificationPipeline.framework",description:`<strong>framework</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The framework to use, either <code>&quot;pt&quot;</code> for PyTorch or <code>&quot;tf&quot;</code> for TensorFlow. The specified framework must be
installed.</p>
<p>If no framework is specified, will default to the one currently installed. If no framework is specified and
both frameworks are installed, will default to the framework of the <code>model</code>, or to PyTorch if no model is
provided.`,name:"framework"},{anchor:"transformers.ZeroShotAudioClassificationPipeline.task",description:`<strong>task</strong> (<code>str</code>, defaults to <code>&quot;&quot;</code>) &#x2014;
A task-identifier for the pipeline.`,name:"task"},{anchor:"transformers.ZeroShotAudioClassificationPipeline.num_workers",description:`<strong>num_workers</strong> (<code>int</code>, <em>optional</em>, defaults to 8) &#x2014;
When the pipeline will use <em>DataLoader</em> (when passing a dataset, on GPU for a Pytorch model), the number of
workers to be used.`,name:"num_workers"},{anchor:"transformers.ZeroShotAudioClassificationPipeline.batch_size",description:`<strong>batch_size</strong> (<code>int</code>, <em>optional</em>, defaults to 1) &#x2014;
When the pipeline will use <em>DataLoader</em> (when passing a dataset, on GPU for a Pytorch model), the size of
the batch to use, for inference this is not always beneficial, please read <a href="https://huggingface.co/transformers/main_classes/pipelines.html#pipeline-batching" rel="nofollow">Batching with
pipelines</a> .`,name:"batch_size"},{anchor:"transformers.ZeroShotAudioClassificationPipeline.args_parser",description:`<strong>args_parser</strong> (<a href="/docs/transformers/v4.37.0/en/internal/pipelines_utils#transformers.pipelines.ArgumentHandler">ArgumentHandler</a>, <em>optional</em>) &#x2014;
Reference to the object in charge of parsing supplied pipeline parameters.`,name:"args_parser"},{anchor:"transformers.ZeroShotAudioClassificationPipeline.device",description:`<strong>device</strong> (<code>int</code>, <em>optional</em>, defaults to -1) &#x2014;
Device ordinal for CPU/GPU supports. Setting this to -1 will leverage CPU, a positive will run the model on
the associated CUDA device id. You can pass native <code>torch.device</code> or a <code>str</code> too.`,name:"device"},{anchor:"transformers.ZeroShotAudioClassificationPipeline.binary_output",description:`<strong>binary_output</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Flag indicating if the output the pipeline should happen in a binary format (i.e., pickle) or as raw text.`,name:"binary_output"}],source:"https://github.com/huggingface/transformers/blob/v4.37.0/src/transformers/pipelines/zero_shot_audio_classification.py#L32"}}),nt=new P({props:{anchor:"transformers.ZeroShotAudioClassificationPipeline.example",$$slots:{default:[tw]},$$scope:{ctx:x}}}),Ms=new U({props:{name:"__call__",anchor:"transformers.ZeroShotAudioClassificationPipeline.__call__",parameters:[{name:"audios",val:": Union"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.ZeroShotAudioClassificationPipeline.__call__.audios",description:`<strong>audios</strong> (<code>str</code>, <code>List[str]</code>, <code>np.array</code> or <code>List[np.array]</code>) &#x2014;
The pipeline handles three types of inputs:<ul>
<li>A string containing a http link pointing to an audio</li>
<li>A string containing a local path to an audio</li>
<li>An audio loaded in numpy</li>
</ul>`,name:"audios"},{anchor:"transformers.ZeroShotAudioClassificationPipeline.__call__.candidate_labels",description:`<strong>candidate_labels</strong> (<code>List[str]</code>) &#x2014;
The candidate labels for this audio`,name:"candidate_labels"},{anchor:"transformers.ZeroShotAudioClassificationPipeline.__call__.hypothesis_template",description:`<strong>hypothesis_template</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;This is a sound of {}&quot;</code>) &#x2014;
The sentence used in cunjunction with <em>candidate_labels</em> to attempt the audio classification by
replacing the placeholder with the candidate_labels. Then likelihood is estimated by using
logits_per_audio`,name:"hypothesis_template"}],source:"https://github.com/huggingface/transformers/blob/v4.37.0/src/transformers/pipelines/zero_shot_audio_classification.py#L64",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>A list of dictionaries containing result, one dictionary per proposed label. The dictionaries contain the
following keys:</p>
<ul>
<li><strong>label</strong> (<code>str</code>) — The label identified by the model. It is one of the suggested <code>candidate_label</code>.</li>
<li><strong>score</strong> (<code>float</code>) — The score attributed by the model for that label (between 0 and 1).</li>
</ul>
`}}),_s=new $({props:{title:"Computer vision",local:"computer-vision",headingTag:"h2"}}),vs=new $({props:{title:"DepthEstimationPipeline",local:"transformers.DepthEstimationPipeline",headingTag:"h3"}}),ks=new U({props:{name:"class transformers.DepthEstimationPipeline",anchor:"transformers.DepthEstimationPipeline",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.DepthEstimationPipeline.model",description:`<strong>model</strong> (<a href="/docs/transformers/v4.37.0/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> or <a href="/docs/transformers/v4.37.0/en/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a>) &#x2014;
The model that will be used by the pipeline to make predictions. This needs to be a model inheriting from
<a href="/docs/transformers/v4.37.0/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> for PyTorch and <a href="/docs/transformers/v4.37.0/en/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a> for TensorFlow.`,name:"model"},{anchor:"transformers.DepthEstimationPipeline.tokenizer",description:`<strong>tokenizer</strong> (<a href="/docs/transformers/v4.37.0/en/main_classes/tokenizer#transformers.PreTrainedTokenizer">PreTrainedTokenizer</a>) &#x2014;
The tokenizer that will be used by the pipeline to encode data for the model. This object inherits from
<a href="/docs/transformers/v4.37.0/en/main_classes/tokenizer#transformers.PreTrainedTokenizer">PreTrainedTokenizer</a>.`,name:"tokenizer"},{anchor:"transformers.DepthEstimationPipeline.modelcard",description:`<strong>modelcard</strong> (<code>str</code> or <code>ModelCard</code>, <em>optional</em>) &#x2014;
Model card attributed to the model for this pipeline.`,name:"modelcard"},{anchor:"transformers.DepthEstimationPipeline.framework",description:`<strong>framework</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The framework to use, either <code>&quot;pt&quot;</code> for PyTorch or <code>&quot;tf&quot;</code> for TensorFlow. The specified framework must be
installed.</p>
<p>If no framework is specified, will default to the one currently installed. If no framework is specified and
both frameworks are installed, will default to the framework of the <code>model</code>, or to PyTorch if no model is
provided.`,name:"framework"},{anchor:"transformers.DepthEstimationPipeline.task",description:`<strong>task</strong> (<code>str</code>, defaults to <code>&quot;&quot;</code>) &#x2014;
A task-identifier for the pipeline.`,name:"task"},{anchor:"transformers.DepthEstimationPipeline.num_workers",description:`<strong>num_workers</strong> (<code>int</code>, <em>optional</em>, defaults to 8) &#x2014;
When the pipeline will use <em>DataLoader</em> (when passing a dataset, on GPU for a Pytorch model), the number of
workers to be used.`,name:"num_workers"},{anchor:"transformers.DepthEstimationPipeline.batch_size",description:`<strong>batch_size</strong> (<code>int</code>, <em>optional</em>, defaults to 1) &#x2014;
When the pipeline will use <em>DataLoader</em> (when passing a dataset, on GPU for a Pytorch model), the size of
the batch to use, for inference this is not always beneficial, please read <a href="https://huggingface.co/transformers/main_classes/pipelines.html#pipeline-batching" rel="nofollow">Batching with
pipelines</a> .`,name:"batch_size"},{anchor:"transformers.DepthEstimationPipeline.args_parser",description:`<strong>args_parser</strong> (<a href="/docs/transformers/v4.37.0/en/internal/pipelines_utils#transformers.pipelines.ArgumentHandler">ArgumentHandler</a>, <em>optional</em>) &#x2014;
Reference to the object in charge of parsing supplied pipeline parameters.`,name:"args_parser"},{anchor:"transformers.DepthEstimationPipeline.device",description:`<strong>device</strong> (<code>int</code>, <em>optional</em>, defaults to -1) &#x2014;
Device ordinal for CPU/GPU supports. Setting this to -1 will leverage CPU, a positive will run the model on
the associated CUDA device id. You can pass native <code>torch.device</code> or a <code>str</code> too.`,name:"device"},{anchor:"transformers.DepthEstimationPipeline.binary_output",description:`<strong>binary_output</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Flag indicating if the output the pipeline should happen in a binary format (i.e., pickle) or as raw text.`,name:"binary_output"}],source:"https://github.com/huggingface/transformers/blob/v4.37.0/src/transformers/pipelines/depth_estimation.py#L22"}}),at=new P({props:{anchor:"transformers.DepthEstimationPipeline.example",$$slots:{default:[nw]},$$scope:{ctx:x}}}),Us=new U({props:{name:"__call__",anchor:"transformers.DepthEstimationPipeline.__call__",parameters:[{name:"images",val:": Union"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.DepthEstimationPipeline.__call__.images",description:`<strong>images</strong> (<code>str</code>, <code>List[str]</code>, <code>PIL.Image</code> or <code>List[PIL.Image]</code>) &#x2014;
The pipeline handles three types of images:</p>
<ul>
<li>A string containing a http link pointing to an image</li>
<li>A string containing a local path to an image</li>
<li>An image loaded in PIL directly</li>
</ul>
<p>The pipeline accepts either a single image or a batch of images, which must then be passed as a string.
Images in a batch must all be in the same format: all as http links, all as local paths, or all as PIL
images.`,name:"images"},{anchor:"transformers.DepthEstimationPipeline.__call__.top_k",description:`<strong>top_k</strong> (<code>int</code>, <em>optional</em>, defaults to 5) &#x2014;
The number of top labels that will be returned by the pipeline. If the provided number is higher than
the number of labels available in the model configuration, it will default to the number of labels.`,name:"top_k"},{anchor:"transformers.DepthEstimationPipeline.__call__.timeout",description:`<strong>timeout</strong> (<code>float</code>, <em>optional</em>, defaults to None) &#x2014;
The maximum time in seconds to wait for fetching images from the web. If None, no timeout is set and
the call may block forever.`,name:"timeout"}],source:"https://github.com/huggingface/transformers/blob/v4.37.0/src/transformers/pipelines/depth_estimation.py#L53",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>A dictionary or a list of dictionaries containing result. If the input is a single image, will return a
dictionary, if the input is a list of several images, will return a list of dictionaries corresponding to
the images.</p>
<p>The dictionaries contain the following keys:</p>
<ul>
<li><strong>label</strong> (<code>str</code>) — The label identified by the model.</li>
<li><strong>score</strong> (<code>int</code>) — The score attributed by the model for that label.</li>
</ul>
`}}),js=new $({props:{title:"ImageClassificationPipeline",local:"transformers.ImageClassificationPipeline",headingTag:"h3"}}),$s=new U({props:{name:"class transformers.ImageClassificationPipeline",anchor:"transformers.ImageClassificationPipeline",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.ImageClassificationPipeline.model",description:`<strong>model</strong> (<a href="/docs/transformers/v4.37.0/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> or <a href="/docs/transformers/v4.37.0/en/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a>) &#x2014;
The model that will be used by the pipeline to make predictions. This needs to be a model inheriting from
<a href="/docs/transformers/v4.37.0/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> for PyTorch and <a href="/docs/transformers/v4.37.0/en/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a> for TensorFlow.`,name:"model"},{anchor:"transformers.ImageClassificationPipeline.tokenizer",description:`<strong>tokenizer</strong> (<a href="/docs/transformers/v4.37.0/en/main_classes/tokenizer#transformers.PreTrainedTokenizer">PreTrainedTokenizer</a>) &#x2014;
The tokenizer that will be used by the pipeline to encode data for the model. This object inherits from
<a href="/docs/transformers/v4.37.0/en/main_classes/tokenizer#transformers.PreTrainedTokenizer">PreTrainedTokenizer</a>.`,name:"tokenizer"},{anchor:"transformers.ImageClassificationPipeline.modelcard",description:`<strong>modelcard</strong> (<code>str</code> or <code>ModelCard</code>, <em>optional</em>) &#x2014;
Model card attributed to the model for this pipeline.`,name:"modelcard"},{anchor:"transformers.ImageClassificationPipeline.framework",description:`<strong>framework</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The framework to use, either <code>&quot;pt&quot;</code> for PyTorch or <code>&quot;tf&quot;</code> for TensorFlow. The specified framework must be
installed.</p>
<p>If no framework is specified, will default to the one currently installed. If no framework is specified and
both frameworks are installed, will default to the framework of the <code>model</code>, or to PyTorch if no model is
provided.`,name:"framework"},{anchor:"transformers.ImageClassificationPipeline.task",description:`<strong>task</strong> (<code>str</code>, defaults to <code>&quot;&quot;</code>) &#x2014;
A task-identifier for the pipeline.`,name:"task"},{anchor:"transformers.ImageClassificationPipeline.num_workers",description:`<strong>num_workers</strong> (<code>int</code>, <em>optional</em>, defaults to 8) &#x2014;
When the pipeline will use <em>DataLoader</em> (when passing a dataset, on GPU for a Pytorch model), the number of
workers to be used.`,name:"num_workers"},{anchor:"transformers.ImageClassificationPipeline.batch_size",description:`<strong>batch_size</strong> (<code>int</code>, <em>optional</em>, defaults to 1) &#x2014;
When the pipeline will use <em>DataLoader</em> (when passing a dataset, on GPU for a Pytorch model), the size of
the batch to use, for inference this is not always beneficial, please read <a href="https://huggingface.co/transformers/main_classes/pipelines.html#pipeline-batching" rel="nofollow">Batching with
pipelines</a> .`,name:"batch_size"},{anchor:"transformers.ImageClassificationPipeline.args_parser",description:`<strong>args_parser</strong> (<a href="/docs/transformers/v4.37.0/en/internal/pipelines_utils#transformers.pipelines.ArgumentHandler">ArgumentHandler</a>, <em>optional</em>) &#x2014;
Reference to the object in charge of parsing supplied pipeline parameters.`,name:"args_parser"},{anchor:"transformers.ImageClassificationPipeline.device",description:`<strong>device</strong> (<code>int</code>, <em>optional</em>, defaults to -1) &#x2014;
Device ordinal for CPU/GPU supports. Setting this to -1 will leverage CPU, a positive will run the model on
the associated CUDA device id. You can pass native <code>torch.device</code> or a <code>str</code> too.`,name:"device"},{anchor:"transformers.ImageClassificationPipeline.binary_output",description:`<strong>binary_output</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Flag indicating if the output the pipeline should happen in a binary format (i.e., pickle) or as raw text.`,name:"binary_output"},{anchor:"transformers.ImageClassificationPipeline.function_to_apply",description:`<strong>function_to_apply</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;default&quot;</code>) &#x2014;
The function to apply to the model outputs in order to retrieve the scores. Accepts four different values:</p>
<ul>
<li><code>&quot;default&quot;</code>: if the model has a single label, will apply the sigmoid function on the output. If the model
has several labels, will apply the softmax function on the output.</li>
<li><code>&quot;sigmoid&quot;</code>: Applies the sigmoid function on the output.</li>
<li><code>&quot;softmax&quot;</code>: Applies the softmax function on the output.</li>
<li><code>&quot;none&quot;</code>: Does not apply any function on the output.</li>
</ul>`,name:"function_to_apply"}],source:"https://github.com/huggingface/transformers/blob/v4.37.0/src/transformers/pipelines/image_classification.py#L50"}}),rt=new P({props:{anchor:"transformers.ImageClassificationPipeline.example",$$slots:{default:[sw]},$$scope:{ctx:x}}}),Js=new U({props:{name:"__call__",anchor:"transformers.ImageClassificationPipeline.__call__",parameters:[{name:"images",val:": Union"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.ImageClassificationPipeline.__call__.images",description:`<strong>images</strong> (<code>str</code>, <code>List[str]</code>, <code>PIL.Image</code> or <code>List[PIL.Image]</code>) &#x2014;
The pipeline handles three types of images:</p>
<ul>
<li>A string containing a http link pointing to an image</li>
<li>A string containing a local path to an image</li>
<li>An image loaded in PIL directly</li>
</ul>
<p>The pipeline accepts either a single image or a batch of images, which must then be passed as a string.
Images in a batch must all be in the same format: all as http links, all as local paths, or all as PIL
images.`,name:"images"},{anchor:"transformers.ImageClassificationPipeline.__call__.function_to_apply",description:`<strong>function_to_apply</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;default&quot;</code>) &#x2014;
The function to apply to the model outputs in order to retrieve the scores. Accepts four different
values:</p>
<p>If this argument is not specified, then it will apply the following functions according to the number
of labels:</p>
<ul>
<li>If the model has a single label, will apply the sigmoid function on the output.</li>
<li>If the model has several labels, will apply the softmax function on the output.</li>
</ul>
<p>Possible values are:</p>
<ul>
<li><code>&quot;sigmoid&quot;</code>: Applies the sigmoid function on the output.</li>
<li><code>&quot;softmax&quot;</code>: Applies the softmax function on the output.</li>
<li><code>&quot;none&quot;</code>: Does not apply any function on the output.</li>
</ul>`,name:"function_to_apply"},{anchor:"transformers.ImageClassificationPipeline.__call__.top_k",description:`<strong>top_k</strong> (<code>int</code>, <em>optional</em>, defaults to 5) &#x2014;
The number of top labels that will be returned by the pipeline. If the provided number is higher than
the number of labels available in the model configuration, it will default to the number of labels.`,name:"top_k"},{anchor:"transformers.ImageClassificationPipeline.__call__.timeout",description:`<strong>timeout</strong> (<code>float</code>, <em>optional</em>, defaults to None) &#x2014;
The maximum time in seconds to wait for fetching images from the web. If None, no timeout is set and
the call may block forever.`,name:"timeout"}],source:"https://github.com/huggingface/transformers/blob/v4.37.0/src/transformers/pipelines/image_classification.py#L111",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>A dictionary or a list of dictionaries containing result. If the input is a single image, will return a
dictionary, if the input is a list of several images, will return a list of dictionaries corresponding to
the images.</p>
<p>The dictionaries contain the following keys:</p>
<ul>
<li><strong>label</strong> (<code>str</code>) — The label identified by the model.</li>
<li><strong>score</strong> (<code>int</code>) — The score attributed by the model for that label.</li>
</ul>
`}}),Ps=new $({props:{title:"ImageSegmentationPipeline",local:"transformers.ImageSegmentationPipeline",headingTag:"h3"}}),Cs=new U({props:{name:"class transformers.ImageSegmentationPipeline",anchor:"transformers.ImageSegmentationPipeline",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.ImageSegmentationPipeline.model",description:`<strong>model</strong> (<a href="/docs/transformers/v4.37.0/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> or <a href="/docs/transformers/v4.37.0/en/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a>) &#x2014;
The model that will be used by the pipeline to make predictions. This needs to be a model inheriting from
<a href="/docs/transformers/v4.37.0/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> for PyTorch and <a href="/docs/transformers/v4.37.0/en/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a> for TensorFlow.`,name:"model"},{anchor:"transformers.ImageSegmentationPipeline.tokenizer",description:`<strong>tokenizer</strong> (<a href="/docs/transformers/v4.37.0/en/main_classes/tokenizer#transformers.PreTrainedTokenizer">PreTrainedTokenizer</a>) &#x2014;
The tokenizer that will be used by the pipeline to encode data for the model. This object inherits from
<a href="/docs/transformers/v4.37.0/en/main_classes/tokenizer#transformers.PreTrainedTokenizer">PreTrainedTokenizer</a>.`,name:"tokenizer"},{anchor:"transformers.ImageSegmentationPipeline.modelcard",description:`<strong>modelcard</strong> (<code>str</code> or <code>ModelCard</code>, <em>optional</em>) &#x2014;
Model card attributed to the model for this pipeline.`,name:"modelcard"},{anchor:"transformers.ImageSegmentationPipeline.framework",description:`<strong>framework</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The framework to use, either <code>&quot;pt&quot;</code> for PyTorch or <code>&quot;tf&quot;</code> for TensorFlow. The specified framework must be
installed.</p>
<p>If no framework is specified, will default to the one currently installed. If no framework is specified and
both frameworks are installed, will default to the framework of the <code>model</code>, or to PyTorch if no model is
provided.`,name:"framework"},{anchor:"transformers.ImageSegmentationPipeline.task",description:`<strong>task</strong> (<code>str</code>, defaults to <code>&quot;&quot;</code>) &#x2014;
A task-identifier for the pipeline.`,name:"task"},{anchor:"transformers.ImageSegmentationPipeline.num_workers",description:`<strong>num_workers</strong> (<code>int</code>, <em>optional</em>, defaults to 8) &#x2014;
When the pipeline will use <em>DataLoader</em> (when passing a dataset, on GPU for a Pytorch model), the number of
workers to be used.`,name:"num_workers"},{anchor:"transformers.ImageSegmentationPipeline.batch_size",description:`<strong>batch_size</strong> (<code>int</code>, <em>optional</em>, defaults to 1) &#x2014;
When the pipeline will use <em>DataLoader</em> (when passing a dataset, on GPU for a Pytorch model), the size of
the batch to use, for inference this is not always beneficial, please read <a href="https://huggingface.co/transformers/main_classes/pipelines.html#pipeline-batching" rel="nofollow">Batching with
pipelines</a> .`,name:"batch_size"},{anchor:"transformers.ImageSegmentationPipeline.args_parser",description:`<strong>args_parser</strong> (<a href="/docs/transformers/v4.37.0/en/internal/pipelines_utils#transformers.pipelines.ArgumentHandler">ArgumentHandler</a>, <em>optional</em>) &#x2014;
Reference to the object in charge of parsing supplied pipeline parameters.`,name:"args_parser"},{anchor:"transformers.ImageSegmentationPipeline.device",description:`<strong>device</strong> (<code>int</code>, <em>optional</em>, defaults to -1) &#x2014;
Device ordinal for CPU/GPU supports. Setting this to -1 will leverage CPU, a positive will run the model on
the associated CUDA device id. You can pass native <code>torch.device</code> or a <code>str</code> too.`,name:"device"},{anchor:"transformers.ImageSegmentationPipeline.binary_output",description:`<strong>binary_output</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Flag indicating if the output the pipeline should happen in a binary format (i.e., pickle) or as raw text.`,name:"binary_output"}],source:"https://github.com/huggingface/transformers/blob/v4.37.0/src/transformers/pipelines/image_segmentation.py#L30"}}),lt=new P({props:{anchor:"transformers.ImageSegmentationPipeline.example",$$slots:{default:[aw]},$$scope:{ctx:x}}}),Is=new U({props:{name:"__call__",anchor:"transformers.ImageSegmentationPipeline.__call__",parameters:[{name:"images",val:""},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.ImageSegmentationPipeline.__call__.images",description:`<strong>images</strong> (<code>str</code>, <code>List[str]</code>, <code>PIL.Image</code> or <code>List[PIL.Image]</code>) &#x2014;
The pipeline handles three types of images:</p>
<ul>
<li>A string containing an HTTP(S) link pointing to an image</li>
<li>A string containing a local path to an image</li>
<li>An image loaded in PIL directly</li>
</ul>
<p>The pipeline accepts either a single image or a batch of images. Images in a batch must all be in the
same format: all as HTTP(S) links, all as local paths, or all as PIL images.`,name:"images"},{anchor:"transformers.ImageSegmentationPipeline.__call__.subtask",description:`<strong>subtask</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Segmentation task to be performed, choose [<code>semantic</code>, <code>instance</code> and <code>panoptic</code>] depending on model
capabilities. If not set, the pipeline will attempt tp resolve in the following order:
<code>panoptic</code>, <code>instance</code>, <code>semantic</code>.`,name:"subtask"},{anchor:"transformers.ImageSegmentationPipeline.__call__.threshold",description:`<strong>threshold</strong> (<code>float</code>, <em>optional</em>, defaults to 0.9) &#x2014;
Probability threshold to filter out predicted masks.`,name:"threshold"},{anchor:"transformers.ImageSegmentationPipeline.__call__.mask_threshold",description:`<strong>mask_threshold</strong> (<code>float</code>, <em>optional</em>, defaults to 0.5) &#x2014;
Threshold to use when turning the predicted masks into binary values.`,name:"mask_threshold"},{anchor:"transformers.ImageSegmentationPipeline.__call__.overlap_mask_area_threshold",description:`<strong>overlap_mask_area_threshold</strong> (<code>float</code>, <em>optional</em>, defaults to 0.5) &#x2014;
Mask overlap threshold to eliminate small, disconnected segments.`,name:"overlap_mask_area_threshold"},{anchor:"transformers.ImageSegmentationPipeline.__call__.timeout",description:`<strong>timeout</strong> (<code>float</code>, <em>optional</em>, defaults to None) &#x2014;
The maximum time in seconds to wait for fetching images from the web. If None, no timeout is set and
the call may block forever.`,name:"timeout"}],source:"https://github.com/huggingface/transformers/blob/v4.37.0/src/transformers/pipelines/image_segmentation.py#L97",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>A dictionary or a list of dictionaries containing the result. If the input is a single image, will return a
list of dictionaries, if the input is a list of several images, will return a list of list of dictionaries
corresponding to each image.</p>
<p>The dictionaries contain the mask, label and score (where applicable) of each detected object and contains
the following keys:</p>
<ul>
<li><strong>label</strong> (<code>str</code>) — The class label identified by the model.</li>
<li><strong>mask</strong> (<code>PIL.Image</code>) — A binary mask of the detected object as a Pil Image of shape (width, height) of
the original image. Returns a mask filled with zeros if no object is found.</li>
<li><strong>score</strong> (<em>optional</em> <code>float</code>) — Optionally, when the model is capable of estimating a confidence of the
“object” described by the label and the mask.</li>
</ul>
`}}),qs=new $({props:{title:"ImageToImagePipeline",local:"transformers.ImageToImagePipeline",headingTag:"h3"}}),Gs=new U({props:{name:"class transformers.ImageToImagePipeline",anchor:"transformers.ImageToImagePipeline",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.ImageToImagePipeline.model",description:`<strong>model</strong> (<a href="/docs/transformers/v4.37.0/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> or <a href="/docs/transformers/v4.37.0/en/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a>) &#x2014;
The model that will be used by the pipeline to make predictions. This needs to be a model inheriting from
<a href="/docs/transformers/v4.37.0/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> for PyTorch and <a href="/docs/transformers/v4.37.0/en/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a> for TensorFlow.`,name:"model"},{anchor:"transformers.ImageToImagePipeline.tokenizer",description:`<strong>tokenizer</strong> (<a href="/docs/transformers/v4.37.0/en/main_classes/tokenizer#transformers.PreTrainedTokenizer">PreTrainedTokenizer</a>) &#x2014;
The tokenizer that will be used by the pipeline to encode data for the model. This object inherits from
<a href="/docs/transformers/v4.37.0/en/main_classes/tokenizer#transformers.PreTrainedTokenizer">PreTrainedTokenizer</a>.`,name:"tokenizer"},{anchor:"transformers.ImageToImagePipeline.modelcard",description:`<strong>modelcard</strong> (<code>str</code> or <code>ModelCard</code>, <em>optional</em>) &#x2014;
Model card attributed to the model for this pipeline.`,name:"modelcard"},{anchor:"transformers.ImageToImagePipeline.framework",description:`<strong>framework</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The framework to use, either <code>&quot;pt&quot;</code> for PyTorch or <code>&quot;tf&quot;</code> for TensorFlow. The specified framework must be
installed.</p>
<p>If no framework is specified, will default to the one currently installed. If no framework is specified and
both frameworks are installed, will default to the framework of the <code>model</code>, or to PyTorch if no model is
provided.`,name:"framework"},{anchor:"transformers.ImageToImagePipeline.task",description:`<strong>task</strong> (<code>str</code>, defaults to <code>&quot;&quot;</code>) &#x2014;
A task-identifier for the pipeline.`,name:"task"},{anchor:"transformers.ImageToImagePipeline.num_workers",description:`<strong>num_workers</strong> (<code>int</code>, <em>optional</em>, defaults to 8) &#x2014;
When the pipeline will use <em>DataLoader</em> (when passing a dataset, on GPU for a Pytorch model), the number of
workers to be used.`,name:"num_workers"},{anchor:"transformers.ImageToImagePipeline.batch_size",description:`<strong>batch_size</strong> (<code>int</code>, <em>optional</em>, defaults to 1) &#x2014;
When the pipeline will use <em>DataLoader</em> (when passing a dataset, on GPU for a Pytorch model), the size of
the batch to use, for inference this is not always beneficial, please read <a href="https://huggingface.co/transformers/main_classes/pipelines.html#pipeline-batching" rel="nofollow">Batching with
pipelines</a> .`,name:"batch_size"},{anchor:"transformers.ImageToImagePipeline.args_parser",description:`<strong>args_parser</strong> (<a href="/docs/transformers/v4.37.0/en/internal/pipelines_utils#transformers.pipelines.ArgumentHandler">ArgumentHandler</a>, <em>optional</em>) &#x2014;
Reference to the object in charge of parsing supplied pipeline parameters.`,name:"args_parser"},{anchor:"transformers.ImageToImagePipeline.device",description:`<strong>device</strong> (<code>int</code>, <em>optional</em>, defaults to -1) &#x2014;
Device ordinal for CPU/GPU supports. Setting this to -1 will leverage CPU, a positive will run the model on
the associated CUDA device id. You can pass native <code>torch.device</code> or a <code>str</code> too.`,name:"device"},{anchor:"transformers.ImageToImagePipeline.binary_output",description:`<strong>binary_output</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Flag indicating if the output the pipeline should happen in a binary format (i.e., pickle) or as raw text.`,name:"binary_output"}],source:"https://github.com/huggingface/transformers/blob/v4.37.0/src/transformers/pipelines/image_to_image.py#L39"}}),pt=new P({props:{anchor:"transformers.ImageToImagePipeline.example",$$slots:{default:[ow]},$$scope:{ctx:x}}}),zs=new U({props:{name:"__call__",anchor:"transformers.ImageToImagePipeline.__call__",parameters:[{name:"images",val:": Union"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.ImageToImagePipeline.__call__.images",description:`<strong>images</strong> (<code>str</code>, <code>List[str]</code>, <code>PIL.Image</code> or <code>List[PIL.Image]</code>) &#x2014;
The pipeline handles three types of images:</p>
<ul>
<li>A string containing a http link pointing to an image</li>
<li>A string containing a local path to an image</li>
<li>An image loaded in PIL directly</li>
</ul>
<p>The pipeline accepts either a single image or a batch of images, which must then be passed as a string.
Images in a batch must all be in the same format: all as http links, all as local paths, or all as PIL
images.`,name:"images"},{anchor:"transformers.ImageToImagePipeline.__call__.timeout",description:`<strong>timeout</strong> (<code>float</code>, <em>optional</em>, defaults to None) &#x2014;
The maximum time in seconds to wait for fetching images from the web. If None, no timeout is used and
the call may block forever.`,name:"timeout"}],source:"https://github.com/huggingface/transformers/blob/v4.37.0/src/transformers/pipelines/image_to_image.py#L87",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>An image (Image.Image) or a list of images (List[“Image.Image”]) containing result(s). If the input is a
single image, the return will be also a single image, if the input is a list of several images, it will
return a list of transformed images.</p>
`}}),Zs=new $({props:{title:"ObjectDetectionPipeline",local:"transformers.ObjectDetectionPipeline",headingTag:"h3"}}),Fs=new U({props:{name:"class transformers.ObjectDetectionPipeline",anchor:"transformers.ObjectDetectionPipeline",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.ObjectDetectionPipeline.model",description:`<strong>model</strong> (<a href="/docs/transformers/v4.37.0/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> or <a href="/docs/transformers/v4.37.0/en/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a>) &#x2014;
The model that will be used by the pipeline to make predictions. This needs to be a model inheriting from
<a href="/docs/transformers/v4.37.0/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> for PyTorch and <a href="/docs/transformers/v4.37.0/en/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a> for TensorFlow.`,name:"model"},{anchor:"transformers.ObjectDetectionPipeline.tokenizer",description:`<strong>tokenizer</strong> (<a href="/docs/transformers/v4.37.0/en/main_classes/tokenizer#transformers.PreTrainedTokenizer">PreTrainedTokenizer</a>) &#x2014;
The tokenizer that will be used by the pipeline to encode data for the model. This object inherits from
<a href="/docs/transformers/v4.37.0/en/main_classes/tokenizer#transformers.PreTrainedTokenizer">PreTrainedTokenizer</a>.`,name:"tokenizer"},{anchor:"transformers.ObjectDetectionPipeline.modelcard",description:`<strong>modelcard</strong> (<code>str</code> or <code>ModelCard</code>, <em>optional</em>) &#x2014;
Model card attributed to the model for this pipeline.`,name:"modelcard"},{anchor:"transformers.ObjectDetectionPipeline.framework",description:`<strong>framework</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The framework to use, either <code>&quot;pt&quot;</code> for PyTorch or <code>&quot;tf&quot;</code> for TensorFlow. The specified framework must be
installed.</p>
<p>If no framework is specified, will default to the one currently installed. If no framework is specified and
both frameworks are installed, will default to the framework of the <code>model</code>, or to PyTorch if no model is
provided.`,name:"framework"},{anchor:"transformers.ObjectDetectionPipeline.task",description:`<strong>task</strong> (<code>str</code>, defaults to <code>&quot;&quot;</code>) &#x2014;
A task-identifier for the pipeline.`,name:"task"},{anchor:"transformers.ObjectDetectionPipeline.num_workers",description:`<strong>num_workers</strong> (<code>int</code>, <em>optional</em>, defaults to 8) &#x2014;
When the pipeline will use <em>DataLoader</em> (when passing a dataset, on GPU for a Pytorch model), the number of
workers to be used.`,name:"num_workers"},{anchor:"transformers.ObjectDetectionPipeline.batch_size",description:`<strong>batch_size</strong> (<code>int</code>, <em>optional</em>, defaults to 1) &#x2014;
When the pipeline will use <em>DataLoader</em> (when passing a dataset, on GPU for a Pytorch model), the size of
the batch to use, for inference this is not always beneficial, please read <a href="https://huggingface.co/transformers/main_classes/pipelines.html#pipeline-batching" rel="nofollow">Batching with
pipelines</a> .`,name:"batch_size"},{anchor:"transformers.ObjectDetectionPipeline.args_parser",description:`<strong>args_parser</strong> (<a href="/docs/transformers/v4.37.0/en/internal/pipelines_utils#transformers.pipelines.ArgumentHandler">ArgumentHandler</a>, <em>optional</em>) &#x2014;
Reference to the object in charge of parsing supplied pipeline parameters.`,name:"args_parser"},{anchor:"transformers.ObjectDetectionPipeline.device",description:`<strong>device</strong> (<code>int</code>, <em>optional</em>, defaults to -1) &#x2014;
Device ordinal for CPU/GPU supports. Setting this to -1 will leverage CPU, a positive will run the model on
the associated CUDA device id. You can pass native <code>torch.device</code> or a <code>str</code> too.`,name:"device"},{anchor:"transformers.ObjectDetectionPipeline.binary_output",description:`<strong>binary_output</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Flag indicating if the output the pipeline should happen in a binary format (i.e., pickle) or as raw text.`,name:"binary_output"}],source:"https://github.com/huggingface/transformers/blob/v4.37.0/src/transformers/pipelines/object_detection.py#L26"}}),mt=new P({props:{anchor:"transformers.ObjectDetectionPipeline.example",$$slots:{default:[rw]},$$scope:{ctx:x}}}),Ds=new U({props:{name:"__call__",anchor:"transformers.ObjectDetectionPipeline.__call__",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.ObjectDetectionPipeline.__call__.images",description:`<strong>images</strong> (<code>str</code>, <code>List[str]</code>, <code>PIL.Image</code> or <code>List[PIL.Image]</code>) &#x2014;
The pipeline handles three types of images:</p>
<ul>
<li>A string containing an HTTP(S) link pointing to an image</li>
<li>A string containing a local path to an image</li>
<li>An image loaded in PIL directly</li>
</ul>
<p>The pipeline accepts either a single image or a batch of images. Images in a batch must all be in the
same format: all as HTTP(S) links, all as local paths, or all as PIL images.`,name:"images"},{anchor:"transformers.ObjectDetectionPipeline.__call__.threshold",description:`<strong>threshold</strong> (<code>float</code>, <em>optional</em>, defaults to 0.9) &#x2014;
The probability necessary to make a prediction.`,name:"threshold"},{anchor:"transformers.ObjectDetectionPipeline.__call__.timeout",description:`<strong>timeout</strong> (<code>float</code>, <em>optional</em>, defaults to None) &#x2014;
The maximum time in seconds to wait for fetching images from the web. If None, no timeout is set and
the call may block forever.`,name:"timeout"}],source:"https://github.com/huggingface/transformers/blob/v4.37.0/src/transformers/pipelines/object_detection.py#L72",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>A list of dictionaries or a list of list of dictionaries containing the result. If the input is a single
image, will return a list of dictionaries, if the input is a list of several images, will return a list of
list of dictionaries corresponding to each image.</p>
<p>The dictionaries contain the following keys:</p>
<ul>
<li><strong>label</strong> (<code>str</code>) — The class label identified by the model.</li>
<li><strong>score</strong> (<code>float</code>) — The score attributed by the model for that label.</li>
<li><strong>box</strong> (<code>List[Dict[str, int]]</code>) — The bounding box of detected object in image’s original size.</li>
</ul>
`}}),Rs=new $({props:{title:"VideoClassificationPipeline",local:"transformers.VideoClassificationPipeline",headingTag:"h3"}}),Vs=new U({props:{name:"class transformers.VideoClassificationPipeline",anchor:"transformers.VideoClassificationPipeline",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.VideoClassificationPipeline.model",description:`<strong>model</strong> (<a href="/docs/transformers/v4.37.0/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> or <a href="/docs/transformers/v4.37.0/en/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a>) &#x2014;
The model that will be used by the pipeline to make predictions. This needs to be a model inheriting from
<a href="/docs/transformers/v4.37.0/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> for PyTorch and <a href="/docs/transformers/v4.37.0/en/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a> for TensorFlow.`,name:"model"},{anchor:"transformers.VideoClassificationPipeline.tokenizer",description:`<strong>tokenizer</strong> (<a href="/docs/transformers/v4.37.0/en/main_classes/tokenizer#transformers.PreTrainedTokenizer">PreTrainedTokenizer</a>) &#x2014;
The tokenizer that will be used by the pipeline to encode data for the model. This object inherits from
<a href="/docs/transformers/v4.37.0/en/main_classes/tokenizer#transformers.PreTrainedTokenizer">PreTrainedTokenizer</a>.`,name:"tokenizer"},{anchor:"transformers.VideoClassificationPipeline.modelcard",description:`<strong>modelcard</strong> (<code>str</code> or <code>ModelCard</code>, <em>optional</em>) &#x2014;
Model card attributed to the model for this pipeline.`,name:"modelcard"},{anchor:"transformers.VideoClassificationPipeline.framework",description:`<strong>framework</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The framework to use, either <code>&quot;pt&quot;</code> for PyTorch or <code>&quot;tf&quot;</code> for TensorFlow. The specified framework must be
installed.</p>
<p>If no framework is specified, will default to the one currently installed. If no framework is specified and
both frameworks are installed, will default to the framework of the <code>model</code>, or to PyTorch if no model is
provided.`,name:"framework"},{anchor:"transformers.VideoClassificationPipeline.task",description:`<strong>task</strong> (<code>str</code>, defaults to <code>&quot;&quot;</code>) &#x2014;
A task-identifier for the pipeline.`,name:"task"},{anchor:"transformers.VideoClassificationPipeline.num_workers",description:`<strong>num_workers</strong> (<code>int</code>, <em>optional</em>, defaults to 8) &#x2014;
When the pipeline will use <em>DataLoader</em> (when passing a dataset, on GPU for a Pytorch model), the number of
workers to be used.`,name:"num_workers"},{anchor:"transformers.VideoClassificationPipeline.batch_size",description:`<strong>batch_size</strong> (<code>int</code>, <em>optional</em>, defaults to 1) &#x2014;
When the pipeline will use <em>DataLoader</em> (when passing a dataset, on GPU for a Pytorch model), the size of
the batch to use, for inference this is not always beneficial, please read <a href="https://huggingface.co/transformers/main_classes/pipelines.html#pipeline-batching" rel="nofollow">Batching with
pipelines</a> .`,name:"batch_size"},{anchor:"transformers.VideoClassificationPipeline.args_parser",description:`<strong>args_parser</strong> (<a href="/docs/transformers/v4.37.0/en/internal/pipelines_utils#transformers.pipelines.ArgumentHandler">ArgumentHandler</a>, <em>optional</em>) &#x2014;
Reference to the object in charge of parsing supplied pipeline parameters.`,name:"args_parser"},{anchor:"transformers.VideoClassificationPipeline.device",description:`<strong>device</strong> (<code>int</code>, <em>optional</em>, defaults to -1) &#x2014;
Device ordinal for CPU/GPU supports. Setting this to -1 will leverage CPU, a positive will run the model on
the associated CUDA device id. You can pass native <code>torch.device</code> or a <code>str</code> too.`,name:"device"},{anchor:"transformers.VideoClassificationPipeline.binary_output",description:`<strong>binary_output</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Flag indicating if the output the pipeline should happen in a binary format (i.e., pickle) or as raw text.`,name:"binary_output"}],source:"https://github.com/huggingface/transformers/blob/v4.37.0/src/transformers/pipelines/video_classification.py#L21"}}),As=new U({props:{name:"__call__",anchor:"transformers.VideoClassificationPipeline.__call__",parameters:[{name:"videos",val:": Union"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.VideoClassificationPipeline.__call__.videos",description:`<strong>videos</strong> (<code>str</code>, <code>List[str]</code>) &#x2014;
The pipeline handles three types of videos:</p>
<ul>
<li>A string containing a http link pointing to a video</li>
<li>A string containing a local path to a video</li>
</ul>
<p>The pipeline accepts either a single video or a batch of videos, which must then be passed as a string.
Videos in a batch must all be in the same format: all as http links or all as local paths.`,name:"videos"},{anchor:"transformers.VideoClassificationPipeline.__call__.top_k",description:`<strong>top_k</strong> (<code>int</code>, <em>optional</em>, defaults to 5) &#x2014;
The number of top labels that will be returned by the pipeline. If the provided number is higher than
the number of labels available in the model configuration, it will default to the number of labels.`,name:"top_k"},{anchor:"transformers.VideoClassificationPipeline.__call__.num_frames",description:`<strong>num_frames</strong> (<code>int</code>, <em>optional</em>, defaults to <code>self.model.config.num_frames</code>) &#x2014;
The number of frames sampled from the video to run the classification on. If not provided, will default
to the number of frames specified in the model configuration.`,name:"num_frames"},{anchor:"transformers.VideoClassificationPipeline.__call__.frame_sampling_rate",description:`<strong>frame_sampling_rate</strong> (<code>int</code>, <em>optional</em>, defaults to 1) &#x2014;
The sampling rate used to select frames from the video. If not provided, will default to 1, i.e. every
frame will be used.`,name:"frame_sampling_rate"}],source:"https://github.com/huggingface/transformers/blob/v4.37.0/src/transformers/pipelines/video_classification.py#L51",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>A dictionary or a list of dictionaries containing result. If the input is a single video, will return a
dictionary, if the input is a list of several videos, will return a list of dictionaries corresponding to
the videos.</p>
<p>The dictionaries contain the following keys:</p>
<ul>
<li><strong>label</strong> (<code>str</code>) — The label identified by the model.</li>
<li><strong>score</strong> (<code>int</code>) — The score attributed by the model for that label.</li>
</ul>
`}}),Ns=new $({props:{title:"ZeroShotImageClassificationPipeline",local:"transformers.ZeroShotImageClassificationPipeline",headingTag:"h3"}}),Bs=new U({props:{name:"class transformers.ZeroShotImageClassificationPipeline",anchor:"transformers.ZeroShotImageClassificationPipeline",parameters:[{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.ZeroShotImageClassificationPipeline.model",description:`<strong>model</strong> (<a href="/docs/transformers/v4.37.0/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> or <a href="/docs/transformers/v4.37.0/en/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a>) &#x2014;
The model that will be used by the pipeline to make predictions. This needs to be a model inheriting from
<a href="/docs/transformers/v4.37.0/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> for PyTorch and <a href="/docs/transformers/v4.37.0/en/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a> for TensorFlow.`,name:"model"},{anchor:"transformers.ZeroShotImageClassificationPipeline.tokenizer",description:`<strong>tokenizer</strong> (<a href="/docs/transformers/v4.37.0/en/main_classes/tokenizer#transformers.PreTrainedTokenizer">PreTrainedTokenizer</a>) &#x2014;
The tokenizer that will be used by the pipeline to encode data for the model. This object inherits from
<a href="/docs/transformers/v4.37.0/en/main_classes/tokenizer#transformers.PreTrainedTokenizer">PreTrainedTokenizer</a>.`,name:"tokenizer"},{anchor:"transformers.ZeroShotImageClassificationPipeline.modelcard",description:`<strong>modelcard</strong> (<code>str</code> or <code>ModelCard</code>, <em>optional</em>) &#x2014;
Model card attributed to the model for this pipeline.`,name:"modelcard"},{anchor:"transformers.ZeroShotImageClassificationPipeline.framework",description:`<strong>framework</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The framework to use, either <code>&quot;pt&quot;</code> for PyTorch or <code>&quot;tf&quot;</code> for TensorFlow. The specified framework must be
installed.</p>
<p>If no framework is specified, will default to the one currently installed. If no framework is specified and
both frameworks are installed, will default to the framework of the <code>model</code>, or to PyTorch if no model is
provided.`,name:"framework"},{anchor:"transformers.ZeroShotImageClassificationPipeline.task",description:`<strong>task</strong> (<code>str</code>, defaults to <code>&quot;&quot;</code>) &#x2014;
A task-identifier for the pipeline.`,name:"task"},{anchor:"transformers.ZeroShotImageClassificationPipeline.num_workers",description:`<strong>num_workers</strong> (<code>int</code>, <em>optional</em>, defaults to 8) &#x2014;
When the pipeline will use <em>DataLoader</em> (when passing a dataset, on GPU for a Pytorch model), the number of
workers to be used.`,name:"num_workers"},{anchor:"transformers.ZeroShotImageClassificationPipeline.batch_size",description:`<strong>batch_size</strong> (<code>int</code>, <em>optional</em>, defaults to 1) &#x2014;
When the pipeline will use <em>DataLoader</em> (when passing a dataset, on GPU for a Pytorch model), the size of
the batch to use, for inference this is not always beneficial, please read <a href="https://huggingface.co/transformers/main_classes/pipelines.html#pipeline-batching" rel="nofollow">Batching with
pipelines</a> .`,name:"batch_size"},{anchor:"transformers.ZeroShotImageClassificationPipeline.args_parser",description:`<strong>args_parser</strong> (<a href="/docs/transformers/v4.37.0/en/internal/pipelines_utils#transformers.pipelines.ArgumentHandler">ArgumentHandler</a>, <em>optional</em>) &#x2014;
Reference to the object in charge of parsing supplied pipeline parameters.`,name:"args_parser"},{anchor:"transformers.ZeroShotImageClassificationPipeline.device",description:`<strong>device</strong> (<code>int</code>, <em>optional</em>, defaults to -1) &#x2014;
Device ordinal for CPU/GPU supports. Setting this to -1 will leverage CPU, a positive will run the model on
the associated CUDA device id. You can pass native <code>torch.device</code> or a <code>str</code> too.`,name:"device"},{anchor:"transformers.ZeroShotImageClassificationPipeline.binary_output",description:`<strong>binary_output</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Flag indicating if the output the pipeline should happen in a binary format (i.e., pickle) or as raw text.`,name:"binary_output"}],source:"https://github.com/huggingface/transformers/blob/v4.37.0/src/transformers/pipelines/zero_shot_image_classification.py#L32"}}),gt=new P({props:{anchor:"transformers.ZeroShotImageClassificationPipeline.example",$$slots:{default:[iw]},$$scope:{ctx:x}}}),Ws=new U({props:{name:"__call__",anchor:"transformers.ZeroShotImageClassificationPipeline.__call__",parameters:[{name:"images",val:": Union"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.ZeroShotImageClassificationPipeline.__call__.images",description:`<strong>images</strong> (<code>str</code>, <code>List[str]</code>, <code>PIL.Image</code> or <code>List[PIL.Image]</code>) &#x2014;
The pipeline handles three types of images:</p>
<ul>
<li>A string containing a http link pointing to an image</li>
<li>A string containing a local path to an image</li>
<li>An image loaded in PIL directly</li>
</ul>`,name:"images"},{anchor:"transformers.ZeroShotImageClassificationPipeline.__call__.candidate_labels",description:`<strong>candidate_labels</strong> (<code>List[str]</code>) &#x2014;
The candidate labels for this image`,name:"candidate_labels"},{anchor:"transformers.ZeroShotImageClassificationPipeline.__call__.hypothesis_template",description:`<strong>hypothesis_template</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;This is a photo of {}&quot;</code>) &#x2014;
The sentence used in cunjunction with <em>candidate_labels</em> to attempt the image classification by
replacing the placeholder with the candidate_labels. Then likelihood is estimated by using
logits_per_image`,name:"hypothesis_template"},{anchor:"transformers.ZeroShotImageClassificationPipeline.__call__.timeout",description:`<strong>timeout</strong> (<code>float</code>, <em>optional</em>, defaults to None) &#x2014;
The maximum time in seconds to wait for fetching images from the web. If None, no timeout is set and
the call may block forever.`,name:"timeout"}],source:"https://github.com/huggingface/transformers/blob/v4.37.0/src/transformers/pipelines/zero_shot_image_classification.py#L76",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>A list of dictionaries containing result, one dictionary per proposed label. The dictionaries contain the
following keys:</p>
<ul>
<li><strong>label</strong> (<code>str</code>) — The label identified by the model. It is one of the suggested <code>candidate_label</code>.</li>
<li><strong>score</strong> (<code>float</code>) — The score attributed by the model for that label (between 0 and 1).</li>
</ul>
`}}),Ss=new $({props:{title:"ZeroShotObjectDetectionPipeline",local:"transformers.ZeroShotObjectDetectionPipeline",headingTag:"h3"}}),Ls=new U({props:{name:"class transformers.ZeroShotObjectDetectionPipeline",anchor:"transformers.ZeroShotObjectDetectionPipeline",parameters:[{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.ZeroShotObjectDetectionPipeline.model",description:`<strong>model</strong> (<a href="/docs/transformers/v4.37.0/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> or <a href="/docs/transformers/v4.37.0/en/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a>) &#x2014;
The model that will be used by the pipeline to make predictions. This needs to be a model inheriting from
<a href="/docs/transformers/v4.37.0/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> for PyTorch and <a href="/docs/transformers/v4.37.0/en/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a> for TensorFlow.`,name:"model"},{anchor:"transformers.ZeroShotObjectDetectionPipeline.tokenizer",description:`<strong>tokenizer</strong> (<a href="/docs/transformers/v4.37.0/en/main_classes/tokenizer#transformers.PreTrainedTokenizer">PreTrainedTokenizer</a>) &#x2014;
The tokenizer that will be used by the pipeline to encode data for the model. This object inherits from
<a href="/docs/transformers/v4.37.0/en/main_classes/tokenizer#transformers.PreTrainedTokenizer">PreTrainedTokenizer</a>.`,name:"tokenizer"},{anchor:"transformers.ZeroShotObjectDetectionPipeline.modelcard",description:`<strong>modelcard</strong> (<code>str</code> or <code>ModelCard</code>, <em>optional</em>) &#x2014;
Model card attributed to the model for this pipeline.`,name:"modelcard"},{anchor:"transformers.ZeroShotObjectDetectionPipeline.framework",description:`<strong>framework</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The framework to use, either <code>&quot;pt&quot;</code> for PyTorch or <code>&quot;tf&quot;</code> for TensorFlow. The specified framework must be
installed.</p>
<p>If no framework is specified, will default to the one currently installed. If no framework is specified and
both frameworks are installed, will default to the framework of the <code>model</code>, or to PyTorch if no model is
provided.`,name:"framework"},{anchor:"transformers.ZeroShotObjectDetectionPipeline.task",description:`<strong>task</strong> (<code>str</code>, defaults to <code>&quot;&quot;</code>) &#x2014;
A task-identifier for the pipeline.`,name:"task"},{anchor:"transformers.ZeroShotObjectDetectionPipeline.num_workers",description:`<strong>num_workers</strong> (<code>int</code>, <em>optional</em>, defaults to 8) &#x2014;
When the pipeline will use <em>DataLoader</em> (when passing a dataset, on GPU for a Pytorch model), the number of
workers to be used.`,name:"num_workers"},{anchor:"transformers.ZeroShotObjectDetectionPipeline.batch_size",description:`<strong>batch_size</strong> (<code>int</code>, <em>optional</em>, defaults to 1) &#x2014;
When the pipeline will use <em>DataLoader</em> (when passing a dataset, on GPU for a Pytorch model), the size of
the batch to use, for inference this is not always beneficial, please read <a href="https://huggingface.co/transformers/main_classes/pipelines.html#pipeline-batching" rel="nofollow">Batching with
pipelines</a> .`,name:"batch_size"},{anchor:"transformers.ZeroShotObjectDetectionPipeline.args_parser",description:`<strong>args_parser</strong> (<a href="/docs/transformers/v4.37.0/en/internal/pipelines_utils#transformers.pipelines.ArgumentHandler">ArgumentHandler</a>, <em>optional</em>) &#x2014;
Reference to the object in charge of parsing supplied pipeline parameters.`,name:"args_parser"},{anchor:"transformers.ZeroShotObjectDetectionPipeline.device",description:`<strong>device</strong> (<code>int</code>, <em>optional</em>, defaults to -1) &#x2014;
Device ordinal for CPU/GPU supports. Setting this to -1 will leverage CPU, a positive will run the model on
the associated CUDA device id. You can pass native <code>torch.device</code> or a <code>str</code> too.`,name:"device"},{anchor:"transformers.ZeroShotObjectDetectionPipeline.binary_output",description:`<strong>binary_output</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Flag indicating if the output the pipeline should happen in a binary format (i.e., pickle) or as raw text.`,name:"binary_output"}],source:"https://github.com/huggingface/transformers/blob/v4.37.0/src/transformers/pipelines/zero_shot_object_detection.py#L22"}}),Tt=new P({props:{anchor:"transformers.ZeroShotObjectDetectionPipeline.example",$$slots:{default:[lw]},$$scope:{ctx:x}}}),Os=new U({props:{name:"__call__",anchor:"transformers.ZeroShotObjectDetectionPipeline.__call__",parameters:[{name:"image",val:": Union"},{name:"candidate_labels",val:": Union = None"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.ZeroShotObjectDetectionPipeline.__call__.image",description:`<strong>image</strong> (<code>str</code>, <code>PIL.Image</code> or <code>List[Dict[str, Any]]</code>) &#x2014;
The pipeline handles three types of images:</p>
<ul>
<li>A string containing an http url pointing to an image</li>
<li>A string containing a local path to an image</li>
<li>An image loaded in PIL directly</li>
</ul>
<p>You can use this parameter to send directly a list of images, or a dataset or a generator like so:`,name:"image"}],source:"https://github.com/huggingface/transformers/blob/v4.37.0/src/transformers/pipelines/zero_shot_object_detection.py#L65",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>A list of lists containing prediction results, one list per input image. Each list contains dictionaries
with the following keys:</p>
<ul>
<li><strong>label</strong> (<code>str</code>) — Text query corresponding to the found object.</li>
<li><strong>score</strong> (<code>float</code>) — Score corresponding to the object (between 0 and 1).</li>
<li><strong>box</strong> (<code>Dict[str,int]</code>) — Bounding box of the detected object in image’s original size. It is a
dictionary with <code>x_min</code>, <code>x_max</code>, <code>y_min</code>, <code>y_max</code> keys.</li>
</ul>
`}}),Hs=new $({props:{title:"Natural Language Processing",local:"natural-language-processing",headingTag:"h2"}}),Es=new $({props:{title:"ConversationalPipeline",local:"transformers.Conversation",headingTag:"h3"}}),Qs=new U({props:{name:"class transformers.Conversation",anchor:"transformers.Conversation",parameters:[{name:"messages",val:": Union = None"},{name:"conversation_id",val:": UUID = None"},{name:"**deprecated_kwargs",val:""}],parametersDescription:[{anchor:"transformers.Conversation.messages",description:`<strong>messages</strong> (Union[str, List[Dict[str, str]]], <em>optional</em>) &#x2014;
The initial messages to start the conversation, either a string, or a list of dicts containing &#x201C;role&#x201D; and
&#x201C;content&#x201D; keys. If a string is passed, it is interpreted as a single message with the &#x201C;user&#x201D; role.`,name:"messages"},{anchor:"transformers.Conversation.conversation_id",description:`<strong>conversation_id</strong> (<code>uuid.UUID</code>, <em>optional</em>) &#x2014;
Unique identifier for the conversation. If not provided, a random UUID4 id will be assigned to the
conversation.`,name:"conversation_id"}],source:"https://github.com/huggingface/transformers/blob/v4.37.0/src/transformers/pipelines/conversational.py#L18"}}),yt=new P({props:{anchor:"transformers.Conversation.example",$$slots:{default:[cw]},$$scope:{ctx:x}}}),Xs=new U({props:{name:"add_user_input",anchor:"transformers.Conversation.add_user_input",parameters:[{name:"text",val:": str"},{name:"overwrite",val:": bool = False"}],source:"https://github.com/huggingface/transformers/blob/v4.37.0/src/transformers/pipelines/conversational.py#L89"}}),Ks=new U({props:{name:"append_response",anchor:"transformers.Conversation.append_response",parameters:[{name:"response",val:": str"}],source:"https://github.com/huggingface/transformers/blob/v4.37.0/src/transformers/pipelines/conversational.py#L110"}}),ea=new U({props:{name:"mark_processed",anchor:"transformers.Conversation.mark_processed",parameters:[],source:"https://github.com/huggingface/transformers/blob/v4.37.0/src/transformers/pipelines/conversational.py#L116"}}),ta=new U({props:{name:"class transformers.ConversationalPipeline",anchor:"transformers.ConversationalPipeline",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.ConversationalPipeline.model",description:`<strong>model</strong> (<a href="/docs/transformers/v4.37.0/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> or <a href="/docs/transformers/v4.37.0/en/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a>) &#x2014;
The model that will be used by the pipeline to make predictions. This needs to be a model inheriting from
<a href="/docs/transformers/v4.37.0/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> for PyTorch and <a href="/docs/transformers/v4.37.0/en/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a> for TensorFlow.`,name:"model"},{anchor:"transformers.ConversationalPipeline.tokenizer",description:`<strong>tokenizer</strong> (<a href="/docs/transformers/v4.37.0/en/main_classes/tokenizer#transformers.PreTrainedTokenizer">PreTrainedTokenizer</a>) &#x2014;
The tokenizer that will be used by the pipeline to encode data for the model. This object inherits from
<a href="/docs/transformers/v4.37.0/en/main_classes/tokenizer#transformers.PreTrainedTokenizer">PreTrainedTokenizer</a>.`,name:"tokenizer"},{anchor:"transformers.ConversationalPipeline.modelcard",description:`<strong>modelcard</strong> (<code>str</code> or <code>ModelCard</code>, <em>optional</em>) &#x2014;
Model card attributed to the model for this pipeline.`,name:"modelcard"},{anchor:"transformers.ConversationalPipeline.framework",description:`<strong>framework</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The framework to use, either <code>&quot;pt&quot;</code> for PyTorch or <code>&quot;tf&quot;</code> for TensorFlow. The specified framework must be
installed.</p>
<p>If no framework is specified, will default to the one currently installed. If no framework is specified and
both frameworks are installed, will default to the framework of the <code>model</code>, or to PyTorch if no model is
provided.`,name:"framework"},{anchor:"transformers.ConversationalPipeline.task",description:`<strong>task</strong> (<code>str</code>, defaults to <code>&quot;&quot;</code>) &#x2014;
A task-identifier for the pipeline.`,name:"task"},{anchor:"transformers.ConversationalPipeline.num_workers",description:`<strong>num_workers</strong> (<code>int</code>, <em>optional</em>, defaults to 8) &#x2014;
When the pipeline will use <em>DataLoader</em> (when passing a dataset, on GPU for a Pytorch model), the number of
workers to be used.`,name:"num_workers"},{anchor:"transformers.ConversationalPipeline.batch_size",description:`<strong>batch_size</strong> (<code>int</code>, <em>optional</em>, defaults to 1) &#x2014;
When the pipeline will use <em>DataLoader</em> (when passing a dataset, on GPU for a Pytorch model), the size of
the batch to use, for inference this is not always beneficial, please read <a href="https://huggingface.co/transformers/main_classes/pipelines.html#pipeline-batching" rel="nofollow">Batching with
pipelines</a> .`,name:"batch_size"},{anchor:"transformers.ConversationalPipeline.args_parser",description:`<strong>args_parser</strong> (<a href="/docs/transformers/v4.37.0/en/internal/pipelines_utils#transformers.pipelines.ArgumentHandler">ArgumentHandler</a>, <em>optional</em>) &#x2014;
Reference to the object in charge of parsing supplied pipeline parameters.`,name:"args_parser"},{anchor:"transformers.ConversationalPipeline.device",description:`<strong>device</strong> (<code>int</code>, <em>optional</em>, defaults to -1) &#x2014;
Device ordinal for CPU/GPU supports. Setting this to -1 will leverage CPU, a positive will run the model on
the associated CUDA device id. You can pass native <code>torch.device</code> or a <code>str</code> too.`,name:"device"},{anchor:"transformers.ConversationalPipeline.binary_output",description:`<strong>binary_output</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Flag indicating if the output the pipeline should happen in a binary format (i.e., pickle) or as raw text.`,name:"binary_output"},{anchor:"transformers.ConversationalPipeline.min_length_for_response",description:`<strong>min_length_for_response</strong> (<code>int</code>, <em>optional</em>, defaults to 32) &#x2014;
The minimum length (in number of tokens) for a response.`,name:"min_length_for_response"},{anchor:"transformers.ConversationalPipeline.minimum_tokens",description:`<strong>minimum_tokens</strong> (<code>int</code>, <em>optional</em>, defaults to 10) &#x2014;
The minimum length of tokens to leave for a response.`,name:"minimum_tokens"}],source:"https://github.com/huggingface/transformers/blob/v4.37.0/src/transformers/pipelines/conversational.py#L194"}}),xt=new P({props:{anchor:"transformers.ConversationalPipeline.example",$$slots:{default:[pw]},$$scope:{ctx:x}}}),na=new U({props:{name:"__call__",anchor:"transformers.ConversationalPipeline.__call__",parameters:[{name:"conversations",val:": Union"},{name:"num_workers",val:" = 0"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.ConversationalPipeline.__call__.conversations",description:`<strong>conversations</strong> (a <a href="/docs/transformers/v4.37.0/en/main_classes/pipelines#transformers.Conversation">Conversation</a> or a list of <a href="/docs/transformers/v4.37.0/en/main_classes/pipelines#transformers.Conversation">Conversation</a>) &#x2014;
Conversation to generate responses for. Inputs can also be passed as a list of dictionaries with <code>role</code>
and <code>content</code> keys - in this case, they will be converted to <code>Conversation</code> objects automatically.
Multiple conversations in either format may be passed as a list.`,name:"conversations"},{anchor:"transformers.ConversationalPipeline.__call__.clean_up_tokenization_spaces",description:`<strong>clean_up_tokenization_spaces</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to clean up the potential extra spaces in the text output.
generate_kwargs &#x2014;
Additional keyword arguments to pass along to the generate method of the model (see the generate method
corresponding to your framework <a href="./model#generative-models">here</a>).`,name:"clean_up_tokenization_spaces"}],source:"https://github.com/huggingface/transformers/blob/v4.37.0/src/transformers/pipelines/conversational.py#L262",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>Conversation(s) with updated generated responses for those
containing a new user input.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/transformers/v4.37.0/en/main_classes/pipelines#transformers.Conversation"
>Conversation</a> or a list of <a
  href="/docs/transformers/v4.37.0/en/main_classes/pipelines#transformers.Conversation"
>Conversation</a></p>
`}}),sa=new $({props:{title:"FillMaskPipeline",local:"transformers.FillMaskPipeline",headingTag:"h3"}}),aa=new U({props:{name:"class transformers.FillMaskPipeline",anchor:"transformers.FillMaskPipeline",parameters:[{name:"model",val:": Union"},{name:"tokenizer",val:": Optional = None"},{name:"feature_extractor",val:": Optional = None"},{name:"image_processor",val:": Optional = None"},{name:"modelcard",val:": Optional = None"},{name:"framework",val:": Optional = None"},{name:"task",val:": str = ''"},{name:"args_parser",val:": ArgumentHandler = None"},{name:"device",val:": Union = None"},{name:"torch_dtype",val:": Union = None"},{name:"binary_output",val:": bool = False"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.FillMaskPipeline.model",description:`<strong>model</strong> (<a href="/docs/transformers/v4.37.0/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> or <a href="/docs/transformers/v4.37.0/en/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a>) &#x2014;
The model that will be used by the pipeline to make predictions. This needs to be a model inheriting from
<a href="/docs/transformers/v4.37.0/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> for PyTorch and <a href="/docs/transformers/v4.37.0/en/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a> for TensorFlow.`,name:"model"},{anchor:"transformers.FillMaskPipeline.tokenizer",description:`<strong>tokenizer</strong> (<a href="/docs/transformers/v4.37.0/en/main_classes/tokenizer#transformers.PreTrainedTokenizer">PreTrainedTokenizer</a>) &#x2014;
The tokenizer that will be used by the pipeline to encode data for the model. This object inherits from
<a href="/docs/transformers/v4.37.0/en/main_classes/tokenizer#transformers.PreTrainedTokenizer">PreTrainedTokenizer</a>.`,name:"tokenizer"},{anchor:"transformers.FillMaskPipeline.modelcard",description:`<strong>modelcard</strong> (<code>str</code> or <code>ModelCard</code>, <em>optional</em>) &#x2014;
Model card attributed to the model for this pipeline.`,name:"modelcard"},{anchor:"transformers.FillMaskPipeline.framework",description:`<strong>framework</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The framework to use, either <code>&quot;pt&quot;</code> for PyTorch or <code>&quot;tf&quot;</code> for TensorFlow. The specified framework must be
installed.</p>
<p>If no framework is specified, will default to the one currently installed. If no framework is specified and
both frameworks are installed, will default to the framework of the <code>model</code>, or to PyTorch if no model is
provided.`,name:"framework"},{anchor:"transformers.FillMaskPipeline.task",description:`<strong>task</strong> (<code>str</code>, defaults to <code>&quot;&quot;</code>) &#x2014;
A task-identifier for the pipeline.`,name:"task"},{anchor:"transformers.FillMaskPipeline.num_workers",description:`<strong>num_workers</strong> (<code>int</code>, <em>optional</em>, defaults to 8) &#x2014;
When the pipeline will use <em>DataLoader</em> (when passing a dataset, on GPU for a Pytorch model), the number of
workers to be used.`,name:"num_workers"},{anchor:"transformers.FillMaskPipeline.batch_size",description:`<strong>batch_size</strong> (<code>int</code>, <em>optional</em>, defaults to 1) &#x2014;
When the pipeline will use <em>DataLoader</em> (when passing a dataset, on GPU for a Pytorch model), the size of
the batch to use, for inference this is not always beneficial, please read <a href="https://huggingface.co/transformers/main_classes/pipelines.html#pipeline-batching" rel="nofollow">Batching with
pipelines</a> .`,name:"batch_size"},{anchor:"transformers.FillMaskPipeline.args_parser",description:`<strong>args_parser</strong> (<a href="/docs/transformers/v4.37.0/en/internal/pipelines_utils#transformers.pipelines.ArgumentHandler">ArgumentHandler</a>, <em>optional</em>) &#x2014;
Reference to the object in charge of parsing supplied pipeline parameters.`,name:"args_parser"},{anchor:"transformers.FillMaskPipeline.device",description:`<strong>device</strong> (<code>int</code>, <em>optional</em>, defaults to -1) &#x2014;
Device ordinal for CPU/GPU supports. Setting this to -1 will leverage CPU, a positive will run the model on
the associated CUDA device id. You can pass native <code>torch.device</code> or a <code>str</code> too.`,name:"device"},{anchor:"transformers.FillMaskPipeline.binary_output",description:`<strong>binary_output</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Flag indicating if the output the pipeline should happen in a binary format (i.e., pickle) or as raw text.`,name:"binary_output"},{anchor:"transformers.FillMaskPipeline.top_k",description:`<strong>top_k</strong> (<code>int</code>, defaults to 5) &#x2014;
The number of predictions to return.`,name:"top_k"},{anchor:"transformers.FillMaskPipeline.targets",description:`<strong>targets</strong> (<code>str</code> or <code>List[str]</code>, <em>optional</em>) &#x2014;
When passed, the model will limit the scores to the passed targets instead of looking up in the whole
vocab. If the provided targets are not in the model vocab, they will be tokenized and the first resulting
token will be used (with a warning, and that might be slower).`,name:"targets"}],source:"https://github.com/huggingface/transformers/blob/v4.37.0/src/transformers/pipelines/fill_mask.py#L22"}}),kt=new P({props:{anchor:"transformers.FillMaskPipeline.example",$$slots:{default:[dw]},$$scope:{ctx:x}}}),Ut=new wd({props:{$$slots:{default:[mw]},$$scope:{ctx:x}}}),jt=new wd({props:{$$slots:{default:[fw]},$$scope:{ctx:x}}}),oa=new U({props:{name:"__call__",anchor:"transformers.FillMaskPipeline.__call__",parameters:[{name:"inputs",val:""},{name:"*args",val:""},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.FillMaskPipeline.__call__.args",description:`<strong>args</strong> (<code>str</code> or <code>List[str]</code>) &#x2014;
One or several texts (or one list of prompts) with masked tokens.`,name:"args"},{anchor:"transformers.FillMaskPipeline.__call__.targets",description:`<strong>targets</strong> (<code>str</code> or <code>List[str]</code>, <em>optional</em>) &#x2014;
When passed, the model will limit the scores to the passed targets instead of looking up in the whole
vocab. If the provided targets are not in the model vocab, they will be tokenized and the first
resulting token will be used (with a warning, and that might be slower).`,name:"targets"},{anchor:"transformers.FillMaskPipeline.__call__.top_k",description:`<strong>top_k</strong> (<code>int</code>, <em>optional</em>) &#x2014;
When passed, overrides the number of predictions to return.`,name:"top_k"}],source:"https://github.com/huggingface/transformers/blob/v4.37.0/src/transformers/pipelines/fill_mask.py#L248",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>Each result comes as list of dictionaries with the following keys:</p>
<ul>
<li><strong>sequence</strong> (<code>str</code>) — The corresponding input with the mask token prediction.</li>
<li><strong>score</strong> (<code>float</code>) — The corresponding probability.</li>
<li><strong>token</strong> (<code>int</code>) — The predicted token id (to replace the masked one).</li>
<li><strong>token_str</strong> (<code>str</code>) — The predicted token (to replace the masked one).</li>
</ul>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p>A list or a list of list of <code>dict</code></p>
`}}),ra=new $({props:{title:"QuestionAnsweringPipeline",local:"transformers.QuestionAnsweringPipeline",headingTag:"h3"}}),ia=new U({props:{name:"class transformers.QuestionAnsweringPipeline",anchor:"transformers.QuestionAnsweringPipeline",parameters:[{name:"model",val:": Union"},{name:"tokenizer",val:": PreTrainedTokenizer"},{name:"modelcard",val:": Optional = None"},{name:"framework",val:": Optional = None"},{name:"task",val:": str = ''"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.QuestionAnsweringPipeline.model",description:`<strong>model</strong> (<a href="/docs/transformers/v4.37.0/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> or <a href="/docs/transformers/v4.37.0/en/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a>) &#x2014;
The model that will be used by the pipeline to make predictions. This needs to be a model inheriting from
<a href="/docs/transformers/v4.37.0/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> for PyTorch and <a href="/docs/transformers/v4.37.0/en/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a> for TensorFlow.`,name:"model"},{anchor:"transformers.QuestionAnsweringPipeline.tokenizer",description:`<strong>tokenizer</strong> (<a href="/docs/transformers/v4.37.0/en/main_classes/tokenizer#transformers.PreTrainedTokenizer">PreTrainedTokenizer</a>) &#x2014;
The tokenizer that will be used by the pipeline to encode data for the model. This object inherits from
<a href="/docs/transformers/v4.37.0/en/main_classes/tokenizer#transformers.PreTrainedTokenizer">PreTrainedTokenizer</a>.`,name:"tokenizer"},{anchor:"transformers.QuestionAnsweringPipeline.modelcard",description:`<strong>modelcard</strong> (<code>str</code> or <code>ModelCard</code>, <em>optional</em>) &#x2014;
Model card attributed to the model for this pipeline.`,name:"modelcard"},{anchor:"transformers.QuestionAnsweringPipeline.framework",description:`<strong>framework</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The framework to use, either <code>&quot;pt&quot;</code> for PyTorch or <code>&quot;tf&quot;</code> for TensorFlow. The specified framework must be
installed.</p>
<p>If no framework is specified, will default to the one currently installed. If no framework is specified and
both frameworks are installed, will default to the framework of the <code>model</code>, or to PyTorch if no model is
provided.`,name:"framework"},{anchor:"transformers.QuestionAnsweringPipeline.task",description:`<strong>task</strong> (<code>str</code>, defaults to <code>&quot;&quot;</code>) &#x2014;
A task-identifier for the pipeline.`,name:"task"},{anchor:"transformers.QuestionAnsweringPipeline.num_workers",description:`<strong>num_workers</strong> (<code>int</code>, <em>optional</em>, defaults to 8) &#x2014;
When the pipeline will use <em>DataLoader</em> (when passing a dataset, on GPU for a Pytorch model), the number of
workers to be used.`,name:"num_workers"},{anchor:"transformers.QuestionAnsweringPipeline.batch_size",description:`<strong>batch_size</strong> (<code>int</code>, <em>optional</em>, defaults to 1) &#x2014;
When the pipeline will use <em>DataLoader</em> (when passing a dataset, on GPU for a Pytorch model), the size of
the batch to use, for inference this is not always beneficial, please read <a href="https://huggingface.co/transformers/main_classes/pipelines.html#pipeline-batching" rel="nofollow">Batching with
pipelines</a> .`,name:"batch_size"},{anchor:"transformers.QuestionAnsweringPipeline.args_parser",description:`<strong>args_parser</strong> (<a href="/docs/transformers/v4.37.0/en/internal/pipelines_utils#transformers.pipelines.ArgumentHandler">ArgumentHandler</a>, <em>optional</em>) &#x2014;
Reference to the object in charge of parsing supplied pipeline parameters.`,name:"args_parser"},{anchor:"transformers.QuestionAnsweringPipeline.device",description:`<strong>device</strong> (<code>int</code>, <em>optional</em>, defaults to -1) &#x2014;
Device ordinal for CPU/GPU supports. Setting this to -1 will leverage CPU, a positive will run the model on
the associated CUDA device id. You can pass native <code>torch.device</code> or a <code>str</code> too.`,name:"device"},{anchor:"transformers.QuestionAnsweringPipeline.binary_output",description:`<strong>binary_output</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Flag indicating if the output the pipeline should happen in a binary format (i.e., pickle) or as raw text.`,name:"binary_output"}],source:"https://github.com/huggingface/transformers/blob/v4.37.0/src/transformers/pipelines/question_answering.py#L224"}}),Jt=new P({props:{anchor:"transformers.QuestionAnsweringPipeline.example",$$slots:{default:[gw]},$$scope:{ctx:x}}}),la=new U({props:{name:"__call__",anchor:"transformers.QuestionAnsweringPipeline.__call__",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.QuestionAnsweringPipeline.__call__.args",description:`<strong>args</strong> (<code>SquadExample</code> or a list of <code>SquadExample</code>) &#x2014;
One or several <code>SquadExample</code> containing the question and context.`,name:"args"},{anchor:"transformers.QuestionAnsweringPipeline.__call__.X",description:`<strong>X</strong> (<code>SquadExample</code> or a list of <code>SquadExample</code>, <em>optional</em>) &#x2014;
One or several <code>SquadExample</code> containing the question and context (will be treated the same way as if
passed as the first positional argument).`,name:"X"},{anchor:"transformers.QuestionAnsweringPipeline.__call__.data",description:`<strong>data</strong> (<code>SquadExample</code> or a list of <code>SquadExample</code>, <em>optional</em>) &#x2014;
One or several <code>SquadExample</code> containing the question and context (will be treated the same way as if
passed as the first positional argument).`,name:"data"},{anchor:"transformers.QuestionAnsweringPipeline.__call__.question",description:`<strong>question</strong> (<code>str</code> or <code>List[str]</code>) &#x2014;
One or several question(s) (must be used in conjunction with the <code>context</code> argument).`,name:"question"},{anchor:"transformers.QuestionAnsweringPipeline.__call__.context",description:`<strong>context</strong> (<code>str</code> or <code>List[str]</code>) &#x2014;
One or several context(s) associated with the question(s) (must be used in conjunction with the
<code>question</code> argument).`,name:"context"},{anchor:"transformers.QuestionAnsweringPipeline.__call__.topk",description:`<strong>topk</strong> (<code>int</code>, <em>optional</em>, defaults to 1) &#x2014;
The number of answers to return (will be chosen by order of likelihood). Note that we return less than
topk answers if there are not enough options available within the context.`,name:"topk"},{anchor:"transformers.QuestionAnsweringPipeline.__call__.doc_stride",description:`<strong>doc_stride</strong> (<code>int</code>, <em>optional</em>, defaults to 128) &#x2014;
If the context is too long to fit with the question for the model, it will be split in several chunks
with some overlap. This argument controls the size of that overlap.`,name:"doc_stride"},{anchor:"transformers.QuestionAnsweringPipeline.__call__.max_answer_len",description:`<strong>max_answer_len</strong> (<code>int</code>, <em>optional</em>, defaults to 15) &#x2014;
The maximum length of predicted answers (e.g., only answers with a shorter length are considered).`,name:"max_answer_len"},{anchor:"transformers.QuestionAnsweringPipeline.__call__.max_seq_len",description:`<strong>max_seq_len</strong> (<code>int</code>, <em>optional</em>, defaults to 384) &#x2014;
The maximum length of the total sentence (context + question) in tokens of each chunk passed to the
model. The context will be split in several chunks (using <code>doc_stride</code> as overlap) if needed.`,name:"max_seq_len"},{anchor:"transformers.QuestionAnsweringPipeline.__call__.max_question_len",description:`<strong>max_question_len</strong> (<code>int</code>, <em>optional</em>, defaults to 64) &#x2014;
The maximum length of the question after tokenization. It will be truncated if needed.`,name:"max_question_len"},{anchor:"transformers.QuestionAnsweringPipeline.__call__.handle_impossible_answer",description:`<strong>handle_impossible_answer</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not we accept impossible as an answer.`,name:"handle_impossible_answer"},{anchor:"transformers.QuestionAnsweringPipeline.__call__.align_to_words",description:`<strong>align_to_words</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Attempts to align the answer to real words. Improves quality on space separated langages. Might hurt on
non-space-separated languages (like Japanese or Chinese)`,name:"align_to_words"}],source:"https://github.com/huggingface/transformers/blob/v4.37.0/src/transformers/pipelines/question_answering.py#L343",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>Each result comes as a dictionary with the following keys:</p>
<ul>
<li><strong>score</strong> (<code>float</code>) — The probability associated to the answer.</li>
<li><strong>start</strong> (<code>int</code>) — The character start index of the answer (in the tokenized version of the input).</li>
<li><strong>end</strong> (<code>int</code>) — The character end index of the answer (in the tokenized version of the input).</li>
<li><strong>answer</strong> (<code>str</code>) — The answer to the question.</li>
</ul>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p>A <code>dict</code> or a list of <code>dict</code></p>
`}}),ca=new U({props:{name:"create_sample",anchor:"transformers.QuestionAnsweringPipeline.create_sample",parameters:[{name:"question",val:": Union"},{name:"context",val:": Union"}],parametersDescription:[{anchor:"transformers.QuestionAnsweringPipeline.create_sample.question",description:"<strong>question</strong> (<code>str</code> or <code>List[str]</code>) &#x2014; The question(s) asked.",name:"question"},{anchor:"transformers.QuestionAnsweringPipeline.create_sample.context",description:"<strong>context</strong> (<code>str</code> or <code>List[str]</code>) &#x2014; The context(s) in which we will look for the answer.",name:"context"}],source:"https://github.com/huggingface/transformers/blob/v4.37.0/src/transformers/pipelines/question_answering.py#L278",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>The corresponding <code>SquadExample</code> grouping question and context.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p>One or a list of <code>SquadExample</code></p>
`}}),pa=new U({props:{name:"span_to_answer",anchor:"transformers.QuestionAnsweringPipeline.span_to_answer",parameters:[{name:"text",val:": str"},{name:"start",val:": int"},{name:"end",val:": int"}],parametersDescription:[{anchor:"transformers.QuestionAnsweringPipeline.span_to_answer.text",description:"<strong>text</strong> (<code>str</code>) &#x2014; The actual context to extract the answer from.",name:"text"},{anchor:"transformers.QuestionAnsweringPipeline.span_to_answer.start",description:"<strong>start</strong> (<code>int</code>) &#x2014; The answer starting token index.",name:"start"},{anchor:"transformers.QuestionAnsweringPipeline.span_to_answer.end",description:"<strong>end</strong> (<code>int</code>) &#x2014; The answer end token index.",name:"end"}],source:"https://github.com/huggingface/transformers/blob/v4.37.0/src/transformers/pipelines/question_answering.py#L630",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>str, ‘start’: int, ‘end’: int}\`</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p>Dictionary like \`{‘answer’</p>
`}}),da=new $({props:{title:"SummarizationPipeline",local:"transformers.SummarizationPipeline",headingTag:"h3"}}),ma=new U({props:{name:"class transformers.SummarizationPipeline",anchor:"transformers.SummarizationPipeline",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.SummarizationPipeline.model",description:`<strong>model</strong> (<a href="/docs/transformers/v4.37.0/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> or <a href="/docs/transformers/v4.37.0/en/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a>) &#x2014;
The model that will be used by the pipeline to make predictions. This needs to be a model inheriting from
<a href="/docs/transformers/v4.37.0/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> for PyTorch and <a href="/docs/transformers/v4.37.0/en/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a> for TensorFlow.`,name:"model"},{anchor:"transformers.SummarizationPipeline.tokenizer",description:`<strong>tokenizer</strong> (<a href="/docs/transformers/v4.37.0/en/main_classes/tokenizer#transformers.PreTrainedTokenizer">PreTrainedTokenizer</a>) &#x2014;
The tokenizer that will be used by the pipeline to encode data for the model. This object inherits from
<a href="/docs/transformers/v4.37.0/en/main_classes/tokenizer#transformers.PreTrainedTokenizer">PreTrainedTokenizer</a>.`,name:"tokenizer"},{anchor:"transformers.SummarizationPipeline.modelcard",description:`<strong>modelcard</strong> (<code>str</code> or <code>ModelCard</code>, <em>optional</em>) &#x2014;
Model card attributed to the model for this pipeline.`,name:"modelcard"},{anchor:"transformers.SummarizationPipeline.framework",description:`<strong>framework</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The framework to use, either <code>&quot;pt&quot;</code> for PyTorch or <code>&quot;tf&quot;</code> for TensorFlow. The specified framework must be
installed.</p>
<p>If no framework is specified, will default to the one currently installed. If no framework is specified and
both frameworks are installed, will default to the framework of the <code>model</code>, or to PyTorch if no model is
provided.`,name:"framework"},{anchor:"transformers.SummarizationPipeline.task",description:`<strong>task</strong> (<code>str</code>, defaults to <code>&quot;&quot;</code>) &#x2014;
A task-identifier for the pipeline.`,name:"task"},{anchor:"transformers.SummarizationPipeline.num_workers",description:`<strong>num_workers</strong> (<code>int</code>, <em>optional</em>, defaults to 8) &#x2014;
When the pipeline will use <em>DataLoader</em> (when passing a dataset, on GPU for a Pytorch model), the number of
workers to be used.`,name:"num_workers"},{anchor:"transformers.SummarizationPipeline.batch_size",description:`<strong>batch_size</strong> (<code>int</code>, <em>optional</em>, defaults to 1) &#x2014;
When the pipeline will use <em>DataLoader</em> (when passing a dataset, on GPU for a Pytorch model), the size of
the batch to use, for inference this is not always beneficial, please read <a href="https://huggingface.co/transformers/main_classes/pipelines.html#pipeline-batching" rel="nofollow">Batching with
pipelines</a> .`,name:"batch_size"},{anchor:"transformers.SummarizationPipeline.args_parser",description:`<strong>args_parser</strong> (<a href="/docs/transformers/v4.37.0/en/internal/pipelines_utils#transformers.pipelines.ArgumentHandler">ArgumentHandler</a>, <em>optional</em>) &#x2014;
Reference to the object in charge of parsing supplied pipeline parameters.`,name:"args_parser"},{anchor:"transformers.SummarizationPipeline.device",description:`<strong>device</strong> (<code>int</code>, <em>optional</em>, defaults to -1) &#x2014;
Device ordinal for CPU/GPU supports. Setting this to -1 will leverage CPU, a positive will run the model on
the associated CUDA device id. You can pass native <code>torch.device</code> or a <code>str</code> too.`,name:"device"},{anchor:"transformers.SummarizationPipeline.binary_output",description:`<strong>binary_output</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Flag indicating if the output the pipeline should happen in a binary format (i.e., pickle) or as raw text.`,name:"binary_output"}],source:"https://github.com/huggingface/transformers/blob/v4.37.0/src/transformers/pipelines/text2text_generation.py#L216"}}),It=new P({props:{anchor:"transformers.SummarizationPipeline.example",$$slots:{default:[uw]},$$scope:{ctx:x}}}),ha=new U({props:{name:"__call__",anchor:"transformers.SummarizationPipeline.__call__",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.SummarizationPipeline.__call__.documents",description:`<strong>documents</strong> (<em>str</em> or <code>List[str]</code>) &#x2014;
One or several articles (or one list of articles) to summarize.`,name:"documents"},{anchor:"transformers.SummarizationPipeline.__call__.return_text",description:`<strong>return_text</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Whether or not to include the decoded texts in the outputs`,name:"return_text"},{anchor:"transformers.SummarizationPipeline.__call__.return_tensors",description:`<strong>return_tensors</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to include the tensors of predictions (as token indices) in the outputs.`,name:"return_tensors"},{anchor:"transformers.SummarizationPipeline.__call__.clean_up_tokenization_spaces",description:`<strong>clean_up_tokenization_spaces</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to clean up the potential extra spaces in the text output.
generate_kwargs &#x2014;
Additional keyword arguments to pass along to the generate method of the model (see the generate method
corresponding to your framework <a href="./model#generative-models">here</a>).`,name:"clean_up_tokenization_spaces"}],source:"https://github.com/huggingface/transformers/blob/v4.37.0/src/transformers/pipelines/text2text_generation.py#L245",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>Each result comes as a dictionary with the following keys:</p>
<ul>
<li><strong>summary_text</strong> (<code>str</code>, present when <code>return_text=True</code>) — The summary of the corresponding input.</li>
<li><strong>summary_token_ids</strong> (<code>torch.Tensor</code> or <code>tf.Tensor</code>, present when <code>return_tensors=True</code>) — The token
ids of the summary.</li>
</ul>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p>A list or a list of list of <code>dict</code></p>
`}}),fa=new $({props:{title:"TableQuestionAnsweringPipeline",local:"transformers.TableQuestionAnsweringPipeline",headingTag:"h3"}}),ga=new U({props:{name:"class transformers.TableQuestionAnsweringPipeline",anchor:"transformers.TableQuestionAnsweringPipeline",parameters:[{name:"args_parser",val:" = <transformers.pipelines.table_question_answering.TableQuestionAnsweringArgumentHandler object at 0x7f9985ca2920>"},{name:"*args",val:""},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.TableQuestionAnsweringPipeline.model",description:`<strong>model</strong> (<a href="/docs/transformers/v4.37.0/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> or <a href="/docs/transformers/v4.37.0/en/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a>) &#x2014;
The model that will be used by the pipeline to make predictions. This needs to be a model inheriting from
<a href="/docs/transformers/v4.37.0/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> for PyTorch and <a href="/docs/transformers/v4.37.0/en/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a> for TensorFlow.`,name:"model"},{anchor:"transformers.TableQuestionAnsweringPipeline.tokenizer",description:`<strong>tokenizer</strong> (<a href="/docs/transformers/v4.37.0/en/main_classes/tokenizer#transformers.PreTrainedTokenizer">PreTrainedTokenizer</a>) &#x2014;
The tokenizer that will be used by the pipeline to encode data for the model. This object inherits from
<a href="/docs/transformers/v4.37.0/en/main_classes/tokenizer#transformers.PreTrainedTokenizer">PreTrainedTokenizer</a>.`,name:"tokenizer"},{anchor:"transformers.TableQuestionAnsweringPipeline.modelcard",description:`<strong>modelcard</strong> (<code>str</code> or <code>ModelCard</code>, <em>optional</em>) &#x2014;
Model card attributed to the model for this pipeline.`,name:"modelcard"},{anchor:"transformers.TableQuestionAnsweringPipeline.framework",description:`<strong>framework</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The framework to use, either <code>&quot;pt&quot;</code> for PyTorch or <code>&quot;tf&quot;</code> for TensorFlow. The specified framework must be
installed.</p>
<p>If no framework is specified, will default to the one currently installed. If no framework is specified and
both frameworks are installed, will default to the framework of the <code>model</code>, or to PyTorch if no model is
provided.`,name:"framework"},{anchor:"transformers.TableQuestionAnsweringPipeline.task",description:`<strong>task</strong> (<code>str</code>, defaults to <code>&quot;&quot;</code>) &#x2014;
A task-identifier for the pipeline.`,name:"task"},{anchor:"transformers.TableQuestionAnsweringPipeline.num_workers",description:`<strong>num_workers</strong> (<code>int</code>, <em>optional</em>, defaults to 8) &#x2014;
When the pipeline will use <em>DataLoader</em> (when passing a dataset, on GPU for a Pytorch model), the number of
workers to be used.`,name:"num_workers"},{anchor:"transformers.TableQuestionAnsweringPipeline.batch_size",description:`<strong>batch_size</strong> (<code>int</code>, <em>optional</em>, defaults to 1) &#x2014;
When the pipeline will use <em>DataLoader</em> (when passing a dataset, on GPU for a Pytorch model), the size of
the batch to use, for inference this is not always beneficial, please read <a href="https://huggingface.co/transformers/main_classes/pipelines.html#pipeline-batching" rel="nofollow">Batching with
pipelines</a> .`,name:"batch_size"},{anchor:"transformers.TableQuestionAnsweringPipeline.args_parser",description:`<strong>args_parser</strong> (<a href="/docs/transformers/v4.37.0/en/internal/pipelines_utils#transformers.pipelines.ArgumentHandler">ArgumentHandler</a>, <em>optional</em>) &#x2014;
Reference to the object in charge of parsing supplied pipeline parameters.`,name:"args_parser"},{anchor:"transformers.TableQuestionAnsweringPipeline.device",description:`<strong>device</strong> (<code>int</code>, <em>optional</em>, defaults to -1) &#x2014;
Device ordinal for CPU/GPU supports. Setting this to -1 will leverage CPU, a positive will run the model on
the associated CUDA device id. You can pass native <code>torch.device</code> or a <code>str</code> too.`,name:"device"},{anchor:"transformers.TableQuestionAnsweringPipeline.binary_output",description:`<strong>binary_output</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Flag indicating if the output the pipeline should happen in a binary format (i.e., pickle) or as raw text.`,name:"binary_output"}],source:"https://github.com/huggingface/transformers/blob/v4.37.0/src/transformers/pipelines/table_question_answering.py#L87"}}),Gt=new P({props:{anchor:"transformers.TableQuestionAnsweringPipeline.example",$$slots:{default:[Tw]},$$scope:{ctx:x}}}),ua=new U({props:{name:"__call__",anchor:"transformers.TableQuestionAnsweringPipeline.__call__",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.TableQuestionAnsweringPipeline.__call__.table",description:`<strong>table</strong> (<code>pd.DataFrame</code> or <code>Dict</code>) &#x2014;
Pandas DataFrame or dictionary that will be converted to a DataFrame containing all the table values.
See above for an example of dictionary.`,name:"table"},{anchor:"transformers.TableQuestionAnsweringPipeline.__call__.query",description:`<strong>query</strong> (<code>str</code> or <code>List[str]</code>) &#x2014;
Query or list of queries that will be sent to the model alongside the table.`,name:"query"},{anchor:"transformers.TableQuestionAnsweringPipeline.__call__.sequential",description:`<strong>sequential</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether to do inference sequentially or as a batch. Batching is faster, but models like SQA require the
inference to be done sequentially to extract relations within sequences, given their conversational
nature.`,name:"sequential"},{anchor:"transformers.TableQuestionAnsweringPipeline.__call__.padding",description:`<strong>padding</strong> (<code>bool</code>, <code>str</code> or <a href="/docs/transformers/v4.37.0/en/internal/file_utils#transformers.utils.PaddingStrategy">PaddingStrategy</a>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Activates and controls padding. Accepts the following values:</p>
<ul>
<li><code>True</code> or <code>&apos;longest&apos;</code>: Pad to the longest sequence in the batch (or no padding if only a single
sequence if provided).</li>
<li><code>&apos;max_length&apos;</code>: Pad to a maximum length specified with the argument <code>max_length</code> or to the maximum
acceptable input length for the model if that argument is not provided.</li>
<li><code>False</code> or <code>&apos;do_not_pad&apos;</code> (default): No padding (i.e., can output a batch with sequences of different
lengths).</li>
</ul>`,name:"padding"},{anchor:"transformers.TableQuestionAnsweringPipeline.__call__.truncation",description:`<strong>truncation</strong> (<code>bool</code>, <code>str</code> or <code>TapasTruncationStrategy</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Activates and controls truncation. Accepts the following values:</p>
<ul>
<li><code>True</code> or <code>&apos;drop_rows_to_fit&apos;</code>: Truncate to a maximum length specified with the argument <code>max_length</code>
or to the maximum acceptable input length for the model if that argument is not provided. This will
truncate row by row, removing rows from the table.</li>
<li><code>False</code> or <code>&apos;do_not_truncate&apos;</code> (default): No truncation (i.e., can output batch with sequence lengths
greater than the model maximum admissible input size).</li>
</ul>`,name:"truncation"}],source:"https://github.com/huggingface/transformers/blob/v4.37.0/src/transformers/pipelines/table_question_answering.py#L270",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>Each result is a dictionary with the following
keys:</p>
<ul>
<li><strong>answer</strong> (<code>str</code>) — The answer of the query given the table. If there is an aggregator, the answer will
be preceded by <code>AGGREGATOR &gt;</code>.</li>
<li><strong>coordinates</strong> (<code>List[Tuple[int, int]]</code>) — Coordinates of the cells of the answers.</li>
<li><strong>cells</strong> (<code>List[str]</code>) — List of strings made up of the answer cell values.</li>
<li><strong>aggregator</strong> (<code>str</code>) — If the model has an aggregator, this returns the aggregator.</li>
</ul>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p>A dictionary or a list of dictionaries containing results</p>
`}}),zt=new P({props:{anchor:"transformers.TableQuestionAnsweringPipeline.__call__.example",$$slots:{default:[bw]},$$scope:{ctx:x}}}),Zt=new P({props:{anchor:"transformers.TableQuestionAnsweringPipeline.__call__.example-2",$$slots:{default:[yw]},$$scope:{ctx:x}}}),Ta=new $({props:{title:"TextClassificationPipeline",local:"transformers.TextClassificationPipeline",headingTag:"h3"}}),ba=new U({props:{name:"class transformers.TextClassificationPipeline",anchor:"transformers.TextClassificationPipeline",parameters:[{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.TextClassificationPipeline.model",description:`<strong>model</strong> (<a href="/docs/transformers/v4.37.0/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> or <a href="/docs/transformers/v4.37.0/en/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a>) &#x2014;
The model that will be used by the pipeline to make predictions. This needs to be a model inheriting from
<a href="/docs/transformers/v4.37.0/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> for PyTorch and <a href="/docs/transformers/v4.37.0/en/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a> for TensorFlow.`,name:"model"},{anchor:"transformers.TextClassificationPipeline.tokenizer",description:`<strong>tokenizer</strong> (<a href="/docs/transformers/v4.37.0/en/main_classes/tokenizer#transformers.PreTrainedTokenizer">PreTrainedTokenizer</a>) &#x2014;
The tokenizer that will be used by the pipeline to encode data for the model. This object inherits from
<a href="/docs/transformers/v4.37.0/en/main_classes/tokenizer#transformers.PreTrainedTokenizer">PreTrainedTokenizer</a>.`,name:"tokenizer"},{anchor:"transformers.TextClassificationPipeline.modelcard",description:`<strong>modelcard</strong> (<code>str</code> or <code>ModelCard</code>, <em>optional</em>) &#x2014;
Model card attributed to the model for this pipeline.`,name:"modelcard"},{anchor:"transformers.TextClassificationPipeline.framework",description:`<strong>framework</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The framework to use, either <code>&quot;pt&quot;</code> for PyTorch or <code>&quot;tf&quot;</code> for TensorFlow. The specified framework must be
installed.</p>
<p>If no framework is specified, will default to the one currently installed. If no framework is specified and
both frameworks are installed, will default to the framework of the <code>model</code>, or to PyTorch if no model is
provided.`,name:"framework"},{anchor:"transformers.TextClassificationPipeline.task",description:`<strong>task</strong> (<code>str</code>, defaults to <code>&quot;&quot;</code>) &#x2014;
A task-identifier for the pipeline.`,name:"task"},{anchor:"transformers.TextClassificationPipeline.num_workers",description:`<strong>num_workers</strong> (<code>int</code>, <em>optional</em>, defaults to 8) &#x2014;
When the pipeline will use <em>DataLoader</em> (when passing a dataset, on GPU for a Pytorch model), the number of
workers to be used.`,name:"num_workers"},{anchor:"transformers.TextClassificationPipeline.batch_size",description:`<strong>batch_size</strong> (<code>int</code>, <em>optional</em>, defaults to 1) &#x2014;
When the pipeline will use <em>DataLoader</em> (when passing a dataset, on GPU for a Pytorch model), the size of
the batch to use, for inference this is not always beneficial, please read <a href="https://huggingface.co/transformers/main_classes/pipelines.html#pipeline-batching" rel="nofollow">Batching with
pipelines</a> .`,name:"batch_size"},{anchor:"transformers.TextClassificationPipeline.args_parser",description:`<strong>args_parser</strong> (<a href="/docs/transformers/v4.37.0/en/internal/pipelines_utils#transformers.pipelines.ArgumentHandler">ArgumentHandler</a>, <em>optional</em>) &#x2014;
Reference to the object in charge of parsing supplied pipeline parameters.`,name:"args_parser"},{anchor:"transformers.TextClassificationPipeline.device",description:`<strong>device</strong> (<code>int</code>, <em>optional</em>, defaults to -1) &#x2014;
Device ordinal for CPU/GPU supports. Setting this to -1 will leverage CPU, a positive will run the model on
the associated CUDA device id. You can pass native <code>torch.device</code> or a <code>str</code> too.`,name:"device"},{anchor:"transformers.TextClassificationPipeline.binary_output",description:`<strong>binary_output</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Flag indicating if the output the pipeline should happen in a binary format (i.e., pickle) or as raw text.`,name:"binary_output"},{anchor:"transformers.TextClassificationPipeline.return_all_scores",description:`<strong>return_all_scores</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether to return all prediction scores or just the one of the predicted class.`,name:"return_all_scores"},{anchor:"transformers.TextClassificationPipeline.function_to_apply",description:`<strong>function_to_apply</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;default&quot;</code>) &#x2014;
The function to apply to the model outputs in order to retrieve the scores. Accepts four different values:</p>
<ul>
<li><code>&quot;default&quot;</code>: if the model has a single label, will apply the sigmoid function on the output. If the model
has several labels, will apply the softmax function on the output.</li>
<li><code>&quot;sigmoid&quot;</code>: Applies the sigmoid function on the output.</li>
<li><code>&quot;softmax&quot;</code>: Applies the softmax function on the output.</li>
<li><code>&quot;none&quot;</code>: Does not apply any function on the output.</li>
</ul>`,name:"function_to_apply"}],source:"https://github.com/huggingface/transformers/blob/v4.37.0/src/transformers/pipelines/text_classification.py#L34"}}),Ft=new P({props:{anchor:"transformers.TextClassificationPipeline.example",$$slots:{default:[ww]},$$scope:{ctx:x}}}),ya=new U({props:{name:"__call__",anchor:"transformers.TextClassificationPipeline.__call__",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.TextClassificationPipeline.__call__.args",description:`<strong>args</strong> (<code>str</code> or <code>List[str]</code> or <code>Dict[str]</code>, or <code>List[Dict[str]]</code>) &#x2014;
One or several texts to classify. In order to use text pairs for your classification, you can send a
dictionary containing <code>{&quot;text&quot;, &quot;text_pair&quot;}</code> keys, or a list of those.`,name:"args"},{anchor:"transformers.TextClassificationPipeline.__call__.top_k",description:`<strong>top_k</strong> (<code>int</code>, <em>optional</em>, defaults to <code>1</code>) &#x2014;
How many results to return.`,name:"top_k"},{anchor:"transformers.TextClassificationPipeline.__call__.function_to_apply",description:`<strong>function_to_apply</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;default&quot;</code>) &#x2014;
The function to apply to the model outputs in order to retrieve the scores. Accepts four different
values:</p>
<p>If this argument is not specified, then it will apply the following functions according to the number
of labels:</p>
<ul>
<li>If the model has a single label, will apply the sigmoid function on the output.</li>
<li>If the model has several labels, will apply the softmax function on the output.</li>
</ul>
<p>Possible values are:</p>
<ul>
<li><code>&quot;sigmoid&quot;</code>: Applies the sigmoid function on the output.</li>
<li><code>&quot;softmax&quot;</code>: Applies the softmax function on the output.</li>
<li><code>&quot;none&quot;</code>: Does not apply any function on the output.</li>
</ul>`,name:"function_to_apply"}],source:"https://github.com/huggingface/transformers/blob/v4.37.0/src/transformers/pipelines/text_classification.py#L122",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>Each result comes as list of dictionaries with the following keys:</p>
<ul>
<li><strong>label</strong> (<code>str</code>) — The label predicted.</li>
<li><strong>score</strong> (<code>float</code>) — The corresponding probability.</li>
</ul>
<p>If <code>top_k</code> is used, one such dictionary is returned per label.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p>A list or a list of list of <code>dict</code></p>
`}}),wa=new $({props:{title:"TextGenerationPipeline",local:"transformers.TextGenerationPipeline",headingTag:"h3"}}),Ma=new U({props:{name:"class transformers.TextGenerationPipeline",anchor:"transformers.TextGenerationPipeline",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.TextGenerationPipeline.model",description:`<strong>model</strong> (<a href="/docs/transformers/v4.37.0/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> or <a href="/docs/transformers/v4.37.0/en/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a>) &#x2014;
The model that will be used by the pipeline to make predictions. This needs to be a model inheriting from
<a href="/docs/transformers/v4.37.0/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> for PyTorch and <a href="/docs/transformers/v4.37.0/en/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a> for TensorFlow.`,name:"model"},{anchor:"transformers.TextGenerationPipeline.tokenizer",description:`<strong>tokenizer</strong> (<a href="/docs/transformers/v4.37.0/en/main_classes/tokenizer#transformers.PreTrainedTokenizer">PreTrainedTokenizer</a>) &#x2014;
The tokenizer that will be used by the pipeline to encode data for the model. This object inherits from
<a href="/docs/transformers/v4.37.0/en/main_classes/tokenizer#transformers.PreTrainedTokenizer">PreTrainedTokenizer</a>.`,name:"tokenizer"},{anchor:"transformers.TextGenerationPipeline.modelcard",description:`<strong>modelcard</strong> (<code>str</code> or <code>ModelCard</code>, <em>optional</em>) &#x2014;
Model card attributed to the model for this pipeline.`,name:"modelcard"},{anchor:"transformers.TextGenerationPipeline.framework",description:`<strong>framework</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The framework to use, either <code>&quot;pt&quot;</code> for PyTorch or <code>&quot;tf&quot;</code> for TensorFlow. The specified framework must be
installed.</p>
<p>If no framework is specified, will default to the one currently installed. If no framework is specified and
both frameworks are installed, will default to the framework of the <code>model</code>, or to PyTorch if no model is
provided.`,name:"framework"},{anchor:"transformers.TextGenerationPipeline.task",description:`<strong>task</strong> (<code>str</code>, defaults to <code>&quot;&quot;</code>) &#x2014;
A task-identifier for the pipeline.`,name:"task"},{anchor:"transformers.TextGenerationPipeline.num_workers",description:`<strong>num_workers</strong> (<code>int</code>, <em>optional</em>, defaults to 8) &#x2014;
When the pipeline will use <em>DataLoader</em> (when passing a dataset, on GPU for a Pytorch model), the number of
workers to be used.`,name:"num_workers"},{anchor:"transformers.TextGenerationPipeline.batch_size",description:`<strong>batch_size</strong> (<code>int</code>, <em>optional</em>, defaults to 1) &#x2014;
When the pipeline will use <em>DataLoader</em> (when passing a dataset, on GPU for a Pytorch model), the size of
the batch to use, for inference this is not always beneficial, please read <a href="https://huggingface.co/transformers/main_classes/pipelines.html#pipeline-batching" rel="nofollow">Batching with
pipelines</a> .`,name:"batch_size"},{anchor:"transformers.TextGenerationPipeline.args_parser",description:`<strong>args_parser</strong> (<a href="/docs/transformers/v4.37.0/en/internal/pipelines_utils#transformers.pipelines.ArgumentHandler">ArgumentHandler</a>, <em>optional</em>) &#x2014;
Reference to the object in charge of parsing supplied pipeline parameters.`,name:"args_parser"},{anchor:"transformers.TextGenerationPipeline.device",description:`<strong>device</strong> (<code>int</code>, <em>optional</em>, defaults to -1) &#x2014;
Device ordinal for CPU/GPU supports. Setting this to -1 will leverage CPU, a positive will run the model on
the associated CUDA device id. You can pass native <code>torch.device</code> or a <code>str</code> too.`,name:"device"},{anchor:"transformers.TextGenerationPipeline.binary_output",description:`<strong>binary_output</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Flag indicating if the output the pipeline should happen in a binary format (i.e., pickle) or as raw text.`,name:"binary_output"}],source:"https://github.com/huggingface/transformers/blob/v4.37.0/src/transformers/pipelines/text_generation.py#L23"}}),Rt=new P({props:{anchor:"transformers.TextGenerationPipeline.example",$$slots:{default:[Mw]},$$scope:{ctx:x}}}),_a=new U({props:{name:"__call__",anchor:"transformers.TextGenerationPipeline.__call__",parameters:[{name:"text_inputs",val:""},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.TextGenerationPipeline.__call__.args",description:`<strong>args</strong> (<code>str</code> or <code>List[str]</code>) &#x2014;
One or several prompts (or one list of prompts) to complete.`,name:"args"},{anchor:"transformers.TextGenerationPipeline.__call__.return_tensors",description:`<strong>return_tensors</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to return the tensors of predictions (as token indices) in the outputs. If set to
<code>True</code>, the decoded text is not returned.`,name:"return_tensors"},{anchor:"transformers.TextGenerationPipeline.__call__.return_text",description:`<strong>return_text</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Whether or not to return the decoded texts in the outputs.`,name:"return_text"},{anchor:"transformers.TextGenerationPipeline.__call__.return_full_text",description:`<strong>return_full_text</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
If set to <code>False</code> only added text is returned, otherwise the full text is returned. Only meaningful if
<em>return_text</em> is set to True.`,name:"return_full_text"},{anchor:"transformers.TextGenerationPipeline.__call__.clean_up_tokenization_spaces",description:`<strong>clean_up_tokenization_spaces</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to clean up the potential extra spaces in the text output.`,name:"clean_up_tokenization_spaces"},{anchor:"transformers.TextGenerationPipeline.__call__.prefix",description:`<strong>prefix</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Prefix added to prompt.`,name:"prefix"},{anchor:"transformers.TextGenerationPipeline.__call__.handle_long_generation",description:`<strong>handle_long_generation</strong> (<code>str</code>, <em>optional</em>) &#x2014;
By default, this pipelines does not handle long generation (ones that exceed in one form or the other
the model maximum length). There is no perfect way to adress this (more info
:<a href="https://github.com/huggingface/transformers/issues/14033#issuecomment-948385227" rel="nofollow">https://github.com/huggingface/transformers/issues/14033#issuecomment-948385227</a>). This provides common
strategies to work around that problem depending on your use case.</p>
<ul>
<li><code>None</code> : default strategy where nothing in particular happens</li>
<li><code>&quot;hole&quot;</code>: Truncates left of input, and leaves a gap wide enough to let generation happen (might
truncate a lot of the prompt and not suitable when generation exceed the model capacity)</li>
</ul>
<p>generate_kwargs &#x2014;
Additional keyword arguments to pass along to the generate method of the model (see the generate method
corresponding to your framework <a href="./model#generative-models">here</a>).`,name:"handle_long_generation"}],source:"https://github.com/huggingface/transformers/blob/v4.37.0/src/transformers/pipelines/text_generation.py#L178",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>Returns one of the following dictionaries (cannot return a combination
of both <code>generated_text</code> and <code>generated_token_ids</code>):</p>
<ul>
<li><strong>generated_text</strong> (<code>str</code>, present when <code>return_text=True</code>) — The generated text.</li>
<li><strong>generated_token_ids</strong> (<code>torch.Tensor</code> or <code>tf.Tensor</code>, present when <code>return_tensors=True</code>) — The token
ids of the generated text.</li>
</ul>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p>A list or a list of list of <code>dict</code></p>
`}}),xa=new $({props:{title:"Text2TextGenerationPipeline",local:"transformers.Text2TextGenerationPipeline",headingTag:"h3"}}),va=new U({props:{name:"class transformers.Text2TextGenerationPipeline",anchor:"transformers.Text2TextGenerationPipeline",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.Text2TextGenerationPipeline.model",description:`<strong>model</strong> (<a href="/docs/transformers/v4.37.0/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> or <a href="/docs/transformers/v4.37.0/en/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a>) &#x2014;
The model that will be used by the pipeline to make predictions. This needs to be a model inheriting from
<a href="/docs/transformers/v4.37.0/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> for PyTorch and <a href="/docs/transformers/v4.37.0/en/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a> for TensorFlow.`,name:"model"},{anchor:"transformers.Text2TextGenerationPipeline.tokenizer",description:`<strong>tokenizer</strong> (<a href="/docs/transformers/v4.37.0/en/main_classes/tokenizer#transformers.PreTrainedTokenizer">PreTrainedTokenizer</a>) &#x2014;
The tokenizer that will be used by the pipeline to encode data for the model. This object inherits from
<a href="/docs/transformers/v4.37.0/en/main_classes/tokenizer#transformers.PreTrainedTokenizer">PreTrainedTokenizer</a>.`,name:"tokenizer"},{anchor:"transformers.Text2TextGenerationPipeline.modelcard",description:`<strong>modelcard</strong> (<code>str</code> or <code>ModelCard</code>, <em>optional</em>) &#x2014;
Model card attributed to the model for this pipeline.`,name:"modelcard"},{anchor:"transformers.Text2TextGenerationPipeline.framework",description:`<strong>framework</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The framework to use, either <code>&quot;pt&quot;</code> for PyTorch or <code>&quot;tf&quot;</code> for TensorFlow. The specified framework must be
installed.</p>
<p>If no framework is specified, will default to the one currently installed. If no framework is specified and
both frameworks are installed, will default to the framework of the <code>model</code>, or to PyTorch if no model is
provided.`,name:"framework"},{anchor:"transformers.Text2TextGenerationPipeline.task",description:`<strong>task</strong> (<code>str</code>, defaults to <code>&quot;&quot;</code>) &#x2014;
A task-identifier for the pipeline.`,name:"task"},{anchor:"transformers.Text2TextGenerationPipeline.num_workers",description:`<strong>num_workers</strong> (<code>int</code>, <em>optional</em>, defaults to 8) &#x2014;
When the pipeline will use <em>DataLoader</em> (when passing a dataset, on GPU for a Pytorch model), the number of
workers to be used.`,name:"num_workers"},{anchor:"transformers.Text2TextGenerationPipeline.batch_size",description:`<strong>batch_size</strong> (<code>int</code>, <em>optional</em>, defaults to 1) &#x2014;
When the pipeline will use <em>DataLoader</em> (when passing a dataset, on GPU for a Pytorch model), the size of
the batch to use, for inference this is not always beneficial, please read <a href="https://huggingface.co/transformers/main_classes/pipelines.html#pipeline-batching" rel="nofollow">Batching with
pipelines</a> .`,name:"batch_size"},{anchor:"transformers.Text2TextGenerationPipeline.args_parser",description:`<strong>args_parser</strong> (<a href="/docs/transformers/v4.37.0/en/internal/pipelines_utils#transformers.pipelines.ArgumentHandler">ArgumentHandler</a>, <em>optional</em>) &#x2014;
Reference to the object in charge of parsing supplied pipeline parameters.`,name:"args_parser"},{anchor:"transformers.Text2TextGenerationPipeline.device",description:`<strong>device</strong> (<code>int</code>, <em>optional</em>, defaults to -1) &#x2014;
Device ordinal for CPU/GPU supports. Setting this to -1 will leverage CPU, a positive will run the model on
the associated CUDA device id. You can pass native <code>torch.device</code> or a <code>str</code> too.`,name:"device"},{anchor:"transformers.Text2TextGenerationPipeline.binary_output",description:`<strong>binary_output</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Flag indicating if the output the pipeline should happen in a binary format (i.e., pickle) or as raw text.`,name:"binary_output"}],source:"https://github.com/huggingface/transformers/blob/v4.37.0/src/transformers/pipelines/text2text_generation.py#L25"}}),At=new P({props:{anchor:"transformers.Text2TextGenerationPipeline.example",$$slots:{default:[_w]},$$scope:{ctx:x}}}),Nt=new P({props:{anchor:"transformers.Text2TextGenerationPipeline.example-2",$$slots:{default:[xw]},$$scope:{ctx:x}}}),ka=new U({props:{name:"__call__",anchor:"transformers.Text2TextGenerationPipeline.__call__",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.Text2TextGenerationPipeline.__call__.args",description:`<strong>args</strong> (<code>str</code> or <code>List[str]</code>) &#x2014;
Input text for the encoder.`,name:"args"},{anchor:"transformers.Text2TextGenerationPipeline.__call__.return_tensors",description:`<strong>return_tensors</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to include the tensors of predictions (as token indices) in the outputs.`,name:"return_tensors"},{anchor:"transformers.Text2TextGenerationPipeline.__call__.return_text",description:`<strong>return_text</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Whether or not to include the decoded texts in the outputs.`,name:"return_text"},{anchor:"transformers.Text2TextGenerationPipeline.__call__.clean_up_tokenization_spaces",description:`<strong>clean_up_tokenization_spaces</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to clean up the potential extra spaces in the text output.`,name:"clean_up_tokenization_spaces"},{anchor:"transformers.Text2TextGenerationPipeline.__call__.truncation",description:`<strong>truncation</strong> (<code>TruncationStrategy</code>, <em>optional</em>, defaults to <code>TruncationStrategy.DO_NOT_TRUNCATE</code>) &#x2014;
The truncation strategy for the tokenization within the pipeline. <code>TruncationStrategy.DO_NOT_TRUNCATE</code>
(default) will never truncate, but it is sometimes desirable to truncate the input to fit the model&#x2019;s
max_length instead of throwing an error down the line.
generate_kwargs &#x2014;
Additional keyword arguments to pass along to the generate method of the model (see the generate method
corresponding to your framework <a href="./model#generative-models">here</a>).`,name:"truncation"}],source:"https://github.com/huggingface/transformers/blob/v4.37.0/src/transformers/pipelines/text2text_generation.py#L138",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>Each result comes as a dictionary with the following keys:</p>
<ul>
<li><strong>generated_text</strong> (<code>str</code>, present when <code>return_text=True</code>) — The generated text.</li>
<li><strong>generated_token_ids</strong> (<code>torch.Tensor</code> or <code>tf.Tensor</code>, present when <code>return_tensors=True</code>) — The token
ids of the generated text.</li>
</ul>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p>A list or a list of list of <code>dict</code></p>
`}}),Ua=new U({props:{name:"check_inputs",anchor:"transformers.Text2TextGenerationPipeline.check_inputs",parameters:[{name:"input_length",val:": int"},{name:"min_length",val:": int"},{name:"max_length",val:": int"}],source:"https://github.com/huggingface/transformers/blob/v4.37.0/src/transformers/pipelines/text2text_generation.py#L111"}}),ja=new $({props:{title:"TokenClassificationPipeline",local:"transformers.TokenClassificationPipeline",headingTag:"h3"}}),$a=new U({props:{name:"class transformers.TokenClassificationPipeline",anchor:"transformers.TokenClassificationPipeline",parameters:[{name:"args_parser",val:" = <transformers.pipelines.token_classification.TokenClassificationArgumentHandler object at 0x7f9985b618a0>"},{name:"*args",val:""},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.TokenClassificationPipeline.model",description:`<strong>model</strong> (<a href="/docs/transformers/v4.37.0/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> or <a href="/docs/transformers/v4.37.0/en/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a>) &#x2014;
The model that will be used by the pipeline to make predictions. This needs to be a model inheriting from
<a href="/docs/transformers/v4.37.0/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> for PyTorch and <a href="/docs/transformers/v4.37.0/en/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a> for TensorFlow.`,name:"model"},{anchor:"transformers.TokenClassificationPipeline.tokenizer",description:`<strong>tokenizer</strong> (<a href="/docs/transformers/v4.37.0/en/main_classes/tokenizer#transformers.PreTrainedTokenizer">PreTrainedTokenizer</a>) &#x2014;
The tokenizer that will be used by the pipeline to encode data for the model. This object inherits from
<a href="/docs/transformers/v4.37.0/en/main_classes/tokenizer#transformers.PreTrainedTokenizer">PreTrainedTokenizer</a>.`,name:"tokenizer"},{anchor:"transformers.TokenClassificationPipeline.modelcard",description:`<strong>modelcard</strong> (<code>str</code> or <code>ModelCard</code>, <em>optional</em>) &#x2014;
Model card attributed to the model for this pipeline.`,name:"modelcard"},{anchor:"transformers.TokenClassificationPipeline.framework",description:`<strong>framework</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The framework to use, either <code>&quot;pt&quot;</code> for PyTorch or <code>&quot;tf&quot;</code> for TensorFlow. The specified framework must be
installed.</p>
<p>If no framework is specified, will default to the one currently installed. If no framework is specified and
both frameworks are installed, will default to the framework of the <code>model</code>, or to PyTorch if no model is
provided.`,name:"framework"},{anchor:"transformers.TokenClassificationPipeline.task",description:`<strong>task</strong> (<code>str</code>, defaults to <code>&quot;&quot;</code>) &#x2014;
A task-identifier for the pipeline.`,name:"task"},{anchor:"transformers.TokenClassificationPipeline.num_workers",description:`<strong>num_workers</strong> (<code>int</code>, <em>optional</em>, defaults to 8) &#x2014;
When the pipeline will use <em>DataLoader</em> (when passing a dataset, on GPU for a Pytorch model), the number of
workers to be used.`,name:"num_workers"},{anchor:"transformers.TokenClassificationPipeline.batch_size",description:`<strong>batch_size</strong> (<code>int</code>, <em>optional</em>, defaults to 1) &#x2014;
When the pipeline will use <em>DataLoader</em> (when passing a dataset, on GPU for a Pytorch model), the size of
the batch to use, for inference this is not always beneficial, please read <a href="https://huggingface.co/transformers/main_classes/pipelines.html#pipeline-batching" rel="nofollow">Batching with
pipelines</a> .`,name:"batch_size"},{anchor:"transformers.TokenClassificationPipeline.args_parser",description:`<strong>args_parser</strong> (<a href="/docs/transformers/v4.37.0/en/internal/pipelines_utils#transformers.pipelines.ArgumentHandler">ArgumentHandler</a>, <em>optional</em>) &#x2014;
Reference to the object in charge of parsing supplied pipeline parameters.`,name:"args_parser"},{anchor:"transformers.TokenClassificationPipeline.device",description:`<strong>device</strong> (<code>int</code>, <em>optional</em>, defaults to -1) &#x2014;
Device ordinal for CPU/GPU supports. Setting this to -1 will leverage CPU, a positive will run the model on
the associated CUDA device id. You can pass native <code>torch.device</code> or a <code>str</code> too.`,name:"device"},{anchor:"transformers.TokenClassificationPipeline.binary_output",description:`<strong>binary_output</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Flag indicating if the output the pipeline should happen in a binary format (i.e., pickle) or as raw text.`,name:"binary_output"},{anchor:"transformers.TokenClassificationPipeline.ignore_labels",description:`<strong>ignore_labels</strong> (<code>List[str]</code>, defaults to <code>[&quot;O&quot;]</code>) &#x2014;
A list of labels to ignore.`,name:"ignore_labels"},{anchor:"transformers.TokenClassificationPipeline.grouped_entities",description:`<strong>grouped_entities</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
DEPRECATED, use <code>aggregation_strategy</code> instead. Whether or not to group the tokens corresponding to the
same entity together in the predictions or not.`,name:"grouped_entities"},{anchor:"transformers.TokenClassificationPipeline.stride",description:`<strong>stride</strong> (<code>int</code>, <em>optional</em>) &#x2014;
If stride is provided, the pipeline is applied on all the text. The text is split into chunks of size
model_max_length. Works only with fast tokenizers and <code>aggregation_strategy</code> different from <code>NONE</code>. The
value of this argument defines the number of overlapping tokens between chunks. In other words, the model
will shift forward by <code>tokenizer.model_max_length - stride</code> tokens each step.`,name:"stride"},{anchor:"transformers.TokenClassificationPipeline.aggregation_strategy",description:`<strong>aggregation_strategy</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;none&quot;</code>) &#x2014;
The strategy to fuse (or not) tokens based on the model prediction.</p>
<ul>
<li>&#x201C;none&#x201D; : Will simply not do any aggregation and simply return raw results from the model</li>
<li>&#x201C;simple&#x201D; : Will attempt to group entities following the default schema. (A, B-TAG), (B, I-TAG), (C,
I-TAG), (D, B-TAG2) (E, B-TAG2) will end up being [{&#x201C;word&#x201D;: ABC, &#x201C;entity&#x201D;: &#x201C;TAG&#x201D;}, {&#x201C;word&#x201D;: &#x201C;D&#x201D;,
&#x201C;entity&#x201D;: &#x201C;TAG2&#x201D;}, {&#x201C;word&#x201D;: &#x201C;E&#x201D;, &#x201C;entity&#x201D;: &#x201C;TAG2&#x201D;}] Notice that two consecutive B tags will end up as
different entities. On word based languages, we might end up splitting words undesirably : Imagine
Microsoft being tagged as [{&#x201C;word&#x201D;: &#x201C;Micro&#x201D;, &#x201C;entity&#x201D;: &#x201C;ENTERPRISE&#x201D;}, {&#x201C;word&#x201D;: &#x201C;soft&#x201D;, &#x201C;entity&#x201D;:
&#x201C;NAME&#x201D;}]. Look for FIRST, MAX, AVERAGE for ways to mitigate that and disambiguate words (on languages
that support that meaning, which is basically tokens separated by a space). These mitigations will
only work on real words, &#x201C;New york&#x201D; might still be tagged with two different entities.</li>
<li>&#x201C;first&#x201D; : (works only on word based models) Will use the <code>SIMPLE</code> strategy except that words, cannot
end up with different tags. Words will simply use the tag of the first token of the word when there
is ambiguity.</li>
<li>&#x201C;average&#x201D; : (works only on word based models) Will use the <code>SIMPLE</code> strategy except that words,
cannot end up with different tags. scores will be averaged first across tokens, and then the maximum
label is applied.</li>
<li>&#x201C;max&#x201D; : (works only on word based models) Will use the <code>SIMPLE</code> strategy except that words, cannot
end up with different tags. Word entity will simply be the token with the maximum score.</li>
</ul>`,name:"aggregation_strategy"}],source:"https://github.com/huggingface/transformers/blob/v4.37.0/src/transformers/pipelines/token_classification.py#L61"}}),St=new P({props:{anchor:"transformers.TokenClassificationPipeline.example",$$slots:{default:[vw]},$$scope:{ctx:x}}}),Ja=new U({props:{name:"__call__",anchor:"transformers.TokenClassificationPipeline.__call__",parameters:[{name:"inputs",val:": Union"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.TokenClassificationPipeline.__call__.inputs",description:`<strong>inputs</strong> (<code>str</code> or <code>List[str]</code>) &#x2014;
One or several texts (or one list of texts) for token classification.`,name:"inputs"}],source:"https://github.com/huggingface/transformers/blob/v4.37.0/src/transformers/pipelines/token_classification.py#L219",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>Each result comes as a list of dictionaries (one for each token in the
corresponding input, or each entity if this pipeline was instantiated with an aggregation_strategy) with
the following keys:</p>
<ul>
<li><strong>word</strong> (<code>str</code>) — The token/word classified. This is obtained by decoding the selected tokens. If you
want to have the exact string in the original sentence, use <code>start</code> and <code>end</code>.</li>
<li><strong>score</strong> (<code>float</code>) — The corresponding probability for <code>entity</code>.</li>
<li><strong>entity</strong> (<code>str</code>) — The entity predicted for that token/word (it is named <em>entity_group</em> when
<em>aggregation_strategy</em> is not <code>"none"</code>.</li>
<li><strong>index</strong> (<code>int</code>, only present when <code>aggregation_strategy="none"</code>) — The index of the corresponding
token in the sentence.</li>
<li><strong>start</strong> (<code>int</code>, <em>optional</em>) — The index of the start of the corresponding entity in the sentence. Only
exists if the offsets are available within the tokenizer</li>
<li><strong>end</strong> (<code>int</code>, <em>optional</em>) — The index of the end of the corresponding entity in the sentence. Only
exists if the offsets are available within the tokenizer</li>
</ul>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p>A list or a list of list of <code>dict</code></p>
`}}),Pa=new U({props:{name:"aggregate_words",anchor:"transformers.TokenClassificationPipeline.aggregate_words",parameters:[{name:"entities",val:": List"},{name:"aggregation_strategy",val:": AggregationStrategy"}],source:"https://github.com/huggingface/transformers/blob/v4.37.0/src/transformers/pipelines/token_classification.py#L470"}}),Ca=new U({props:{name:"gather_pre_entities",anchor:"transformers.TokenClassificationPipeline.gather_pre_entities",parameters:[{name:"sentence",val:": str"},{name:"input_ids",val:": ndarray"},{name:"scores",val:": ndarray"},{name:"offset_mapping",val:": Optional"},{name:"special_tokens_mask",val:": ndarray"},{name:"aggregation_strategy",val:": AggregationStrategy"}],source:"https://github.com/huggingface/transformers/blob/v4.37.0/src/transformers/pipelines/token_classification.py#L356"}}),Ia=new U({props:{name:"group_entities",anchor:"transformers.TokenClassificationPipeline.group_entities",parameters:[{name:"entities",val:": List"}],parametersDescription:[{anchor:"transformers.TokenClassificationPipeline.group_entities.entities",description:"<strong>entities</strong> (<code>dict</code>) &#x2014; The entities predicted by the pipeline.",name:"entities"}],source:"https://github.com/huggingface/transformers/blob/v4.37.0/src/transformers/pipelines/token_classification.py#L533"}}),qa=new U({props:{name:"group_sub_entities",anchor:"transformers.TokenClassificationPipeline.group_sub_entities",parameters:[{name:"entities",val:": List"}],parametersDescription:[{anchor:"transformers.TokenClassificationPipeline.group_sub_entities.entities",description:"<strong>entities</strong> (<code>dict</code>) &#x2014; The entities predicted by the pipeline.",name:"entities"}],source:"https://github.com/huggingface/transformers/blob/v4.37.0/src/transformers/pipelines/token_classification.py#L498"}}),Ga=new $({props:{title:"TranslationPipeline",local:"transformers.TranslationPipeline",headingTag:"h3"}}),za=new U({props:{name:"class transformers.TranslationPipeline",anchor:"transformers.TranslationPipeline",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.TranslationPipeline.model",description:`<strong>model</strong> (<a href="/docs/transformers/v4.37.0/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> or <a href="/docs/transformers/v4.37.0/en/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a>) &#x2014;
The model that will be used by the pipeline to make predictions. This needs to be a model inheriting from
<a href="/docs/transformers/v4.37.0/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> for PyTorch and <a href="/docs/transformers/v4.37.0/en/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a> for TensorFlow.`,name:"model"},{anchor:"transformers.TranslationPipeline.tokenizer",description:`<strong>tokenizer</strong> (<a href="/docs/transformers/v4.37.0/en/main_classes/tokenizer#transformers.PreTrainedTokenizer">PreTrainedTokenizer</a>) &#x2014;
The tokenizer that will be used by the pipeline to encode data for the model. This object inherits from
<a href="/docs/transformers/v4.37.0/en/main_classes/tokenizer#transformers.PreTrainedTokenizer">PreTrainedTokenizer</a>.`,name:"tokenizer"},{anchor:"transformers.TranslationPipeline.modelcard",description:`<strong>modelcard</strong> (<code>str</code> or <code>ModelCard</code>, <em>optional</em>) &#x2014;
Model card attributed to the model for this pipeline.`,name:"modelcard"},{anchor:"transformers.TranslationPipeline.framework",description:`<strong>framework</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The framework to use, either <code>&quot;pt&quot;</code> for PyTorch or <code>&quot;tf&quot;</code> for TensorFlow. The specified framework must be
installed.</p>
<p>If no framework is specified, will default to the one currently installed. If no framework is specified and
both frameworks are installed, will default to the framework of the <code>model</code>, or to PyTorch if no model is
provided.`,name:"framework"},{anchor:"transformers.TranslationPipeline.task",description:`<strong>task</strong> (<code>str</code>, defaults to <code>&quot;&quot;</code>) &#x2014;
A task-identifier for the pipeline.`,name:"task"},{anchor:"transformers.TranslationPipeline.num_workers",description:`<strong>num_workers</strong> (<code>int</code>, <em>optional</em>, defaults to 8) &#x2014;
When the pipeline will use <em>DataLoader</em> (when passing a dataset, on GPU for a Pytorch model), the number of
workers to be used.`,name:"num_workers"},{anchor:"transformers.TranslationPipeline.batch_size",description:`<strong>batch_size</strong> (<code>int</code>, <em>optional</em>, defaults to 1) &#x2014;
When the pipeline will use <em>DataLoader</em> (when passing a dataset, on GPU for a Pytorch model), the size of
the batch to use, for inference this is not always beneficial, please read <a href="https://huggingface.co/transformers/main_classes/pipelines.html#pipeline-batching" rel="nofollow">Batching with
pipelines</a> .`,name:"batch_size"},{anchor:"transformers.TranslationPipeline.args_parser",description:`<strong>args_parser</strong> (<a href="/docs/transformers/v4.37.0/en/internal/pipelines_utils#transformers.pipelines.ArgumentHandler">ArgumentHandler</a>, <em>optional</em>) &#x2014;
Reference to the object in charge of parsing supplied pipeline parameters.`,name:"args_parser"},{anchor:"transformers.TranslationPipeline.device",description:`<strong>device</strong> (<code>int</code>, <em>optional</em>, defaults to -1) &#x2014;
Device ordinal for CPU/GPU supports. Setting this to -1 will leverage CPU, a positive will run the model on
the associated CUDA device id. You can pass native <code>torch.device</code> or a <code>str</code> too.`,name:"device"},{anchor:"transformers.TranslationPipeline.binary_output",description:`<strong>binary_output</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Flag indicating if the output the pipeline should happen in a binary format (i.e., pickle) or as raw text.`,name:"binary_output"}],source:"https://github.com/huggingface/transformers/blob/v4.37.0/src/transformers/pipelines/text2text_generation.py#L286"}}),Et=new P({props:{anchor:"transformers.TranslationPipeline.example",$$slots:{default:[kw]},$$scope:{ctx:x}}}),Za=new U({props:{name:"__call__",anchor:"transformers.TranslationPipeline.__call__",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.TranslationPipeline.__call__.args",description:`<strong>args</strong> (<code>str</code> or <code>List[str]</code>) &#x2014;
Texts to be translated.`,name:"args"},{anchor:"transformers.TranslationPipeline.__call__.return_tensors",description:`<strong>return_tensors</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to include the tensors of predictions (as token indices) in the outputs.`,name:"return_tensors"},{anchor:"transformers.TranslationPipeline.__call__.return_text",description:`<strong>return_text</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Whether or not to include the decoded texts in the outputs.`,name:"return_text"},{anchor:"transformers.TranslationPipeline.__call__.clean_up_tokenization_spaces",description:`<strong>clean_up_tokenization_spaces</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to clean up the potential extra spaces in the text output.`,name:"clean_up_tokenization_spaces"},{anchor:"transformers.TranslationPipeline.__call__.src_lang",description:`<strong>src_lang</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The language of the input. Might be required for multilingual models. Will not have any effect for
single pair translation models`,name:"src_lang"},{anchor:"transformers.TranslationPipeline.__call__.tgt_lang",description:`<strong>tgt_lang</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The language of the desired output. Might be required for multilingual models. Will not have any effect
for single pair translation models
generate_kwargs &#x2014;
Additional keyword arguments to pass along to the generate method of the model (see the generate method
corresponding to your framework <a href="./model#generative-models">here</a>).`,name:"tgt_lang"}],source:"https://github.com/huggingface/transformers/blob/v4.37.0/src/transformers/pipelines/text2text_generation.py#L341",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>Each result comes as a dictionary with the following keys:</p>
<ul>
<li><strong>translation_text</strong> (<code>str</code>, present when <code>return_text=True</code>) — The translation.</li>
<li><strong>translation_token_ids</strong> (<code>torch.Tensor</code> or <code>tf.Tensor</code>, present when <code>return_tensors=True</code>) — The
token ids of the translation.</li>
</ul>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p>A list or a list of list of <code>dict</code></p>
`}}),Fa=new $({props:{title:"ZeroShotClassificationPipeline",local:"transformers.ZeroShotClassificationPipeline",headingTag:"h3"}}),Da=new U({props:{name:"class transformers.ZeroShotClassificationPipeline",anchor:"transformers.ZeroShotClassificationPipeline",parameters:[{name:"args_parser",val:" = <transformers.pipelines.zero_shot_classification.ZeroShotClassificationArgumentHandler object at 0x7f9985bc0b80>"},{name:"*args",val:""},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.ZeroShotClassificationPipeline.model",description:`<strong>model</strong> (<a href="/docs/transformers/v4.37.0/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> or <a href="/docs/transformers/v4.37.0/en/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a>) &#x2014;
The model that will be used by the pipeline to make predictions. This needs to be a model inheriting from
<a href="/docs/transformers/v4.37.0/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> for PyTorch and <a href="/docs/transformers/v4.37.0/en/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a> for TensorFlow.`,name:"model"},{anchor:"transformers.ZeroShotClassificationPipeline.tokenizer",description:`<strong>tokenizer</strong> (<a href="/docs/transformers/v4.37.0/en/main_classes/tokenizer#transformers.PreTrainedTokenizer">PreTrainedTokenizer</a>) &#x2014;
The tokenizer that will be used by the pipeline to encode data for the model. This object inherits from
<a href="/docs/transformers/v4.37.0/en/main_classes/tokenizer#transformers.PreTrainedTokenizer">PreTrainedTokenizer</a>.`,name:"tokenizer"},{anchor:"transformers.ZeroShotClassificationPipeline.modelcard",description:`<strong>modelcard</strong> (<code>str</code> or <code>ModelCard</code>, <em>optional</em>) &#x2014;
Model card attributed to the model for this pipeline.`,name:"modelcard"},{anchor:"transformers.ZeroShotClassificationPipeline.framework",description:`<strong>framework</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The framework to use, either <code>&quot;pt&quot;</code> for PyTorch or <code>&quot;tf&quot;</code> for TensorFlow. The specified framework must be
installed.</p>
<p>If no framework is specified, will default to the one currently installed. If no framework is specified and
both frameworks are installed, will default to the framework of the <code>model</code>, or to PyTorch if no model is
provided.`,name:"framework"},{anchor:"transformers.ZeroShotClassificationPipeline.task",description:`<strong>task</strong> (<code>str</code>, defaults to <code>&quot;&quot;</code>) &#x2014;
A task-identifier for the pipeline.`,name:"task"},{anchor:"transformers.ZeroShotClassificationPipeline.num_workers",description:`<strong>num_workers</strong> (<code>int</code>, <em>optional</em>, defaults to 8) &#x2014;
When the pipeline will use <em>DataLoader</em> (when passing a dataset, on GPU for a Pytorch model), the number of
workers to be used.`,name:"num_workers"},{anchor:"transformers.ZeroShotClassificationPipeline.batch_size",description:`<strong>batch_size</strong> (<code>int</code>, <em>optional</em>, defaults to 1) &#x2014;
When the pipeline will use <em>DataLoader</em> (when passing a dataset, on GPU for a Pytorch model), the size of
the batch to use, for inference this is not always beneficial, please read <a href="https://huggingface.co/transformers/main_classes/pipelines.html#pipeline-batching" rel="nofollow">Batching with
pipelines</a> .`,name:"batch_size"},{anchor:"transformers.ZeroShotClassificationPipeline.args_parser",description:`<strong>args_parser</strong> (<a href="/docs/transformers/v4.37.0/en/internal/pipelines_utils#transformers.pipelines.ArgumentHandler">ArgumentHandler</a>, <em>optional</em>) &#x2014;
Reference to the object in charge of parsing supplied pipeline parameters.`,name:"args_parser"},{anchor:"transformers.ZeroShotClassificationPipeline.device",description:`<strong>device</strong> (<code>int</code>, <em>optional</em>, defaults to -1) &#x2014;
Device ordinal for CPU/GPU supports. Setting this to -1 will leverage CPU, a positive will run the model on
the associated CUDA device id. You can pass native <code>torch.device</code> or a <code>str</code> too.`,name:"device"},{anchor:"transformers.ZeroShotClassificationPipeline.binary_output",description:`<strong>binary_output</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Flag indicating if the output the pipeline should happen in a binary format (i.e., pickle) or as raw text.`,name:"binary_output"}],source:"https://github.com/huggingface/transformers/blob/v4.37.0/src/transformers/pipelines/zero_shot_classification.py#L46"}}),Xt=new P({props:{anchor:"transformers.ZeroShotClassificationPipeline.example",$$slots:{default:[Uw]},$$scope:{ctx:x}}}),Ra=new U({props:{name:"__call__",anchor:"transformers.ZeroShotClassificationPipeline.__call__",parameters:[{name:"sequences",val:": Union"},{name:"*args",val:""},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.ZeroShotClassificationPipeline.__call__.sequences",description:`<strong>sequences</strong> (<code>str</code> or <code>List[str]</code>) &#x2014;
The sequence(s) to classify, will be truncated if the model input is too large.`,name:"sequences"},{anchor:"transformers.ZeroShotClassificationPipeline.__call__.candidate_labels",description:`<strong>candidate_labels</strong> (<code>str</code> or <code>List[str]</code>) &#x2014;
The set of possible class labels to classify each sequence into. Can be a single label, a string of
comma-separated labels, or a list of labels.`,name:"candidate_labels"},{anchor:"transformers.ZeroShotClassificationPipeline.__call__.hypothesis_template",description:`<strong>hypothesis_template</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;This example is {}.&quot;</code>) &#x2014;
The template used to turn each label into an NLI-style hypothesis. This template must include a {} or
similar syntax for the candidate label to be inserted into the template. For example, the default
template is <code>&quot;This example is {}.&quot;</code> With the candidate label <code>&quot;sports&quot;</code>, this would be fed into the
model like <code>&quot;&lt;cls&gt; sequence to classify &lt;sep&gt; This example is sports . &lt;sep&gt;&quot;</code>. The default template
works well in many cases, but it may be worthwhile to experiment with different templates depending on
the task setting.`,name:"hypothesis_template"},{anchor:"transformers.ZeroShotClassificationPipeline.__call__.multi_label",description:`<strong>multi_label</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not multiple candidate labels can be true. If <code>False</code>, the scores are normalized such that
the sum of the label likelihoods for each sequence is 1. If <code>True</code>, the labels are considered
independent and probabilities are normalized for each candidate by doing a softmax of the entailment
score vs. the contradiction score.`,name:"multi_label"}],source:"https://github.com/huggingface/transformers/blob/v4.37.0/src/transformers/pipelines/zero_shot_classification.py#L163",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>Each result comes as a dictionary with the following keys:</p>
<ul>
<li><strong>sequence</strong> (<code>str</code>) — The sequence for which this is the output.</li>
<li><strong>labels</strong> (<code>List[str]</code>) — The labels sorted by order of likelihood.</li>
<li><strong>scores</strong> (<code>List[float]</code>) — The probabilities for each of the labels.</li>
</ul>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p>A <code>dict</code> or a list of <code>dict</code></p>
`}}),Va=new $({props:{title:"Multimodal",local:"multimodal",headingTag:"h2"}}),Na=new $({props:{title:"DocumentQuestionAnsweringPipeline",local:"transformers.DocumentQuestionAnsweringPipeline",headingTag:"h3"}}),Ba=new U({props:{name:"class transformers.DocumentQuestionAnsweringPipeline",anchor:"transformers.DocumentQuestionAnsweringPipeline",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.DocumentQuestionAnsweringPipeline.model",description:`<strong>model</strong> (<a href="/docs/transformers/v4.37.0/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> or <a href="/docs/transformers/v4.37.0/en/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a>) &#x2014;
The model that will be used by the pipeline to make predictions. This needs to be a model inheriting from
<a href="/docs/transformers/v4.37.0/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> for PyTorch and <a href="/docs/transformers/v4.37.0/en/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a> for TensorFlow.`,name:"model"},{anchor:"transformers.DocumentQuestionAnsweringPipeline.tokenizer",description:`<strong>tokenizer</strong> (<a href="/docs/transformers/v4.37.0/en/main_classes/tokenizer#transformers.PreTrainedTokenizer">PreTrainedTokenizer</a>) &#x2014;
The tokenizer that will be used by the pipeline to encode data for the model. This object inherits from
<a href="/docs/transformers/v4.37.0/en/main_classes/tokenizer#transformers.PreTrainedTokenizer">PreTrainedTokenizer</a>.`,name:"tokenizer"},{anchor:"transformers.DocumentQuestionAnsweringPipeline.modelcard",description:`<strong>modelcard</strong> (<code>str</code> or <code>ModelCard</code>, <em>optional</em>) &#x2014;
Model card attributed to the model for this pipeline.`,name:"modelcard"},{anchor:"transformers.DocumentQuestionAnsweringPipeline.framework",description:`<strong>framework</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The framework to use, either <code>&quot;pt&quot;</code> for PyTorch or <code>&quot;tf&quot;</code> for TensorFlow. The specified framework must be
installed.</p>
<p>If no framework is specified, will default to the one currently installed. If no framework is specified and
both frameworks are installed, will default to the framework of the <code>model</code>, or to PyTorch if no model is
provided.`,name:"framework"},{anchor:"transformers.DocumentQuestionAnsweringPipeline.task",description:`<strong>task</strong> (<code>str</code>, defaults to <code>&quot;&quot;</code>) &#x2014;
A task-identifier for the pipeline.`,name:"task"},{anchor:"transformers.DocumentQuestionAnsweringPipeline.num_workers",description:`<strong>num_workers</strong> (<code>int</code>, <em>optional</em>, defaults to 8) &#x2014;
When the pipeline will use <em>DataLoader</em> (when passing a dataset, on GPU for a Pytorch model), the number of
workers to be used.`,name:"num_workers"},{anchor:"transformers.DocumentQuestionAnsweringPipeline.batch_size",description:`<strong>batch_size</strong> (<code>int</code>, <em>optional</em>, defaults to 1) &#x2014;
When the pipeline will use <em>DataLoader</em> (when passing a dataset, on GPU for a Pytorch model), the size of
the batch to use, for inference this is not always beneficial, please read <a href="https://huggingface.co/transformers/main_classes/pipelines.html#pipeline-batching" rel="nofollow">Batching with
pipelines</a> .`,name:"batch_size"},{anchor:"transformers.DocumentQuestionAnsweringPipeline.args_parser",description:`<strong>args_parser</strong> (<a href="/docs/transformers/v4.37.0/en/internal/pipelines_utils#transformers.pipelines.ArgumentHandler">ArgumentHandler</a>, <em>optional</em>) &#x2014;
Reference to the object in charge of parsing supplied pipeline parameters.`,name:"args_parser"},{anchor:"transformers.DocumentQuestionAnsweringPipeline.device",description:`<strong>device</strong> (<code>int</code>, <em>optional</em>, defaults to -1) &#x2014;
Device ordinal for CPU/GPU supports. Setting this to -1 will leverage CPU, a positive will run the model on
the associated CUDA device id. You can pass native <code>torch.device</code> or a <code>str</code> too.`,name:"device"},{anchor:"transformers.DocumentQuestionAnsweringPipeline.binary_output",description:`<strong>binary_output</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Flag indicating if the output the pipeline should happen in a binary format (i.e., pickle) or as raw text.`,name:"binary_output"}],source:"https://github.com/huggingface/transformers/blob/v4.37.0/src/transformers/pipelines/document_question_answering.py#L101"}}),en=new P({props:{anchor:"transformers.DocumentQuestionAnsweringPipeline.example",$$slots:{default:[jw]},$$scope:{ctx:x}}}),Wa=new U({props:{name:"__call__",anchor:"transformers.DocumentQuestionAnsweringPipeline.__call__",parameters:[{name:"image",val:": Union"},{name:"question",val:": Optional = None"},{name:"word_boxes",val:": Tuple = None"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.DocumentQuestionAnsweringPipeline.__call__.image",description:`<strong>image</strong> (<code>str</code> or <code>PIL.Image</code>) &#x2014;
The pipeline handles three types of images:</p>
<ul>
<li>A string containing a http link pointing to an image</li>
<li>A string containing a local path to an image</li>
<li>An image loaded in PIL directly</li>
</ul>
<p>The pipeline accepts either a single image or a batch of images. If given a single image, it can be
broadcasted to multiple questions.`,name:"image"},{anchor:"transformers.DocumentQuestionAnsweringPipeline.__call__.question",description:`<strong>question</strong> (<code>str</code>) &#x2014;
A question to ask of the document.`,name:"question"},{anchor:"transformers.DocumentQuestionAnsweringPipeline.__call__.word_boxes",description:`<strong>word_boxes</strong> (<code>List[str, Tuple[float, float, float, float]]</code>, <em>optional</em>) &#x2014;
A list of words and bounding boxes (normalized 0-&gt;1000). If you provide this optional input, then the
pipeline will use these words and boxes instead of running OCR on the image to derive them for models
that need them (e.g. LayoutLM). This allows you to reuse OCR&#x2019;d results across many invocations of the
pipeline without having to re-run it each time.`,name:"word_boxes"},{anchor:"transformers.DocumentQuestionAnsweringPipeline.__call__.top_k",description:`<strong>top_k</strong> (<code>int</code>, <em>optional</em>, defaults to 1) &#x2014;
The number of answers to return (will be chosen by order of likelihood). Note that we return less than
top_k answers if there are not enough options available within the context.`,name:"top_k"},{anchor:"transformers.DocumentQuestionAnsweringPipeline.__call__.doc_stride",description:`<strong>doc_stride</strong> (<code>int</code>, <em>optional</em>, defaults to 128) &#x2014;
If the words in the document are too long to fit with the question for the model, it will be split in
several chunks with some overlap. This argument controls the size of that overlap.`,name:"doc_stride"},{anchor:"transformers.DocumentQuestionAnsweringPipeline.__call__.max_answer_len",description:`<strong>max_answer_len</strong> (<code>int</code>, <em>optional</em>, defaults to 15) &#x2014;
The maximum length of predicted answers (e.g., only answers with a shorter length are considered).`,name:"max_answer_len"},{anchor:"transformers.DocumentQuestionAnsweringPipeline.__call__.max_seq_len",description:`<strong>max_seq_len</strong> (<code>int</code>, <em>optional</em>, defaults to 384) &#x2014;
The maximum length of the total sentence (context + question) in tokens of each chunk passed to the
model. The context will be split in several chunks (using <code>doc_stride</code> as overlap) if needed.`,name:"max_seq_len"},{anchor:"transformers.DocumentQuestionAnsweringPipeline.__call__.max_question_len",description:`<strong>max_question_len</strong> (<code>int</code>, <em>optional</em>, defaults to 64) &#x2014;
The maximum length of the question after tokenization. It will be truncated if needed.`,name:"max_question_len"},{anchor:"transformers.DocumentQuestionAnsweringPipeline.__call__.handle_impossible_answer",description:`<strong>handle_impossible_answer</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not we accept impossible as an answer.`,name:"handle_impossible_answer"},{anchor:"transformers.DocumentQuestionAnsweringPipeline.__call__.lang",description:`<strong>lang</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Language to use while running OCR. Defaults to english.`,name:"lang"},{anchor:"transformers.DocumentQuestionAnsweringPipeline.__call__.tesseract_config",description:`<strong>tesseract_config</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Additional flags to pass to tesseract while running OCR.`,name:"tesseract_config"},{anchor:"transformers.DocumentQuestionAnsweringPipeline.__call__.timeout",description:`<strong>timeout</strong> (<code>float</code>, <em>optional</em>, defaults to None) &#x2014;
The maximum time in seconds to wait for fetching images from the web. If None, no timeout is set and
the call may block forever.`,name:"timeout"}],source:"https://github.com/huggingface/transformers/blob/v4.37.0/src/transformers/pipelines/document_question_answering.py#L194",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>Each result comes as a dictionary with the following keys:</p>
<ul>
<li><strong>score</strong> (<code>float</code>) — The probability associated to the answer.</li>
<li><strong>start</strong> (<code>int</code>) — The start word index of the answer (in the OCR’d version of the input or provided
<code>word_boxes</code>).</li>
<li><strong>end</strong> (<code>int</code>) — The end word index of the answer (in the OCR’d version of the input or provided
<code>word_boxes</code>).</li>
<li><strong>answer</strong> (<code>str</code>) — The answer to the question.</li>
<li><strong>words</strong> (<code>list[int]</code>) — The index of each word/box pair that is in the answer</li>
</ul>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p>A <code>dict</code> or a list of <code>dict</code></p>
`}}),Sa=new $({props:{title:"FeatureExtractionPipeline",local:"transformers.FeatureExtractionPipeline",headingTag:"h3"}}),La=new U({props:{name:"class transformers.FeatureExtractionPipeline",anchor:"transformers.FeatureExtractionPipeline",parameters:[{name:"model",val:": Union"},{name:"tokenizer",val:": Optional = None"},{name:"feature_extractor",val:": Optional = None"},{name:"image_processor",val:": Optional = None"},{name:"modelcard",val:": Optional = None"},{name:"framework",val:": Optional = None"},{name:"task",val:": str = ''"},{name:"args_parser",val:": ArgumentHandler = None"},{name:"device",val:": Union = None"},{name:"torch_dtype",val:": Union = None"},{name:"binary_output",val:": bool = False"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.FeatureExtractionPipeline.model",description:`<strong>model</strong> (<a href="/docs/transformers/v4.37.0/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> or <a href="/docs/transformers/v4.37.0/en/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a>) &#x2014;
The model that will be used by the pipeline to make predictions. This needs to be a model inheriting from
<a href="/docs/transformers/v4.37.0/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> for PyTorch and <a href="/docs/transformers/v4.37.0/en/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a> for TensorFlow.`,name:"model"},{anchor:"transformers.FeatureExtractionPipeline.tokenizer",description:`<strong>tokenizer</strong> (<a href="/docs/transformers/v4.37.0/en/main_classes/tokenizer#transformers.PreTrainedTokenizer">PreTrainedTokenizer</a>) &#x2014;
The tokenizer that will be used by the pipeline to encode data for the model. This object inherits from
<a href="/docs/transformers/v4.37.0/en/main_classes/tokenizer#transformers.PreTrainedTokenizer">PreTrainedTokenizer</a>.`,name:"tokenizer"},{anchor:"transformers.FeatureExtractionPipeline.modelcard",description:`<strong>modelcard</strong> (<code>str</code> or <code>ModelCard</code>, <em>optional</em>) &#x2014;
Model card attributed to the model for this pipeline.`,name:"modelcard"},{anchor:"transformers.FeatureExtractionPipeline.framework",description:`<strong>framework</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The framework to use, either <code>&quot;pt&quot;</code> for PyTorch or <code>&quot;tf&quot;</code> for TensorFlow. The specified framework must be
installed.</p>
<p>If no framework is specified, will default to the one currently installed. If no framework is specified and
both frameworks are installed, will default to the framework of the <code>model</code>, or to PyTorch if no model is
provided.`,name:"framework"},{anchor:"transformers.FeatureExtractionPipeline.return_tensors",description:`<strong>return_tensors</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
If <code>True</code>, returns a tensor according to the specified framework, otherwise returns a list.`,name:"return_tensors"},{anchor:"transformers.FeatureExtractionPipeline.task",description:`<strong>task</strong> (<code>str</code>, defaults to <code>&quot;&quot;</code>) &#x2014;
A task-identifier for the pipeline.`,name:"task"},{anchor:"transformers.FeatureExtractionPipeline.args_parser",description:`<strong>args_parser</strong> (<a href="/docs/transformers/v4.37.0/en/internal/pipelines_utils#transformers.pipelines.ArgumentHandler">ArgumentHandler</a>, <em>optional</em>) &#x2014;
Reference to the object in charge of parsing supplied pipeline parameters.`,name:"args_parser"},{anchor:"transformers.FeatureExtractionPipeline.device",description:`<strong>device</strong> (<code>int</code>, <em>optional</em>, defaults to -1) &#x2014;
Device ordinal for CPU/GPU supports. Setting this to -1 will leverage CPU, a positive will run the model on
the associated CUDA device id.`,name:"device"},{anchor:"transformers.FeatureExtractionPipeline.tokenize_kwargs",description:`<strong>tokenize_kwargs</strong> (<code>dict</code>, <em>optional</em>) &#x2014;
Additional dictionary of keyword arguments passed along to the tokenizer.`,name:"tokenize_kwargs"}],source:"https://github.com/huggingface/transformers/blob/v4.37.0/src/transformers/pipelines/feature_extraction.py#L7"}}),tn=new P({props:{anchor:"transformers.FeatureExtractionPipeline.example",$$slots:{default:[$w]},$$scope:{ctx:x}}}),Oa=new U({props:{name:"__call__",anchor:"transformers.FeatureExtractionPipeline.__call__",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.FeatureExtractionPipeline.__call__.args",description:"<strong>args</strong> (<code>str</code> or <code>List[str]</code>) &#x2014; One or several texts (or one list of texts) to get the features of.",name:"args"}],source:"https://github.com/huggingface/transformers/blob/v4.37.0/src/transformers/pipelines/feature_extraction.py#L96",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>The features computed by the model.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p>A nested list of <code>float</code></p>
`}}),Ha=new $({props:{title:"ImageToTextPipeline",local:"transformers.ImageToTextPipeline",headingTag:"h3"}}),Ya=new U({props:{name:"class transformers.ImageToTextPipeline",anchor:"transformers.ImageToTextPipeline",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.ImageToTextPipeline.model",description:`<strong>model</strong> (<a href="/docs/transformers/v4.37.0/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> or <a href="/docs/transformers/v4.37.0/en/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a>) &#x2014;
The model that will be used by the pipeline to make predictions. This needs to be a model inheriting from
<a href="/docs/transformers/v4.37.0/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> for PyTorch and <a href="/docs/transformers/v4.37.0/en/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a> for TensorFlow.`,name:"model"},{anchor:"transformers.ImageToTextPipeline.tokenizer",description:`<strong>tokenizer</strong> (<a href="/docs/transformers/v4.37.0/en/main_classes/tokenizer#transformers.PreTrainedTokenizer">PreTrainedTokenizer</a>) &#x2014;
The tokenizer that will be used by the pipeline to encode data for the model. This object inherits from
<a href="/docs/transformers/v4.37.0/en/main_classes/tokenizer#transformers.PreTrainedTokenizer">PreTrainedTokenizer</a>.`,name:"tokenizer"},{anchor:"transformers.ImageToTextPipeline.modelcard",description:`<strong>modelcard</strong> (<code>str</code> or <code>ModelCard</code>, <em>optional</em>) &#x2014;
Model card attributed to the model for this pipeline.`,name:"modelcard"},{anchor:"transformers.ImageToTextPipeline.framework",description:`<strong>framework</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The framework to use, either <code>&quot;pt&quot;</code> for PyTorch or <code>&quot;tf&quot;</code> for TensorFlow. The specified framework must be
installed.</p>
<p>If no framework is specified, will default to the one currently installed. If no framework is specified and
both frameworks are installed, will default to the framework of the <code>model</code>, or to PyTorch if no model is
provided.`,name:"framework"},{anchor:"transformers.ImageToTextPipeline.task",description:`<strong>task</strong> (<code>str</code>, defaults to <code>&quot;&quot;</code>) &#x2014;
A task-identifier for the pipeline.`,name:"task"},{anchor:"transformers.ImageToTextPipeline.num_workers",description:`<strong>num_workers</strong> (<code>int</code>, <em>optional</em>, defaults to 8) &#x2014;
When the pipeline will use <em>DataLoader</em> (when passing a dataset, on GPU for a Pytorch model), the number of
workers to be used.`,name:"num_workers"},{anchor:"transformers.ImageToTextPipeline.batch_size",description:`<strong>batch_size</strong> (<code>int</code>, <em>optional</em>, defaults to 1) &#x2014;
When the pipeline will use <em>DataLoader</em> (when passing a dataset, on GPU for a Pytorch model), the size of
the batch to use, for inference this is not always beneficial, please read <a href="https://huggingface.co/transformers/main_classes/pipelines.html#pipeline-batching" rel="nofollow">Batching with
pipelines</a> .`,name:"batch_size"},{anchor:"transformers.ImageToTextPipeline.args_parser",description:`<strong>args_parser</strong> (<a href="/docs/transformers/v4.37.0/en/internal/pipelines_utils#transformers.pipelines.ArgumentHandler">ArgumentHandler</a>, <em>optional</em>) &#x2014;
Reference to the object in charge of parsing supplied pipeline parameters.`,name:"args_parser"},{anchor:"transformers.ImageToTextPipeline.device",description:`<strong>device</strong> (<code>int</code>, <em>optional</em>, defaults to -1) &#x2014;
Device ordinal for CPU/GPU supports. Setting this to -1 will leverage CPU, a positive will run the model on
the associated CUDA device id. You can pass native <code>torch.device</code> or a <code>str</code> too.`,name:"device"},{anchor:"transformers.ImageToTextPipeline.binary_output",description:`<strong>binary_output</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Flag indicating if the output the pipeline should happen in a binary format (i.e., pickle) or as raw text.`,name:"binary_output"}],source:"https://github.com/huggingface/transformers/blob/v4.37.0/src/transformers/pipelines/image_to_text.py#L30"}}),sn=new P({props:{anchor:"transformers.ImageToTextPipeline.example",$$slots:{default:[Jw]},$$scope:{ctx:x}}}),Ea=new U({props:{name:"__call__",anchor:"transformers.ImageToTextPipeline.__call__",parameters:[{name:"images",val:": Union"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.ImageToTextPipeline.__call__.images",description:`<strong>images</strong> (<code>str</code>, <code>List[str]</code>, <code>PIL.Image</code> or <code>List[PIL.Image]</code>) &#x2014;
The pipeline handles three types of images:</p>
<ul>
<li>A string containing a HTTP(s) link pointing to an image</li>
<li>A string containing a local path to an image</li>
<li>An image loaded in PIL directly</li>
</ul>
<p>The pipeline accepts either a single image or a batch of images.`,name:"images"},{anchor:"transformers.ImageToTextPipeline.__call__.max_new_tokens",description:`<strong>max_new_tokens</strong> (<code>int</code>, <em>optional</em>) &#x2014;
The amount of maximum tokens to generate. By default it will use <code>generate</code> default.`,name:"max_new_tokens"},{anchor:"transformers.ImageToTextPipeline.__call__.generate_kwargs",description:`<strong>generate_kwargs</strong> (<code>Dict</code>, <em>optional</em>) &#x2014;
Pass it to send all of these arguments directly to <code>generate</code> allowing full control of this function.`,name:"generate_kwargs"},{anchor:"transformers.ImageToTextPipeline.__call__.timeout",description:`<strong>timeout</strong> (<code>float</code>, <em>optional</em>, defaults to None) &#x2014;
The maximum time in seconds to wait for fetching images from the web. If None, no timeout is set and
the call may block forever.`,name:"timeout"}],source:"https://github.com/huggingface/transformers/blob/v4.37.0/src/transformers/pipelines/image_to_text.py#L83",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>Each result comes as a dictionary with the following key:</p>
<ul>
<li><strong>generated_text</strong> (<code>str</code>) — The generated text.</li>
</ul>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p>A list or a list of list of <code>dict</code></p>
`}}),Qa=new $({props:{title:"MaskGenerationPipeline",local:"transformers.MaskGenerationPipeline",headingTag:"h3"}}),Xa=new U({props:{name:"class transformers.MaskGenerationPipeline",anchor:"transformers.MaskGenerationPipeline",parameters:[{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.MaskGenerationPipeline.model",description:`<strong>model</strong> (<a href="/docs/transformers/v4.37.0/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> or <a href="/docs/transformers/v4.37.0/en/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a>) &#x2014;
The model that will be used by the pipeline to make predictions. This needs to be a model inheriting from
<a href="/docs/transformers/v4.37.0/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> for PyTorch and <a href="/docs/transformers/v4.37.0/en/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a> for TensorFlow.`,name:"model"},{anchor:"transformers.MaskGenerationPipeline.tokenizer",description:`<strong>tokenizer</strong> (<a href="/docs/transformers/v4.37.0/en/main_classes/tokenizer#transformers.PreTrainedTokenizer">PreTrainedTokenizer</a>) &#x2014;
The tokenizer that will be used by the pipeline to encode data for the model. This object inherits from
<a href="/docs/transformers/v4.37.0/en/main_classes/tokenizer#transformers.PreTrainedTokenizer">PreTrainedTokenizer</a>.`,name:"tokenizer"},{anchor:"transformers.MaskGenerationPipeline.feature_extractor",description:`<strong>feature_extractor</strong> (<a href="/docs/transformers/v4.37.0/en/main_classes/feature_extractor#transformers.SequenceFeatureExtractor">SequenceFeatureExtractor</a>) &#x2014;
The feature extractor that will be used by the pipeline to encode the input.`,name:"feature_extractor"},{anchor:"transformers.MaskGenerationPipeline.points_per_batch",description:`<strong>points_per_batch</strong> (<em>optional</em>, int, default to 64) &#x2014;
Sets the number of points run simultaneously by the model. Higher numbers may be faster but use more GPU
memory.`,name:"points_per_batch"},{anchor:"transformers.MaskGenerationPipeline.output_bboxes_mask",description:`<strong>output_bboxes_mask</strong> (<code>bool</code>, <em>optional</em>, default to <code>False</code>) &#x2014;
Whether or not to output the bounding box predictions.`,name:"output_bboxes_mask"},{anchor:"transformers.MaskGenerationPipeline.output_rle_masks",description:`<strong>output_rle_masks</strong> (<code>bool</code>, <em>optional</em>, default to <code>False</code>) &#x2014;
Whether or not to output the masks in <code>RLE</code> format`,name:"output_rle_masks"},{anchor:"transformers.MaskGenerationPipeline.model",description:`<strong>model</strong> (<a href="/docs/transformers/v4.37.0/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> or <a href="/docs/transformers/v4.37.0/en/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a>) &#x2014;
The model that will be used by the pipeline to make predictions. This needs to be a model inheriting from
<a href="/docs/transformers/v4.37.0/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> for PyTorch and <a href="/docs/transformers/v4.37.0/en/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a> for TensorFlow.`,name:"model"},{anchor:"transformers.MaskGenerationPipeline.tokenizer",description:`<strong>tokenizer</strong> (<a href="/docs/transformers/v4.37.0/en/main_classes/tokenizer#transformers.PreTrainedTokenizer">PreTrainedTokenizer</a>) &#x2014;
The tokenizer that will be used by the pipeline to encode data for the model. This object inherits from
<a href="/docs/transformers/v4.37.0/en/main_classes/tokenizer#transformers.PreTrainedTokenizer">PreTrainedTokenizer</a>.`,name:"tokenizer"},{anchor:"transformers.MaskGenerationPipeline.modelcard",description:`<strong>modelcard</strong> (<code>str</code> or <code>ModelCard</code>, <em>optional</em>) &#x2014;
Model card attributed to the model for this pipeline.`,name:"modelcard"},{anchor:"transformers.MaskGenerationPipeline.framework",description:`<strong>framework</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The framework to use, either <code>&quot;pt&quot;</code> for PyTorch or <code>&quot;tf&quot;</code> for TensorFlow. The specified framework must be
installed.</p>
<p>If no framework is specified, will default to the one currently installed. If no framework is specified and
both frameworks are installed, will default to the framework of the <code>model</code>, or to PyTorch if no model is
provided.`,name:"framework"},{anchor:"transformers.MaskGenerationPipeline.task",description:`<strong>task</strong> (<code>str</code>, defaults to <code>&quot;&quot;</code>) &#x2014;
A task-identifier for the pipeline.`,name:"task"},{anchor:"transformers.MaskGenerationPipeline.num_workers",description:`<strong>num_workers</strong> (<code>int</code>, <em>optional</em>, defaults to 8) &#x2014;
When the pipeline will use <em>DataLoader</em> (when passing a dataset, on GPU for a Pytorch model), the number of
workers to be used.`,name:"num_workers"},{anchor:"transformers.MaskGenerationPipeline.batch_size",description:`<strong>batch_size</strong> (<code>int</code>, <em>optional</em>, defaults to 1) &#x2014;
When the pipeline will use <em>DataLoader</em> (when passing a dataset, on GPU for a Pytorch model), the size of
the batch to use, for inference this is not always beneficial, please read <a href="https://huggingface.co/transformers/main_classes/pipelines.html#pipeline-batching" rel="nofollow">Batching with
pipelines</a> .`,name:"batch_size"},{anchor:"transformers.MaskGenerationPipeline.args_parser",description:`<strong>args_parser</strong> (<a href="/docs/transformers/v4.37.0/en/internal/pipelines_utils#transformers.pipelines.ArgumentHandler">ArgumentHandler</a>, <em>optional</em>) &#x2014;
Reference to the object in charge of parsing supplied pipeline parameters.`,name:"args_parser"},{anchor:"transformers.MaskGenerationPipeline.device",description:`<strong>device</strong> (<code>int</code>, <em>optional</em>, defaults to -1) &#x2014;
Device ordinal for CPU/GPU supports. Setting this to -1 will leverage CPU, a positive will run the model on
the associated CUDA device id. You can pass native <code>torch.device</code> or a <code>str</code> too.`,name:"device"},{anchor:"transformers.MaskGenerationPipeline.binary_output",description:`<strong>binary_output</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Flag indicating if the output the pipeline should happen in a binary format (i.e., pickle) or as raw text.`,name:"binary_output"}],source:"https://github.com/huggingface/transformers/blob/v4.37.0/src/transformers/pipelines/mask_generation.py#L22"}}),on=new P({props:{anchor:"transformers.MaskGenerationPipeline.example",$$slots:{default:[Pw]},$$scope:{ctx:x}}}),Ka=new U({props:{name:"__call__",anchor:"transformers.MaskGenerationPipeline.__call__",parameters:[{name:"image",val:""},{name:"*args",val:""},{name:"num_workers",val:" = None"},{name:"batch_size",val:" = None"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.MaskGenerationPipeline.__call__.inputs",description:`<strong>inputs</strong> (<code>np.ndarray</code> or <code>bytes</code> or <code>str</code> or <code>dict</code>) &#x2014;
Image or list of images.`,name:"inputs"},{anchor:"transformers.MaskGenerationPipeline.__call__.mask_threshold",description:`<strong>mask_threshold</strong> (<code>float</code>, <em>optional</em>, defaults to 0.0) &#x2014;
Threshold to use when turning the predicted masks into binary values.`,name:"mask_threshold"},{anchor:"transformers.MaskGenerationPipeline.__call__.pred_iou_thresh",description:`<strong>pred_iou_thresh</strong> (<code>float</code>, <em>optional</em>, defaults to 0.88) &#x2014;
A filtering threshold in <code>[0,1]</code> applied on the model&#x2019;s predicted mask quality.`,name:"pred_iou_thresh"},{anchor:"transformers.MaskGenerationPipeline.__call__.stability_score_thresh",description:`<strong>stability_score_thresh</strong> (<code>float</code>, <em>optional</em>, defaults to 0.95) &#x2014;
A filtering threshold in <code>[0,1]</code>, using the stability of the mask under changes to the cutoff used to
binarize the model&#x2019;s mask predictions.`,name:"stability_score_thresh"},{anchor:"transformers.MaskGenerationPipeline.__call__.stability_score_offset",description:`<strong>stability_score_offset</strong> (<code>int</code>, <em>optional</em>, defaults to 1) &#x2014;
The amount to shift the cutoff when calculated the stability score.`,name:"stability_score_offset"},{anchor:"transformers.MaskGenerationPipeline.__call__.crops_nms_thresh",description:`<strong>crops_nms_thresh</strong> (<code>float</code>, <em>optional</em>, defaults to 0.7) &#x2014;
The box IoU cutoff used by non-maximal suppression to filter duplicate masks.`,name:"crops_nms_thresh"},{anchor:"transformers.MaskGenerationPipeline.__call__.crops_n_layers",description:`<strong>crops_n_layers</strong> (<code>int</code>, <em>optional</em>, defaults to 0) &#x2014;
If <code>crops_n_layers&gt;0</code>, mask prediction will be run again on crops of the image. Sets the number of
layers to run, where each layer has 2**i_layer number of image crops.`,name:"crops_n_layers"},{anchor:"transformers.MaskGenerationPipeline.__call__.crop_overlap_ratio",description:`<strong>crop_overlap_ratio</strong> (<code>float</code>, <em>optional</em>, defaults to <code>512 / 1500</code>) &#x2014;
Sets the degree to which crops overlap. In the first crop layer, crops will overlap by this fraction of
the image length. Later layers with more crops scale down this overlap.`,name:"crop_overlap_ratio"},{anchor:"transformers.MaskGenerationPipeline.__call__.crop_n_points_downscale_factor",description:`<strong>crop_n_points_downscale_factor</strong> (<code>int</code>, <em>optional</em>, defaults to <code>1</code>) &#x2014;
The number of points-per-side sampled in layer n is scaled down by crop_n_points_downscale_factor**n.`,name:"crop_n_points_downscale_factor"},{anchor:"transformers.MaskGenerationPipeline.__call__.timeout",description:`<strong>timeout</strong> (<code>float</code>, <em>optional</em>, defaults to None) &#x2014;
The maximum time in seconds to wait for fetching images from the web. If None, no timeout is set and
the call may block forever.`,name:"timeout"}],source:"https://github.com/huggingface/transformers/blob/v4.37.0/src/transformers/pipelines/mask_generation.py#L135",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>A dictionary with the following keys:</p>
<ul>
<li><strong>mask</strong> (<code>PIL.Image</code>) — A binary mask of the detected object as a PIL Image of shape <code>(width, height)</code> of the original image. Returns a mask filled with zeros if no object is found.</li>
<li><strong>score</strong> (<em>optional</em> <code>float</code>) — Optionally, when the model is capable of estimating a confidence of
the “object” described by the label and the mask.</li>
</ul>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>Dict</code></p>
`}}),eo=new $({props:{title:"VisualQuestionAnsweringPipeline",local:"transformers.VisualQuestionAnsweringPipeline",headingTag:"h3"}}),to=new U({props:{name:"class transformers.VisualQuestionAnsweringPipeline",anchor:"transformers.VisualQuestionAnsweringPipeline",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.VisualQuestionAnsweringPipeline.model",description:`<strong>model</strong> (<a href="/docs/transformers/v4.37.0/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> or <a href="/docs/transformers/v4.37.0/en/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a>) &#x2014;
The model that will be used by the pipeline to make predictions. This needs to be a model inheriting from
<a href="/docs/transformers/v4.37.0/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> for PyTorch and <a href="/docs/transformers/v4.37.0/en/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a> for TensorFlow.`,name:"model"},{anchor:"transformers.VisualQuestionAnsweringPipeline.tokenizer",description:`<strong>tokenizer</strong> (<a href="/docs/transformers/v4.37.0/en/main_classes/tokenizer#transformers.PreTrainedTokenizer">PreTrainedTokenizer</a>) &#x2014;
The tokenizer that will be used by the pipeline to encode data for the model. This object inherits from
<a href="/docs/transformers/v4.37.0/en/main_classes/tokenizer#transformers.PreTrainedTokenizer">PreTrainedTokenizer</a>.`,name:"tokenizer"},{anchor:"transformers.VisualQuestionAnsweringPipeline.modelcard",description:`<strong>modelcard</strong> (<code>str</code> or <code>ModelCard</code>, <em>optional</em>) &#x2014;
Model card attributed to the model for this pipeline.`,name:"modelcard"},{anchor:"transformers.VisualQuestionAnsweringPipeline.framework",description:`<strong>framework</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The framework to use, either <code>&quot;pt&quot;</code> for PyTorch or <code>&quot;tf&quot;</code> for TensorFlow. The specified framework must be
installed.</p>
<p>If no framework is specified, will default to the one currently installed. If no framework is specified and
both frameworks are installed, will default to the framework of the <code>model</code>, or to PyTorch if no model is
provided.`,name:"framework"},{anchor:"transformers.VisualQuestionAnsweringPipeline.task",description:`<strong>task</strong> (<code>str</code>, defaults to <code>&quot;&quot;</code>) &#x2014;
A task-identifier for the pipeline.`,name:"task"},{anchor:"transformers.VisualQuestionAnsweringPipeline.num_workers",description:`<strong>num_workers</strong> (<code>int</code>, <em>optional</em>, defaults to 8) &#x2014;
When the pipeline will use <em>DataLoader</em> (when passing a dataset, on GPU for a Pytorch model), the number of
workers to be used.`,name:"num_workers"},{anchor:"transformers.VisualQuestionAnsweringPipeline.batch_size",description:`<strong>batch_size</strong> (<code>int</code>, <em>optional</em>, defaults to 1) &#x2014;
When the pipeline will use <em>DataLoader</em> (when passing a dataset, on GPU for a Pytorch model), the size of
the batch to use, for inference this is not always beneficial, please read <a href="https://huggingface.co/transformers/main_classes/pipelines.html#pipeline-batching" rel="nofollow">Batching with
pipelines</a> .`,name:"batch_size"},{anchor:"transformers.VisualQuestionAnsweringPipeline.args_parser",description:`<strong>args_parser</strong> (<a href="/docs/transformers/v4.37.0/en/internal/pipelines_utils#transformers.pipelines.ArgumentHandler">ArgumentHandler</a>, <em>optional</em>) &#x2014;
Reference to the object in charge of parsing supplied pipeline parameters.`,name:"args_parser"},{anchor:"transformers.VisualQuestionAnsweringPipeline.device",description:`<strong>device</strong> (<code>int</code>, <em>optional</em>, defaults to -1) &#x2014;
Device ordinal for CPU/GPU supports. Setting this to -1 will leverage CPU, a positive will run the model on
the associated CUDA device id. You can pass native <code>torch.device</code> or a <code>str</code> too.`,name:"device"},{anchor:"transformers.VisualQuestionAnsweringPipeline.binary_output",description:`<strong>binary_output</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Flag indicating if the output the pipeline should happen in a binary format (i.e., pickle) or as raw text.`,name:"binary_output"}],source:"https://github.com/huggingface/transformers/blob/v4.37.0/src/transformers/pipelines/visual_question_answering.py#L18"}}),ln=new P({props:{anchor:"transformers.VisualQuestionAnsweringPipeline.example",$$slots:{default:[Cw]},$$scope:{ctx:x}}}),no=new U({props:{name:"__call__",anchor:"transformers.VisualQuestionAnsweringPipeline.__call__",parameters:[{name:"image",val:": Union"},{name:"question",val:": str = None"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.VisualQuestionAnsweringPipeline.__call__.image",description:`<strong>image</strong> (<code>str</code>, <code>List[str]</code>, <code>PIL.Image</code> or <code>List[PIL.Image]</code>) &#x2014;
The pipeline handles three types of images:</p>
<ul>
<li>A string containing a http link pointing to an image</li>
<li>A string containing a local path to an image</li>
<li>An image loaded in PIL directly</li>
</ul>
<p>The pipeline accepts either a single image or a batch of images. If given a single image, it can be
broadcasted to multiple questions.`,name:"image"},{anchor:"transformers.VisualQuestionAnsweringPipeline.__call__.question",description:`<strong>question</strong> (<code>str</code>, <code>List[str]</code>) &#x2014;
The question(s) asked. If given a single question, it can be broadcasted to multiple images.`,name:"question"},{anchor:"transformers.VisualQuestionAnsweringPipeline.__call__.top_k",description:`<strong>top_k</strong> (<code>int</code>, <em>optional</em>, defaults to 5) &#x2014;
The number of top labels that will be returned by the pipeline. If the provided number is higher than
the number of labels available in the model configuration, it will default to the number of labels.`,name:"top_k"},{anchor:"transformers.VisualQuestionAnsweringPipeline.__call__.timeout",description:`<strong>timeout</strong> (<code>float</code>, <em>optional</em>, defaults to None) &#x2014;
The maximum time in seconds to wait for fetching images from the web. If None, no timeout is set and
the call may block forever.`,name:"timeout"}],source:"https://github.com/huggingface/transformers/blob/v4.37.0/src/transformers/pipelines/visual_question_answering.py#L70",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<ul>
<li><strong>label</strong> (<code>str</code>) — The label identified by the model.</li>
<li><strong>score</strong> (<code>int</code>) — The score attributed by the model for that label.</li>
</ul>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p>A dictionary or a list of dictionaries containing the result. The dictionaries contain the following keys</p>
`}}),so=new $({props:{title:"Parent class: Pipeline",local:"transformers.Pipeline",headingTag:"h2"}}),ao=new U({props:{name:"class transformers.Pipeline",anchor:"transformers.Pipeline",parameters:[{name:"model",val:": Union"},{name:"tokenizer",val:": Optional = None"},{name:"feature_extractor",val:": Optional = None"},{name:"image_processor",val:": Optional = None"},{name:"modelcard",val:": Optional = None"},{name:"framework",val:": Optional = None"},{name:"task",val:": str = ''"},{name:"args_parser",val:": ArgumentHandler = None"},{name:"device",val:": Union = None"},{name:"torch_dtype",val:": Union = None"},{name:"binary_output",val:": bool = False"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.Pipeline.model",description:`<strong>model</strong> (<a href="/docs/transformers/v4.37.0/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> or <a href="/docs/transformers/v4.37.0/en/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a>) &#x2014;
The model that will be used by the pipeline to make predictions. This needs to be a model inheriting from
<a href="/docs/transformers/v4.37.0/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> for PyTorch and <a href="/docs/transformers/v4.37.0/en/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a> for TensorFlow.`,name:"model"},{anchor:"transformers.Pipeline.tokenizer",description:`<strong>tokenizer</strong> (<a href="/docs/transformers/v4.37.0/en/main_classes/tokenizer#transformers.PreTrainedTokenizer">PreTrainedTokenizer</a>) &#x2014;
The tokenizer that will be used by the pipeline to encode data for the model. This object inherits from
<a href="/docs/transformers/v4.37.0/en/main_classes/tokenizer#transformers.PreTrainedTokenizer">PreTrainedTokenizer</a>.`,name:"tokenizer"},{anchor:"transformers.Pipeline.modelcard",description:`<strong>modelcard</strong> (<code>str</code> or <code>ModelCard</code>, <em>optional</em>) &#x2014;
Model card attributed to the model for this pipeline.`,name:"modelcard"},{anchor:"transformers.Pipeline.framework",description:`<strong>framework</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The framework to use, either <code>&quot;pt&quot;</code> for PyTorch or <code>&quot;tf&quot;</code> for TensorFlow. The specified framework must be
installed.</p>
<p>If no framework is specified, will default to the one currently installed. If no framework is specified and
both frameworks are installed, will default to the framework of the <code>model</code>, or to PyTorch if no model is
provided.`,name:"framework"},{anchor:"transformers.Pipeline.task",description:`<strong>task</strong> (<code>str</code>, defaults to <code>&quot;&quot;</code>) &#x2014;
A task-identifier for the pipeline.`,name:"task"},{anchor:"transformers.Pipeline.num_workers",description:`<strong>num_workers</strong> (<code>int</code>, <em>optional</em>, defaults to 8) &#x2014;
When the pipeline will use <em>DataLoader</em> (when passing a dataset, on GPU for a Pytorch model), the number of
workers to be used.`,name:"num_workers"},{anchor:"transformers.Pipeline.batch_size",description:`<strong>batch_size</strong> (<code>int</code>, <em>optional</em>, defaults to 1) &#x2014;
When the pipeline will use <em>DataLoader</em> (when passing a dataset, on GPU for a Pytorch model), the size of
the batch to use, for inference this is not always beneficial, please read <a href="https://huggingface.co/transformers/main_classes/pipelines.html#pipeline-batching" rel="nofollow">Batching with
pipelines</a> .`,name:"batch_size"},{anchor:"transformers.Pipeline.args_parser",description:`<strong>args_parser</strong> (<a href="/docs/transformers/v4.37.0/en/internal/pipelines_utils#transformers.pipelines.ArgumentHandler">ArgumentHandler</a>, <em>optional</em>) &#x2014;
Reference to the object in charge of parsing supplied pipeline parameters.`,name:"args_parser"},{anchor:"transformers.Pipeline.device",description:`<strong>device</strong> (<code>int</code>, <em>optional</em>, defaults to -1) &#x2014;
Device ordinal for CPU/GPU supports. Setting this to -1 will leverage CPU, a positive will run the model on
the associated CUDA device id. You can pass native <code>torch.device</code> or a <code>str</code> too.`,name:"device"},{anchor:"transformers.Pipeline.binary_output",description:`<strong>binary_output</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Flag indicating if the output the pipeline should happen in a binary format (i.e., pickle) or as raw text.`,name:"binary_output"}],source:"https://github.com/huggingface/transformers/blob/v4.37.0/src/transformers/pipelines/base.py#L749"}}),oo=new U({props:{name:"check_model_type",anchor:"transformers.Pipeline.check_model_type",parameters:[{name:"supported_models",val:": Union"}],parametersDescription:[{anchor:"transformers.Pipeline.check_model_type.supported_models",description:`<strong>supported_models</strong> (<code>List[str]</code> or <code>dict</code>) &#x2014;
The list of models supported by the pipeline, or a dictionary with model class values.`,name:"supported_models"}],source:"https://github.com/huggingface/transformers/blob/v4.37.0/src/transformers/pipelines/base.py#L984"}}),ro=new U({props:{name:"device_placement",anchor:"transformers.Pipeline.device_placement",parameters:[],source:"https://github.com/huggingface/transformers/blob/v4.37.0/src/transformers/pipelines/base.py#L923",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>Context manager</p>
`}}),pn=new P({props:{anchor:"transformers.Pipeline.device_placement.example",$$slots:{default:[Iw]},$$scope:{ctx:x}}}),io=new U({props:{name:"ensure_tensor_on_device",anchor:"transformers.Pipeline.ensure_tensor_on_device",parameters:[{name:"**inputs",val:""}],parametersDescription:[{anchor:"transformers.Pipeline.ensure_tensor_on_device.inputs",description:`<strong>inputs</strong> (keyword arguments that should be <code>torch.Tensor</code>, the rest is ignored) &#x2014;
The tensors to place on <code>self.device</code>.`,name:"inputs"},{anchor:"transformers.Pipeline.ensure_tensor_on_device.Recursive",description:"<strong>Recursive</strong> on lists <strong>only</strong>. &#x2014;",name:"Recursive"}],source:"https://github.com/huggingface/transformers/blob/v4.37.0/src/transformers/pipelines/base.py#L950",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>The same as <code>inputs</code> but on the proper device.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>Dict[str, torch.Tensor]</code></p>
`}}),lo=new U({props:{name:"postprocess",anchor:"transformers.Pipeline.postprocess",parameters:[{name:"model_outputs",val:": ModelOutput"},{name:"**postprocess_parameters",val:": Dict"}],source:"https://github.com/huggingface/transformers/blob/v4.37.0/src/transformers/pipelines/base.py#L1047"}}),co=new U({props:{name:"predict",anchor:"transformers.Pipeline.predict",parameters:[{name:"X",val:""}],source:"https://github.com/huggingface/transformers/blob/v4.37.0/src/transformers/pipelines/base.py#L917"}}),po=new U({props:{name:"preprocess",anchor:"transformers.Pipeline.preprocess",parameters:[{name:"input_",val:": Any"},{name:"**preprocess_parameters",val:": Dict"}],source:"https://github.com/huggingface/transformers/blob/v4.37.0/src/transformers/pipelines/base.py#L1026"}}),mo=new U({props:{name:"save_pretrained",anchor:"transformers.Pipeline.save_pretrained",parameters:[{name:"save_directory",val:": str"},{name:"safe_serialization",val:": bool = True"}],parametersDescription:[{anchor:"transformers.Pipeline.save_pretrained.save_directory",description:`<strong>save_directory</strong> (<code>str</code>) &#x2014;
A path to the directory where to saved. It will be created if it doesn&#x2019;t exist.`,name:"save_directory"},{anchor:"transformers.Pipeline.save_pretrained.safe_serialization",description:`<strong>safe_serialization</strong> (<code>str</code>) &#x2014;
Whether to save the model using <code>safetensors</code> or the traditional way for PyTorch or Tensorflow.`,name:"safe_serialization"}],source:"https://github.com/huggingface/transformers/blob/v4.37.0/src/transformers/pipelines/base.py#L861"}}),ho=new U({props:{name:"transform",anchor:"transformers.Pipeline.transform",parameters:[{name:"X",val:""}],source:"https://github.com/huggingface/transformers/blob/v4.37.0/src/transformers/pipelines/base.py#L911"}}),{c(){r=i("meta"),_=s(),h=i("p"),p=s(),f(w.$$.fragment),t=s(),M=i("p"),M.innerHTML=Sl,Ol=s(),bn=i("p"),bn.textContent=ou,Hl=s(),yn=i("ul"),yn.innerHTML=ru,Yl=s(),f(wn.$$.fragment),El=s(),Mn=i("p"),Mn.innerHTML=iu,Ql=s(),_n=i("p"),_n.textContent=lu,Xl=s(),f(xn.$$.fragment),Kl=s(),vn=i("p"),vn.innerHTML=cu,ec=s(),f(kn.$$.fragment),tc=s(),Un=i("p"),Un.innerHTML=pu,nc=s(),f(jn.$$.fragment),sc=s(),$n=i("p"),$n.innerHTML=du,ac=s(),f(Jn.$$.fragment),oc=s(),Pn=i("p"),Pn.textContent=mu,rc=s(),f(Cn.$$.fragment),ic=s(),_e=i("div"),f(In.$$.fragment),Md=s(),qo=i("p"),qo.innerHTML=hu,_d=s(),Go=i("p"),Go.textContent=fu,xd=s(),zo=i("ul"),zo.innerHTML=gu,vd=s(),f(Oe.$$.fragment),lc=s(),f(qn.$$.fragment),cc=s(),Gn=i("p"),Gn.innerHTML=uu,pc=s(),f(zn.$$.fragment),dc=s(),f(He.$$.fragment),mc=s(),f(Zn.$$.fragment),hc=s(),f(Fn.$$.fragment),fc=s(),Dn=i("p"),Dn.textContent=Tu,gc=s(),f(Rn.$$.fragment),uc=s(),Vn=i("p"),Vn.innerHTML=bu,Tc=s(),f(An.$$.fragment),bc=s(),Nn=i("p"),Nn.textContent=yu,yc=s(),Bn=i("p"),Bn.textContent=wu,wc=s(),Wn=i("ul"),Wn.innerHTML=Mu,Mc=s(),f(Sn.$$.fragment),_c=s(),Ln=i("p"),Ln.innerHTML=_u,xc=s(),On=i("p"),On.innerHTML=xu,vc=s(),f(Hn.$$.fragment),kc=s(),Yn=i("p"),Yn.textContent=vu,Uc=s(),f(En.$$.fragment),jc=s(),Qn=i("p"),Qn.textContent=ku,$c=s(),Xn=i("p"),Xn.innerHTML=Uu,Jc=s(),f(Kn.$$.fragment),Pc=s(),es=i("p"),es.textContent=ju,Cc=s(),ts=i("p"),ts.innerHTML=$u,Ic=s(),ns=i("p"),ns.textContent=Ju,qc=s(),ss=i("ul"),ss.innerHTML=Pu,Gc=s(),f(as.$$.fragment),zc=s(),os=i("p"),os.textContent=Cu,Zc=s(),f(rs.$$.fragment),Fc=s(),is=i("p"),is.innerHTML=Iu,Dc=s(),f(ls.$$.fragment),Rc=s(),cs=i("p"),cs.textContent=qu,Vc=s(),f(ps.$$.fragment),Ac=s(),W=i("div"),f(ds.$$.fragment),kd=s(),Zo=i("p"),Zo.innerHTML=Gu,Ud=s(),f(Ye.$$.fragment),jd=s(),Fo=i("p"),Fo.innerHTML=zu,$d=s(),Do=i("p"),Do.innerHTML=Zu,Jd=s(),Ro=i("p"),Ro.innerHTML=Fu,Pd=s(),Ee=i("div"),f(ms.$$.fragment),Cd=s(),Vo=i("p"),Vo.innerHTML=Du,Nc=s(),f(hs.$$.fragment),Bc=s(),ie=i("div"),f(fs.$$.fragment),Id=s(),Ao=i("p"),Ao.textContent=Ru,qd=s(),No=i("p"),No.textContent=Vu,Gd=s(),f(Qe.$$.fragment),zd=s(),Bo=i("p"),Bo.innerHTML=Au,Zd=s(),Xe=i("div"),f(gs.$$.fragment),Fd=s(),Wo=i("p"),Wo.innerHTML=Nu,Wc=s(),f(us.$$.fragment),Sc=s(),R=i("div"),f(Ts.$$.fragment),Dd=s(),So=i("p"),So.innerHTML=Bu,Rd=s(),f(Ke.$$.fragment),Vd=s(),Lo=i("p"),Lo.innerHTML=Wu,Ad=s(),f(et.$$.fragment),Nd=s(),Oo=i("p"),Oo.innerHTML=Su,Bd=s(),Ho=i("p"),Ho.innerHTML=Lu,Wd=s(),tt=i("div"),f(bs.$$.fragment),Sd=s(),Yo=i("p"),Yo.innerHTML=Ou,Lc=s(),f(ys.$$.fragment),Oc=s(),xe=i("div"),f(ws.$$.fragment),Ld=s(),Eo=i("p"),Eo.innerHTML=Hu,Od=s(),f(nt.$$.fragment),Hd=s(),Qo=i("p"),Qo.innerHTML=Yu,Yd=s(),st=i("div"),f(Ms.$$.fragment),Ed=s(),Xo=i("p"),Xo.textContent=Eu,Hc=s(),f(_s.$$.fragment),Yc=s(),xs=i("p"),xs.textContent=Qu,Ec=s(),f(vs.$$.fragment),Qc=s(),S=i("div"),f(ks.$$.fragment),Qd=s(),Ko=i("p"),Ko.innerHTML=Xu,Xd=s(),f(at.$$.fragment),Kd=s(),er=i("p"),er.innerHTML=Ku,em=s(),tr=i("p"),tr.innerHTML=eT,tm=s(),nr=i("p"),nr.innerHTML=tT,nm=s(),ot=i("div"),f(Us.$$.fragment),sm=s(),sr=i("p"),sr.textContent=nT,Xc=s(),f(js.$$.fragment),Kc=s(),L=i("div"),f($s.$$.fragment),am=s(),ar=i("p"),ar.innerHTML=sT,om=s(),f(rt.$$.fragment),rm=s(),or=i("p"),or.innerHTML=aT,im=s(),rr=i("p"),rr.innerHTML=oT,lm=s(),ir=i("p"),ir.innerHTML=rT,cm=s(),it=i("div"),f(Js.$$.fragment),pm=s(),lr=i("p"),lr.textContent=iT,ep=s(),f(Ps.$$.fragment),tp=s(),le=i("div"),f(Cs.$$.fragment),dm=s(),cr=i("p"),cr.innerHTML=lT,mm=s(),f(lt.$$.fragment),hm=s(),pr=i("p"),pr.innerHTML=cT,fm=s(),dr=i("p"),dr.innerHTML=pT,gm=s(),ct=i("div"),f(Is.$$.fragment),um=s(),mr=i("p"),mr.textContent=dT,np=s(),f(qs.$$.fragment),sp=s(),ce=i("div"),f(Gs.$$.fragment),Tm=s(),hr=i("p"),hr.innerHTML=mT,bm=s(),f(pt.$$.fragment),ym=s(),fr=i("p"),fr.innerHTML=hT,wm=s(),gr=i("p"),gr.innerHTML=fT,Mm=s(),dt=i("div"),f(zs.$$.fragment),_m=s(),ur=i("p"),ur.textContent=gT,ap=s(),f(Zs.$$.fragment),op=s(),O=i("div"),f(Fs.$$.fragment),xm=s(),Tr=i("p"),Tr.innerHTML=uT,vm=s(),f(mt.$$.fragment),km=s(),br=i("p"),br.innerHTML=TT,Um=s(),yr=i("p"),yr.innerHTML=bT,jm=s(),wr=i("p"),wr.innerHTML=yT,$m=s(),ht=i("div"),f(Ds.$$.fragment),Jm=s(),Mr=i("p"),Mr.textContent=wT,rp=s(),f(Rs.$$.fragment),ip=s(),ve=i("div"),f(Vs.$$.fragment),Pm=s(),_r=i("p"),_r.innerHTML=MT,Cm=s(),xr=i("p"),xr.innerHTML=_T,Im=s(),vr=i("p"),vr.innerHTML=xT,qm=s(),ft=i("div"),f(As.$$.fragment),Gm=s(),kr=i("p"),kr.textContent=vT,lp=s(),f(Ns.$$.fragment),cp=s(),H=i("div"),f(Bs.$$.fragment),zm=s(),Ur=i("p"),Ur.innerHTML=kT,Zm=s(),f(gt.$$.fragment),Fm=s(),jr=i("p"),jr.innerHTML=UT,Dm=s(),$r=i("p"),$r.innerHTML=jT,Rm=s(),Jr=i("p"),Jr.innerHTML=$T,Vm=s(),ut=i("div"),f(Ws.$$.fragment),Am=s(),Pr=i("p"),Pr.textContent=JT,pp=s(),f(Ss.$$.fragment),dp=s(),Y=i("div"),f(Ls.$$.fragment),Nm=s(),Cr=i("p"),Cr.innerHTML=PT,Bm=s(),f(Tt.$$.fragment),Wm=s(),Ir=i("p"),Ir.innerHTML=CT,Sm=s(),qr=i("p"),qr.innerHTML=IT,Lm=s(),Gr=i("p"),Gr.innerHTML=qT,Om=s(),bt=i("div"),f(Os.$$.fragment),Hm=s(),zr=i("p"),zr.textContent=GT,mp=s(),f(Hs.$$.fragment),hp=s(),Ys=i("p"),Ys.textContent=zT,fp=s(),f(Es.$$.fragment),gp=s(),pe=i("div"),f(Qs.$$.fragment),Ym=s(),Zr=i("p"),Zr.innerHTML=ZT,Em=s(),f(yt.$$.fragment),Qm=s(),wt=i("div"),f(Xs.$$.fragment),Xm=s(),Fr=i("p"),Fr.innerHTML=FT,Km=s(),Mt=i("div"),f(Ks.$$.fragment),eh=s(),Dr=i("p"),Dr.innerHTML=DT,th=s(),_t=i("div"),f(ea.$$.fragment),nh=s(),Rr=i("p"),Rr.textContent=RT,up=s(),E=i("div"),f(ta.$$.fragment),sh=s(),Vr=i("p"),Vr.textContent=VT,ah=s(),f(xt.$$.fragment),oh=s(),Ar=i("p"),Ar.innerHTML=AT,rh=s(),Nr=i("p"),Nr.innerHTML=NT,ih=s(),Br=i("p"),Br.innerHTML=BT,lh=s(),vt=i("div"),f(na.$$.fragment),ch=s(),Wr=i("p"),Wr.textContent=WT,Tp=s(),f(sa.$$.fragment),bp=s(),G=i("div"),f(aa.$$.fragment),ph=s(),Sr=i("p"),Sr.innerHTML=ST,dh=s(),f(kt.$$.fragment),mh=s(),Lr=i("p"),Lr.innerHTML=LT,hh=s(),Or=i("p"),Or.innerHTML=OT,fh=s(),Hr=i("p"),Hr.innerHTML=HT,gh=s(),f(Ut.$$.fragment),uh=s(),f(jt.$$.fragment),Th=s(),$t=i("div"),f(oa.$$.fragment),bh=s(),Yr=i("p"),Yr.textContent=YT,yp=s(),f(ra.$$.fragment),wp=s(),z=i("div"),f(ia.$$.fragment),yh=s(),Er=i("p"),Er.innerHTML=ET,wh=s(),f(Jt.$$.fragment),Mh=s(),Qr=i("p"),Qr.innerHTML=QT,_h=s(),Xr=i("p"),Xr.innerHTML=XT,xh=s(),Kr=i("p"),Kr.innerHTML=KT,vh=s(),Pt=i("div"),f(la.$$.fragment),kh=s(),ei=i("p"),ei.textContent=eb,Uh=s(),Ne=i("div"),f(ca.$$.fragment),jh=s(),ti=i("p"),ti.innerHTML=tb,$h=s(),ni=i("p"),ni.textContent=nb,Jh=s(),Ct=i("div"),f(pa.$$.fragment),Ph=s(),si=i("p"),si.textContent=sb,Mp=s(),f(da.$$.fragment),_p=s(),de=i("div"),f(ma.$$.fragment),Ch=s(),ai=i("p"),ai.textContent=ab,Ih=s(),oi=i("p"),oi.innerHTML=ob,qh=s(),ri=i("p"),ri.innerHTML=rb,Gh=s(),f(It.$$.fragment),zh=s(),qt=i("div"),f(ha.$$.fragment),Zh=s(),ii=i("p"),ii.textContent=ib,xp=s(),f(fa.$$.fragment),vp=s(),Q=i("div"),f(ga.$$.fragment),Fh=s(),li=i("p"),li.innerHTML=lb,Dh=s(),f(Gt.$$.fragment),Rh=s(),ci=i("p"),ci.innerHTML=cb,Vh=s(),pi=i("p"),pi.innerHTML=pb,Ah=s(),di=i("p"),di.innerHTML=db,Nh=s(),ae=i("div"),f(ua.$$.fragment),Bh=s(),mi=i("p"),mi.textContent=mb,Wh=s(),hi=i("ul"),hi.innerHTML=hb,Sh=s(),fi=i("p"),fi.innerHTML=fb,Lh=s(),f(zt.$$.fragment),Oh=s(),gi=i("p"),gi.textContent=gb,Hh=s(),f(Zt.$$.fragment),kp=s(),f(Ta.$$.fragment),Up=s(),V=i("div"),f(ba.$$.fragment),Yh=s(),ui=i("p"),ui.innerHTML=ub,Eh=s(),f(Ft.$$.fragment),Qh=s(),Ti=i("p"),Ti.innerHTML=Tb,Xh=s(),bi=i("p"),bi.innerHTML=bb,Kh=s(),yi=i("p"),yi.innerHTML=yb,ef=s(),wi=i("p"),wi.innerHTML=wb,tf=s(),Dt=i("div"),f(ya.$$.fragment),nf=s(),Mi=i("p"),Mi.textContent=Mb,jp=s(),f(wa.$$.fragment),$p=s(),X=i("div"),f(Ma.$$.fragment),sf=s(),_i=i("p"),_i.innerHTML=_b,af=s(),f(Rt.$$.fragment),of=s(),xi=i("p"),xi.innerHTML=xb,rf=s(),vi=i("p"),vi.innerHTML=vb,lf=s(),ki=i("p"),ki.innerHTML=kb,cf=s(),Vt=i("div"),f(_a.$$.fragment),pf=s(),Ui=i("p"),Ui.textContent=Ub,Jp=s(),f(xa.$$.fragment),Pp=s(),Z=i("div"),f(va.$$.fragment),df=s(),ji=i("p"),ji.textContent=jb,mf=s(),f(At.$$.fragment),hf=s(),$i=i("p"),$i.innerHTML=$b,ff=s(),Ji=i("p"),Ji.innerHTML=Jb,gf=s(),Pi=i("p"),Pi.innerHTML=Pb,uf=s(),f(Nt.$$.fragment),Tf=s(),Bt=i("div"),f(ka.$$.fragment),bf=s(),Ci=i("p"),Ci.textContent=Cb,yf=s(),Wt=i("div"),f(Ua.$$.fragment),wf=s(),Ii=i("p"),Ii.textContent=Ib,Cp=s(),f(ja.$$.fragment),Ip=s(),q=i("div"),f($a.$$.fragment),Mf=s(),qi=i("p"),qi.innerHTML=qb,_f=s(),f(St.$$.fragment),xf=s(),Gi=i("p"),Gi.innerHTML=Gb,vf=s(),zi=i("p"),zi.innerHTML=zb,kf=s(),Zi=i("p"),Zi.innerHTML=Zb,Uf=s(),Lt=i("div"),f(Ja.$$.fragment),jf=s(),Fi=i("p"),Fi.textContent=Fb,$f=s(),Be=i("div"),f(Pa.$$.fragment),Jf=s(),Di=i("p"),Di.textContent=Db,Pf=s(),Ri=i("p"),Ri.textContent=Rb,Cf=s(),Ot=i("div"),f(Ca.$$.fragment),If=s(),Vi=i("p"),Vi.textContent=Vb,qf=s(),Ht=i("div"),f(Ia.$$.fragment),Gf=s(),Ai=i("p"),Ai.textContent=Ab,zf=s(),Yt=i("div"),f(qa.$$.fragment),Zf=s(),Ni=i("p"),Ni.textContent=Nb,qp=s(),f(Ga.$$.fragment),Gp=s(),me=i("div"),f(za.$$.fragment),Ff=s(),Bi=i("p"),Bi.textContent=Bb,Df=s(),Wi=i("p"),Wi.innerHTML=Wb,Rf=s(),Si=i("p"),Si.innerHTML=Sb,Vf=s(),f(Et.$$.fragment),Af=s(),Qt=i("div"),f(Za.$$.fragment),Nf=s(),Li=i("p"),Li.textContent=Lb,zp=s(),f(Fa.$$.fragment),Zp=s(),A=i("div"),f(Da.$$.fragment),Bf=s(),Oi=i("p"),Oi.innerHTML=Ob,Wf=s(),Hi=i("p"),Hi.innerHTML=Hb,Sf=s(),f(Xt.$$.fragment),Lf=s(),Yi=i("p"),Yi.innerHTML=Yb,Of=s(),Ei=i("p"),Ei.innerHTML=Eb,Hf=s(),Qi=i("p"),Qi.innerHTML=Qb,Yf=s(),Kt=i("div"),f(Ra.$$.fragment),Ef=s(),Xi=i("p"),Xi.innerHTML=Xb,Fp=s(),f(Va.$$.fragment),Dp=s(),Aa=i("p"),Aa.textContent=Kb,Rp=s(),f(Na.$$.fragment),Vp=s(),K=i("div"),f(Ba.$$.fragment),Qf=s(),Ki=i("p"),Ki.innerHTML=ey,Xf=s(),f(en.$$.fragment),Kf=s(),el=i("p"),el.innerHTML=ty,eg=s(),tl=i("p"),tl.innerHTML=ny,tg=s(),nl=i("p"),nl.innerHTML=sy,ng=s(),Re=i("div"),f(Wa.$$.fragment),sg=s(),sl=i("p"),sl.innerHTML=ay,ag=s(),al=i("p"),al.textContent=oy,og=s(),ol=i("ul"),ol.innerHTML=ry,Ap=s(),f(Sa.$$.fragment),Np=s(),ee=i("div"),f(La.$$.fragment),rg=s(),rl=i("p"),rl.textContent=iy,ig=s(),f(tn.$$.fragment),lg=s(),il=i("p"),il.innerHTML=ly,cg=s(),ll=i("p"),ll.innerHTML=cy,pg=s(),cl=i("p"),cl.innerHTML=py,dg=s(),nn=i("div"),f(Oa.$$.fragment),mg=s(),pl=i("p"),pl.textContent=dy,Bp=s(),f(Ha.$$.fragment),Wp=s(),te=i("div"),f(Ya.$$.fragment),hg=s(),dl=i("p"),dl.innerHTML=my,fg=s(),f(sn.$$.fragment),gg=s(),ml=i("p"),ml.innerHTML=hy,ug=s(),hl=i("p"),hl.textContent=fy,Tg=s(),fl=i("p"),fl.innerHTML=gy,bg=s(),an=i("div"),f(Ea.$$.fragment),yg=s(),gl=i("p"),gl.textContent=uy,Sp=s(),f(Qa.$$.fragment),Lp=s(),F=i("div"),f(Xa.$$.fragment),wg=s(),ul=i("p"),ul.innerHTML=Ty,Mg=s(),Tl=i("p"),Tl.textContent=by,_g=s(),bl=i("ol"),bl.innerHTML=yy,xg=s(),f(on.$$.fragment),vg=s(),yl=i("p"),yl.innerHTML=wy,kg=s(),wl=i("p"),wl.innerHTML=My,Ug=s(),Ml=i("p"),Ml.innerHTML=_y,jg=s(),rn=i("div"),f(Ka.$$.fragment),$g=s(),_l=i("p"),_l.textContent=xy,Op=s(),f(eo.$$.fragment),Hp=s(),ne=i("div"),f(to.$$.fragment),Jg=s(),xl=i("p"),xl.innerHTML=vy,Pg=s(),f(ln.$$.fragment),Cg=s(),vl=i("p"),vl.innerHTML=ky,Ig=s(),kl=i("p"),kl.innerHTML=Uy,qg=s(),Ul=i("p"),Ul.innerHTML=jy,Gg=s(),We=i("div"),f(no.$$.fragment),zg=s(),jl=i("p"),jl.textContent=$y,Zg=s(),$l=i("ul"),$l.innerHTML=Jy,Yp=s(),f(so.$$.fragment),Ep=s(),C=i("div"),f(ao.$$.fragment),Fg=s(),Jl=i("p"),Jl.textContent=Py,Dg=s(),Pl=i("p"),Pl.textContent=Cy,Rg=s(),Cl=i("p"),Cl.textContent=Iy,Vg=s(),Il=i("p"),Il.textContent=qy,Ag=s(),ql=i("p"),ql.innerHTML=Gy,Ng=s(),cn=i("div"),f(oo.$$.fragment),Bg=s(),Gl=i("p"),Gl.textContent=zy,Wg=s(),Se=i("div"),f(ro.$$.fragment),Sg=s(),zl=i("p"),zl.textContent=Zy,Lg=s(),f(pn.$$.fragment),Og=s(),dn=i("div"),f(io.$$.fragment),Hg=s(),Zl=i("p"),Zl.textContent=Fy,Yg=s(),mn=i("div"),f(lo.$$.fragment),Eg=s(),Fl=i("p"),Fl.innerHTML=Dy,Qg=s(),hn=i("div"),f(co.$$.fragment),Xg=s(),Dl=i("p"),Dl.innerHTML=Ry,Kg=s(),fn=i("div"),f(po.$$.fragment),eu=s(),Rl=i("p"),Rl.innerHTML=Vy,tu=s(),gn=i("div"),f(mo.$$.fragment),nu=s(),Vl=i("p"),Vl.textContent=Ay,su=s(),un=i("div"),f(ho.$$.fragment),au=s(),Al=i("p"),Al.innerHTML=Ny,Qp=s(),Ll=i("p"),this.h()},l(e){const c=Oy("svelte-u9bgzb",document.head);r=l(c,"META",{name:!0,content:!0}),c.forEach(o),_=a(e),h=l(e,"P",{}),v(h).forEach(o),p=a(e),g(w.$$.fragment,e),t=a(e),M=l(e,"P",{"data-svelte-h":!0}),m(M)!=="svelte-bnmuag"&&(M.innerHTML=Sl),Ol=a(e),bn=l(e,"P",{"data-svelte-h":!0}),m(bn)!=="svelte-yt9cfz"&&(bn.textContent=ou),Hl=a(e),yn=l(e,"UL",{"data-svelte-h":!0}),m(yn)!=="svelte-1l0msj6"&&(yn.innerHTML=ru),Yl=a(e),g(wn.$$.fragment,e),El=a(e),Mn=l(e,"P",{"data-svelte-h":!0}),m(Mn)!=="svelte-l2tdp3"&&(Mn.innerHTML=iu),Ql=a(e),_n=l(e,"P",{"data-svelte-h":!0}),m(_n)!=="svelte-1x7q2yo"&&(_n.textContent=lu),Xl=a(e),g(xn.$$.fragment,e),Kl=a(e),vn=l(e,"P",{"data-svelte-h":!0}),m(vn)!=="svelte-19h1yua"&&(vn.innerHTML=cu),ec=a(e),g(kn.$$.fragment,e),tc=a(e),Un=l(e,"P",{"data-svelte-h":!0}),m(Un)!=="svelte-10lm9b0"&&(Un.innerHTML=pu),nc=a(e),g(jn.$$.fragment,e),sc=a(e),$n=l(e,"P",{"data-svelte-h":!0}),m($n)!=="svelte-ww9dn5"&&($n.innerHTML=du),ac=a(e),g(Jn.$$.fragment,e),oc=a(e),Pn=l(e,"P",{"data-svelte-h":!0}),m(Pn)!=="svelte-1k2h3v5"&&(Pn.textContent=mu),rc=a(e),g(Cn.$$.fragment,e),ic=a(e),_e=l(e,"DIV",{class:!0});var Ze=v(_e);g(In.$$.fragment,Ze),Md=a(Ze),qo=l(Ze,"P",{"data-svelte-h":!0}),m(qo)!=="svelte-1aijr1g"&&(qo.innerHTML=hu),_d=a(Ze),Go=l(Ze,"P",{"data-svelte-h":!0}),m(Go)!=="svelte-1lntif9"&&(Go.textContent=fu),xd=a(Ze),zo=l(Ze,"UL",{"data-svelte-h":!0}),m(zo)!=="svelte-18neydl"&&(zo.innerHTML=gu),vd=a(Ze),g(Oe.$$.fragment,Ze),Ze.forEach(o),lc=a(e),g(qn.$$.fragment,e),cc=a(e),Gn=l(e,"P",{"data-svelte-h":!0}),m(Gn)!=="svelte-1apicn"&&(Gn.innerHTML=uu),pc=a(e),g(zn.$$.fragment,e),dc=a(e),g(He.$$.fragment,e),mc=a(e),g(Zn.$$.fragment,e),hc=a(e),g(Fn.$$.fragment,e),fc=a(e),Dn=l(e,"P",{"data-svelte-h":!0}),m(Dn)!=="svelte-be3eiz"&&(Dn.textContent=Tu),gc=a(e),g(Rn.$$.fragment,e),uc=a(e),Vn=l(e,"P",{"data-svelte-h":!0}),m(Vn)!=="svelte-vxw3p4"&&(Vn.innerHTML=bu),Tc=a(e),g(An.$$.fragment,e),bc=a(e),Nn=l(e,"P",{"data-svelte-h":!0}),m(Nn)!=="svelte-15t12x9"&&(Nn.textContent=yu),yc=a(e),Bn=l(e,"P",{"data-svelte-h":!0}),m(Bn)!=="svelte-qy4tut"&&(Bn.textContent=wu),wc=a(e),Wn=l(e,"UL",{"data-svelte-h":!0}),m(Wn)!=="svelte-12brtl5"&&(Wn.innerHTML=Mu),Mc=a(e),g(Sn.$$.fragment,e),_c=a(e),Ln=l(e,"P",{"data-svelte-h":!0}),m(Ln)!=="svelte-8boz4s"&&(Ln.innerHTML=_u),xc=a(e),On=l(e,"P",{"data-svelte-h":!0}),m(On)!=="svelte-1e8h99m"&&(On.innerHTML=xu),vc=a(e),g(Hn.$$.fragment,e),kc=a(e),Yn=l(e,"P",{"data-svelte-h":!0}),m(Yn)!=="svelte-jrh3w"&&(Yn.textContent=vu),Uc=a(e),g(En.$$.fragment,e),jc=a(e),Qn=l(e,"P",{"data-svelte-h":!0}),m(Qn)!=="svelte-1bbc8q3"&&(Qn.textContent=ku),$c=a(e),Xn=l(e,"P",{"data-svelte-h":!0}),m(Xn)!=="svelte-tu5fem"&&(Xn.innerHTML=Uu),Jc=a(e),g(Kn.$$.fragment,e),Pc=a(e),es=l(e,"P",{"data-svelte-h":!0}),m(es)!=="svelte-v57rju"&&(es.textContent=ju),Cc=a(e),ts=l(e,"P",{"data-svelte-h":!0}),m(ts)!=="svelte-15o5e7w"&&(ts.innerHTML=$u),Ic=a(e),ns=l(e,"P",{"data-svelte-h":!0}),m(ns)!=="svelte-g2hs1z"&&(ns.textContent=Ju),qc=a(e),ss=l(e,"UL",{"data-svelte-h":!0}),m(ss)!=="svelte-bkoq64"&&(ss.innerHTML=Pu),Gc=a(e),g(as.$$.fragment,e),zc=a(e),os=l(e,"P",{"data-svelte-h":!0}),m(os)!=="svelte-19c7ukz"&&(os.textContent=Cu),Zc=a(e),g(rs.$$.fragment,e),Fc=a(e),is=l(e,"P",{"data-svelte-h":!0}),m(is)!=="svelte-1dtjdk1"&&(is.innerHTML=Iu),Dc=a(e),g(ls.$$.fragment,e),Rc=a(e),cs=l(e,"P",{"data-svelte-h":!0}),m(cs)!=="svelte-1uac455"&&(cs.textContent=qu),Vc=a(e),g(ps.$$.fragment,e),Ac=a(e),W=l(e,"DIV",{class:!0});var he=v(W);g(ds.$$.fragment,he),kd=a(he),Zo=l(he,"P",{"data-svelte-h":!0}),m(Zo)!=="svelte-1wmh7ni"&&(Zo.innerHTML=Gu),Ud=a(he),g(Ye.$$.fragment,he),jd=a(he),Fo=l(he,"P",{"data-svelte-h":!0}),m(Fo)!=="svelte-13rexfx"&&(Fo.innerHTML=zu),$d=a(he),Do=l(he,"P",{"data-svelte-h":!0}),m(Do)!=="svelte-1ak111q"&&(Do.innerHTML=Zu),Jd=a(he),Ro=l(he,"P",{"data-svelte-h":!0}),m(Ro)!=="svelte-1pv1mxa"&&(Ro.innerHTML=Fu),Pd=a(he),Ee=l(he,"DIV",{class:!0});var fo=v(Ee);g(ms.$$.fragment,fo),Cd=a(fo),Vo=l(fo,"P",{"data-svelte-h":!0}),m(Vo)!=="svelte-9s2hnt"&&(Vo.innerHTML=Du),fo.forEach(o),he.forEach(o),Nc=a(e),g(hs.$$.fragment,e),Bc=a(e),ie=l(e,"DIV",{class:!0});var ke=v(ie);g(fs.$$.fragment,ke),Id=a(ke),Ao=l(ke,"P",{"data-svelte-h":!0}),m(Ao)!=="svelte-vm8asa"&&(Ao.textContent=Ru),qd=a(ke),No=l(ke,"P",{"data-svelte-h":!0}),m(No)!=="svelte-1l0gjoy"&&(No.textContent=Vu),Gd=a(ke),g(Qe.$$.fragment,ke),zd=a(ke),Bo=l(ke,"P",{"data-svelte-h":!0}),m(Bo)!=="svelte-13rexfx"&&(Bo.innerHTML=Au),Zd=a(ke),Xe=l(ke,"DIV",{class:!0});var go=v(Xe);g(gs.$$.fragment,go),Fd=a(go),Wo=l(go,"P",{"data-svelte-h":!0}),m(Wo)!=="svelte-1lc6q34"&&(Wo.innerHTML=Nu),go.forEach(o),ke.forEach(o),Wc=a(e),g(us.$$.fragment,e),Sc=a(e),R=l(e,"DIV",{class:!0});var se=v(R);g(Ts.$$.fragment,se),Dd=a(se),So=l(se,"P",{"data-svelte-h":!0}),m(So)!=="svelte-y1s454"&&(So.innerHTML=Bu),Rd=a(se),g(Ke.$$.fragment,se),Vd=a(se),Lo=l(se,"P",{"data-svelte-h":!0}),m(Lo)!=="svelte-13rexfx"&&(Lo.innerHTML=Wu),Ad=a(se),g(et.$$.fragment,se),Nd=a(se),Oo=l(se,"P",{"data-svelte-h":!0}),m(Oo)!=="svelte-4w0fiw"&&(Oo.innerHTML=Su),Bd=a(se),Ho=l(se,"P",{"data-svelte-h":!0}),m(Ho)!=="svelte-1g4o6wf"&&(Ho.innerHTML=Lu),Wd=a(se),tt=l(se,"DIV",{class:!0});var uo=v(tt);g(bs.$$.fragment,uo),Sd=a(uo),Yo=l(uo,"P",{"data-svelte-h":!0}),m(Yo)!=="svelte-1cp0fos"&&(Yo.innerHTML=Ou),uo.forEach(o),se.forEach(o),Lc=a(e),g(ys.$$.fragment,e),Oc=a(e),xe=l(e,"DIV",{class:!0});var Fe=v(xe);g(ws.$$.fragment,Fe),Ld=a(Fe),Eo=l(Fe,"P",{"data-svelte-h":!0}),m(Eo)!=="svelte-tmg4zt"&&(Eo.innerHTML=Hu),Od=a(Fe),g(nt.$$.fragment,Fe),Hd=a(Fe),Qo=l(Fe,"P",{"data-svelte-h":!0}),m(Qo)!=="svelte-1tvumv9"&&(Qo.innerHTML=Yu),Yd=a(Fe),st=l(Fe,"DIV",{class:!0});var To=v(st);g(Ms.$$.fragment,To),Ed=a(To),Xo=l(To,"P",{"data-svelte-h":!0}),m(Xo)!=="svelte-kd58rd"&&(Xo.textContent=Eu),To.forEach(o),Fe.forEach(o),Hc=a(e),g(_s.$$.fragment,e),Yc=a(e),xs=l(e,"P",{"data-svelte-h":!0}),m(xs)!=="svelte-10a8pps"&&(xs.textContent=Qu),Ec=a(e),g(vs.$$.fragment,e),Qc=a(e),S=l(e,"DIV",{class:!0});var fe=v(S);g(ks.$$.fragment,fe),Qd=a(fe),Ko=l(fe,"P",{"data-svelte-h":!0}),m(Ko)!=="svelte-cmozej"&&(Ko.innerHTML=Xu),Xd=a(fe),g(at.$$.fragment,fe),Kd=a(fe),er=l(fe,"P",{"data-svelte-h":!0}),m(er)!=="svelte-13rexfx"&&(er.innerHTML=Ku),em=a(fe),tr=l(fe,"P",{"data-svelte-h":!0}),m(tr)!=="svelte-19lyb9o"&&(tr.innerHTML=eT),tm=a(fe),nr=l(fe,"P",{"data-svelte-h":!0}),m(nr)!=="svelte-6trb8y"&&(nr.innerHTML=tT),nm=a(fe),ot=l(fe,"DIV",{class:!0});var bo=v(ot);g(Us.$$.fragment,bo),sm=a(bo),sr=l(bo,"P",{"data-svelte-h":!0}),m(sr)!=="svelte-ypfmt8"&&(sr.textContent=nT),bo.forEach(o),fe.forEach(o),Xc=a(e),g(js.$$.fragment,e),Kc=a(e),L=l(e,"DIV",{class:!0});var ge=v(L);g($s.$$.fragment,ge),am=a(ge),ar=l(ge,"P",{"data-svelte-h":!0}),m(ar)!=="svelte-rlbi70"&&(ar.innerHTML=sT),om=a(ge),g(rt.$$.fragment,ge),rm=a(ge),or=l(ge,"P",{"data-svelte-h":!0}),m(or)!=="svelte-13rexfx"&&(or.innerHTML=aT),im=a(ge),rr=l(ge,"P",{"data-svelte-h":!0}),m(rr)!=="svelte-unitfs"&&(rr.innerHTML=oT),lm=a(ge),ir=l(ge,"P",{"data-svelte-h":!0}),m(ir)!=="svelte-cqpf5t"&&(ir.innerHTML=rT),cm=a(ge),it=l(ge,"DIV",{class:!0});var yo=v(it);g(Js.$$.fragment,yo),pm=a(yo),lr=l(yo,"P",{"data-svelte-h":!0}),m(lr)!=="svelte-ypfmt8"&&(lr.textContent=iT),yo.forEach(o),ge.forEach(o),ep=a(e),g(Ps.$$.fragment,e),tp=a(e),le=l(e,"DIV",{class:!0});var Ue=v(le);g(Cs.$$.fragment,Ue),dm=a(Ue),cr=l(Ue,"P",{"data-svelte-h":!0}),m(cr)!=="svelte-1y2a978"&&(cr.innerHTML=lT),mm=a(Ue),g(lt.$$.fragment,Ue),hm=a(Ue),pr=l(Ue,"P",{"data-svelte-h":!0}),m(pr)!=="svelte-137rgw8"&&(pr.innerHTML=cT),fm=a(Ue),dr=l(Ue,"P",{"data-svelte-h":!0}),m(dr)!=="svelte-151zbn3"&&(dr.innerHTML=pT),gm=a(Ue),ct=l(Ue,"DIV",{class:!0});var wo=v(ct);g(Is.$$.fragment,wo),um=a(wo),mr=l(wo,"P",{"data-svelte-h":!0}),m(mr)!=="svelte-1qn9qfa"&&(mr.textContent=dT),wo.forEach(o),Ue.forEach(o),np=a(e),g(qs.$$.fragment,e),sp=a(e),ce=l(e,"DIV",{class:!0});var je=v(ce);g(Gs.$$.fragment,je),Tm=a(je),hr=l(je,"P",{"data-svelte-h":!0}),m(hr)!=="svelte-5hn3v1"&&(hr.innerHTML=mT),bm=a(je),g(pt.$$.fragment,je),ym=a(je),fr=l(je,"P",{"data-svelte-h":!0}),m(fr)!=="svelte-1h6krql"&&(fr.innerHTML=hT),wm=a(je),gr=l(je,"P",{"data-svelte-h":!0}),m(gr)!=="svelte-1pm9980"&&(gr.innerHTML=fT),Mm=a(je),dt=l(je,"DIV",{class:!0});var Mo=v(dt);g(zs.$$.fragment,Mo),_m=a(Mo),ur=l(Mo,"P",{"data-svelte-h":!0}),m(ur)!=="svelte-1ega32d"&&(ur.textContent=gT),Mo.forEach(o),je.forEach(o),ap=a(e),g(Zs.$$.fragment,e),op=a(e),O=l(e,"DIV",{class:!0});var ue=v(O);g(Fs.$$.fragment,ue),xm=a(ue),Tr=l(ue,"P",{"data-svelte-h":!0}),m(Tr)!=="svelte-1c7y9od"&&(Tr.innerHTML=uT),vm=a(ue),g(mt.$$.fragment,ue),km=a(ue),br=l(ue,"P",{"data-svelte-h":!0}),m(br)!=="svelte-13rexfx"&&(br.innerHTML=TT),Um=a(ue),yr=l(ue,"P",{"data-svelte-h":!0}),m(yr)!=="svelte-1jrscey"&&(yr.innerHTML=bT),jm=a(ue),wr=l(ue,"P",{"data-svelte-h":!0}),m(wr)!=="svelte-1ea8edc"&&(wr.innerHTML=yT),$m=a(ue),ht=l(ue,"DIV",{class:!0});var _o=v(ht);g(Ds.$$.fragment,_o),Jm=a(_o),Mr=l(_o,"P",{"data-svelte-h":!0}),m(Mr)!=="svelte-1ws18e1"&&(Mr.textContent=wT),_o.forEach(o),ue.forEach(o),rp=a(e),g(Rs.$$.fragment,e),ip=a(e),ve=l(e,"DIV",{class:!0});var De=v(ve);g(Vs.$$.fragment,De),Pm=a(De),_r=l(De,"P",{"data-svelte-h":!0}),m(_r)!=="svelte-115eloe"&&(_r.innerHTML=MT),Cm=a(De),xr=l(De,"P",{"data-svelte-h":!0}),m(xr)!=="svelte-19a94lg"&&(xr.innerHTML=_T),Im=a(De),vr=l(De,"P",{"data-svelte-h":!0}),m(vr)!=="svelte-38n9pn"&&(vr.innerHTML=xT),qm=a(De),ft=l(De,"DIV",{class:!0});var xo=v(ft);g(As.$$.fragment,xo),Gm=a(xo),kr=l(xo,"P",{"data-svelte-h":!0}),m(kr)!=="svelte-1wpkis2"&&(kr.textContent=vT),xo.forEach(o),De.forEach(o),lp=a(e),g(Ns.$$.fragment,e),cp=a(e),H=l(e,"DIV",{class:!0});var Te=v(H);g(Bs.$$.fragment,Te),zm=a(Te),Ur=l(Te,"P",{"data-svelte-h":!0}),m(Ur)!=="svelte-1lqk35m"&&(Ur.innerHTML=kT),Zm=a(Te),g(gt.$$.fragment,Te),Fm=a(Te),jr=l(Te,"P",{"data-svelte-h":!0}),m(jr)!=="svelte-13rexfx"&&(jr.innerHTML=UT),Dm=a(Te),$r=l(Te,"P",{"data-svelte-h":!0}),m($r)!=="svelte-1j1dg"&&($r.innerHTML=jT),Rm=a(Te),Jr=l(Te,"P",{"data-svelte-h":!0}),m(Jr)!=="svelte-ab0ict"&&(Jr.innerHTML=$T),Vm=a(Te),ut=l(Te,"DIV",{class:!0});var vo=v(ut);g(Ws.$$.fragment,vo),Am=a(vo),Pr=l(vo,"P",{"data-svelte-h":!0}),m(Pr)!=="svelte-ypfmt8"&&(Pr.textContent=JT),vo.forEach(o),Te.forEach(o),pp=a(e),g(Ss.$$.fragment,e),dp=a(e),Y=l(e,"DIV",{class:!0});var be=v(Y);g(Ls.$$.fragment,be),Nm=a(be),Cr=l(be,"P",{"data-svelte-h":!0}),m(Cr)!=="svelte-zegbdg"&&(Cr.innerHTML=PT),Bm=a(be),g(Tt.$$.fragment,be),Wm=a(be),Ir=l(be,"P",{"data-svelte-h":!0}),m(Ir)!=="svelte-13rexfx"&&(Ir.innerHTML=CT),Sm=a(be),qr=l(be,"P",{"data-svelte-h":!0}),m(qr)!=="svelte-1v8phum"&&(qr.innerHTML=IT),Lm=a(be),Gr=l(be,"P",{"data-svelte-h":!0}),m(Gr)!=="svelte-1lmpzxi"&&(Gr.innerHTML=qT),Om=a(be),bt=l(be,"DIV",{class:!0});var ko=v(bt);g(Os.$$.fragment,ko),Hm=a(ko),zr=l(ko,"P",{"data-svelte-h":!0}),m(zr)!=="svelte-1ws18e1"&&(zr.textContent=GT),ko.forEach(o),be.forEach(o),mp=a(e),g(Hs.$$.fragment,e),hp=a(e),Ys=l(e,"P",{"data-svelte-h":!0}),m(Ys)!=="svelte-ammvm7"&&(Ys.textContent=zT),fp=a(e),g(Es.$$.fragment,e),gp=a(e),pe=l(e,"DIV",{class:!0});var $e=v(pe);g(Qs.$$.fragment,$e),Ym=a($e),Zr=l($e,"P",{"data-svelte-h":!0}),m(Zr)!=="svelte-t88w7e"&&(Zr.innerHTML=ZT),Em=a($e),g(yt.$$.fragment,$e),Qm=a($e),wt=l($e,"DIV",{class:!0});var Uo=v(wt);g(Xs.$$.fragment,Uo),Xm=a(Uo),Fr=l(Uo,"P",{"data-svelte-h":!0}),m(Fr)!=="svelte-dgjtw0"&&(Fr.innerHTML=FT),Uo.forEach(o),Km=a($e),Mt=l($e,"DIV",{class:!0});var jo=v(Mt);g(Ks.$$.fragment,jo),eh=a(jo),Dr=l(jo,"P",{"data-svelte-h":!0}),m(Dr)!=="svelte-4if1o7"&&(Dr.innerHTML=DT),jo.forEach(o),th=a($e),_t=l($e,"DIV",{class:!0});var $o=v(_t);g(ea.$$.fragment,$o),nh=a($o),Rr=l($o,"P",{"data-svelte-h":!0}),m(Rr)!=="svelte-1atfogl"&&(Rr.textContent=RT),$o.forEach(o),$e.forEach(o),up=a(e),E=l(e,"DIV",{class:!0});var ye=v(E);g(ta.$$.fragment,ye),sh=a(ye),Vr=l(ye,"P",{"data-svelte-h":!0}),m(Vr)!=="svelte-1aof0an"&&(Vr.textContent=VT),ah=a(ye),g(xt.$$.fragment,ye),oh=a(ye),Ar=l(ye,"P",{"data-svelte-h":!0}),m(Ar)!=="svelte-13rexfx"&&(Ar.innerHTML=AT),rh=a(ye),Nr=l(ye,"P",{"data-svelte-h":!0}),m(Nr)!=="svelte-1pioirb"&&(Nr.innerHTML=NT),ih=a(ye),Br=l(ye,"P",{"data-svelte-h":!0}),m(Br)!=="svelte-11boun1"&&(Br.innerHTML=BT),lh=a(ye),vt=l(ye,"DIV",{class:!0});var Jo=v(vt);g(na.$$.fragment,Jo),ch=a(Jo),Wr=l(Jo,"P",{"data-svelte-h":!0}),m(Wr)!=="svelte-71qq28"&&(Wr.textContent=WT),Jo.forEach(o),ye.forEach(o),Tp=a(e),g(sa.$$.fragment,e),bp=a(e),G=l(e,"DIV",{class:!0});var N=v(G);g(aa.$$.fragment,N),ph=a(N),Sr=l(N,"P",{"data-svelte-h":!0}),m(Sr)!=="svelte-1y2vlya"&&(Sr.innerHTML=ST),dh=a(N),g(kt.$$.fragment,N),mh=a(N),Lr=l(N,"P",{"data-svelte-h":!0}),m(Lr)!=="svelte-13rexfx"&&(Lr.innerHTML=LT),hh=a(N),Or=l(N,"P",{"data-svelte-h":!0}),m(Or)!=="svelte-16454vc"&&(Or.innerHTML=OT),fh=a(N),Hr=l(N,"P",{"data-svelte-h":!0}),m(Hr)!=="svelte-6ieg"&&(Hr.innerHTML=HT),gh=a(N),g(Ut.$$.fragment,N),uh=a(N),g(jt.$$.fragment,N),Th=a(N),$t=l(N,"DIV",{class:!0});var Po=v($t);g(oa.$$.fragment,Po),bh=a(Po),Yr=l(Po,"P",{"data-svelte-h":!0}),m(Yr)!=="svelte-1dgb1r"&&(Yr.textContent=YT),Po.forEach(o),N.forEach(o),yp=a(e),g(ra.$$.fragment,e),wp=a(e),z=l(e,"DIV",{class:!0});var B=v(z);g(ia.$$.fragment,B),yh=a(B),Er=l(B,"P",{"data-svelte-h":!0}),m(Er)!=="svelte-81lrkw"&&(Er.innerHTML=ET),wh=a(B),g(Jt.$$.fragment,B),Mh=a(B),Qr=l(B,"P",{"data-svelte-h":!0}),m(Qr)!=="svelte-13rexfx"&&(Qr.innerHTML=QT),_h=a(B),Xr=l(B,"P",{"data-svelte-h":!0}),m(Xr)!=="svelte-kp2mme"&&(Xr.innerHTML=XT),xh=a(B),Kr=l(B,"P",{"data-svelte-h":!0}),m(Kr)!=="svelte-13vdwbu"&&(Kr.innerHTML=KT),vh=a(B),Pt=l(B,"DIV",{class:!0});var Co=v(Pt);g(la.$$.fragment,Co),kh=a(Co),ei=l(Co,"P",{"data-svelte-h":!0}),m(ei)!=="svelte-2lj46g"&&(ei.textContent=eb),Co.forEach(o),Uh=a(B),Ne=l(B,"DIV",{class:!0});var Le=v(Ne);g(ca.$$.fragment,Le),jh=a(Le),ti=l(Le,"P",{"data-svelte-h":!0}),m(ti)!=="svelte-1iglp3e"&&(ti.innerHTML=tb),$h=a(Le),ni=l(Le,"P",{"data-svelte-h":!0}),m(ni)!=="svelte-tiqx9u"&&(ni.textContent=nb),Le.forEach(o),Jh=a(B),Ct=l(B,"DIV",{class:!0});var Io=v(Ct);g(pa.$$.fragment,Io),Ph=a(Io),si=l(Io,"P",{"data-svelte-h":!0}),m(si)!=="svelte-d6foro"&&(si.textContent=sb),Io.forEach(o),B.forEach(o),Mp=a(e),g(da.$$.fragment,e),_p=a(e),de=l(e,"DIV",{class:!0});var Ve=v(de);g(ma.$$.fragment,Ve),Ch=a(Ve),ai=l(Ve,"P",{"data-svelte-h":!0}),m(ai)!=="svelte-4fy8a0"&&(ai.textContent=ab),Ih=a(Ve),oi=l(Ve,"P",{"data-svelte-h":!0}),m(oi)!=="svelte-14i4uks"&&(oi.innerHTML=ob),qh=a(Ve),ri=l(Ve,"P",{"data-svelte-h":!0}),m(ri)!=="svelte-3gfnx6"&&(ri.innerHTML=rb),Gh=a(Ve),g(It.$$.fragment,Ve),zh=a(Ve),qt=l(Ve,"DIV",{class:!0});var Kp=v(qt);g(ha.$$.fragment,Kp),Zh=a(Kp),ii=l(Kp,"P",{"data-svelte-h":!0}),m(ii)!=="svelte-myfdp"&&(ii.textContent=ib),Kp.forEach(o),Ve.forEach(o),xp=a(e),g(fa.$$.fragment,e),vp=a(e),Q=l(e,"DIV",{class:!0});var Je=v(Q);g(ga.$$.fragment,Je),Fh=a(Je),li=l(Je,"P",{"data-svelte-h":!0}),m(li)!=="svelte-1j45sfj"&&(li.innerHTML=lb),Dh=a(Je),g(Gt.$$.fragment,Je),Rh=a(Je),ci=l(Je,"P",{"data-svelte-h":!0}),m(ci)!=="svelte-13rexfx"&&(ci.innerHTML=cb),Vh=a(Je),pi=l(Je,"P",{"data-svelte-h":!0}),m(pi)!=="svelte-1z1t46"&&(pi.innerHTML=pb),Ah=a(Je),di=l(Je,"P",{"data-svelte-h":!0}),m(di)!=="svelte-1jig9aq"&&(di.innerHTML=db),Nh=a(Je),ae=l(Je,"DIV",{class:!0});var Pe=v(ae);g(ua.$$.fragment,Pe),Bh=a(Pe),mi=l(Pe,"P",{"data-svelte-h":!0}),m(mi)!=="svelte-1pyysfu"&&(mi.textContent=mb),Wh=a(Pe),hi=l(Pe,"UL",{"data-svelte-h":!0}),m(hi)!=="svelte-1ny9a5f"&&(hi.innerHTML=hb),Sh=a(Pe),fi=l(Pe,"P",{"data-svelte-h":!0}),m(fi)!=="svelte-11u3uey"&&(fi.innerHTML=fb),Lh=a(Pe),g(zt.$$.fragment,Pe),Oh=a(Pe),gi=l(Pe,"P",{"data-svelte-h":!0}),m(gi)!=="svelte-madj2v"&&(gi.textContent=gb),Hh=a(Pe),g(Zt.$$.fragment,Pe),Pe.forEach(o),Je.forEach(o),kp=a(e),g(Ta.$$.fragment,e),Up=a(e),V=l(e,"DIV",{class:!0});var we=v(V);g(ba.$$.fragment,we),Yh=a(we),ui=l(we,"P",{"data-svelte-h":!0}),m(ui)!=="svelte-n7evf0"&&(ui.innerHTML=ub),Eh=a(we),g(Ft.$$.fragment,we),Qh=a(we),Ti=l(we,"P",{"data-svelte-h":!0}),m(Ti)!=="svelte-13rexfx"&&(Ti.innerHTML=Tb),Xh=a(we),bi=l(we,"P",{"data-svelte-h":!0}),m(bi)!=="svelte-10aloce"&&(bi.innerHTML=bb),Kh=a(we),yi=l(we,"P",{"data-svelte-h":!0}),m(yi)!=="svelte-me3s3q"&&(yi.innerHTML=yb),ef=a(we),wi=l(we,"P",{"data-svelte-h":!0}),m(wi)!=="svelte-1qrdw9i"&&(wi.innerHTML=wb),tf=a(we),Dt=l(we,"DIV",{class:!0});var ed=v(Dt);g(ya.$$.fragment,ed),nf=a(ed),Mi=l(ed,"P",{"data-svelte-h":!0}),m(Mi)!=="svelte-14zfmze"&&(Mi.textContent=Mb),ed.forEach(o),we.forEach(o),jp=a(e),g(wa.$$.fragment,e),$p=a(e),X=l(e,"DIV",{class:!0});var Ce=v(X);g(Ma.$$.fragment,Ce),sf=a(Ce),_i=l(Ce,"P",{"data-svelte-h":!0}),m(_i)!=="svelte-16fty2d"&&(_i.innerHTML=_b),af=a(Ce),g(Rt.$$.fragment,Ce),of=a(Ce),xi=l(Ce,"P",{"data-svelte-h":!0}),m(xi)!=="svelte-26qptp"&&(xi.innerHTML=xb),rf=a(Ce),vi=l(Ce,"P",{"data-svelte-h":!0}),m(vi)!=="svelte-17ox6b9"&&(vi.innerHTML=vb),lf=a(Ce),ki=l(Ce,"P",{"data-svelte-h":!0}),m(ki)!=="svelte-u1i8ee"&&(ki.innerHTML=kb),cf=a(Ce),Vt=l(Ce,"DIV",{class:!0});var td=v(Vt);g(_a.$$.fragment,td),pf=a(td),Ui=l(td,"P",{"data-svelte-h":!0}),m(Ui)!=="svelte-1ql86ls"&&(Ui.textContent=Ub),td.forEach(o),Ce.forEach(o),Jp=a(e),g(xa.$$.fragment,e),Pp=a(e),Z=l(e,"DIV",{class:!0});var oe=v(Z);g(va.$$.fragment,oe),df=a(oe),ji=l(oe,"P",{"data-svelte-h":!0}),m(ji)!=="svelte-xbi6mw"&&(ji.textContent=jb),mf=a(oe),g(At.$$.fragment,oe),hf=a(oe),$i=l(oe,"P",{"data-svelte-h":!0}),m($i)!=="svelte-26qptp"&&($i.innerHTML=$b),ff=a(oe),Ji=l(oe,"P",{"data-svelte-h":!0}),m(Ji)!=="svelte-13l02xy"&&(Ji.innerHTML=Jb),gf=a(oe),Pi=l(oe,"P",{"data-svelte-h":!0}),m(Pi)!=="svelte-1iyxmj8"&&(Pi.innerHTML=Pb),uf=a(oe),g(Nt.$$.fragment,oe),Tf=a(oe),Bt=l(oe,"DIV",{class:!0});var nd=v(Bt);g(ka.$$.fragment,nd),bf=a(nd),Ci=l(nd,"P",{"data-svelte-h":!0}),m(Ci)!=="svelte-48qsnz"&&(Ci.textContent=Cb),nd.forEach(o),yf=a(oe),Wt=l(oe,"DIV",{class:!0});var sd=v(Wt);g(Ua.$$.fragment,sd),wf=a(sd),Ii=l(sd,"P",{"data-svelte-h":!0}),m(Ii)!=="svelte-uzfqtg"&&(Ii.textContent=Ib),sd.forEach(o),oe.forEach(o),Cp=a(e),g(ja.$$.fragment,e),Ip=a(e),q=l(e,"DIV",{class:!0});var D=v(q);g($a.$$.fragment,D),Mf=a(D),qi=l(D,"P",{"data-svelte-h":!0}),m(qi)!=="svelte-15adoar"&&(qi.innerHTML=qb),_f=a(D),g(St.$$.fragment,D),xf=a(D),Gi=l(D,"P",{"data-svelte-h":!0}),m(Gi)!=="svelte-13rexfx"&&(Gi.innerHTML=Gb),vf=a(D),zi=l(D,"P",{"data-svelte-h":!0}),m(zi)!=="svelte-13vabyp"&&(zi.innerHTML=zb),kf=a(D),Zi=l(D,"P",{"data-svelte-h":!0}),m(Zi)!=="svelte-jwg5m8"&&(Zi.innerHTML=Zb),Uf=a(D),Lt=l(D,"DIV",{class:!0});var ad=v(Lt);g(Ja.$$.fragment,ad),jf=a(ad),Fi=l(ad,"P",{"data-svelte-h":!0}),m(Fi)!=="svelte-1fmsbp5"&&(Fi.textContent=Fb),ad.forEach(o),$f=a(D),Be=l(D,"DIV",{class:!0});var Nl=v(Be);g(Pa.$$.fragment,Nl),Jf=a(Nl),Di=l(Nl,"P",{"data-svelte-h":!0}),m(Di)!=="svelte-1qebl0w"&&(Di.textContent=Db),Pf=a(Nl),Ri=l(Nl,"P",{"data-svelte-h":!0}),m(Ri)!=="svelte-m7pmui"&&(Ri.textContent=Rb),Nl.forEach(o),Cf=a(D),Ot=l(D,"DIV",{class:!0});var od=v(Ot);g(Ca.$$.fragment,od),If=a(od),Vi=l(od,"P",{"data-svelte-h":!0}),m(Vi)!=="svelte-lj4b08"&&(Vi.textContent=Vb),od.forEach(o),qf=a(D),Ht=l(D,"DIV",{class:!0});var rd=v(Ht);g(Ia.$$.fragment,rd),Gf=a(rd),Ai=l(rd,"P",{"data-svelte-h":!0}),m(Ai)!=="svelte-226no6"&&(Ai.textContent=Ab),rd.forEach(o),zf=a(D),Yt=l(D,"DIV",{class:!0});var id=v(Yt);g(qa.$$.fragment,id),Zf=a(id),Ni=l(id,"P",{"data-svelte-h":!0}),m(Ni)!=="svelte-vx34uc"&&(Ni.textContent=Nb),id.forEach(o),D.forEach(o),qp=a(e),g(Ga.$$.fragment,e),Gp=a(e),me=l(e,"DIV",{class:!0});var Ae=v(me);g(za.$$.fragment,Ae),Ff=a(Ae),Bi=l(Ae,"P",{"data-svelte-h":!0}),m(Bi)!=="svelte-1ufl6u7"&&(Bi.textContent=Bb),Df=a(Ae),Wi=l(Ae,"P",{"data-svelte-h":!0}),m(Wi)!=="svelte-9cgoy1"&&(Wi.innerHTML=Wb),Rf=a(Ae),Si=l(Ae,"P",{"data-svelte-h":!0}),m(Si)!=="svelte-175zgvy"&&(Si.innerHTML=Sb),Vf=a(Ae),g(Et.$$.fragment,Ae),Af=a(Ae),Qt=l(Ae,"DIV",{class:!0});var ld=v(Qt);g(Za.$$.fragment,ld),Nf=a(ld),Li=l(ld,"P",{"data-svelte-h":!0}),m(Li)!=="svelte-1q7dj96"&&(Li.textContent=Lb),ld.forEach(o),Ae.forEach(o),zp=a(e),g(Fa.$$.fragment,e),Zp=a(e),A=l(e,"DIV",{class:!0});var Me=v(A);g(Da.$$.fragment,Me),Bf=a(Me),Oi=l(Me,"P",{"data-svelte-h":!0}),m(Oi)!=="svelte-gusdnf"&&(Oi.innerHTML=Ob),Wf=a(Me),Hi=l(Me,"P",{"data-svelte-h":!0}),m(Hi)!=="svelte-1hjzyz9"&&(Hi.innerHTML=Hb),Sf=a(Me),g(Xt.$$.fragment,Me),Lf=a(Me),Yi=l(Me,"P",{"data-svelte-h":!0}),m(Yi)!=="svelte-13rexfx"&&(Yi.innerHTML=Yb),Of=a(Me),Ei=l(Me,"P",{"data-svelte-h":!0}),m(Ei)!=="svelte-sy8ct2"&&(Ei.innerHTML=Eb),Hf=a(Me),Qi=l(Me,"P",{"data-svelte-h":!0}),m(Qi)!=="svelte-17eq97f"&&(Qi.innerHTML=Qb),Yf=a(Me),Kt=l(Me,"DIV",{class:!0});var cd=v(Kt);g(Ra.$$.fragment,cd),Ef=a(cd),Xi=l(cd,"P",{"data-svelte-h":!0}),m(Xi)!=="svelte-zzc10h"&&(Xi.innerHTML=Xb),cd.forEach(o),Me.forEach(o),Fp=a(e),g(Va.$$.fragment,e),Dp=a(e),Aa=l(e,"P",{"data-svelte-h":!0}),m(Aa)!=="svelte-azvh9"&&(Aa.textContent=Kb),Rp=a(e),g(Na.$$.fragment,e),Vp=a(e),K=l(e,"DIV",{class:!0});var Ie=v(K);g(Ba.$$.fragment,Ie),Qf=a(Ie),Ki=l(Ie,"P",{"data-svelte-h":!0}),m(Ki)!=="svelte-40flx9"&&(Ki.innerHTML=ey),Xf=a(Ie),g(en.$$.fragment,Ie),Kf=a(Ie),el=l(Ie,"P",{"data-svelte-h":!0}),m(el)!=="svelte-13rexfx"&&(el.innerHTML=ty),eg=a(Ie),tl=l(Ie,"P",{"data-svelte-h":!0}),m(tl)!=="svelte-1br1x1d"&&(tl.innerHTML=ny),tg=a(Ie),nl=l(Ie,"P",{"data-svelte-h":!0}),m(nl)!=="svelte-1akhzjj"&&(nl.innerHTML=sy),ng=a(Ie),Re=l(Ie,"DIV",{class:!0});var Tn=v(Re);g(Wa.$$.fragment,Tn),sg=a(Tn),sl=l(Tn,"P",{"data-svelte-h":!0}),m(sl)!=="svelte-1211nrg"&&(sl.innerHTML=ay),ag=a(Tn),al=l(Tn,"P",{"data-svelte-h":!0}),m(al)!=="svelte-1njhmhw"&&(al.textContent=oy),og=a(Tn),ol=l(Tn,"UL",{"data-svelte-h":!0}),m(ol)!=="svelte-gfpbs1"&&(ol.innerHTML=ry),Tn.forEach(o),Ie.forEach(o),Ap=a(e),g(Sa.$$.fragment,e),Np=a(e),ee=l(e,"DIV",{class:!0});var qe=v(ee);g(La.$$.fragment,qe),rg=a(qe),rl=l(qe,"P",{"data-svelte-h":!0}),m(rl)!=="svelte-aunxv4"&&(rl.textContent=iy),ig=a(qe),g(tn.$$.fragment,qe),lg=a(qe),il=l(qe,"P",{"data-svelte-h":!0}),m(il)!=="svelte-13rexfx"&&(il.innerHTML=ly),cg=a(qe),ll=l(qe,"P",{"data-svelte-h":!0}),m(ll)!=="svelte-8eqi2h"&&(ll.innerHTML=cy),pg=a(qe),cl=l(qe,"P",{"data-svelte-h":!0}),m(cl)!=="svelte-85c9z6"&&(cl.innerHTML=py),dg=a(qe),nn=l(qe,"DIV",{class:!0});var pd=v(nn);g(Oa.$$.fragment,pd),mg=a(pd),pl=l(pd,"P",{"data-svelte-h":!0}),m(pl)!=="svelte-11eoigb"&&(pl.textContent=dy),pd.forEach(o),qe.forEach(o),Bp=a(e),g(Ha.$$.fragment,e),Wp=a(e),te=l(e,"DIV",{class:!0});var Ge=v(te);g(Ya.$$.fragment,Ge),hg=a(Ge),dl=l(Ge,"P",{"data-svelte-h":!0}),m(dl)!=="svelte-yuzbfo"&&(dl.innerHTML=my),fg=a(Ge),g(sn.$$.fragment,Ge),gg=a(Ge),ml=l(Ge,"P",{"data-svelte-h":!0}),m(ml)!=="svelte-13rexfx"&&(ml.innerHTML=hy),ug=a(Ge),hl=l(Ge,"P",{"data-svelte-h":!0}),m(hl)!=="svelte-172bsdq"&&(hl.textContent=fy),Tg=a(Ge),fl=l(Ge,"P",{"data-svelte-h":!0}),m(fl)!=="svelte-6aba0z"&&(fl.innerHTML=gy),bg=a(Ge),an=l(Ge,"DIV",{class:!0});var dd=v(an);g(Ea.$$.fragment,dd),yg=a(dd),gl=l(dd,"P",{"data-svelte-h":!0}),m(gl)!=="svelte-ypfmt8"&&(gl.textContent=uy),dd.forEach(o),Ge.forEach(o),Sp=a(e),g(Qa.$$.fragment,e),Lp=a(e),F=l(e,"DIV",{class:!0});var re=v(F);g(Xa.$$.fragment,re),wg=a(re),ul=l(re,"P",{"data-svelte-h":!0}),m(ul)!=="svelte-yb5i9k"&&(ul.innerHTML=Ty),Mg=a(re),Tl=l(re,"P",{"data-svelte-h":!0}),m(Tl)!=="svelte-1fqmqrc"&&(Tl.textContent=by),_g=a(re),bl=l(re,"OL",{"data-svelte-h":!0}),m(bl)!=="svelte-jptyar"&&(bl.innerHTML=yy),xg=a(re),g(on.$$.fragment,re),vg=a(re),yl=l(re,"P",{"data-svelte-h":!0}),m(yl)!=="svelte-13rexfx"&&(yl.innerHTML=wy),kg=a(re),wl=l(re,"P",{"data-svelte-h":!0}),m(wl)!=="svelte-1gyr592"&&(wl.innerHTML=My),Ug=a(re),Ml=l(re,"P",{"data-svelte-h":!0}),m(Ml)!=="svelte-1oqqq9o"&&(Ml.innerHTML=_y),jg=a(re),rn=l(re,"DIV",{class:!0});var md=v(rn);g(Ka.$$.fragment,md),$g=a(md),_l=l(md,"P",{"data-svelte-h":!0}),m(_l)!=="svelte-qnrg8s"&&(_l.textContent=xy),md.forEach(o),re.forEach(o),Op=a(e),g(eo.$$.fragment,e),Hp=a(e),ne=l(e,"DIV",{class:!0});var ze=v(ne);g(to.$$.fragment,ze),Jg=a(ze),xl=l(ze,"P",{"data-svelte-h":!0}),m(xl)!=="svelte-1lg1j1m"&&(xl.innerHTML=vy),Pg=a(ze),g(ln.$$.fragment,ze),Cg=a(ze),vl=l(ze,"P",{"data-svelte-h":!0}),m(vl)!=="svelte-13rexfx"&&(vl.innerHTML=ky),Ig=a(ze),kl=l(ze,"P",{"data-svelte-h":!0}),m(kl)!=="svelte-1wzmiky"&&(kl.innerHTML=Uy),qg=a(ze),Ul=l(ze,"P",{"data-svelte-h":!0}),m(Ul)!=="svelte-lcegcp"&&(Ul.innerHTML=jy),Gg=a(ze),We=l(ze,"DIV",{class:!0});var Bl=v(We);g(no.$$.fragment,Bl),zg=a(Bl),jl=l(Bl,"P",{"data-svelte-h":!0}),m(jl)!=="svelte-10yp62t"&&(jl.textContent=$y),Zg=a(Bl),$l=l(Bl,"UL",{"data-svelte-h":!0}),m($l)!=="svelte-15cnno4"&&($l.innerHTML=Jy),Bl.forEach(o),ze.forEach(o),Yp=a(e),g(so.$$.fragment,e),Ep=a(e),C=l(e,"DIV",{class:!0});var I=v(C);g(ao.$$.fragment,I),Fg=a(I),Jl=l(I,"P",{"data-svelte-h":!0}),m(Jl)!=="svelte-k7p6k2"&&(Jl.textContent=Py),Dg=a(I),Pl=l(I,"P",{"data-svelte-h":!0}),m(Pl)!=="svelte-3qu5a5"&&(Pl.textContent=Cy),Rg=a(I),Cl=l(I,"P",{"data-svelte-h":!0}),m(Cl)!=="svelte-1mj6jcv"&&(Cl.textContent=Iy),Vg=a(I),Il=l(I,"P",{"data-svelte-h":!0}),m(Il)!=="svelte-pcl79b"&&(Il.textContent=qy),Ag=a(I),ql=l(I,"P",{"data-svelte-h":!0}),m(ql)!=="svelte-1rcbcuj"&&(ql.innerHTML=Gy),Ng=a(I),cn=l(I,"DIV",{class:!0});var hd=v(cn);g(oo.$$.fragment,hd),Bg=a(hd),Gl=l(hd,"P",{"data-svelte-h":!0}),m(Gl)!=="svelte-exnhmi"&&(Gl.textContent=zy),hd.forEach(o),Wg=a(I),Se=l(I,"DIV",{class:!0});var Wl=v(Se);g(ro.$$.fragment,Wl),Sg=a(Wl),zl=l(Wl,"P",{"data-svelte-h":!0}),m(zl)!=="svelte-1piccye"&&(zl.textContent=Zy),Lg=a(Wl),g(pn.$$.fragment,Wl),Wl.forEach(o),Og=a(I),dn=l(I,"DIV",{class:!0});var fd=v(dn);g(io.$$.fragment,fd),Hg=a(fd),Zl=l(fd,"P",{"data-svelte-h":!0}),m(Zl)!=="svelte-p1t4ev"&&(Zl.textContent=Fy),fd.forEach(o),Yg=a(I),mn=l(I,"DIV",{class:!0});var gd=v(mn);g(lo.$$.fragment,gd),Eg=a(gd),Fl=l(gd,"P",{"data-svelte-h":!0}),m(Fl)!=="svelte-2wm42a"&&(Fl.innerHTML=Dy),gd.forEach(o),Qg=a(I),hn=l(I,"DIV",{class:!0});var ud=v(hn);g(co.$$.fragment,ud),Xg=a(ud),Dl=l(ud,"P",{"data-svelte-h":!0}),m(Dl)!=="svelte-10cd17f"&&(Dl.innerHTML=Ry),ud.forEach(o),Kg=a(I),fn=l(I,"DIV",{class:!0});var Td=v(fn);g(po.$$.fragment,Td),eu=a(Td),Rl=l(Td,"P",{"data-svelte-h":!0}),m(Rl)!=="svelte-12sv4vl"&&(Rl.innerHTML=Vy),Td.forEach(o),tu=a(I),gn=l(I,"DIV",{class:!0});var bd=v(gn);g(mo.$$.fragment,bd),nu=a(bd),Vl=l(bd,"P",{"data-svelte-h":!0}),m(Vl)!=="svelte-kp2v8j"&&(Vl.textContent=Ay),bd.forEach(o),su=a(I),un=l(I,"DIV",{class:!0});var yd=v(un);g(ho.$$.fragment,yd),au=a(yd),Al=l(yd,"P",{"data-svelte-h":!0}),m(Al)!=="svelte-10cd17f"&&(Al.innerHTML=Ny),yd.forEach(o),I.forEach(o),Qp=a(e),Ll=l(e,"P",{}),v(Ll).forEach(o),this.h()},h(){k(r,"name","hf:doc:metadata"),k(r,"content",Gw),k(_e,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),k(Ee,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),k(W,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),k(Xe,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),k(ie,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),k(tt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),k(R,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),k(st,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),k(xe,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),k(ot,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),k(S,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),k(it,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),k(L,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),k(ct,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),k(le,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),k(dt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),k(ce,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),k(ht,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),k(O,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),k(ft,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),k(ve,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),k(ut,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),k(H,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),k(bt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),k(Y,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),k(wt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),k(Mt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),k(_t,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),k(pe,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),k(vt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),k(E,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),k($t,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),k(G,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),k(Pt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),k(Ne,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),k(Ct,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),k(z,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),k(qt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),k(de,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),k(ae,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),k(Q,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),k(Dt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),k(V,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),k(Vt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),k(X,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),k(Bt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),k(Wt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),k(Z,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),k(Lt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),k(Be,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),k(Ot,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),k(Ht,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),k(Yt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),k(q,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),k(Qt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),k(me,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),k(Kt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),k(A,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),k(Re,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),k(K,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),k(nn,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),k(ee,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),k(an,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),k(te,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),k(rn,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),k(F,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),k(We,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),k(ne,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),k(cn,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),k(Se,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),k(dn,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),k(mn,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),k(hn,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),k(fn,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),k(gn,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),k(un,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),k(C,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8")},m(e,c){n(document.head,r),d(e,_,c),d(e,h,c),d(e,p,c),u(w,e,c),d(e,t,c),d(e,M,c),d(e,Ol,c),d(e,bn,c),d(e,Hl,c),d(e,yn,c),d(e,Yl,c),u(wn,e,c),d(e,El,c),d(e,Mn,c),d(e,Ql,c),d(e,_n,c),d(e,Xl,c),u(xn,e,c),d(e,Kl,c),d(e,vn,c),d(e,ec,c),u(kn,e,c),d(e,tc,c),d(e,Un,c),d(e,nc,c),u(jn,e,c),d(e,sc,c),d(e,$n,c),d(e,ac,c),u(Jn,e,c),d(e,oc,c),d(e,Pn,c),d(e,rc,c),u(Cn,e,c),d(e,ic,c),d(e,_e,c),u(In,_e,null),n(_e,Md),n(_e,qo),n(_e,_d),n(_e,Go),n(_e,xd),n(_e,zo),n(_e,vd),u(Oe,_e,null),d(e,lc,c),u(qn,e,c),d(e,cc,c),d(e,Gn,c),d(e,pc,c),u(zn,e,c),d(e,dc,c),u(He,e,c),d(e,mc,c),u(Zn,e,c),d(e,hc,c),u(Fn,e,c),d(e,fc,c),d(e,Dn,c),d(e,gc,c),u(Rn,e,c),d(e,uc,c),d(e,Vn,c),d(e,Tc,c),u(An,e,c),d(e,bc,c),d(e,Nn,c),d(e,yc,c),d(e,Bn,c),d(e,wc,c),d(e,Wn,c),d(e,Mc,c),u(Sn,e,c),d(e,_c,c),d(e,Ln,c),d(e,xc,c),d(e,On,c),d(e,vc,c),u(Hn,e,c),d(e,kc,c),d(e,Yn,c),d(e,Uc,c),u(En,e,c),d(e,jc,c),d(e,Qn,c),d(e,$c,c),d(e,Xn,c),d(e,Jc,c),u(Kn,e,c),d(e,Pc,c),d(e,es,c),d(e,Cc,c),d(e,ts,c),d(e,Ic,c),d(e,ns,c),d(e,qc,c),d(e,ss,c),d(e,Gc,c),u(as,e,c),d(e,zc,c),d(e,os,c),d(e,Zc,c),u(rs,e,c),d(e,Fc,c),d(e,is,c),d(e,Dc,c),u(ls,e,c),d(e,Rc,c),d(e,cs,c),d(e,Vc,c),u(ps,e,c),d(e,Ac,c),d(e,W,c),u(ds,W,null),n(W,kd),n(W,Zo),n(W,Ud),u(Ye,W,null),n(W,jd),n(W,Fo),n(W,$d),n(W,Do),n(W,Jd),n(W,Ro),n(W,Pd),n(W,Ee),u(ms,Ee,null),n(Ee,Cd),n(Ee,Vo),d(e,Nc,c),u(hs,e,c),d(e,Bc,c),d(e,ie,c),u(fs,ie,null),n(ie,Id),n(ie,Ao),n(ie,qd),n(ie,No),n(ie,Gd),u(Qe,ie,null),n(ie,zd),n(ie,Bo),n(ie,Zd),n(ie,Xe),u(gs,Xe,null),n(Xe,Fd),n(Xe,Wo),d(e,Wc,c),u(us,e,c),d(e,Sc,c),d(e,R,c),u(Ts,R,null),n(R,Dd),n(R,So),n(R,Rd),u(Ke,R,null),n(R,Vd),n(R,Lo),n(R,Ad),u(et,R,null),n(R,Nd),n(R,Oo),n(R,Bd),n(R,Ho),n(R,Wd),n(R,tt),u(bs,tt,null),n(tt,Sd),n(tt,Yo),d(e,Lc,c),u(ys,e,c),d(e,Oc,c),d(e,xe,c),u(ws,xe,null),n(xe,Ld),n(xe,Eo),n(xe,Od),u(nt,xe,null),n(xe,Hd),n(xe,Qo),n(xe,Yd),n(xe,st),u(Ms,st,null),n(st,Ed),n(st,Xo),d(e,Hc,c),u(_s,e,c),d(e,Yc,c),d(e,xs,c),d(e,Ec,c),u(vs,e,c),d(e,Qc,c),d(e,S,c),u(ks,S,null),n(S,Qd),n(S,Ko),n(S,Xd),u(at,S,null),n(S,Kd),n(S,er),n(S,em),n(S,tr),n(S,tm),n(S,nr),n(S,nm),n(S,ot),u(Us,ot,null),n(ot,sm),n(ot,sr),d(e,Xc,c),u(js,e,c),d(e,Kc,c),d(e,L,c),u($s,L,null),n(L,am),n(L,ar),n(L,om),u(rt,L,null),n(L,rm),n(L,or),n(L,im),n(L,rr),n(L,lm),n(L,ir),n(L,cm),n(L,it),u(Js,it,null),n(it,pm),n(it,lr),d(e,ep,c),u(Ps,e,c),d(e,tp,c),d(e,le,c),u(Cs,le,null),n(le,dm),n(le,cr),n(le,mm),u(lt,le,null),n(le,hm),n(le,pr),n(le,fm),n(le,dr),n(le,gm),n(le,ct),u(Is,ct,null),n(ct,um),n(ct,mr),d(e,np,c),u(qs,e,c),d(e,sp,c),d(e,ce,c),u(Gs,ce,null),n(ce,Tm),n(ce,hr),n(ce,bm),u(pt,ce,null),n(ce,ym),n(ce,fr),n(ce,wm),n(ce,gr),n(ce,Mm),n(ce,dt),u(zs,dt,null),n(dt,_m),n(dt,ur),d(e,ap,c),u(Zs,e,c),d(e,op,c),d(e,O,c),u(Fs,O,null),n(O,xm),n(O,Tr),n(O,vm),u(mt,O,null),n(O,km),n(O,br),n(O,Um),n(O,yr),n(O,jm),n(O,wr),n(O,$m),n(O,ht),u(Ds,ht,null),n(ht,Jm),n(ht,Mr),d(e,rp,c),u(Rs,e,c),d(e,ip,c),d(e,ve,c),u(Vs,ve,null),n(ve,Pm),n(ve,_r),n(ve,Cm),n(ve,xr),n(ve,Im),n(ve,vr),n(ve,qm),n(ve,ft),u(As,ft,null),n(ft,Gm),n(ft,kr),d(e,lp,c),u(Ns,e,c),d(e,cp,c),d(e,H,c),u(Bs,H,null),n(H,zm),n(H,Ur),n(H,Zm),u(gt,H,null),n(H,Fm),n(H,jr),n(H,Dm),n(H,$r),n(H,Rm),n(H,Jr),n(H,Vm),n(H,ut),u(Ws,ut,null),n(ut,Am),n(ut,Pr),d(e,pp,c),u(Ss,e,c),d(e,dp,c),d(e,Y,c),u(Ls,Y,null),n(Y,Nm),n(Y,Cr),n(Y,Bm),u(Tt,Y,null),n(Y,Wm),n(Y,Ir),n(Y,Sm),n(Y,qr),n(Y,Lm),n(Y,Gr),n(Y,Om),n(Y,bt),u(Os,bt,null),n(bt,Hm),n(bt,zr),d(e,mp,c),u(Hs,e,c),d(e,hp,c),d(e,Ys,c),d(e,fp,c),u(Es,e,c),d(e,gp,c),d(e,pe,c),u(Qs,pe,null),n(pe,Ym),n(pe,Zr),n(pe,Em),u(yt,pe,null),n(pe,Qm),n(pe,wt),u(Xs,wt,null),n(wt,Xm),n(wt,Fr),n(pe,Km),n(pe,Mt),u(Ks,Mt,null),n(Mt,eh),n(Mt,Dr),n(pe,th),n(pe,_t),u(ea,_t,null),n(_t,nh),n(_t,Rr),d(e,up,c),d(e,E,c),u(ta,E,null),n(E,sh),n(E,Vr),n(E,ah),u(xt,E,null),n(E,oh),n(E,Ar),n(E,rh),n(E,Nr),n(E,ih),n(E,Br),n(E,lh),n(E,vt),u(na,vt,null),n(vt,ch),n(vt,Wr),d(e,Tp,c),u(sa,e,c),d(e,bp,c),d(e,G,c),u(aa,G,null),n(G,ph),n(G,Sr),n(G,dh),u(kt,G,null),n(G,mh),n(G,Lr),n(G,hh),n(G,Or),n(G,fh),n(G,Hr),n(G,gh),u(Ut,G,null),n(G,uh),u(jt,G,null),n(G,Th),n(G,$t),u(oa,$t,null),n($t,bh),n($t,Yr),d(e,yp,c),u(ra,e,c),d(e,wp,c),d(e,z,c),u(ia,z,null),n(z,yh),n(z,Er),n(z,wh),u(Jt,z,null),n(z,Mh),n(z,Qr),n(z,_h),n(z,Xr),n(z,xh),n(z,Kr),n(z,vh),n(z,Pt),u(la,Pt,null),n(Pt,kh),n(Pt,ei),n(z,Uh),n(z,Ne),u(ca,Ne,null),n(Ne,jh),n(Ne,ti),n(Ne,$h),n(Ne,ni),n(z,Jh),n(z,Ct),u(pa,Ct,null),n(Ct,Ph),n(Ct,si),d(e,Mp,c),u(da,e,c),d(e,_p,c),d(e,de,c),u(ma,de,null),n(de,Ch),n(de,ai),n(de,Ih),n(de,oi),n(de,qh),n(de,ri),n(de,Gh),u(It,de,null),n(de,zh),n(de,qt),u(ha,qt,null),n(qt,Zh),n(qt,ii),d(e,xp,c),u(fa,e,c),d(e,vp,c),d(e,Q,c),u(ga,Q,null),n(Q,Fh),n(Q,li),n(Q,Dh),u(Gt,Q,null),n(Q,Rh),n(Q,ci),n(Q,Vh),n(Q,pi),n(Q,Ah),n(Q,di),n(Q,Nh),n(Q,ae),u(ua,ae,null),n(ae,Bh),n(ae,mi),n(ae,Wh),n(ae,hi),n(ae,Sh),n(ae,fi),n(ae,Lh),u(zt,ae,null),n(ae,Oh),n(ae,gi),n(ae,Hh),u(Zt,ae,null),d(e,kp,c),u(Ta,e,c),d(e,Up,c),d(e,V,c),u(ba,V,null),n(V,Yh),n(V,ui),n(V,Eh),u(Ft,V,null),n(V,Qh),n(V,Ti),n(V,Xh),n(V,bi),n(V,Kh),n(V,yi),n(V,ef),n(V,wi),n(V,tf),n(V,Dt),u(ya,Dt,null),n(Dt,nf),n(Dt,Mi),d(e,jp,c),u(wa,e,c),d(e,$p,c),d(e,X,c),u(Ma,X,null),n(X,sf),n(X,_i),n(X,af),u(Rt,X,null),n(X,of),n(X,xi),n(X,rf),n(X,vi),n(X,lf),n(X,ki),n(X,cf),n(X,Vt),u(_a,Vt,null),n(Vt,pf),n(Vt,Ui),d(e,Jp,c),u(xa,e,c),d(e,Pp,c),d(e,Z,c),u(va,Z,null),n(Z,df),n(Z,ji),n(Z,mf),u(At,Z,null),n(Z,hf),n(Z,$i),n(Z,ff),n(Z,Ji),n(Z,gf),n(Z,Pi),n(Z,uf),u(Nt,Z,null),n(Z,Tf),n(Z,Bt),u(ka,Bt,null),n(Bt,bf),n(Bt,Ci),n(Z,yf),n(Z,Wt),u(Ua,Wt,null),n(Wt,wf),n(Wt,Ii),d(e,Cp,c),u(ja,e,c),d(e,Ip,c),d(e,q,c),u($a,q,null),n(q,Mf),n(q,qi),n(q,_f),u(St,q,null),n(q,xf),n(q,Gi),n(q,vf),n(q,zi),n(q,kf),n(q,Zi),n(q,Uf),n(q,Lt),u(Ja,Lt,null),n(Lt,jf),n(Lt,Fi),n(q,$f),n(q,Be),u(Pa,Be,null),n(Be,Jf),n(Be,Di),n(Be,Pf),n(Be,Ri),n(q,Cf),n(q,Ot),u(Ca,Ot,null),n(Ot,If),n(Ot,Vi),n(q,qf),n(q,Ht),u(Ia,Ht,null),n(Ht,Gf),n(Ht,Ai),n(q,zf),n(q,Yt),u(qa,Yt,null),n(Yt,Zf),n(Yt,Ni),d(e,qp,c),u(Ga,e,c),d(e,Gp,c),d(e,me,c),u(za,me,null),n(me,Ff),n(me,Bi),n(me,Df),n(me,Wi),n(me,Rf),n(me,Si),n(me,Vf),u(Et,me,null),n(me,Af),n(me,Qt),u(Za,Qt,null),n(Qt,Nf),n(Qt,Li),d(e,zp,c),u(Fa,e,c),d(e,Zp,c),d(e,A,c),u(Da,A,null),n(A,Bf),n(A,Oi),n(A,Wf),n(A,Hi),n(A,Sf),u(Xt,A,null),n(A,Lf),n(A,Yi),n(A,Of),n(A,Ei),n(A,Hf),n(A,Qi),n(A,Yf),n(A,Kt),u(Ra,Kt,null),n(Kt,Ef),n(Kt,Xi),d(e,Fp,c),u(Va,e,c),d(e,Dp,c),d(e,Aa,c),d(e,Rp,c),u(Na,e,c),d(e,Vp,c),d(e,K,c),u(Ba,K,null),n(K,Qf),n(K,Ki),n(K,Xf),u(en,K,null),n(K,Kf),n(K,el),n(K,eg),n(K,tl),n(K,tg),n(K,nl),n(K,ng),n(K,Re),u(Wa,Re,null),n(Re,sg),n(Re,sl),n(Re,ag),n(Re,al),n(Re,og),n(Re,ol),d(e,Ap,c),u(Sa,e,c),d(e,Np,c),d(e,ee,c),u(La,ee,null),n(ee,rg),n(ee,rl),n(ee,ig),u(tn,ee,null),n(ee,lg),n(ee,il),n(ee,cg),n(ee,ll),n(ee,pg),n(ee,cl),n(ee,dg),n(ee,nn),u(Oa,nn,null),n(nn,mg),n(nn,pl),d(e,Bp,c),u(Ha,e,c),d(e,Wp,c),d(e,te,c),u(Ya,te,null),n(te,hg),n(te,dl),n(te,fg),u(sn,te,null),n(te,gg),n(te,ml),n(te,ug),n(te,hl),n(te,Tg),n(te,fl),n(te,bg),n(te,an),u(Ea,an,null),n(an,yg),n(an,gl),d(e,Sp,c),u(Qa,e,c),d(e,Lp,c),d(e,F,c),u(Xa,F,null),n(F,wg),n(F,ul),n(F,Mg),n(F,Tl),n(F,_g),n(F,bl),n(F,xg),u(on,F,null),n(F,vg),n(F,yl),n(F,kg),n(F,wl),n(F,Ug),n(F,Ml),n(F,jg),n(F,rn),u(Ka,rn,null),n(rn,$g),n(rn,_l),d(e,Op,c),u(eo,e,c),d(e,Hp,c),d(e,ne,c),u(to,ne,null),n(ne,Jg),n(ne,xl),n(ne,Pg),u(ln,ne,null),n(ne,Cg),n(ne,vl),n(ne,Ig),n(ne,kl),n(ne,qg),n(ne,Ul),n(ne,Gg),n(ne,We),u(no,We,null),n(We,zg),n(We,jl),n(We,Zg),n(We,$l),d(e,Yp,c),u(so,e,c),d(e,Ep,c),d(e,C,c),u(ao,C,null),n(C,Fg),n(C,Jl),n(C,Dg),n(C,Pl),n(C,Rg),n(C,Cl),n(C,Vg),n(C,Il),n(C,Ag),n(C,ql),n(C,Ng),n(C,cn),u(oo,cn,null),n(cn,Bg),n(cn,Gl),n(C,Wg),n(C,Se),u(ro,Se,null),n(Se,Sg),n(Se,zl),n(Se,Lg),u(pn,Se,null),n(C,Og),n(C,dn),u(io,dn,null),n(dn,Hg),n(dn,Zl),n(C,Yg),n(C,mn),u(lo,mn,null),n(mn,Eg),n(mn,Fl),n(C,Qg),n(C,hn),u(co,hn,null),n(hn,Xg),n(hn,Dl),n(C,Kg),n(C,fn),u(po,fn,null),n(fn,eu),n(fn,Rl),n(C,tu),n(C,gn),u(mo,gn,null),n(gn,nu),n(gn,Vl),n(C,su),n(C,un),u(ho,un,null),n(un,au),n(un,Al),d(e,Qp,c),d(e,Ll,c),Xp=!0},p(e,[c]){const Ze={};c&2&&(Ze.$$scope={dirty:c,ctx:e}),Oe.$set(Ze);const he={};c&2&&(he.$$scope={dirty:c,ctx:e}),He.$set(he);const fo={};c&2&&(fo.$$scope={dirty:c,ctx:e}),Ye.$set(fo);const ke={};c&2&&(ke.$$scope={dirty:c,ctx:e}),Qe.$set(ke);const go={};c&2&&(go.$$scope={dirty:c,ctx:e}),Ke.$set(go);const se={};c&2&&(se.$$scope={dirty:c,ctx:e}),et.$set(se);const uo={};c&2&&(uo.$$scope={dirty:c,ctx:e}),nt.$set(uo);const Fe={};c&2&&(Fe.$$scope={dirty:c,ctx:e}),at.$set(Fe);const To={};c&2&&(To.$$scope={dirty:c,ctx:e}),rt.$set(To);const fe={};c&2&&(fe.$$scope={dirty:c,ctx:e}),lt.$set(fe);const bo={};c&2&&(bo.$$scope={dirty:c,ctx:e}),pt.$set(bo);const ge={};c&2&&(ge.$$scope={dirty:c,ctx:e}),mt.$set(ge);const yo={};c&2&&(yo.$$scope={dirty:c,ctx:e}),gt.$set(yo);const Ue={};c&2&&(Ue.$$scope={dirty:c,ctx:e}),Tt.$set(Ue);const wo={};c&2&&(wo.$$scope={dirty:c,ctx:e}),yt.$set(wo);const je={};c&2&&(je.$$scope={dirty:c,ctx:e}),xt.$set(je);const Mo={};c&2&&(Mo.$$scope={dirty:c,ctx:e}),kt.$set(Mo);const ue={};c&2&&(ue.$$scope={dirty:c,ctx:e}),Ut.$set(ue);const _o={};c&2&&(_o.$$scope={dirty:c,ctx:e}),jt.$set(_o);const De={};c&2&&(De.$$scope={dirty:c,ctx:e}),Jt.$set(De);const xo={};c&2&&(xo.$$scope={dirty:c,ctx:e}),It.$set(xo);const Te={};c&2&&(Te.$$scope={dirty:c,ctx:e}),Gt.$set(Te);const vo={};c&2&&(vo.$$scope={dirty:c,ctx:e}),zt.$set(vo);const be={};c&2&&(be.$$scope={dirty:c,ctx:e}),Zt.$set(be);const ko={};c&2&&(ko.$$scope={dirty:c,ctx:e}),Ft.$set(ko);const $e={};c&2&&($e.$$scope={dirty:c,ctx:e}),Rt.$set($e);const Uo={};c&2&&(Uo.$$scope={dirty:c,ctx:e}),At.$set(Uo);const jo={};c&2&&(jo.$$scope={dirty:c,ctx:e}),Nt.$set(jo);const $o={};c&2&&($o.$$scope={dirty:c,ctx:e}),St.$set($o);const ye={};c&2&&(ye.$$scope={dirty:c,ctx:e}),Et.$set(ye);const Jo={};c&2&&(Jo.$$scope={dirty:c,ctx:e}),Xt.$set(Jo);const N={};c&2&&(N.$$scope={dirty:c,ctx:e}),en.$set(N);const Po={};c&2&&(Po.$$scope={dirty:c,ctx:e}),tn.$set(Po);const B={};c&2&&(B.$$scope={dirty:c,ctx:e}),sn.$set(B);const Co={};c&2&&(Co.$$scope={dirty:c,ctx:e}),on.$set(Co);const Le={};c&2&&(Le.$$scope={dirty:c,ctx:e}),ln.$set(Le);const Io={};c&2&&(Io.$$scope={dirty:c,ctx:e}),pn.$set(Io)},i(e){Xp||(T(w.$$.fragment,e),T(wn.$$.fragment,e),T(xn.$$.fragment,e),T(kn.$$.fragment,e),T(jn.$$.fragment,e),T(Jn.$$.fragment,e),T(Cn.$$.fragment,e),T(In.$$.fragment,e),T(Oe.$$.fragment,e),T(qn.$$.fragment,e),T(zn.$$.fragment,e),T(He.$$.fragment,e),T(Zn.$$.fragment,e),T(Fn.$$.fragment,e),T(Rn.$$.fragment,e),T(An.$$.fragment,e),T(Sn.$$.fragment,e),T(Hn.$$.fragment,e),T(En.$$.fragment,e),T(Kn.$$.fragment,e),T(as.$$.fragment,e),T(rs.$$.fragment,e),T(ls.$$.fragment,e),T(ps.$$.fragment,e),T(ds.$$.fragment,e),T(Ye.$$.fragment,e),T(ms.$$.fragment,e),T(hs.$$.fragment,e),T(fs.$$.fragment,e),T(Qe.$$.fragment,e),T(gs.$$.fragment,e),T(us.$$.fragment,e),T(Ts.$$.fragment,e),T(Ke.$$.fragment,e),T(et.$$.fragment,e),T(bs.$$.fragment,e),T(ys.$$.fragment,e),T(ws.$$.fragment,e),T(nt.$$.fragment,e),T(Ms.$$.fragment,e),T(_s.$$.fragment,e),T(vs.$$.fragment,e),T(ks.$$.fragment,e),T(at.$$.fragment,e),T(Us.$$.fragment,e),T(js.$$.fragment,e),T($s.$$.fragment,e),T(rt.$$.fragment,e),T(Js.$$.fragment,e),T(Ps.$$.fragment,e),T(Cs.$$.fragment,e),T(lt.$$.fragment,e),T(Is.$$.fragment,e),T(qs.$$.fragment,e),T(Gs.$$.fragment,e),T(pt.$$.fragment,e),T(zs.$$.fragment,e),T(Zs.$$.fragment,e),T(Fs.$$.fragment,e),T(mt.$$.fragment,e),T(Ds.$$.fragment,e),T(Rs.$$.fragment,e),T(Vs.$$.fragment,e),T(As.$$.fragment,e),T(Ns.$$.fragment,e),T(Bs.$$.fragment,e),T(gt.$$.fragment,e),T(Ws.$$.fragment,e),T(Ss.$$.fragment,e),T(Ls.$$.fragment,e),T(Tt.$$.fragment,e),T(Os.$$.fragment,e),T(Hs.$$.fragment,e),T(Es.$$.fragment,e),T(Qs.$$.fragment,e),T(yt.$$.fragment,e),T(Xs.$$.fragment,e),T(Ks.$$.fragment,e),T(ea.$$.fragment,e),T(ta.$$.fragment,e),T(xt.$$.fragment,e),T(na.$$.fragment,e),T(sa.$$.fragment,e),T(aa.$$.fragment,e),T(kt.$$.fragment,e),T(Ut.$$.fragment,e),T(jt.$$.fragment,e),T(oa.$$.fragment,e),T(ra.$$.fragment,e),T(ia.$$.fragment,e),T(Jt.$$.fragment,e),T(la.$$.fragment,e),T(ca.$$.fragment,e),T(pa.$$.fragment,e),T(da.$$.fragment,e),T(ma.$$.fragment,e),T(It.$$.fragment,e),T(ha.$$.fragment,e),T(fa.$$.fragment,e),T(ga.$$.fragment,e),T(Gt.$$.fragment,e),T(ua.$$.fragment,e),T(zt.$$.fragment,e),T(Zt.$$.fragment,e),T(Ta.$$.fragment,e),T(ba.$$.fragment,e),T(Ft.$$.fragment,e),T(ya.$$.fragment,e),T(wa.$$.fragment,e),T(Ma.$$.fragment,e),T(Rt.$$.fragment,e),T(_a.$$.fragment,e),T(xa.$$.fragment,e),T(va.$$.fragment,e),T(At.$$.fragment,e),T(Nt.$$.fragment,e),T(ka.$$.fragment,e),T(Ua.$$.fragment,e),T(ja.$$.fragment,e),T($a.$$.fragment,e),T(St.$$.fragment,e),T(Ja.$$.fragment,e),T(Pa.$$.fragment,e),T(Ca.$$.fragment,e),T(Ia.$$.fragment,e),T(qa.$$.fragment,e),T(Ga.$$.fragment,e),T(za.$$.fragment,e),T(Et.$$.fragment,e),T(Za.$$.fragment,e),T(Fa.$$.fragment,e),T(Da.$$.fragment,e),T(Xt.$$.fragment,e),T(Ra.$$.fragment,e),T(Va.$$.fragment,e),T(Na.$$.fragment,e),T(Ba.$$.fragment,e),T(en.$$.fragment,e),T(Wa.$$.fragment,e),T(Sa.$$.fragment,e),T(La.$$.fragment,e),T(tn.$$.fragment,e),T(Oa.$$.fragment,e),T(Ha.$$.fragment,e),T(Ya.$$.fragment,e),T(sn.$$.fragment,e),T(Ea.$$.fragment,e),T(Qa.$$.fragment,e),T(Xa.$$.fragment,e),T(on.$$.fragment,e),T(Ka.$$.fragment,e),T(eo.$$.fragment,e),T(to.$$.fragment,e),T(ln.$$.fragment,e),T(no.$$.fragment,e),T(so.$$.fragment,e),T(ao.$$.fragment,e),T(oo.$$.fragment,e),T(ro.$$.fragment,e),T(pn.$$.fragment,e),T(io.$$.fragment,e),T(lo.$$.fragment,e),T(co.$$.fragment,e),T(po.$$.fragment,e),T(mo.$$.fragment,e),T(ho.$$.fragment,e),Xp=!0)},o(e){b(w.$$.fragment,e),b(wn.$$.fragment,e),b(xn.$$.fragment,e),b(kn.$$.fragment,e),b(jn.$$.fragment,e),b(Jn.$$.fragment,e),b(Cn.$$.fragment,e),b(In.$$.fragment,e),b(Oe.$$.fragment,e),b(qn.$$.fragment,e),b(zn.$$.fragment,e),b(He.$$.fragment,e),b(Zn.$$.fragment,e),b(Fn.$$.fragment,e),b(Rn.$$.fragment,e),b(An.$$.fragment,e),b(Sn.$$.fragment,e),b(Hn.$$.fragment,e),b(En.$$.fragment,e),b(Kn.$$.fragment,e),b(as.$$.fragment,e),b(rs.$$.fragment,e),b(ls.$$.fragment,e),b(ps.$$.fragment,e),b(ds.$$.fragment,e),b(Ye.$$.fragment,e),b(ms.$$.fragment,e),b(hs.$$.fragment,e),b(fs.$$.fragment,e),b(Qe.$$.fragment,e),b(gs.$$.fragment,e),b(us.$$.fragment,e),b(Ts.$$.fragment,e),b(Ke.$$.fragment,e),b(et.$$.fragment,e),b(bs.$$.fragment,e),b(ys.$$.fragment,e),b(ws.$$.fragment,e),b(nt.$$.fragment,e),b(Ms.$$.fragment,e),b(_s.$$.fragment,e),b(vs.$$.fragment,e),b(ks.$$.fragment,e),b(at.$$.fragment,e),b(Us.$$.fragment,e),b(js.$$.fragment,e),b($s.$$.fragment,e),b(rt.$$.fragment,e),b(Js.$$.fragment,e),b(Ps.$$.fragment,e),b(Cs.$$.fragment,e),b(lt.$$.fragment,e),b(Is.$$.fragment,e),b(qs.$$.fragment,e),b(Gs.$$.fragment,e),b(pt.$$.fragment,e),b(zs.$$.fragment,e),b(Zs.$$.fragment,e),b(Fs.$$.fragment,e),b(mt.$$.fragment,e),b(Ds.$$.fragment,e),b(Rs.$$.fragment,e),b(Vs.$$.fragment,e),b(As.$$.fragment,e),b(Ns.$$.fragment,e),b(Bs.$$.fragment,e),b(gt.$$.fragment,e),b(Ws.$$.fragment,e),b(Ss.$$.fragment,e),b(Ls.$$.fragment,e),b(Tt.$$.fragment,e),b(Os.$$.fragment,e),b(Hs.$$.fragment,e),b(Es.$$.fragment,e),b(Qs.$$.fragment,e),b(yt.$$.fragment,e),b(Xs.$$.fragment,e),b(Ks.$$.fragment,e),b(ea.$$.fragment,e),b(ta.$$.fragment,e),b(xt.$$.fragment,e),b(na.$$.fragment,e),b(sa.$$.fragment,e),b(aa.$$.fragment,e),b(kt.$$.fragment,e),b(Ut.$$.fragment,e),b(jt.$$.fragment,e),b(oa.$$.fragment,e),b(ra.$$.fragment,e),b(ia.$$.fragment,e),b(Jt.$$.fragment,e),b(la.$$.fragment,e),b(ca.$$.fragment,e),b(pa.$$.fragment,e),b(da.$$.fragment,e),b(ma.$$.fragment,e),b(It.$$.fragment,e),b(ha.$$.fragment,e),b(fa.$$.fragment,e),b(ga.$$.fragment,e),b(Gt.$$.fragment,e),b(ua.$$.fragment,e),b(zt.$$.fragment,e),b(Zt.$$.fragment,e),b(Ta.$$.fragment,e),b(ba.$$.fragment,e),b(Ft.$$.fragment,e),b(ya.$$.fragment,e),b(wa.$$.fragment,e),b(Ma.$$.fragment,e),b(Rt.$$.fragment,e),b(_a.$$.fragment,e),b(xa.$$.fragment,e),b(va.$$.fragment,e),b(At.$$.fragment,e),b(Nt.$$.fragment,e),b(ka.$$.fragment,e),b(Ua.$$.fragment,e),b(ja.$$.fragment,e),b($a.$$.fragment,e),b(St.$$.fragment,e),b(Ja.$$.fragment,e),b(Pa.$$.fragment,e),b(Ca.$$.fragment,e),b(Ia.$$.fragment,e),b(qa.$$.fragment,e),b(Ga.$$.fragment,e),b(za.$$.fragment,e),b(Et.$$.fragment,e),b(Za.$$.fragment,e),b(Fa.$$.fragment,e),b(Da.$$.fragment,e),b(Xt.$$.fragment,e),b(Ra.$$.fragment,e),b(Va.$$.fragment,e),b(Na.$$.fragment,e),b(Ba.$$.fragment,e),b(en.$$.fragment,e),b(Wa.$$.fragment,e),b(Sa.$$.fragment,e),b(La.$$.fragment,e),b(tn.$$.fragment,e),b(Oa.$$.fragment,e),b(Ha.$$.fragment,e),b(Ya.$$.fragment,e),b(sn.$$.fragment,e),b(Ea.$$.fragment,e),b(Qa.$$.fragment,e),b(Xa.$$.fragment,e),b(on.$$.fragment,e),b(Ka.$$.fragment,e),b(eo.$$.fragment,e),b(to.$$.fragment,e),b(ln.$$.fragment,e),b(no.$$.fragment,e),b(so.$$.fragment,e),b(ao.$$.fragment,e),b(oo.$$.fragment,e),b(ro.$$.fragment,e),b(pn.$$.fragment,e),b(io.$$.fragment,e),b(lo.$$.fragment,e),b(co.$$.fragment,e),b(po.$$.fragment,e),b(mo.$$.fragment,e),b(ho.$$.fragment,e),Xp=!1},d(e){e&&(o(_),o(h),o(p),o(t),o(M),o(Ol),o(bn),o(Hl),o(yn),o(Yl),o(El),o(Mn),o(Ql),o(_n),o(Xl),o(Kl),o(vn),o(ec),o(tc),o(Un),o(nc),o(sc),o($n),o(ac),o(oc),o(Pn),o(rc),o(ic),o(_e),o(lc),o(cc),o(Gn),o(pc),o(dc),o(mc),o(hc),o(fc),o(Dn),o(gc),o(uc),o(Vn),o(Tc),o(bc),o(Nn),o(yc),o(Bn),o(wc),o(Wn),o(Mc),o(_c),o(Ln),o(xc),o(On),o(vc),o(kc),o(Yn),o(Uc),o(jc),o(Qn),o($c),o(Xn),o(Jc),o(Pc),o(es),o(Cc),o(ts),o(Ic),o(ns),o(qc),o(ss),o(Gc),o(zc),o(os),o(Zc),o(Fc),o(is),o(Dc),o(Rc),o(cs),o(Vc),o(Ac),o(W),o(Nc),o(Bc),o(ie),o(Wc),o(Sc),o(R),o(Lc),o(Oc),o(xe),o(Hc),o(Yc),o(xs),o(Ec),o(Qc),o(S),o(Xc),o(Kc),o(L),o(ep),o(tp),o(le),o(np),o(sp),o(ce),o(ap),o(op),o(O),o(rp),o(ip),o(ve),o(lp),o(cp),o(H),o(pp),o(dp),o(Y),o(mp),o(hp),o(Ys),o(fp),o(gp),o(pe),o(up),o(E),o(Tp),o(bp),o(G),o(yp),o(wp),o(z),o(Mp),o(_p),o(de),o(xp),o(vp),o(Q),o(kp),o(Up),o(V),o(jp),o($p),o(X),o(Jp),o(Pp),o(Z),o(Cp),o(Ip),o(q),o(qp),o(Gp),o(me),o(zp),o(Zp),o(A),o(Fp),o(Dp),o(Aa),o(Rp),o(Vp),o(K),o(Ap),o(Np),o(ee),o(Bp),o(Wp),o(te),o(Sp),o(Lp),o(F),o(Op),o(Hp),o(ne),o(Yp),o(Ep),o(C),o(Qp),o(Ll)),o(r),y(w,e),y(wn,e),y(xn,e),y(kn,e),y(jn,e),y(Jn,e),y(Cn,e),y(In),y(Oe),y(qn,e),y(zn,e),y(He,e),y(Zn,e),y(Fn,e),y(Rn,e),y(An,e),y(Sn,e),y(Hn,e),y(En,e),y(Kn,e),y(as,e),y(rs,e),y(ls,e),y(ps,e),y(ds),y(Ye),y(ms),y(hs,e),y(fs),y(Qe),y(gs),y(us,e),y(Ts),y(Ke),y(et),y(bs),y(ys,e),y(ws),y(nt),y(Ms),y(_s,e),y(vs,e),y(ks),y(at),y(Us),y(js,e),y($s),y(rt),y(Js),y(Ps,e),y(Cs),y(lt),y(Is),y(qs,e),y(Gs),y(pt),y(zs),y(Zs,e),y(Fs),y(mt),y(Ds),y(Rs,e),y(Vs),y(As),y(Ns,e),y(Bs),y(gt),y(Ws),y(Ss,e),y(Ls),y(Tt),y(Os),y(Hs,e),y(Es,e),y(Qs),y(yt),y(Xs),y(Ks),y(ea),y(ta),y(xt),y(na),y(sa,e),y(aa),y(kt),y(Ut),y(jt),y(oa),y(ra,e),y(ia),y(Jt),y(la),y(ca),y(pa),y(da,e),y(ma),y(It),y(ha),y(fa,e),y(ga),y(Gt),y(ua),y(zt),y(Zt),y(Ta,e),y(ba),y(Ft),y(ya),y(wa,e),y(Ma),y(Rt),y(_a),y(xa,e),y(va),y(At),y(Nt),y(ka),y(Ua),y(ja,e),y($a),y(St),y(Ja),y(Pa),y(Ca),y(Ia),y(qa),y(Ga,e),y(za),y(Et),y(Za),y(Fa,e),y(Da),y(Xt),y(Ra),y(Va,e),y(Na,e),y(Ba),y(en),y(Wa),y(Sa,e),y(La),y(tn),y(Oa),y(Ha,e),y(Ya),y(sn),y(Ea),y(Qa,e),y(Xa),y(on),y(Ka),y(eo,e),y(to),y(ln),y(no),y(so,e),y(ao),y(oo),y(ro),y(pn),y(io),y(lo),y(co),y(po),y(mo),y(ho)}}}const Gw='{"title":"Pipelines","local":"pipelines","sections":[{"title":"The pipeline abstraction","local":"transformers.pipeline","sections":[],"depth":2},{"title":"Pipeline batching","local":"pipeline-batching","sections":[],"depth":2},{"title":"Pipeline chunk batching","local":"pipeline-chunk-batching","sections":[],"depth":2},{"title":"Pipeline custom code","local":"pipeline-custom-code","sections":[],"depth":2},{"title":"Implementing a pipeline","local":"implementing-a-pipeline","sections":[],"depth":2},{"title":"Audio","local":"audio","sections":[{"title":"AudioClassificationPipeline","local":"transformers.AudioClassificationPipeline","sections":[],"depth":3},{"title":"AutomaticSpeechRecognitionPipeline","local":"transformers.AutomaticSpeechRecognitionPipeline","sections":[],"depth":3},{"title":"TextToAudioPipeline","local":"transformers.TextToAudioPipeline","sections":[],"depth":3},{"title":"ZeroShotAudioClassificationPipeline","local":"transformers.ZeroShotAudioClassificationPipeline","sections":[],"depth":3}],"depth":2},{"title":"Computer vision","local":"computer-vision","sections":[{"title":"DepthEstimationPipeline","local":"transformers.DepthEstimationPipeline","sections":[],"depth":3},{"title":"ImageClassificationPipeline","local":"transformers.ImageClassificationPipeline","sections":[],"depth":3},{"title":"ImageSegmentationPipeline","local":"transformers.ImageSegmentationPipeline","sections":[],"depth":3},{"title":"ImageToImagePipeline","local":"transformers.ImageToImagePipeline","sections":[],"depth":3},{"title":"ObjectDetectionPipeline","local":"transformers.ObjectDetectionPipeline","sections":[],"depth":3},{"title":"VideoClassificationPipeline","local":"transformers.VideoClassificationPipeline","sections":[],"depth":3},{"title":"ZeroShotImageClassificationPipeline","local":"transformers.ZeroShotImageClassificationPipeline","sections":[],"depth":3},{"title":"ZeroShotObjectDetectionPipeline","local":"transformers.ZeroShotObjectDetectionPipeline","sections":[],"depth":3}],"depth":2},{"title":"Natural Language Processing","local":"natural-language-processing","sections":[{"title":"ConversationalPipeline","local":"transformers.Conversation","sections":[],"depth":3},{"title":"FillMaskPipeline","local":"transformers.FillMaskPipeline","sections":[],"depth":3},{"title":"QuestionAnsweringPipeline","local":"transformers.QuestionAnsweringPipeline","sections":[],"depth":3},{"title":"SummarizationPipeline","local":"transformers.SummarizationPipeline","sections":[],"depth":3},{"title":"TableQuestionAnsweringPipeline","local":"transformers.TableQuestionAnsweringPipeline","sections":[],"depth":3},{"title":"TextClassificationPipeline","local":"transformers.TextClassificationPipeline","sections":[],"depth":3},{"title":"TextGenerationPipeline","local":"transformers.TextGenerationPipeline","sections":[],"depth":3},{"title":"Text2TextGenerationPipeline","local":"transformers.Text2TextGenerationPipeline","sections":[],"depth":3},{"title":"TokenClassificationPipeline","local":"transformers.TokenClassificationPipeline","sections":[],"depth":3},{"title":"TranslationPipeline","local":"transformers.TranslationPipeline","sections":[],"depth":3},{"title":"ZeroShotClassificationPipeline","local":"transformers.ZeroShotClassificationPipeline","sections":[],"depth":3}],"depth":2},{"title":"Multimodal","local":"multimodal","sections":[{"title":"DocumentQuestionAnsweringPipeline","local":"transformers.DocumentQuestionAnsweringPipeline","sections":[],"depth":3},{"title":"FeatureExtractionPipeline","local":"transformers.FeatureExtractionPipeline","sections":[],"depth":3},{"title":"ImageToTextPipeline","local":"transformers.ImageToTextPipeline","sections":[],"depth":3},{"title":"MaskGenerationPipeline","local":"transformers.MaskGenerationPipeline","sections":[],"depth":3},{"title":"VisualQuestionAnsweringPipeline","local":"transformers.VisualQuestionAnsweringPipeline","sections":[],"depth":3}],"depth":2},{"title":"Parent class: Pipeline","local":"transformers.Pipeline","sections":[],"depth":2}],"depth":1}';function zw(x){return Wy(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class Bw extends Sy{constructor(r){super(),Ly(this,r,zw,qw,By,{})}}export{Bw as component};
