import{s as Gk,o as Ak,n as $}from"../chunks/scheduler.9bc65507.js";import{S as Nk,i as Zk,g as a,s as r,u as f,A as Fk,h as o,f as s,c as i,j as w,v as g,y as m,k as h,o as t,a as c,w as u,d as T,t as b,x as y}from"../chunks/index.78c82d43.js";import{T as sx}from"../chunks/Tip.87d55b76.js";import{D as k}from"../chunks/Docstring.4e7352e2.js";import{C as j}from"../chunks/CodeBlock.73e038be.js";import{I as P}from"../chunks/IconCopyLink.bedaa44d.js";import{E as C}from"../chunks/ExampleCodeBlock.872b014d.js";function Dk(U){let p,M="Examples:",x,d,v;return d=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(){p=a("p"),p.textContent=M,x=r(),f(d.$$.fragment)},l(n){p=o(n,"P",{"data-svelte-h":!0}),m(p)!=="svelte-kvfsh7"&&(p.textContent=M),x=i(n),g(d.$$.fragment,n)},m(n,_){c(n,p,_),c(n,x,_),u(d,n,_),v=!0},p:$,i(n){v||(T(d.$$.fragment,n),v=!0)},o(n){b(d.$$.fragment,n),v=!1},d(n){n&&(s(p),s(x)),y(d,n)}}}function Rk(U){let p,M=`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.`,x,d,v="Example where it’s mostly a speedup:";return{c(){p=a("p"),p.textContent=M,x=r(),d=a("p"),d.textContent=v},l(n){p=o(n,"P",{"data-svelte-h":!0}),m(p)!=="svelte-gpletg"&&(p.textContent=M),x=i(n),d=o(n,"P",{"data-svelte-h":!0}),m(d)!=="svelte-1aumu59"&&(d.textContent=v)},m(n,_){c(n,p,_),c(n,x,_),c(n,d,_)},p:$,d(n){n&&(s(p),s(x),s(d))}}}function Sk(U){let p,M="Example:",x,d,v;return d=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(){p=a("p"),p.textContent=M,x=r(),f(d.$$.fragment)},l(n){p=o(n,"P",{"data-svelte-h":!0}),m(p)!=="svelte-11lpom8"&&(p.textContent=M),x=i(n),g(d.$$.fragment,n)},m(n,_){c(n,p,_),c(n,x,_),u(d,n,_),v=!0},p:$,i(n){v||(T(d.$$.fragment,n),v=!0)},o(n){b(d.$$.fragment,n),v=!1},d(n){n&&(s(p),s(x)),y(d,n)}}}function Vk(U){let p,M="Example:",x,d,v;return d=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(){p=a("p"),p.textContent=M,x=r(),f(d.$$.fragment)},l(n){p=o(n,"P",{"data-svelte-h":!0}),m(p)!=="svelte-11lpom8"&&(p.textContent=M),x=i(n),g(d.$$.fragment,n)},m(n,_){c(n,p,_),c(n,x,_),u(d,n,_),v=!0},p:$,i(n){v||(T(d.$$.fragment,n),v=!0)},o(n){b(d.$$.fragment,n),v=!1},d(n){n&&(s(p),s(x)),y(d,n)}}}function Bk(U){let p,M="Example:",x,d,v;return d=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(){p=a("p"),p.textContent=M,x=r(),f(d.$$.fragment)},l(n){p=o(n,"P",{"data-svelte-h":!0}),m(p)!=="svelte-11lpom8"&&(p.textContent=M),x=i(n),g(d.$$.fragment,n)},m(n,_){c(n,p,_),c(n,x,_),u(d,n,_),v=!0},p:$,i(n){v||(T(d.$$.fragment,n),v=!0)},o(n){b(d.$$.fragment,n),v=!1},d(n){n&&(s(p),s(x)),y(d,n)}}}function Lk(U){let p,M="Example:",x,d,v;return d=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(){p=a("p"),p.textContent=M,x=r(),f(d.$$.fragment)},l(n){p=o(n,"P",{"data-svelte-h":!0}),m(p)!=="svelte-11lpom8"&&(p.textContent=M),x=i(n),g(d.$$.fragment,n)},m(n,_){c(n,p,_),c(n,x,_),u(d,n,_),v=!0},p:$,i(n){v||(T(d.$$.fragment,n),v=!0)},o(n){b(d.$$.fragment,n),v=!1},d(n){n&&(s(p),s(x)),y(d,n)}}}function Wk(U){let p,M="Example:",x,d,v;return d=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(){p=a("p"),p.textContent=M,x=r(),f(d.$$.fragment)},l(n){p=o(n,"P",{"data-svelte-h":!0}),m(p)!=="svelte-11lpom8"&&(p.textContent=M),x=i(n),g(d.$$.fragment,n)},m(n,_){c(n,p,_),c(n,x,_),u(d,n,_),v=!0},p:$,i(n){v||(T(d.$$.fragment,n),v=!0)},o(n){b(d.$$.fragment,n),v=!1},d(n){n&&(s(p),s(x)),y(d,n)}}}function Ek(U){let p,M="Example:",x,d,v;return d=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(){p=a("p"),p.textContent=M,x=r(),f(d.$$.fragment)},l(n){p=o(n,"P",{"data-svelte-h":!0}),m(p)!=="svelte-11lpom8"&&(p.textContent=M),x=i(n),g(d.$$.fragment,n)},m(n,_){c(n,p,_),c(n,x,_),u(d,n,_),v=!0},p:$,i(n){v||(T(d.$$.fragment,n),v=!0)},o(n){b(d.$$.fragment,n),v=!1},d(n){n&&(s(p),s(x)),y(d,n)}}}function Hk(U){let p,M="Example:",x,d,v;return d=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(){p=a("p"),p.textContent=M,x=r(),f(d.$$.fragment)},l(n){p=o(n,"P",{"data-svelte-h":!0}),m(p)!=="svelte-11lpom8"&&(p.textContent=M),x=i(n),g(d.$$.fragment,n)},m(n,_){c(n,p,_),c(n,x,_),u(d,n,_),v=!0},p:$,i(n){v||(T(d.$$.fragment,n),v=!0)},o(n){b(d.$$.fragment,n),v=!1},d(n){n&&(s(p),s(x)),y(d,n)}}}function Ok(U){let p,M="Example:",x,d,v;return d=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(){p=a("p"),p.textContent=M,x=r(),f(d.$$.fragment)},l(n){p=o(n,"P",{"data-svelte-h":!0}),m(p)!=="svelte-11lpom8"&&(p.textContent=M),x=i(n),g(d.$$.fragment,n)},m(n,_){c(n,p,_),c(n,x,_),u(d,n,_),v=!0},p:$,i(n){v||(T(d.$$.fragment,n),v=!0)},o(n){b(d.$$.fragment,n),v=!1},d(n){n&&(s(p),s(x)),y(d,n)}}}function Yk(U){let p,M="Example:",x,d,v;return d=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(){p=a("p"),p.textContent=M,x=r(),f(d.$$.fragment)},l(n){p=o(n,"P",{"data-svelte-h":!0}),m(p)!=="svelte-11lpom8"&&(p.textContent=M),x=i(n),g(d.$$.fragment,n)},m(n,_){c(n,p,_),c(n,x,_),u(d,n,_),v=!0},p:$,i(n){v||(T(d.$$.fragment,n),v=!0)},o(n){b(d.$$.fragment,n),v=!1},d(n){n&&(s(p),s(x)),y(d,n)}}}function Qk(U){let p,M="Example:",x,d,v;return d=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(){p=a("p"),p.textContent=M,x=r(),f(d.$$.fragment)},l(n){p=o(n,"P",{"data-svelte-h":!0}),m(p)!=="svelte-11lpom8"&&(p.textContent=M),x=i(n),g(d.$$.fragment,n)},m(n,_){c(n,p,_),c(n,x,_),u(d,n,_),v=!0},p:$,i(n){v||(T(d.$$.fragment,n),v=!0)},o(n){b(d.$$.fragment,n),v=!1},d(n){n&&(s(p),s(x)),y(d,n)}}}function Xk(U){let p,M="Example:",x,d,v;return d=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(){p=a("p"),p.textContent=M,x=r(),f(d.$$.fragment)},l(n){p=o(n,"P",{"data-svelte-h":!0}),m(p)!=="svelte-11lpom8"&&(p.textContent=M),x=i(n),g(d.$$.fragment,n)},m(n,_){c(n,p,_),c(n,x,_),u(d,n,_),v=!0},p:$,i(n){v||(T(d.$$.fragment,n),v=!0)},o(n){b(d.$$.fragment,n),v=!1},d(n){n&&(s(p),s(x)),y(d,n)}}}function Kk(U){let p,M="Usage:",x,d,v;return d=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(){p=a("p"),p.textContent=M,x=r(),f(d.$$.fragment)},l(n){p=o(n,"P",{"data-svelte-h":!0}),m(p)!=="svelte-5wyjqd"&&(p.textContent=M),x=i(n),g(d.$$.fragment,n)},m(n,_){c(n,p,_),c(n,x,_),u(d,n,_),v=!0},p:$,i(n){v||(T(d.$$.fragment,n),v=!0)},o(n){b(d.$$.fragment,n),v=!1},d(n){n&&(s(p),s(x)),y(d,n)}}}function e0(U){let p,M="Example:",x,d,v;return d=new j({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMHBpcGVsaW5lJTJDJTIwQ29udmVyc2F0aW9uJTBBJTBBY2hhdGJvdCUyMCUzRCUyMHBpcGVsaW5lKG1vZGVsJTNEJTIybWljcm9zb2Z0JTJGRGlhbG9HUFQtbWVkaXVtJTIyKSUwQWNvbnZlcnNhdGlvbiUyMCUzRCUyMENvbnZlcnNhdGlvbiglMjJHb2luZyUyMHRvJTIwdGhlJTIwbW92aWVzJTIwdG9uaWdodCUyMC0lMjBhbnklMjBzdWdnZXN0aW9ucyUzRiUyMiklMEFjb252ZXJzYXRpb24lMjAlM0QlMjBjaGF0Ym90KGNvbnZlcnNhdGlvbiklMEFjb252ZXJzYXRpb24uZ2VuZXJhdGVkX3Jlc3BvbnNlcyU1Qi0xJTVEJTBBJTBBY29udmVyc2F0aW9uLmFkZF91c2VyX2lucHV0KCUyMklzJTIwaXQlMjBhbiUyMGFjdGlvbiUyMG1vdmllJTNGJTIyKSUwQWNvbnZlcnNhdGlvbiUyMCUzRCUyMGNoYXRib3QoY29udmVyc2F0aW9uKSUwQWNvbnZlcnNhdGlvbi5nZW5lcmF0ZWRfcmVzcG9uc2VzJTVCLTElNUQ=",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-meta">&gt;&gt;&gt; </span>chatbot = pipeline(model=<span class="hljs-string">&quot;microsoft/DialoGPT-medium&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>conversation = Conversation(<span class="hljs-string">&quot;Going to the movies tonight - any suggestions?&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>conversation = chatbot(conversation)
<span class="hljs-meta">&gt;&gt;&gt; </span>conversation.generated_responses[-<span class="hljs-number">1</span>]
<span class="hljs-string">&#x27;The Big Lebowski&#x27;</span>

<span class="hljs-meta">&gt;&gt;&gt; </span>conversation.add_user_input(<span class="hljs-string">&quot;Is it an action movie?&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>conversation = chatbot(conversation)
<span class="hljs-meta">&gt;&gt;&gt; </span>conversation.generated_responses[-<span class="hljs-number">1</span>]
<span class="hljs-string">&quot;It&#x27;s a comedy.&quot;</span>`,wrap:!1}}),{c(){p=a("p"),p.textContent=M,x=r(),f(d.$$.fragment)},l(n){p=o(n,"P",{"data-svelte-h":!0}),m(p)!=="svelte-11lpom8"&&(p.textContent=M),x=i(n),g(d.$$.fragment,n)},m(n,_){c(n,p,_),c(n,x,_),u(d,n,_),v=!0},p:$,i(n){v||(T(d.$$.fragment,n),v=!0)},o(n){b(d.$$.fragment,n),v=!1},d(n){n&&(s(p),s(x)),y(d,n)}}}function t0(U){let p,M="Example:",x,d,v;return d=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(){p=a("p"),p.textContent=M,x=r(),f(d.$$.fragment)},l(n){p=o(n,"P",{"data-svelte-h":!0}),m(p)!=="svelte-11lpom8"&&(p.textContent=M),x=i(n),g(d.$$.fragment,n)},m(n,_){c(n,p,_),c(n,x,_),u(d,n,_),v=!0},p:$,i(n){v||(T(d.$$.fragment,n),v=!0)},o(n){b(d.$$.fragment,n),v=!1},d(n){n&&(s(p),s(x)),y(d,n)}}}function n0(U){let p,M=`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(){p=a("p"),p.innerHTML=M},l(x){p=o(x,"P",{"data-svelte-h":!0}),m(p)!=="svelte-126iymh"&&(p.innerHTML=M)},m(x,d){c(x,p,d)},p:$,d(x){x&&s(p)}}}function s0(U){let p,M="This pipeline now supports tokenizer_kwargs. For example try:",x,d,v;return d=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(){p=a("p"),p.textContent=M,x=r(),f(d.$$.fragment)},l(n){p=o(n,"P",{"data-svelte-h":!0}),m(p)!=="svelte-1pudxyz"&&(p.textContent=M),x=i(n),g(d.$$.fragment,n)},m(n,_){c(n,p,_),c(n,x,_),u(d,n,_),v=!0},p:$,i(n){v||(T(d.$$.fragment,n),v=!0)},o(n){b(d.$$.fragment,n),v=!1},d(n){n&&(s(p),s(x)),y(d,n)}}}function a0(U){let p,M;return p=new C({props:{anchor:"transformers.FillMaskPipeline.example-2",$$slots:{default:[s0]},$$scope:{ctx:U}}}),{c(){f(p.$$.fragment)},l(x){g(p.$$.fragment,x)},m(x,d){u(p,x,d),M=!0},p(x,d){const v={};d&2&&(v.$$scope={dirty:d,ctx:x}),p.$set(v)},i(x){M||(T(p.$$.fragment,x),M=!0)},o(x){b(p.$$.fragment,x),M=!1},d(x){y(p,x)}}}function o0(U){let p,M="Example:",x,d,v;return d=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(){p=a("p"),p.textContent=M,x=r(),f(d.$$.fragment)},l(n){p=o(n,"P",{"data-svelte-h":!0}),m(p)!=="svelte-11lpom8"&&(p.textContent=M),x=i(n),g(d.$$.fragment,n)},m(n,_){c(n,p,_),c(n,x,_),u(d,n,_),v=!0},p:$,i(n){v||(T(d.$$.fragment,n),v=!0)},o(n){b(d.$$.fragment,n),v=!1},d(n){n&&(s(p),s(x)),y(d,n)}}}function r0(U){let p,M="Example:",x,d,v;return d=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(){p=a("p"),p.textContent=M,x=r(),f(d.$$.fragment)},l(n){p=o(n,"P",{"data-svelte-h":!0}),m(p)!=="svelte-11lpom8"&&(p.textContent=M),x=i(n),g(d.$$.fragment,n)},m(n,_){c(n,p,_),c(n,x,_),u(d,n,_),v=!0},p:$,i(n){v||(T(d.$$.fragment,n),v=!0)},o(n){b(d.$$.fragment,n),v=!1},d(n){n&&(s(p),s(x)),y(d,n)}}}function i0(U){let p,M="Usage:",x,d,v;return d=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(){p=a("p"),p.textContent=M,x=r(),f(d.$$.fragment)},l(n){p=o(n,"P",{"data-svelte-h":!0}),m(p)!=="svelte-5wyjqd"&&(p.textContent=M),x=i(n),g(d.$$.fragment,n)},m(n,_){c(n,p,_),c(n,x,_),u(d,n,_),v=!0},p:$,i(n){v||(T(d.$$.fragment,n),v=!0)},o(n){b(d.$$.fragment,n),v=!1},d(n){n&&(s(p),s(x)),y(d,n)}}}function l0(U){let p,M="Example:",x,d,v;return d=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(){p=a("p"),p.textContent=M,x=r(),f(d.$$.fragment)},l(n){p=o(n,"P",{"data-svelte-h":!0}),m(p)!=="svelte-11lpom8"&&(p.textContent=M),x=i(n),g(d.$$.fragment,n)},m(n,_){c(n,p,_),c(n,x,_),u(d,n,_),v=!0},p:$,i(n){v||(T(d.$$.fragment,n),v=!0)},o(n){b(d.$$.fragment,n),v=!1},d(n){n&&(s(p),s(x)),y(d,n)}}}function p0(U){let p,M="Example:",x,d,v;return d=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(){p=a("p"),p.textContent=M,x=r(),f(d.$$.fragment)},l(n){p=o(n,"P",{"data-svelte-h":!0}),m(p)!=="svelte-11lpom8"&&(p.textContent=M),x=i(n),g(d.$$.fragment,n)},m(n,_){c(n,p,_),c(n,x,_),u(d,n,_),v=!0},p:$,i(n){v||(T(d.$$.fragment,n),v=!0)},o(n){b(d.$$.fragment,n),v=!1},d(n){n&&(s(p),s(x)),y(d,n)}}}function c0(U){let p,M="Example:",x,d,v;return d=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(){p=a("p"),p.textContent=M,x=r(),f(d.$$.fragment)},l(n){p=o(n,"P",{"data-svelte-h":!0}),m(p)!=="svelte-11lpom8"&&(p.textContent=M),x=i(n),g(d.$$.fragment,n)},m(n,_){c(n,p,_),c(n,x,_),u(d,n,_),v=!0},p:$,i(n){v||(T(d.$$.fragment,n),v=!0)},o(n){b(d.$$.fragment,n),v=!1},d(n){n&&(s(p),s(x)),y(d,n)}}}function d0(U){let p,M="Example:",x,d,v;return d=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(){p=a("p"),p.textContent=M,x=r(),f(d.$$.fragment)},l(n){p=o(n,"P",{"data-svelte-h":!0}),m(p)!=="svelte-11lpom8"&&(p.textContent=M),x=i(n),g(d.$$.fragment,n)},m(n,_){c(n,p,_),c(n,x,_),u(d,n,_),v=!0},p:$,i(n){v||(T(d.$$.fragment,n),v=!0)},o(n){b(d.$$.fragment,n),v=!1},d(n){n&&(s(p),s(x)),y(d,n)}}}function m0(U){let p,M="Example:",x,d,v;return d=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(){p=a("p"),p.textContent=M,x=r(),f(d.$$.fragment)},l(n){p=o(n,"P",{"data-svelte-h":!0}),m(p)!=="svelte-11lpom8"&&(p.textContent=M),x=i(n),g(d.$$.fragment,n)},m(n,_){c(n,p,_),c(n,x,_),u(d,n,_),v=!0},p:$,i(n){v||(T(d.$$.fragment,n),v=!0)},o(n){b(d.$$.fragment,n),v=!1},d(n){n&&(s(p),s(x)),y(d,n)}}}function h0(U){let p,M="Example:",x,d,v;return d=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(){p=a("p"),p.textContent=M,x=r(),f(d.$$.fragment)},l(n){p=o(n,"P",{"data-svelte-h":!0}),m(p)!=="svelte-11lpom8"&&(p.textContent=M),x=i(n),g(d.$$.fragment,n)},m(n,_){c(n,p,_),c(n,x,_),u(d,n,_),v=!0},p:$,i(n){v||(T(d.$$.fragment,n),v=!0)},o(n){b(d.$$.fragment,n),v=!1},d(n){n&&(s(p),s(x)),y(d,n)}}}function f0(U){let p,M="Usage:",x,d,v;return d=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(){p=a("p"),p.textContent=M,x=r(),f(d.$$.fragment)},l(n){p=o(n,"P",{"data-svelte-h":!0}),m(p)!=="svelte-5wyjqd"&&(p.textContent=M),x=i(n),g(d.$$.fragment,n)},m(n,_){c(n,p,_),c(n,x,_),u(d,n,_),v=!0},p:$,i(n){v||(T(d.$$.fragment,n),v=!0)},o(n){b(d.$$.fragment,n),v=!1},d(n){n&&(s(p),s(x)),y(d,n)}}}function g0(U){let p,M="Example:",x,d,v;return d=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(){p=a("p"),p.textContent=M,x=r(),f(d.$$.fragment)},l(n){p=o(n,"P",{"data-svelte-h":!0}),m(p)!=="svelte-11lpom8"&&(p.textContent=M),x=i(n),g(d.$$.fragment,n)},m(n,_){c(n,p,_),c(n,x,_),u(d,n,_),v=!0},p:$,i(n){v||(T(d.$$.fragment,n),v=!0)},o(n){b(d.$$.fragment,n),v=!1},d(n){n&&(s(p),s(x)),y(d,n)}}}function u0(U){let p,M="Usage:",x,d,v;return d=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(){p=a("p"),p.textContent=M,x=r(),f(d.$$.fragment)},l(n){p=o(n,"P",{"data-svelte-h":!0}),m(p)!=="svelte-5wyjqd"&&(p.textContent=M),x=i(n),g(d.$$.fragment,n)},m(n,_){c(n,p,_),c(n,x,_),u(d,n,_),v=!0},p:$,i(n){v||(T(d.$$.fragment,n),v=!0)},o(n){b(d.$$.fragment,n),v=!1},d(n){n&&(s(p),s(x)),y(d,n)}}}function T0(U){let p,M="Example:",x,d,v;return d=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(){p=a("p"),p.textContent=M,x=r(),f(d.$$.fragment)},l(n){p=o(n,"P",{"data-svelte-h":!0}),m(p)!=="svelte-11lpom8"&&(p.textContent=M),x=i(n),g(d.$$.fragment,n)},m(n,_){c(n,p,_),c(n,x,_),u(d,n,_),v=!0},p:$,i(n){v||(T(d.$$.fragment,n),v=!0)},o(n){b(d.$$.fragment,n),v=!1},d(n){n&&(s(p),s(x)),y(d,n)}}}function b0(U){let p,M="Example:",x,d,v;return d=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(){p=a("p"),p.textContent=M,x=r(),f(d.$$.fragment)},l(n){p=o(n,"P",{"data-svelte-h":!0}),m(p)!=="svelte-11lpom8"&&(p.textContent=M),x=i(n),g(d.$$.fragment,n)},m(n,_){c(n,p,_),c(n,x,_),u(d,n,_),v=!0},p:$,i(n){v||(T(d.$$.fragment,n),v=!0)},o(n){b(d.$$.fragment,n),v=!1},d(n){n&&(s(p),s(x)),y(d,n)}}}function y0(U){let p,M="Example:",x,d,v;return d=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(){p=a("p"),p.textContent=M,x=r(),f(d.$$.fragment)},l(n){p=o(n,"P",{"data-svelte-h":!0}),m(p)!=="svelte-11lpom8"&&(p.textContent=M),x=i(n),g(d.$$.fragment,n)},m(n,_){c(n,p,_),c(n,x,_),u(d,n,_),v=!0},p:$,i(n){v||(T(d.$$.fragment,n),v=!0)},o(n){b(d.$$.fragment,n),v=!1},d(n){n&&(s(p),s(x)),y(d,n)}}}function w0(U){let p,M="Example:",x,d,v;return d=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(){p=a("p"),p.textContent=M,x=r(),f(d.$$.fragment)},l(n){p=o(n,"P",{"data-svelte-h":!0}),m(p)!=="svelte-11lpom8"&&(p.textContent=M),x=i(n),g(d.$$.fragment,n)},m(n,_){c(n,p,_),c(n,x,_),u(d,n,_),v=!0},p:$,i(n){v||(T(d.$$.fragment,n),v=!0)},o(n){b(d.$$.fragment,n),v=!1},d(n){n&&(s(p),s(x)),y(d,n)}}}function x0(U){let p,M="Example:",x,d,v;return d=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(){p=a("p"),p.textContent=M,x=r(),f(d.$$.fragment)},l(n){p=o(n,"P",{"data-svelte-h":!0}),m(p)!=="svelte-11lpom8"&&(p.textContent=M),x=i(n),g(d.$$.fragment,n)},m(n,_){c(n,p,_),c(n,x,_),u(d,n,_),v=!0},p:$,i(n){v||(T(d.$$.fragment,n),v=!0)},o(n){b(d.$$.fragment,n),v=!1},d(n){n&&(s(p),s(x)),y(d,n)}}}function v0(U){let p,M="Examples:",x,d,v;return d=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(){p=a("p"),p.textContent=M,x=r(),f(d.$$.fragment)},l(n){p=o(n,"P",{"data-svelte-h":!0}),m(p)!=="svelte-kvfsh7"&&(p.textContent=M),x=i(n),g(d.$$.fragment,n)},m(n,_){c(n,p,_),c(n,x,_),u(d,n,_),v=!0},p:$,i(n){v||(T(d.$$.fragment,n),v=!0)},o(n){b(d.$$.fragment,n),v=!1},d(n){n&&(s(p),s(x)),y(d,n)}}}function _0(U){let p,M,x,d,v,n,_,Rs,Jg,ti,ax="Pipelines",im,Ss,ox=`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.`,lm,Vs,rx="There are two categories of pipeline abstractions to be aware about:",pm,Bs,ix='<li>The <a href="/docs/transformers/v4.34.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>',cm,Ee,Jt,nd,Ls,Ig,ni,lx="The pipeline abstraction",dm,Ws,px=`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.`,mm,Es,cx="Simple call on one item:",hm,Hs,fm,Os,dx=`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:`,gm,Ys,um,Qs,mx="To call a pipeline on many items, you can call it with a <em>list</em>.",Tm,Xs,bm,Ks,hx=`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.`,ym,ea,wm,ta,fx="For ease of use, a generator is also possible:",xm,na,vm,ue,sa,qg,si,gx='Utility factory method to build a <a href="/docs/transformers/v4.34.0/en/main_classes/pipelines#transformers.Pipeline">Pipeline</a>.',zg,ai,ux="Pipelines are made of:",Gg,oi,Tx='<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>',Ag,It,_m,He,qt,sd,aa,Ng,ri,bx="Pipeline batching",Mm,oa,yx=`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>).`,km,ra,Um,zt,jm,ia,Pm,la,$m,pa,wx="Example where it’s most a slowdown:",Cm,ca,Jm,da,xx=`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.`,Im,ma,qm,ha,vx=`There are no good (general) solutions for this problem, and your mileage may vary depending on your use cases. Rule of
thumb:`,zm,fa,_x="For users, a rule of thumb is:",Gm,ga,Mx=`<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>`,Am,Oe,Gt,ad,ua,Zg,ii,kx="Pipeline chunk batching",Nm,Ta,Ux=`<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.`,Zm,ba,jx=`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:`,Fm,ya,Dm,wa,Px="Now becomes:",Rm,xa,Sm,va,$x=`This should be very transparent to your code because the pipelines are used in
the same way.`,Vm,_a,Cx=`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.`,Bm,Ye,At,od,Ma,Fg,li,Jx="Pipeline custom code",Lm,ka,Ix="If you want to override a specific pipeline.",Wm,Ua,qx=`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.`,Em,ja,zx="If you want to try simply you can:",Hm,Pa,Gx="<li>Subclass your pipeline of choice</li>",Om,$a,Ym,Ca,Ax="That should enable you to do all the custom code you want.",Qm,Qe,Nt,rd,Ja,Dg,pi,Nx="Implementing a pipeline",Xm,Ia,Zx='<a href="../add_new_pipeline">Implementing a new pipeline</a>',Km,Xe,Zt,id,qa,Rg,ci,Fx="Audio",eh,za,Dx="Pipelines available for audio tasks include the following.",th,Ke,Ft,ld,Ga,Sg,di,Rx="AudioClassificationPipeline",nh,S,Aa,Vg,mi,Sx=`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.`,Bg,Dt,Lg,hi,Vx='Learn more about the basics of using a pipeline in the <a href="../pipeline_tutorial">pipeline tutorial</a>',Wg,fi,Bx=`This pipeline can currently be loaded from <a href="/docs/transformers/v4.34.0/en/main_classes/pipelines#transformers.pipeline">pipeline()</a> using the following task identifier:
<code>&quot;audio-classification&quot;</code>.`,Eg,gi,Lx=`See the list of available models on
<a href="https://huggingface.co/models?filter=audio-classification" rel="nofollow">huggingface.co/models</a>.`,Hg,Rt,Na,Og,ui,Wx=`Classify the sequence(s) given as inputs. See the <a href="/docs/transformers/v4.34.0/en/main_classes/pipelines#transformers.AutomaticSpeechRecognitionPipeline">AutomaticSpeechRecognitionPipeline</a> documentation for more
information.`,sh,et,St,pd,Za,Yg,Ti,Ex="AutomaticSpeechRecognitionPipeline",ah,re,Fa,Qg,bi,Hx="Pipeline that aims at extracting spoken text contained within some audio.",Xg,yi,Ox=`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`,Kg,Vt,eu,wi,Yx='Learn more about the basics of using a pipeline in the <a href="../pipeline_tutorial">pipeline tutorial</a>',tu,Bt,Da,nu,xi,Qx=`Transcribe the audio sequence(s) given as inputs to text. See the <a href="/docs/transformers/v4.34.0/en/main_classes/pipelines#transformers.AutomaticSpeechRecognitionPipeline">AutomaticSpeechRecognitionPipeline</a>
documentation for more information.`,oh,tt,Lt,cd,Ra,su,vi,Xx="TextToAudioPipeline",rh,V,Sa,au,_i,Kx=`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.`,ou,Wt,ru,Mi,ev='Learn more about the basics of using a pipeline in the <a href="../pipeline_tutorial">pipeline tutorial</a>',iu,ki,tv=`This pipeline can currently be loaded from <a href="/docs/transformers/v4.34.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>.`,lu,Ui,nv='See the list of available models on <a href="https://huggingface.co/models?filter=text-to-speech" rel="nofollow">huggingface.co/models</a>.',pu,Et,Va,cu,ji,sv='Generates speech/audio from the inputs. See the <a href="/docs/transformers/v4.34.0/en/main_classes/pipelines#transformers.TextToAudioPipeline">TextToAudioPipeline</a> documentation for more information.',ih,nt,Ht,dd,Ba,du,Pi,av="ZeroShotAudioClassificationPipeline",lh,Te,La,mu,$i,ov=`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>.`,hu,Ot,fu,Ci,rv=`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.34.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>.`,gu,Yt,Wa,uu,Ji,iv="Assign labels to the audio(s) passed as inputs.",ph,st,Qt,md,Ea,Tu,Ii,lv="Computer vision",ch,Ha,pv="Pipelines available for computer vision tasks include the following.",dh,at,Xt,hd,Oa,bu,qi,cv="DepthEstimationPipeline",mh,B,Ya,yu,zi,dv="Depth estimation pipeline using any <code>AutoModelForDepthEstimation</code>. This pipeline predicts the depth of an image.",wu,Kt,xu,Gi,mv='Learn more about the basics of using a pipeline in the <a href="../pipeline_tutorial">pipeline tutorial</a>',vu,Ai,hv=`This depth estimation pipeline can currently be loaded from <a href="/docs/transformers/v4.34.0/en/main_classes/pipelines#transformers.pipeline">pipeline()</a> using the following task identifier:
<code>&quot;depth-estimation&quot;</code>.`,_u,Ni,fv='See the list of available models on <a href="https://huggingface.co/models?filter=depth-estimation" rel="nofollow">huggingface.co/models</a>.',Mu,en,Qa,ku,Zi,gv="Assign labels to the image(s) passed as inputs.",hh,ot,tn,fd,Xa,Uu,Fi,uv="ImageClassificationPipeline",fh,L,Ka,ju,Di,Tv=`Image classification pipeline using any <code>AutoModelForImageClassification</code>. This pipeline predicts the class of an
image.`,Pu,nn,$u,Ri,bv='Learn more about the basics of using a pipeline in the <a href="../pipeline_tutorial">pipeline tutorial</a>',Cu,Si,yv=`This image classification pipeline can currently be loaded from <a href="/docs/transformers/v4.34.0/en/main_classes/pipelines#transformers.pipeline">pipeline()</a> using the following task identifier:
<code>&quot;image-classification&quot;</code>.`,Ju,Vi,wv=`See the list of available models on
<a href="https://huggingface.co/models?filter=image-classification" rel="nofollow">huggingface.co/models</a>.`,Iu,sn,eo,qu,Bi,xv="Assign labels to the image(s) passed as inputs.",gh,rt,an,gd,to,zu,Li,vv="ImageSegmentationPipeline",uh,ie,no,Gu,Wi,_v=`Image segmentation pipeline using any <code>AutoModelForXXXSegmentation</code>. This pipeline predicts masks of objects and
their classes.`,Au,on,Nu,Ei,Mv=`This image segmentation pipeline can currently be loaded from <a href="/docs/transformers/v4.34.0/en/main_classes/pipelines#transformers.pipeline">pipeline()</a> using the following task identifier:
<code>&quot;image-segmentation&quot;</code>.`,Zu,Hi,kv=`See the list of available models on
<a href="https://huggingface.co/models?filter=image-segmentation" rel="nofollow">huggingface.co/models</a>.`,Fu,rn,so,Du,Oi,Uv="Perform segmentation (detect masks & classes) in the image(s) passed as inputs.",Th,it,ln,ud,ao,Ru,Yi,jv="ImageToImagePipeline",bh,le,oo,Su,Qi,Pv=`Image to Image pipeline using any <code>AutoModelForImageToImage</code>. This pipeline generates an image based on a previous
image input.`,Vu,pn,Bu,Xi,$v=`This image to image pipeline can currently be loaded from <a href="/docs/transformers/v4.34.0/en/main_classes/pipelines#transformers.pipeline">pipeline()</a> using the following task identifier:
<code>&quot;image-to-image&quot;</code>.`,Lu,Ki,Cv='See the list of available models on <a href="https://huggingface.co/models?filter=image-to-image" rel="nofollow">huggingface.co/models</a>.',Wu,cn,ro,Eu,el,Jv="Transform the image(s) passed as inputs.",yh,lt,dn,Td,io,Hu,tl,Iv="ObjectDetectionPipeline",wh,W,lo,Ou,nl,qv=`Object detection pipeline using any <code>AutoModelForObjectDetection</code>. This pipeline predicts bounding boxes of objects
and their classes.`,Yu,mn,Qu,sl,zv='Learn more about the basics of using a pipeline in the <a href="../pipeline_tutorial">pipeline tutorial</a>',Xu,al,Gv=`This object detection pipeline can currently be loaded from <a href="/docs/transformers/v4.34.0/en/main_classes/pipelines#transformers.pipeline">pipeline()</a> using the following task identifier:
<code>&quot;object-detection&quot;</code>.`,Ku,ol,Av='See the list of available models on <a href="https://huggingface.co/models?filter=object-detection" rel="nofollow">huggingface.co/models</a>.',eT,hn,po,tT,rl,Nv="Detect objects (bounding boxes & classes) in the image(s) passed as inputs.",xh,pt,fn,bd,co,nT,il,Zv="VideoClassificationPipeline",vh,be,mo,sT,ll,Fv=`Video classification pipeline using any <code>AutoModelForVideoClassification</code>. This pipeline predicts the class of a
video.`,aT,pl,Dv=`This video classification pipeline can currently be loaded from <a href="/docs/transformers/v4.34.0/en/main_classes/pipelines#transformers.pipeline">pipeline()</a> using the following task identifier:
<code>&quot;video-classification&quot;</code>.`,oT,cl,Rv=`See the list of available models on
<a href="https://huggingface.co/models?filter=video-classification" rel="nofollow">huggingface.co/models</a>.`,rT,gn,ho,iT,dl,Sv="Assign labels to the video(s) passed as inputs.",_h,ct,un,yd,fo,lT,ml,Vv="ZeroShotImageClassificationPipeline",Mh,E,go,pT,hl,Bv=`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>.`,cT,Tn,dT,fl,Lv='Learn more about the basics of using a pipeline in the <a href="../pipeline_tutorial">pipeline tutorial</a>',mT,gl,Wv=`This image classification pipeline can currently be loaded from <a href="/docs/transformers/v4.34.0/en/main_classes/pipelines#transformers.pipeline">pipeline()</a> using the following task identifier:
<code>&quot;zero-shot-image-classification&quot;</code>.`,hT,ul,Ev=`See the list of available models on
<a href="https://huggingface.co/models?filter=zero-shot-image-classification" rel="nofollow">huggingface.co/models</a>.`,fT,bn,uo,gT,Tl,Hv="Assign labels to the image(s) passed as inputs.",kh,dt,yn,wd,To,uT,bl,Ov="ZeroShotObjectDetectionPipeline",Uh,H,bo,TT,yl,Yv=`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>.`,bT,wn,yT,wl,Qv='Learn more about the basics of using a pipeline in the <a href="../pipeline_tutorial">pipeline tutorial</a>',wT,xl,Xv=`This object detection pipeline can currently be loaded from <a href="/docs/transformers/v4.34.0/en/main_classes/pipelines#transformers.pipeline">pipeline()</a> using the following task identifier:
<code>&quot;zero-shot-object-detection&quot;</code>.`,xT,vl,Kv=`See the list of available models on
<a href="https://huggingface.co/models?filter=zero-shot-object-detection" rel="nofollow">huggingface.co/models</a>.`,vT,xn,yo,_T,_l,e_="Detect objects (bounding boxes & classes) in the image(s) passed as inputs.",jh,mt,vn,xd,wo,MT,Ml,t_="Natural Language Processing",Ph,xo,n_="Pipelines available for natural language processing tasks include the following.",$h,ht,_n,vd,vo,kT,kl,s_="ConversationalPipeline",Ch,pe,_o,UT,Ul,a_=`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.34.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.`,jT,Mn,PT,kn,Mo,$T,jl,o_=`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.`,CT,Un,ko,JT,Pl,r_="This is a legacy method. We recommend just using <code>add_message</code> with an appropriate role instead.",IT,jn,Uo,qT,$l,i_=`This is a legacy method that no longer has any effect, as the Conversation no longer distinguishes between
processed and unprocessed user input.`,Jh,O,jo,zT,Cl,l_="Multi-turn conversational pipeline.",GT,Pn,AT,Jl,p_='Learn more about the basics of using a pipeline in the <a href="../pipeline_tutorial">pipeline tutorial</a>',NT,Il,c_=`This conversational pipeline can currently be loaded from <a href="/docs/transformers/v4.34.0/en/main_classes/pipelines#transformers.pipeline">pipeline()</a> using the following task identifier:
<code>&quot;conversational&quot;</code>.`,ZT,ql,d_=`The models that this pipeline can use are models that have been fine-tuned on a multi-turn conversational task,
currently: <em>‘microsoft/DialoGPT-small’</em>, <em>‘microsoft/DialoGPT-medium’</em>, <em>‘microsoft/DialoGPT-large’</em>. See the
up-to-date list of available models on
<a href="https://huggingface.co/models?filter=conversational" rel="nofollow">huggingface.co/models</a>.`,FT,$n,Po,DT,zl,m_="Generate responses for the conversation(s) given as inputs.",Ih,ft,Cn,_d,$o,RT,Gl,h_="FillMaskPipeline",qh,G,Co,ST,Al,f_=`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.`,VT,Jn,BT,Nl,g_='Learn more about the basics of using a pipeline in the <a href="../pipeline_tutorial">pipeline tutorial</a>',LT,Zl,u_=`This mask filling pipeline can currently be loaded from <a href="/docs/transformers/v4.34.0/en/main_classes/pipelines#transformers.pipeline">pipeline()</a> using the following task identifier:
<code>&quot;fill-mask&quot;</code>.`,WT,Fl,T_=`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>.`,ET,In,HT,qn,OT,zn,Jo,YT,Dl,b_="Fill the masked token in the text(s) given as inputs.",zh,gt,Gn,Md,Io,QT,Rl,y_="NerPipeline",Gh,z,qo,XT,Sl,w_=`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.`,KT,An,eb,Vl,x_='Learn more about the basics of using a pipeline in the <a href="../pipeline_tutorial">pipeline tutorial</a>',tb,Bl,v_=`This token recognition pipeline can currently be loaded from <a href="/docs/transformers/v4.34.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).`,nb,Ll,__=`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>.`,sb,De,zo,ab,Wl,M_="Override tokens from a given word that disagree to force agreement on word boundaries.",ob,El,k_=`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`,rb,Nn,Go,ib,Hl,U_="Fuse various numpy arrays into dicts with all the information needed for aggregation",lb,Zn,Ao,pb,Ol,j_="Find and group together the adjacent tokens with the same entity predicted.",cb,Fn,No,db,Yl,P_="Group together the adjacent tokens with the same entity predicted.",Ah,Zo,$_='See <a href="/docs/transformers/v4.34.0/en/main_classes/pipelines#transformers.TokenClassificationPipeline">TokenClassificationPipeline</a> for all details.',Nh,ut,Dn,kd,Fo,mb,Ql,C_="QuestionAnsweringPipeline",Zh,A,Do,hb,Xl,J_=`Question Answering pipeline using any <code>ModelForQuestionAnswering</code>. See the <a href="../task_summary#question-answering">question answering
examples</a> for more information.`,fb,Rn,gb,Kl,I_='Learn more about the basics of using a pipeline in the <a href="../pipeline_tutorial">pipeline tutorial</a>',ub,ep,q_=`This question answering pipeline can currently be loaded from <a href="/docs/transformers/v4.34.0/en/main_classes/pipelines#transformers.pipeline">pipeline()</a> using the following task identifier:
<code>&quot;question-answering&quot;</code>.`,Tb,tp,z_=`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>.`,bb,Sn,Ro,yb,np,G_="Answer the question(s) given as inputs by using the context(s).",wb,Re,So,xb,sp,A_=`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>.`,vb,ap,N_="We currently support extractive question answering.",_b,Vn,Vo,Mb,op,Z_="When decoding from token probabilities, this method maps token indexes to actual word in the initial context.",Fh,Tt,Bn,Ud,Bo,kb,rp,F_="SummarizationPipeline",Dh,ce,Lo,Ub,ip,D_="Summarize news articles and other documents.",jb,lp,R_=`This summarizing pipeline can currently be loaded from <a href="/docs/transformers/v4.34.0/en/main_classes/pipelines#transformers.pipeline">pipeline()</a> using the following task identifier:
<code>&quot;summarization&quot;</code>.`,Pb,pp,S_=`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>`,$b,Ln,Cb,Wn,Wo,Jb,cp,V_="Summarize the text(s) given as inputs.",Rh,bt,En,jd,Eo,Ib,dp,B_="TableQuestionAnsweringPipeline",Sh,Y,Ho,qb,mp,L_=`Table Question Answering pipeline using a <code>ModelForTableQuestionAnswering</code>. This pipeline is only available in
PyTorch.`,zb,Hn,Gb,hp,W_='Learn more about the basics of using a pipeline in the <a href="../pipeline_tutorial">pipeline tutorial</a>',Ab,fp,E_=`This tabular question answering pipeline can currently be loaded from <a href="/docs/transformers/v4.34.0/en/main_classes/pipelines#transformers.pipeline">pipeline()</a> using the following task
identifier: <code>&quot;table-question-answering&quot;</code>.`,Nb,gp,H_=`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>.`,Zb,ne,Oo,Fb,up,O_="Answers queries according to a table. The pipeline accepts several types of inputs which are detailed below:",Db,Tp,Y_="<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>",Rb,bp,Q_="The <code>table</code> argument should be a dict or a DataFrame built from that dict, containing the whole table:",Sb,On,Vb,yp,X_="This dictionary can be passed in as such, or can be converted to a pandas DataFrame:",Bb,Yn,Vh,yt,Qn,Pd,Yo,Lb,wp,K_="TextClassificationPipeline",Bh,F,Qo,Wb,xp,eM=`Text classification pipeline using any <code>ModelForSequenceClassification</code>. See the <a href="../task_summary#sequence-classification">sequence classification
examples</a> for more information.`,Eb,Xn,Hb,vp,tM='Learn more about the basics of using a pipeline in the <a href="../pipeline_tutorial">pipeline tutorial</a>',Ob,_p,nM=`This text classification pipeline can currently be loaded from <a href="/docs/transformers/v4.34.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).`,Yb,Mp,sM=`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.`,Qb,kp,aM=`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>.`,Xb,Kn,Xo,Kb,Up,oM="Classify the text(s) given as inputs.",Lh,wt,es,$d,Ko,ey,jp,rM="TextGenerationPipeline",Wh,Q,er,ty,Pp,iM=`Language generation pipeline using any <code>ModelWithLMHead</code>. This pipeline predicts the words that will follow a
specified text prompt.`,ny,ts,sy,$p,lM=`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>.`,ay,Cp,pM=`This language generation pipeline can currently be loaded from <a href="/docs/transformers/v4.34.0/en/main_classes/pipelines#transformers.pipeline">pipeline()</a> using the following task identifier:
<code>&quot;text-generation&quot;</code>.`,oy,Jp,cM=`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>.`,ry,ns,tr,iy,Ip,dM="Complete the prompt(s) given as inputs.",Eh,xt,ss,Cd,nr,ly,qp,mM="Text2TextGenerationPipeline",Hh,N,sr,py,zp,hM="Pipeline for text to text generation using seq2seq models.",cy,as,dy,Gp,fM=`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>.`,my,Ap,gM=`This Text2TextGenerationPipeline pipeline can currently be loaded from <a href="/docs/transformers/v4.34.0/en/main_classes/pipelines#transformers.pipeline">pipeline()</a> using the following task
identifier: <code>&quot;text2text-generation&quot;</code>.`,hy,Np,uM=`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>`,fy,os,gy,rs,ar,uy,Zp,TM="Generate the output text(s) using text(s) given as inputs.",Ty,is,or,by,Fp,bM="Checks whether there might be something wrong with given input with regard to the model.",Oh,vt,ls,Jd,rr,yy,Dp,yM="TokenClassificationPipeline",Yh,q,ir,wy,Rp,wM=`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.`,xy,ps,vy,Sp,xM='Learn more about the basics of using a pipeline in the <a href="../pipeline_tutorial">pipeline tutorial</a>',_y,Vp,vM=`This token recognition pipeline can currently be loaded from <a href="/docs/transformers/v4.34.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).`,My,Bp,_M=`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>.`,ky,cs,lr,Uy,Lp,MM="Classify each token of the text(s) given as inputs.",jy,Se,pr,Py,Wp,kM="Override tokens from a given word that disagree to force agreement on word boundaries.",$y,Ep,UM=`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`,Cy,ds,cr,Jy,Hp,jM="Fuse various numpy arrays into dicts with all the information needed for aggregation",Iy,ms,dr,qy,Op,PM="Find and group together the adjacent tokens with the same entity predicted.",zy,hs,mr,Gy,Yp,$M="Group together the adjacent tokens with the same entity predicted.",Qh,_t,fs,Id,hr,Ay,Qp,CM="TranslationPipeline",Xh,de,fr,Ny,Xp,JM="Translates from one language to another.",Zy,Kp,IM=`This translation pipeline can currently be loaded from <a href="/docs/transformers/v4.34.0/en/main_classes/pipelines#transformers.pipeline">pipeline()</a> using the following task identifier:
<code>&quot;translation_xx_to_yy&quot;</code>.`,Fy,ec,qM=`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>`,Dy,gs,Ry,us,gr,Sy,tc,zM="Translate the text(s) given as inputs.",Kh,Mt,Ts,qd,ur,Vy,nc,GM="ZeroShotClassificationPipeline",ef,D,Tr,By,sc,AM=`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.`,Ly,ac,NM=`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>.`,Wy,bs,Ey,oc,ZM='Learn more about the basics of using a pipeline in the <a href="../pipeline_tutorial">pipeline tutorial</a>',Hy,rc,FM=`This NLI pipeline can currently be loaded from <a href="/docs/transformers/v4.34.0/en/main_classes/pipelines#transformers.pipeline">pipeline()</a> using the following task identifier:
<code>&quot;zero-shot-classification&quot;</code>.`,Oy,ic,DM=`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>.`,Yy,ys,br,Qy,lc,RM=`Classify the sequence(s) given as inputs. See the <a href="/docs/transformers/v4.34.0/en/main_classes/pipelines#transformers.ZeroShotClassificationPipeline">ZeroShotClassificationPipeline</a> documentation for more
information.`,tf,kt,ws,zd,yr,Xy,pc,SM="Multimodal",nf,wr,VM="Pipelines available for multimodal tasks include the following.",sf,Ut,xs,Gd,xr,Ky,cc,BM="DocumentQuestionAnsweringPipeline",af,X,vr,ew,dc,LM=`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.`,tw,vs,nw,mc,WM='Learn more about the basics of using a pipeline in the <a href="../pipeline_tutorial">pipeline tutorial</a>',sw,hc,EM=`This document question answering pipeline can currently be loaded from <a href="/docs/transformers/v4.34.0/en/main_classes/pipelines#transformers.pipeline">pipeline()</a> using the following task
identifier: <code>&quot;document-question-answering&quot;</code>.`,aw,fc,HM=`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>.`,ow,ze,_r,rw,gc,OM=`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.`,iw,uc,YM="You can invoke the pipeline several ways:",lw,Tc,QM="<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>",of,jt,_s,Ad,Mr,pw,bc,XM="FeatureExtractionPipeline",rf,K,kr,cw,yc,KM=`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.`,dw,Ms,mw,wc,e2='Learn more about the basics of using a pipeline in the <a href="../pipeline_tutorial">pipeline tutorial</a>',hw,xc,t2=`This feature extraction pipeline can currently be loaded from <a href="/docs/transformers/v4.34.0/en/main_classes/pipelines#transformers.pipeline">pipeline()</a> using the task identifier:
<code>&quot;feature-extraction&quot;</code>.`,fw,vc,n2=`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>.`,gw,ks,Ur,uw,_c,s2="Extract the features of the input(s).",lf,Pt,Us,Nd,jr,Tw,Mc,a2="ImageToTextPipeline",pf,ee,Pr,bw,kc,o2="Image To Text pipeline using a <code>AutoModelForVision2Seq</code>. This pipeline predicts a caption for a given image.",yw,js,ww,Uc,r2='Learn more about the basics of using a pipeline in the <a href="../pipeline_tutorial">pipeline tutorial</a>',xw,jc,i2=`This image to text pipeline can currently be loaded from pipeline() using the following task identifier:
“image-to-text”.`,vw,Pc,l2=`See the list of available models on
<a href="https://huggingface.co/models?pipeline_tag=image-to-text" rel="nofollow">huggingface.co/models</a>.`,_w,Ps,$r,Mw,$c,p2="Assign labels to the image(s) passed as inputs.",cf,$t,$s,Zd,Cr,kw,Cc,c2="VisualQuestionAnsweringPipeline",df,te,Jr,Uw,Jc,d2=`Visual Question Answering pipeline using a <code>AutoModelForVisualQuestionAnswering</code>. This pipeline is currently only
available in PyTorch.`,jw,Cs,Pw,Ic,m2='Learn more about the basics of using a pipeline in the <a href="../pipeline_tutorial">pipeline tutorial</a>',$w,qc,h2=`This visual question answering pipeline can currently be loaded from <a href="/docs/transformers/v4.34.0/en/main_classes/pipelines#transformers.pipeline">pipeline()</a> using the following task
identifiers: <code>&quot;visual-question-answering&quot;, &quot;vqa&quot;</code>.`,Cw,zc,f2=`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>.`,Jw,Ve,Ir,Iw,Gc,g2=`Answers open-ended questions about images. The pipeline accepts several types of inputs which are detailed
below:`,qw,Ac,u2="<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>",mf,Ct,Js,Fd,qr,zw,Nc,T2="Parent class: <code>Pipeline</code>",hf,J,zr,Gw,Zc,b2=`The Pipeline class is the class from which all pipelines inherit. Refer to this class for methods shared across
different pipelines.`,Aw,Fc,y2=`Base class implementing pipelined operations. Pipeline workflow is defined as a sequence of the following
operations:`,Nw,Dc,w2="Input -> Tokenization -> Model Inference -> Post-Processing (task dependent) -> Output",Zw,Rc,x2="Pipeline supports running on CPU or GPU through the device argument (see below).",Fw,Sc,v2=`Some pipeline, like for instance <a href="/docs/transformers/v4.34.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.`,Dw,Is,Gr,Rw,Vc,_2="Check if the model class is in supported by the pipeline.",Sw,Be,Ar,Vw,Bc,M2="Context Manager allowing tensor allocation on the user-specified device in framework agnostic way.",Bw,qs,Lw,zs,Nr,Ww,Lc,k2="Ensure PyTorch tensors are on the specified device.",Ew,Gs,Zr,Hw,Wc,U2=`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).`,Ow,As,Fr,Yw,Ec,j2="Scikit / Keras interface to transformers’ pipelines. This method will forward to <strong>call</strong>().",Qw,Ns,Dr,Xw,Hc,P2=`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.`,Kw,Zs,Rr,ex,Oc,$2="Save the pipeline’s model and tokenizer.",tx,Fs,Sr,nx,Yc,C2="Scikit / Keras interface to transformers’ pipelines. This method will forward to <strong>call</strong>().",ff,Dd,gf;return Rs=new P({}),Ls=new P({}),Hs=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}}),Ys=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}}),Xs=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}}),ea=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}}),na=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}}),sa=new k({props:{name:"transformers.pipeline",anchor:"transformers.pipeline",parameters:[{name:"task",val:": str = None"},{name:"model",val:": typing.Union[str, ForwardRef('PreTrainedModel'), ForwardRef('TFPreTrainedModel'), NoneType] = None"},{name:"config",val:": typing.Union[str, transformers.configuration_utils.PretrainedConfig, NoneType] = None"},{name:"tokenizer",val:": typing.Union[str, transformers.tokenization_utils.PreTrainedTokenizer, ForwardRef('PreTrainedTokenizerFast'), NoneType] = None"},{name:"feature_extractor",val:": typing.Union[str, ForwardRef('SequenceFeatureExtractor'), NoneType] = None"},{name:"image_processor",val:": typing.Union[str, transformers.image_processing_utils.BaseImageProcessor, NoneType] = None"},{name:"framework",val:": typing.Optional[str] = None"},{name:"revision",val:": typing.Optional[str] = None"},{name:"use_fast",val:": bool = True"},{name:"token",val:": typing.Union[bool, str, NoneType] = None"},{name:"device",val:": typing.Union[int, str, ForwardRef('torch.device'), NoneType] = None"},{name:"device_map",val:" = None"},{name:"torch_dtype",val:" = None"},{name:"trust_remote_code",val:": typing.Optional[bool] = None"},{name:"model_kwargs",val:": typing.Dict[str, typing.Any] = None"},{name:"pipeline_class",val:": typing.Optional[typing.Any] = 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.34.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.34.0/en/main_classes/pipelines#transformers.AutomaticSpeechRecognitionPipeline">AutomaticSpeechRecognitionPipeline</a>.</li>
<li><code>&quot;conversational&quot;</code>: will return a <a href="/docs/transformers/v4.34.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.34.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.34.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.34.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.34.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.34.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.34.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.34.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.34.0/en/main_classes/pipelines#transformers.ImageToTextPipeline">ImageToTextPipeline</a>.</li>
<li><code>&quot;mask-generation&quot;</code>: will return a <code>MaskGenerationPipeline</code>.</li>
<li><code>&quot;object-detection&quot;</code>: will return a <a href="/docs/transformers/v4.34.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.34.0/en/main_classes/pipelines#transformers.QuestionAnsweringPipeline">QuestionAnsweringPipeline</a>.</li>
<li><code>&quot;summarization&quot;</code>: will return a <a href="/docs/transformers/v4.34.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.34.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.34.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.34.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.34.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.34.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.34.0/en/main_classes/pipelines#transformers.TokenClassificationPipeline">TokenClassificationPipeline</a>.</li>
<li><code>&quot;translation&quot;</code>: will return a <a href="/docs/transformers/v4.34.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.34.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.34.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.34.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.34.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.34.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.34.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.34.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.34.0/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> or <a href="/docs/transformers/v4.34.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.34.0/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> (for PyTorch) or
<a href="/docs/transformers/v4.34.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.34.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.34.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.34.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.34.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.34.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.34.0/src/transformers/pipelines/__init__.py#L527",returnDescription:`
<p>A suitable pipeline for the task.</p>
`,returnType:`
<p><a
  href="/docs/transformers/v4.34.0/en/main_classes/pipelines#transformers.Pipeline"
>Pipeline</a></p>
`}}),It=new C({props:{anchor:"transformers.pipeline.example",$$slots:{default:[Dk]},$$scope:{ctx:U}}}),aa=new P({}),ra=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}}),zt=new sx({props:{warning:!0,$$slots:{default:[Rk]},$$scope:{ctx:U}}}),ia=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}}),la=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}}),ca=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}}),ma=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}}),ua=new P({}),ya=new j({props:{code:"cHJlcHJvY2Vzc2VkJTIwJTNEJTIwcGlwZS5wcmVwcm9jZXNzKGlucHV0cyklMEFtb2RlbF9vdXRwdXRzJTIwJTNEJTIwcGlwZS5mb3J3YXJkKHByZXByb2Nlc3NlZCklMEFvdXRwdXRzJTIwJTNEJTIwcGlwZS5wb3N0cHJvY2Vzcyhtb2RlbF9vdXRwdXRzKQ==",highlighted:`preprocessed = pipe.preprocess(inputs)
model_outputs = pipe.forward(preprocessed)
outputs = pipe.postprocess(model_outputs)`,wrap:!1}}),xa=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}}),Ma=new P({}),$a=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}}),Ja=new P({}),qa=new P({}),Ga=new P({}),Aa=new k({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.34.0/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> or <a href="/docs/transformers/v4.34.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.34.0/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> for PyTorch and <a href="/docs/transformers/v4.34.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.34.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.34.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.34.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.34.0/src/transformers/pipelines/audio_classification.py#L67"}}),Dt=new C({props:{anchor:"transformers.AudioClassificationPipeline.example",$$slots:{default:[Sk]},$$scope:{ctx:U}}}),Na=new k({props:{name:"__call__",anchor:"transformers.AudioClassificationPipeline.__call__",parameters:[{name:"inputs",val:": typing.Union[numpy.ndarray, bytes, str]"},{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.34.0/src/transformers/pipelines/audio_classification.py#L103",returnDescription:`
<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:`
<p>A list of <code>dict</code> with the following keys</p>
`}}),Za=new P({}),Fa=new k({props:{name:"class transformers.AutomaticSpeechRecognitionPipeline",anchor:"transformers.AutomaticSpeechRecognitionPipeline",parameters:[{name:"model",val:": PreTrainedModel"},{name:"feature_extractor",val:": typing.Union[ForwardRef('SequenceFeatureExtractor'), str] = None"},{name:"tokenizer",val:": typing.Optional[transformers.tokenization_utils.PreTrainedTokenizer] = None"},{name:"decoder",val:": typing.Union[ForwardRef('BeamSearchDecoderCTC'), str, NoneType] = None"},{name:"modelcard",val:": typing.Optional[transformers.modelcard.ModelCard] = None"},{name:"framework",val:": typing.Optional[str] = None"},{name:"task",val:": str = ''"},{name:"args_parser",val:": ArgumentHandler = None"},{name:"device",val:": typing.Union[int, ForwardRef('torch.device')] = None"},{name:"torch_dtype",val:": typing.Union[str, ForwardRef('torch.dtype'), NoneType] = None"},{name:"binary_output",val:": bool = False"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.AutomaticSpeechRecognitionPipeline.model",description:`<strong>model</strong> (<a href="/docs/transformers/v4.34.0/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> or <a href="/docs/transformers/v4.34.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.34.0/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> for PyTorch and <a href="/docs/transformers/v4.34.0/en/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a> for TensorFlow.`,name:"model"},{anchor:"transformers.AutomaticSpeechRecognitionPipeline.tokenizer",description:`<strong>tokenizer</strong> (<a href="/docs/transformers/v4.34.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.34.0/en/main_classes/tokenizer#transformers.PreTrainedTokenizer">PreTrainedTokenizer</a>.`,name:"tokenizer"},{anchor:"transformers.AutomaticSpeechRecognitionPipeline.feature_extractor",description:`<strong>feature_extractor</strong> (<a href="/docs/transformers/v4.34.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.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.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.34.0/en/model_doc/wav2vec2#transformers.Wav2Vec2ProcessorWithLM">Wav2Vec2ProcessorWithLM</a> for more information.`,name:"decoder"}],source:"https://github.com/huggingface/transformers/blob/v4.34.0/src/transformers/pipelines/automatic_speech_recognition.py#L135"}}),Vt=new C({props:{anchor:"transformers.AutomaticSpeechRecognitionPipeline.example",$$slots:{default:[Vk]},$$scope:{ctx:U}}}),Da=new k({props:{name:"__call__",anchor:"transformers.AutomaticSpeechRecognitionPipeline.__call__",parameters:[{name:"inputs",val:": typing.Union[numpy.ndarray, bytes, str]"},{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.34.0/src/transformers/pipelines/automatic_speech_recognition.py#L294",returnDescription:`
<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:`
<p><code>Dict</code></p>
`}}),Ra=new P({}),Sa=new k({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.34.0/src/transformers/pipelines/text_to_audio.py#L27"}}),Wt=new C({props:{anchor:"transformers.TextToAudioPipeline.example",$$slots:{default:[Bk]},$$scope:{ctx:U}}}),Va=new k({props:{name:"__call__",anchor:"transformers.TextToAudioPipeline.__call__",parameters:[{name:"text_inputs",val:": typing.Union[str, typing.List[str]]"},{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> (<em>optional</em>) &#x2014;
Parameters passed to the model generation/forward method.`,name:"forward_params"}],source:"https://github.com/huggingface/transformers/blob/v4.34.0/src/transformers/pipelines/text_to_audio.py#L122",returnDescription:`
<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:`
<p>A <code>dict</code> or a list of <code>dict</code></p>
`}}),Ba=new P({}),La=new k({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.34.0/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> or <a href="/docs/transformers/v4.34.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.34.0/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> for PyTorch and <a href="/docs/transformers/v4.34.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.34.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.34.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.34.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.34.0/src/transformers/pipelines/zero_shot_audio_classification.py#L33"}}),Ot=new C({props:{anchor:"transformers.ZeroShotAudioClassificationPipeline.example",$$slots:{default:[Lk]},$$scope:{ctx:U}}}),Wa=new k({props:{name:"__call__",anchor:"transformers.ZeroShotAudioClassificationPipeline.__call__",parameters:[{name:"audios",val:": typing.Union[numpy.ndarray, bytes, str]"},{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.34.0/src/transformers/pipelines/zero_shot_audio_classification.py#L64",returnDescription:`
<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>
`}}),Ea=new P({}),Oa=new P({}),Ya=new k({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.34.0/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> or <a href="/docs/transformers/v4.34.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.34.0/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> for PyTorch and <a href="/docs/transformers/v4.34.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.34.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.34.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.34.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.34.0/src/transformers/pipelines/depth_estimation.py#L23"}}),Kt=new C({props:{anchor:"transformers.DepthEstimationPipeline.example",$$slots:{default:[Wk]},$$scope:{ctx:U}}}),Qa=new k({props:{name:"__call__",anchor:"transformers.DepthEstimationPipeline.__call__",parameters:[{name:"images",val:": typing.Union[str, typing.List[str], ForwardRef('Image.Image'), typing.List[ForwardRef('Image.Image')]]"},{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.34.0/src/transformers/pipelines/depth_estimation.py#L53",returnDescription:`
<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>
`}}),Xa=new P({}),Ka=new k({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.34.0/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> or <a href="/docs/transformers/v4.34.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.34.0/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> for PyTorch and <a href="/docs/transformers/v4.34.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.34.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.34.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.34.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"}],source:"https://github.com/huggingface/transformers/blob/v4.34.0/src/transformers/pipelines/image_classification.py#L32"}}),nn=new C({props:{anchor:"transformers.ImageClassificationPipeline.example",$$slots:{default:[Ek]},$$scope:{ctx:U}}}),eo=new k({props:{name:"__call__",anchor:"transformers.ImageClassificationPipeline.__call__",parameters:[{name:"images",val:": typing.Union[str, typing.List[str], ForwardRef('Image.Image'), typing.List[ForwardRef('Image.Image')]]"},{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__.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.34.0/src/transformers/pipelines/image_classification.py#L74",returnDescription:`
<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>
`}}),to=new P({}),no=new k({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.34.0/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> or <a href="/docs/transformers/v4.34.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.34.0/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> for PyTorch and <a href="/docs/transformers/v4.34.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.34.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.34.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.34.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.34.0/src/transformers/pipelines/image_segmentation.py#L31"}}),on=new C({props:{anchor:"transformers.ImageSegmentationPipeline.example",$$slots:{default:[Hk]},$$scope:{ctx:U}}}),so=new k({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.34.0/src/transformers/pipelines/image_segmentation.py#L97",returnDescription:`
<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>
`}}),ao=new P({}),oo=new k({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.34.0/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> or <a href="/docs/transformers/v4.34.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.34.0/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> for PyTorch and <a href="/docs/transformers/v4.34.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.34.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.34.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.34.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.34.0/src/transformers/pipelines/image_to_image.py#L40"}}),pn=new C({props:{anchor:"transformers.ImageToImagePipeline.example",$$slots:{default:[Ok]},$$scope:{ctx:U}}}),ro=new k({props:{name:"__call__",anchor:"transformers.ImageToImagePipeline.__call__",parameters:[{name:"images",val:": typing.Union[str, typing.List[str], ForwardRef('Image.Image'), typing.List[ForwardRef('Image.Image')]]"},{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.34.0/src/transformers/pipelines/image_to_image.py#L87",returnDescription:`
<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>
`}}),io=new P({}),lo=new k({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.34.0/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> or <a href="/docs/transformers/v4.34.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.34.0/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> for PyTorch and <a href="/docs/transformers/v4.34.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.34.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.34.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.34.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.34.0/src/transformers/pipelines/object_detection.py#L27"}}),mn=new C({props:{anchor:"transformers.ObjectDetectionPipeline.example",$$slots:{default:[Yk]},$$scope:{ctx:U}}}),po=new k({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.34.0/src/transformers/pipelines/object_detection.py#L72",returnDescription:`
<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>
`}}),co=new P({}),mo=new k({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.34.0/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> or <a href="/docs/transformers/v4.34.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.34.0/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> for PyTorch and <a href="/docs/transformers/v4.34.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.34.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.34.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.34.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.34.0/src/transformers/pipelines/video_classification.py#L22"}}),ho=new k({props:{name:"__call__",anchor:"transformers.VideoClassificationPipeline.__call__",parameters:[{name:"videos",val:": typing.Union[str, typing.List[str]]"},{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.34.0/src/transformers/pipelines/video_classification.py#L51",returnDescription:`
<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>
`}}),fo=new P({}),go=new k({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.34.0/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> or <a href="/docs/transformers/v4.34.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.34.0/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> for PyTorch and <a href="/docs/transformers/v4.34.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.34.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.34.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.34.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.34.0/src/transformers/pipelines/zero_shot_image_classification.py#L31"}}),Tn=new C({props:{anchor:"transformers.ZeroShotImageClassificationPipeline.example",$$slots:{default:[Qk]},$$scope:{ctx:U}}}),uo=new k({props:{name:"__call__",anchor:"transformers.ZeroShotImageClassificationPipeline.__call__",parameters:[{name:"images",val:": typing.Union[str, typing.List[str], ForwardRef('Image'), typing.List[ForwardRef('Image')]]"},{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.34.0/src/transformers/pipelines/zero_shot_image_classification.py#L74",returnDescription:`
<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>
`}}),To=new P({}),bo=new k({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.34.0/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> or <a href="/docs/transformers/v4.34.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.34.0/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> for PyTorch and <a href="/docs/transformers/v4.34.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.34.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.34.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.34.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.34.0/src/transformers/pipelines/zero_shot_object_detection.py#L23"}}),wn=new C({props:{anchor:"transformers.ZeroShotObjectDetectionPipeline.example",$$slots:{default:[Xk]},$$scope:{ctx:U}}}),yo=new k({props:{name:"__call__",anchor:"transformers.ZeroShotObjectDetectionPipeline.__call__",parameters:[{name:"image",val:": typing.Union[str, ForwardRef('Image.Image'), typing.List[typing.Dict[str, typing.Any]]]"},{name:"candidate_labels",val:": typing.Union[str, typing.List[str]] = 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.34.0/src/transformers/pipelines/zero_shot_object_detection.py#L65",returnDescription:`
<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>
`}}),wo=new P({}),vo=new P({}),_o=new k({props:{name:"class transformers.Conversation",anchor:"transformers.Conversation",parameters:[{name:"messages",val:": typing.Union[str, typing.List[typing.Dict[str, str]]] = 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.34.0/src/transformers/pipelines/conversational.py#L18"}}),Mn=new C({props:{anchor:"transformers.Conversation.example",$$slots:{default:[Kk]},$$scope:{ctx:U}}}),Mo=new k({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.34.0/src/transformers/pipelines/conversational.py#L88"}}),ko=new k({props:{name:"append_response",anchor:"transformers.Conversation.append_response",parameters:[{name:"response",val:": str"}],source:"https://github.com/huggingface/transformers/blob/v4.34.0/src/transformers/pipelines/conversational.py#L109"}}),Uo=new k({props:{name:"mark_processed",anchor:"transformers.Conversation.mark_processed",parameters:[],source:"https://github.com/huggingface/transformers/blob/v4.34.0/src/transformers/pipelines/conversational.py#L115"}}),jo=new k({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.34.0/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> or <a href="/docs/transformers/v4.34.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.34.0/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> for PyTorch and <a href="/docs/transformers/v4.34.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.34.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.34.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.34.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.34.0/src/transformers/pipelines/conversational.py#L179"}}),Pn=new C({props:{anchor:"transformers.ConversationalPipeline.example",$$slots:{default:[e0]},$$scope:{ctx:U}}}),Po=new k({props:{name:"__call__",anchor:"transformers.ConversationalPipeline.__call__",parameters:[{name:"conversations",val:": typing.Union[transformers.pipelines.conversational.Conversation, typing.List[transformers.pipelines.conversational.Conversation]]"},{name:"num_workers",val:" = 0"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.ConversationalPipeline.__call__.conversations",description:`<strong>conversations</strong> (a <a href="/docs/transformers/v4.34.0/en/main_classes/pipelines#transformers.Conversation">Conversation</a> or a list of <a href="/docs/transformers/v4.34.0/en/main_classes/pipelines#transformers.Conversation">Conversation</a>) &#x2014;
Conversations to generate responses for.`,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.34.0/src/transformers/pipelines/conversational.py#L238",returnDescription:`
<p>Conversation(s) with updated generated responses for those
containing a new user input.</p>
`,returnType:`
<p><a
  href="/docs/transformers/v4.34.0/en/main_classes/pipelines#transformers.Conversation"
>Conversation</a> or a list of <a
  href="/docs/transformers/v4.34.0/en/main_classes/pipelines#transformers.Conversation"
>Conversation</a></p>
`}}),$o=new P({}),Co=new k({props:{name:"class transformers.FillMaskPipeline",anchor:"transformers.FillMaskPipeline",parameters:[{name:"model",val:": typing.Union[ForwardRef('PreTrainedModel'), ForwardRef('TFPreTrainedModel')]"},{name:"tokenizer",val:": typing.Optional[transformers.tokenization_utils.PreTrainedTokenizer] = None"},{name:"feature_extractor",val:": typing.Optional[ForwardRef('SequenceFeatureExtractor')] = None"},{name:"image_processor",val:": typing.Optional[transformers.image_processing_utils.BaseImageProcessor] = None"},{name:"modelcard",val:": typing.Optional[transformers.modelcard.ModelCard] = None"},{name:"framework",val:": typing.Optional[str] = None"},{name:"task",val:": str = ''"},{name:"args_parser",val:": ArgumentHandler = None"},{name:"device",val:": typing.Union[int, ForwardRef('torch.device')] = None"},{name:"torch_dtype",val:": typing.Union[str, ForwardRef('torch.dtype'), NoneType] = None"},{name:"binary_output",val:": bool = False"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.FillMaskPipeline.model",description:`<strong>model</strong> (<a href="/docs/transformers/v4.34.0/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> or <a href="/docs/transformers/v4.34.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.34.0/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> for PyTorch and <a href="/docs/transformers/v4.34.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.34.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.34.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.34.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.34.0/src/transformers/pipelines/fill_mask.py#L34"}}),Jn=new C({props:{anchor:"transformers.FillMaskPipeline.example",$$slots:{default:[t0]},$$scope:{ctx:U}}}),In=new sx({props:{$$slots:{default:[n0]},$$scope:{ctx:U}}}),qn=new sx({props:{$$slots:{default:[a0]},$$scope:{ctx:U}}}),Jo=new k({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.34.0/src/transformers/pipelines/fill_mask.py#L248",returnDescription:`
<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:`
<p>A list or a list of list of <code>dict</code></p>
`}}),Io=new P({}),qo=new k({props:{name:"class transformers.TokenClassificationPipeline",anchor:"transformers.TokenClassificationPipeline",parameters:[{name:"args_parser",val:" = <transformers.pipelines.token_classification.TokenClassificationArgumentHandler object at 0x7f0a524069d0>"},{name:"*args",val:""},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.TokenClassificationPipeline.model",description:`<strong>model</strong> (<a href="/docs/transformers/v4.34.0/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> or <a href="/docs/transformers/v4.34.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.34.0/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> for PyTorch and <a href="/docs/transformers/v4.34.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.34.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.34.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.34.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.34.0/src/transformers/pipelines/token_classification.py#L96"}}),An=new C({props:{anchor:"transformers.TokenClassificationPipeline.example",$$slots:{default:[o0]},$$scope:{ctx:U}}}),zo=new k({props:{name:"aggregate_words",anchor:"transformers.TokenClassificationPipeline.aggregate_words",parameters:[{name:"entities",val:": typing.List[dict]"},{name:"aggregation_strategy",val:": AggregationStrategy"}],source:"https://github.com/huggingface/transformers/blob/v4.34.0/src/transformers/pipelines/token_classification.py#L470"}}),Go=new k({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:": typing.Union[typing.List[typing.Tuple[int, int]], NoneType]"},{name:"special_tokens_mask",val:": ndarray"},{name:"aggregation_strategy",val:": AggregationStrategy"}],source:"https://github.com/huggingface/transformers/blob/v4.34.0/src/transformers/pipelines/token_classification.py#L356"}}),Ao=new k({props:{name:"group_entities",anchor:"transformers.TokenClassificationPipeline.group_entities",parameters:[{name:"entities",val:": typing.List[dict]"}],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.34.0/src/transformers/pipelines/token_classification.py#L533"}}),No=new k({props:{name:"group_sub_entities",anchor:"transformers.TokenClassificationPipeline.group_sub_entities",parameters:[{name:"entities",val:": typing.List[dict]"}],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.34.0/src/transformers/pipelines/token_classification.py#L498"}}),Fo=new P({}),Do=new k({props:{name:"class transformers.QuestionAnsweringPipeline",anchor:"transformers.QuestionAnsweringPipeline",parameters:[{name:"model",val:": typing.Union[ForwardRef('PreTrainedModel'), ForwardRef('TFPreTrainedModel')]"},{name:"tokenizer",val:": PreTrainedTokenizer"},{name:"modelcard",val:": typing.Optional[transformers.modelcard.ModelCard] = None"},{name:"framework",val:": typing.Optional[str] = None"},{name:"task",val:": str = ''"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.QuestionAnsweringPipeline.model",description:`<strong>model</strong> (<a href="/docs/transformers/v4.34.0/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> or <a href="/docs/transformers/v4.34.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.34.0/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> for PyTorch and <a href="/docs/transformers/v4.34.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.34.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.34.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.34.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.34.0/src/transformers/pipelines/question_answering.py#L225"}}),Rn=new C({props:{anchor:"transformers.QuestionAnsweringPipeline.example",$$slots:{default:[r0]},$$scope:{ctx:U}}}),Ro=new k({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.34.0/src/transformers/pipelines/question_answering.py#L343",returnDescription:`
<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:`
<p>A <code>dict</code> or a list of <code>dict</code></p>
`}}),So=new k({props:{name:"create_sample",anchor:"transformers.QuestionAnsweringPipeline.create_sample",parameters:[{name:"question",val:": typing.Union[str, typing.List[str]]"},{name:"context",val:": typing.Union[str, typing.List[str]]"}],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.34.0/src/transformers/pipelines/question_answering.py#L278",returnDescription:`
<p>The corresponding <code>SquadExample</code> grouping question and context.</p>
`,returnType:`
<p>One or a list of <code>SquadExample</code></p>
`}}),Vo=new k({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.34.0/src/transformers/pipelines/question_answering.py#L630",returnDescription:`
<p>str, ‘start’: int, ‘end’: int}\`</p>
`,returnType:`
<p>Dictionary like \`{‘answer’</p>
`}}),Bo=new P({}),Lo=new k({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.34.0/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> or <a href="/docs/transformers/v4.34.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.34.0/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> for PyTorch and <a href="/docs/transformers/v4.34.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.34.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.34.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.34.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.34.0/src/transformers/pipelines/text2text_generation.py#L217"}}),Ln=new C({props:{anchor:"transformers.SummarizationPipeline.example",$$slots:{default:[i0]},$$scope:{ctx:U}}}),Wo=new k({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.34.0/src/transformers/pipelines/text2text_generation.py#L245",returnDescription:`
<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:`
<p>A list or a list of list of <code>dict</code></p>
`}}),Eo=new P({}),Ho=new k({props:{name:"class transformers.TableQuestionAnsweringPipeline",anchor:"transformers.TableQuestionAnsweringPipeline",parameters:[{name:"args_parser",val:" = <transformers.pipelines.table_question_answering.TableQuestionAnsweringArgumentHandler object at 0x7f0a524e1a60>"},{name:"*args",val:""},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.TableQuestionAnsweringPipeline.model",description:`<strong>model</strong> (<a href="/docs/transformers/v4.34.0/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> or <a href="/docs/transformers/v4.34.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.34.0/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> for PyTorch and <a href="/docs/transformers/v4.34.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.34.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.34.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.34.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.34.0/src/transformers/pipelines/table_question_answering.py#L88"}}),Hn=new C({props:{anchor:"transformers.TableQuestionAnsweringPipeline.example",$$slots:{default:[l0]},$$scope:{ctx:U}}}),Oo=new k({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.34.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.34.0/src/transformers/pipelines/table_question_answering.py#L270",returnDescription:`
<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:`
<p>A dictionary or a list of dictionaries containing results</p>
`}}),On=new C({props:{anchor:"transformers.TableQuestionAnsweringPipeline.__call__.example",$$slots:{default:[p0]},$$scope:{ctx:U}}}),Yn=new C({props:{anchor:"transformers.TableQuestionAnsweringPipeline.__call__.example-2",$$slots:{default:[c0]},$$scope:{ctx:U}}}),Yo=new P({}),Qo=new k({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.34.0/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> or <a href="/docs/transformers/v4.34.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.34.0/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> for PyTorch and <a href="/docs/transformers/v4.34.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.34.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.34.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.34.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.34.0/src/transformers/pipelines/text_classification.py#L49"}}),Xn=new C({props:{anchor:"transformers.TextClassificationPipeline.example",$$slots:{default:[d0]},$$scope:{ctx:U}}}),Xo=new k({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.34.0/src/transformers/pipelines/text_classification.py#L122",returnDescription:`
<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:`
<p>A list or a list of list of <code>dict</code></p>
`}}),Ko=new P({}),er=new k({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.34.0/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> or <a href="/docs/transformers/v4.34.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.34.0/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> for PyTorch and <a href="/docs/transformers/v4.34.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.34.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.34.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.34.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.34.0/src/transformers/pipelines/text_generation.py#L24"}}),ts=new C({props:{anchor:"transformers.TextGenerationPipeline.example",$$slots:{default:[m0]},$$scope:{ctx:U}}}),tr=new k({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.34.0/src/transformers/pipelines/text_generation.py#L167",returnDescription:`
<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:`
<p>A list or a list of list of <code>dict</code></p>
`}}),nr=new P({}),sr=new k({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.34.0/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> or <a href="/docs/transformers/v4.34.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.34.0/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> for PyTorch and <a href="/docs/transformers/v4.34.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.34.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.34.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.34.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.34.0/src/transformers/pipelines/text2text_generation.py#L26"}}),as=new C({props:{anchor:"transformers.Text2TextGenerationPipeline.example",$$slots:{default:[h0]},$$scope:{ctx:U}}}),os=new C({props:{anchor:"transformers.Text2TextGenerationPipeline.example-2",$$slots:{default:[f0]},$$scope:{ctx:U}}}),ar=new k({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.34.0/src/transformers/pipelines/text2text_generation.py#L138",returnDescription:`
<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:`
<p>A list or a list of list of <code>dict</code></p>
`}}),or=new k({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.34.0/src/transformers/pipelines/text2text_generation.py#L111"}}),rr=new P({}),ir=new k({props:{name:"class transformers.TokenClassificationPipeline",anchor:"transformers.TokenClassificationPipeline",parameters:[{name:"args_parser",val:" = <transformers.pipelines.token_classification.TokenClassificationArgumentHandler object at 0x7f0a524069d0>"},{name:"*args",val:""},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.TokenClassificationPipeline.model",description:`<strong>model</strong> (<a href="/docs/transformers/v4.34.0/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> or <a href="/docs/transformers/v4.34.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.34.0/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> for PyTorch and <a href="/docs/transformers/v4.34.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.34.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.34.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.34.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.34.0/src/transformers/pipelines/token_classification.py#L96"}}),ps=new C({props:{anchor:"transformers.TokenClassificationPipeline.example",$$slots:{default:[g0]},$$scope:{ctx:U}}}),lr=new k({props:{name:"__call__",anchor:"transformers.TokenClassificationPipeline.__call__",parameters:[{name:"inputs",val:": typing.Union[str, typing.List[str]]"},{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.34.0/src/transformers/pipelines/token_classification.py#L219",returnDescription:`
<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:`
<p>A list or a list of list of <code>dict</code></p>
`}}),pr=new k({props:{name:"aggregate_words",anchor:"transformers.TokenClassificationPipeline.aggregate_words",parameters:[{name:"entities",val:": typing.List[dict]"},{name:"aggregation_strategy",val:": AggregationStrategy"}],source:"https://github.com/huggingface/transformers/blob/v4.34.0/src/transformers/pipelines/token_classification.py#L470"}}),cr=new k({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:": typing.Union[typing.List[typing.Tuple[int, int]], NoneType]"},{name:"special_tokens_mask",val:": ndarray"},{name:"aggregation_strategy",val:": AggregationStrategy"}],source:"https://github.com/huggingface/transformers/blob/v4.34.0/src/transformers/pipelines/token_classification.py#L356"}}),dr=new k({props:{name:"group_entities",anchor:"transformers.TokenClassificationPipeline.group_entities",parameters:[{name:"entities",val:": typing.List[dict]"}],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.34.0/src/transformers/pipelines/token_classification.py#L533"}}),mr=new k({props:{name:"group_sub_entities",anchor:"transformers.TokenClassificationPipeline.group_sub_entities",parameters:[{name:"entities",val:": typing.List[dict]"}],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.34.0/src/transformers/pipelines/token_classification.py#L498"}}),hr=new P({}),fr=new k({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.34.0/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> or <a href="/docs/transformers/v4.34.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.34.0/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> for PyTorch and <a href="/docs/transformers/v4.34.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.34.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.34.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.34.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.34.0/src/transformers/pipelines/text2text_generation.py#L287"}}),gs=new C({props:{anchor:"transformers.TranslationPipeline.example",$$slots:{default:[u0]},$$scope:{ctx:U}}}),gr=new k({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.34.0/src/transformers/pipelines/text2text_generation.py#L341",returnDescription:`
<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:`
<p>A list or a list of list of <code>dict</code></p>
`}}),ur=new P({}),Tr=new k({props:{name:"class transformers.ZeroShotClassificationPipeline",anchor:"transformers.ZeroShotClassificationPipeline",parameters:[{name:"args_parser",val:" = <transformers.pipelines.zero_shot_classification.ZeroShotClassificationArgumentHandler object at 0x7f0a523da580>"},{name:"*args",val:""},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.ZeroShotClassificationPipeline.model",description:`<strong>model</strong> (<a href="/docs/transformers/v4.34.0/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> or <a href="/docs/transformers/v4.34.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.34.0/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> for PyTorch and <a href="/docs/transformers/v4.34.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.34.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.34.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.34.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.34.0/src/transformers/pipelines/zero_shot_classification.py#L47"}}),bs=new C({props:{anchor:"transformers.ZeroShotClassificationPipeline.example",$$slots:{default:[T0]},$$scope:{ctx:U}}}),br=new k({props:{name:"__call__",anchor:"transformers.ZeroShotClassificationPipeline.__call__",parameters:[{name:"sequences",val:": typing.Union[str, typing.List[str]]"},{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.34.0/src/transformers/pipelines/zero_shot_classification.py#L163",returnDescription:`
<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:`
<p>A <code>dict</code> or a list of <code>dict</code></p>
`}}),yr=new P({}),xr=new P({}),vr=new k({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.34.0/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> or <a href="/docs/transformers/v4.34.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.34.0/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> for PyTorch and <a href="/docs/transformers/v4.34.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.34.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.34.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.34.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.34.0/src/transformers/pipelines/document_question_answering.py#L102"}}),vs=new C({props:{anchor:"transformers.DocumentQuestionAnsweringPipeline.example",$$slots:{default:[b0]},$$scope:{ctx:U}}}),_r=new k({props:{name:"__call__",anchor:"transformers.DocumentQuestionAnsweringPipeline.__call__",parameters:[{name:"image",val:": typing.Union[ForwardRef('Image.Image'), str]"},{name:"question",val:": typing.Optional[str] = None"},{name:"word_boxes",val:": typing.Tuple[str, typing.List[float]] = 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.34.0/src/transformers/pipelines/document_question_answering.py#L194",returnDescription:`
<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:`
<p>A <code>dict</code> or a list of <code>dict</code></p>
`}}),Mr=new P({}),kr=new k({props:{name:"class transformers.FeatureExtractionPipeline",anchor:"transformers.FeatureExtractionPipeline",parameters:[{name:"model",val:": typing.Union[ForwardRef('PreTrainedModel'), ForwardRef('TFPreTrainedModel')]"},{name:"tokenizer",val:": typing.Optional[transformers.tokenization_utils.PreTrainedTokenizer] = None"},{name:"feature_extractor",val:": typing.Optional[ForwardRef('SequenceFeatureExtractor')] = None"},{name:"image_processor",val:": typing.Optional[transformers.image_processing_utils.BaseImageProcessor] = None"},{name:"modelcard",val:": typing.Optional[transformers.modelcard.ModelCard] = None"},{name:"framework",val:": typing.Optional[str] = None"},{name:"task",val:": str = ''"},{name:"args_parser",val:": ArgumentHandler = None"},{name:"device",val:": typing.Union[int, ForwardRef('torch.device')] = None"},{name:"torch_dtype",val:": typing.Union[str, ForwardRef('torch.dtype'), NoneType] = None"},{name:"binary_output",val:": bool = False"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.FeatureExtractionPipeline.model",description:`<strong>model</strong> (<a href="/docs/transformers/v4.34.0/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> or <a href="/docs/transformers/v4.34.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.34.0/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> for PyTorch and <a href="/docs/transformers/v4.34.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.34.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.34.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.34.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.34.0/src/transformers/pipelines/feature_extraction.py#L7"}}),Ms=new C({props:{anchor:"transformers.FeatureExtractionPipeline.example",$$slots:{default:[y0]},$$scope:{ctx:U}}}),Ur=new k({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.34.0/src/transformers/pipelines/feature_extraction.py#L97",returnDescription:`
<p>The features computed by the model.</p>
`,returnType:`
<p>A nested list of <code>float</code></p>
`}}),jr=new P({}),Pr=new k({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.34.0/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> or <a href="/docs/transformers/v4.34.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.34.0/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> for PyTorch and <a href="/docs/transformers/v4.34.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.34.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.34.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.34.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.34.0/src/transformers/pipelines/image_to_text.py#L31"}}),js=new C({props:{anchor:"transformers.ImageToTextPipeline.example",$$slots:{default:[w0]},$$scope:{ctx:U}}}),$r=new k({props:{name:"__call__",anchor:"transformers.ImageToTextPipeline.__call__",parameters:[{name:"images",val:": typing.Union[str, typing.List[str], ForwardRef('Image.Image'), typing.List[ForwardRef('Image.Image')]]"},{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.34.0/src/transformers/pipelines/image_to_text.py#L83",returnDescription:`
<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:`
<p>A list or a list of list of <code>dict</code></p>
`}}),Cr=new P({}),Jr=new k({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.34.0/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> or <a href="/docs/transformers/v4.34.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.34.0/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> for PyTorch and <a href="/docs/transformers/v4.34.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.34.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.34.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.34.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.34.0/src/transformers/pipelines/visual_question_answering.py#L19"}}),Cs=new C({props:{anchor:"transformers.VisualQuestionAnsweringPipeline.example",$$slots:{default:[x0]},$$scope:{ctx:U}}}),Ir=new k({props:{name:"__call__",anchor:"transformers.VisualQuestionAnsweringPipeline.__call__",parameters:[{name:"image",val:": typing.Union[ForwardRef('Image.Image'), str]"},{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.34.0/src/transformers/pipelines/visual_question_answering.py#L70",returnDescription:`
<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:`
<p>A dictionary or a list of dictionaries containing the result. The dictionaries contain the following keys</p>
`}}),qr=new P({}),zr=new k({props:{name:"class transformers.Pipeline",anchor:"transformers.Pipeline",parameters:[{name:"model",val:": typing.Union[ForwardRef('PreTrainedModel'), ForwardRef('TFPreTrainedModel')]"},{name:"tokenizer",val:": typing.Optional[transformers.tokenization_utils.PreTrainedTokenizer] = None"},{name:"feature_extractor",val:": typing.Optional[ForwardRef('SequenceFeatureExtractor')] = None"},{name:"image_processor",val:": typing.Optional[transformers.image_processing_utils.BaseImageProcessor] = None"},{name:"modelcard",val:": typing.Optional[transformers.modelcard.ModelCard] = None"},{name:"framework",val:": typing.Optional[str] = None"},{name:"task",val:": str = ''"},{name:"args_parser",val:": ArgumentHandler = None"},{name:"device",val:": typing.Union[int, ForwardRef('torch.device')] = None"},{name:"torch_dtype",val:": typing.Union[str, ForwardRef('torch.dtype'), NoneType] = None"},{name:"binary_output",val:": bool = False"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.Pipeline.model",description:`<strong>model</strong> (<a href="/docs/transformers/v4.34.0/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> or <a href="/docs/transformers/v4.34.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.34.0/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> for PyTorch and <a href="/docs/transformers/v4.34.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.34.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.34.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.34.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.34.0/src/transformers/pipelines/base.py#L741"}}),Gr=new k({props:{name:"check_model_type",anchor:"transformers.Pipeline.check_model_type",parameters:[{name:"supported_models",val:": typing.Union[typing.List[str], dict]"}],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.34.0/src/transformers/pipelines/base.py#L962"}}),Ar=new k({props:{name:"device_placement",anchor:"transformers.Pipeline.device_placement",parameters:[],source:"https://github.com/huggingface/transformers/blob/v4.34.0/src/transformers/pipelines/base.py#L901",returnDescription:`
<p>Context manager</p>
`}}),qs=new C({props:{anchor:"transformers.Pipeline.device_placement.example",$$slots:{default:[v0]},$$scope:{ctx:U}}}),Nr=new k({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.34.0/src/transformers/pipelines/base.py#L928",returnDescription:`
<p>The same as <code>inputs</code> but on the proper device.</p>
`,returnType:`
<p><code>Dict[str, torch.Tensor]</code></p>
`}}),Zr=new k({props:{name:"postprocess",anchor:"transformers.Pipeline.postprocess",parameters:[{name:"model_outputs",val:": ModelOutput"},{name:"**postprocess_parameters",val:": typing.Dict"}],source:"https://github.com/huggingface/transformers/blob/v4.34.0/src/transformers/pipelines/base.py#L1025"}}),Fr=new k({props:{name:"predict",anchor:"transformers.Pipeline.predict",parameters:[{name:"X",val:""}],source:"https://github.com/huggingface/transformers/blob/v4.34.0/src/transformers/pipelines/base.py#L895"}}),Dr=new k({props:{name:"preprocess",anchor:"transformers.Pipeline.preprocess",parameters:[{name:"input_",val:": typing.Any"},{name:"**preprocess_parameters",val:": typing.Dict"}],source:"https://github.com/huggingface/transformers/blob/v4.34.0/src/transformers/pipelines/base.py#L1004"}}),Rr=new k({props:{name:"save_pretrained",anchor:"transformers.Pipeline.save_pretrained",parameters:[{name:"save_directory",val:": str"},{name:"safe_serialization",val:": bool = False"}],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.34.0/src/transformers/pipelines/base.py#L839"}}),Sr=new k({props:{name:"transform",anchor:"transformers.Pipeline.transform",parameters:[{name:"X",val:""}],source:"https://github.com/huggingface/transformers/blob/v4.34.0/src/transformers/pipelines/base.py#L889"}}),{c(){p=a("meta"),M=r(),x=a("p"),d=r(),v=a("h1"),n=a("a"),_=a("span"),f(Rs.$$.fragment),Jg=r(),ti=a("span"),ti.textContent=ax,im=r(),Ss=a("p"),Ss.innerHTML=ox,lm=r(),Vs=a("p"),Vs.textContent=rx,pm=r(),Bs=a("ul"),Bs.innerHTML=ix,cm=r(),Ee=a("h2"),Jt=a("a"),nd=a("span"),f(Ls.$$.fragment),Ig=r(),ni=a("span"),ni.textContent=lx,dm=r(),Ws=a("p"),Ws.innerHTML=px,mm=r(),Es=a("p"),Es.textContent=cx,hm=r(),f(Hs.$$.fragment),fm=r(),Os=a("p"),Os.innerHTML=dx,gm=r(),f(Ys.$$.fragment),um=r(),Qs=a("p"),Qs.innerHTML=mx,Tm=r(),f(Xs.$$.fragment),bm=r(),Ks=a("p"),Ks.innerHTML=hx,ym=r(),f(ea.$$.fragment),wm=r(),ta=a("p"),ta.textContent=fx,xm=r(),f(na.$$.fragment),vm=r(),ue=a("div"),f(sa.$$.fragment),qg=r(),si=a("p"),si.innerHTML=gx,zg=r(),ai=a("p"),ai.textContent=ux,Gg=r(),oi=a("ul"),oi.innerHTML=Tx,Ag=r(),f(It.$$.fragment),_m=r(),He=a("h2"),qt=a("a"),sd=a("span"),f(aa.$$.fragment),Ng=r(),ri=a("span"),ri.textContent=bx,Mm=r(),oa=a("p"),oa.innerHTML=yx,km=r(),f(ra.$$.fragment),Um=r(),f(zt.$$.fragment),jm=r(),f(ia.$$.fragment),Pm=r(),f(la.$$.fragment),$m=r(),pa=a("p"),pa.textContent=wx,Cm=r(),f(ca.$$.fragment),Jm=r(),da=a("p"),da.innerHTML=xx,Im=r(),f(ma.$$.fragment),qm=r(),ha=a("p"),ha.textContent=vx,zm=r(),fa=a("p"),fa.textContent=_x,Gm=r(),ga=a("ul"),ga.innerHTML=Mx,Am=r(),Oe=a("h2"),Gt=a("a"),ad=a("span"),f(ua.$$.fragment),Zg=r(),ii=a("span"),ii.textContent=kx,Nm=r(),Ta=a("p"),Ta.innerHTML=Ux,Zm=r(),ba=a("p"),ba.innerHTML=jx,Fm=r(),f(ya.$$.fragment),Dm=r(),wa=a("p"),wa.textContent=Px,Rm=r(),f(xa.$$.fragment),Sm=r(),va=a("p"),va.textContent=$x,Vm=r(),_a=a("p"),_a.innerHTML=Cx,Bm=r(),Ye=a("h2"),At=a("a"),od=a("span"),f(Ma.$$.fragment),Fg=r(),li=a("span"),li.textContent=Jx,Lm=r(),ka=a("p"),ka.textContent=Ix,Wm=r(),Ua=a("p"),Ua.innerHTML=qx,Em=r(),ja=a("p"),ja.textContent=zx,Hm=r(),Pa=a("ul"),Pa.innerHTML=Gx,Om=r(),f($a.$$.fragment),Ym=r(),Ca=a("p"),Ca.textContent=Ax,Qm=r(),Qe=a("h2"),Nt=a("a"),rd=a("span"),f(Ja.$$.fragment),Dg=r(),pi=a("span"),pi.textContent=Nx,Xm=r(),Ia=a("p"),Ia.innerHTML=Zx,Km=r(),Xe=a("h2"),Zt=a("a"),id=a("span"),f(qa.$$.fragment),Rg=r(),ci=a("span"),ci.textContent=Fx,eh=r(),za=a("p"),za.textContent=Dx,th=r(),Ke=a("h3"),Ft=a("a"),ld=a("span"),f(Ga.$$.fragment),Sg=r(),di=a("span"),di.textContent=Rx,nh=r(),S=a("div"),f(Aa.$$.fragment),Vg=r(),mi=a("p"),mi.innerHTML=Sx,Bg=r(),f(Dt.$$.fragment),Lg=r(),hi=a("p"),hi.innerHTML=Vx,Wg=r(),fi=a("p"),fi.innerHTML=Bx,Eg=r(),gi=a("p"),gi.innerHTML=Lx,Hg=r(),Rt=a("div"),f(Na.$$.fragment),Og=r(),ui=a("p"),ui.innerHTML=Wx,sh=r(),et=a("h3"),St=a("a"),pd=a("span"),f(Za.$$.fragment),Yg=r(),Ti=a("span"),Ti.textContent=Ex,ah=r(),re=a("div"),f(Fa.$$.fragment),Qg=r(),bi=a("p"),bi.textContent=Hx,Xg=r(),yi=a("p"),yi.textContent=Ox,Kg=r(),f(Vt.$$.fragment),eu=r(),wi=a("p"),wi.innerHTML=Yx,tu=r(),Bt=a("div"),f(Da.$$.fragment),nu=r(),xi=a("p"),xi.innerHTML=Qx,oh=r(),tt=a("h3"),Lt=a("a"),cd=a("span"),f(Ra.$$.fragment),su=r(),vi=a("span"),vi.textContent=Xx,rh=r(),V=a("div"),f(Sa.$$.fragment),au=r(),_i=a("p"),_i.innerHTML=Kx,ou=r(),f(Wt.$$.fragment),ru=r(),Mi=a("p"),Mi.innerHTML=ev,iu=r(),ki=a("p"),ki.innerHTML=tv,lu=r(),Ui=a("p"),Ui.innerHTML=nv,pu=r(),Et=a("div"),f(Va.$$.fragment),cu=r(),ji=a("p"),ji.innerHTML=sv,ih=r(),nt=a("h3"),Ht=a("a"),dd=a("span"),f(Ba.$$.fragment),du=r(),Pi=a("span"),Pi.textContent=av,lh=r(),Te=a("div"),f(La.$$.fragment),mu=r(),$i=a("p"),$i.innerHTML=ov,hu=r(),f(Ot.$$.fragment),fu=r(),Ci=a("p"),Ci.innerHTML=rv,gu=r(),Yt=a("div"),f(Wa.$$.fragment),uu=r(),Ji=a("p"),Ji.textContent=iv,ph=r(),st=a("h2"),Qt=a("a"),md=a("span"),f(Ea.$$.fragment),Tu=r(),Ii=a("span"),Ii.textContent=lv,ch=r(),Ha=a("p"),Ha.textContent=pv,dh=r(),at=a("h3"),Xt=a("a"),hd=a("span"),f(Oa.$$.fragment),bu=r(),qi=a("span"),qi.textContent=cv,mh=r(),B=a("div"),f(Ya.$$.fragment),yu=r(),zi=a("p"),zi.innerHTML=dv,wu=r(),f(Kt.$$.fragment),xu=r(),Gi=a("p"),Gi.innerHTML=mv,vu=r(),Ai=a("p"),Ai.innerHTML=hv,_u=r(),Ni=a("p"),Ni.innerHTML=fv,Mu=r(),en=a("div"),f(Qa.$$.fragment),ku=r(),Zi=a("p"),Zi.textContent=gv,hh=r(),ot=a("h3"),tn=a("a"),fd=a("span"),f(Xa.$$.fragment),Uu=r(),Fi=a("span"),Fi.textContent=uv,fh=r(),L=a("div"),f(Ka.$$.fragment),ju=r(),Di=a("p"),Di.innerHTML=Tv,Pu=r(),f(nn.$$.fragment),$u=r(),Ri=a("p"),Ri.innerHTML=bv,Cu=r(),Si=a("p"),Si.innerHTML=yv,Ju=r(),Vi=a("p"),Vi.innerHTML=wv,Iu=r(),sn=a("div"),f(eo.$$.fragment),qu=r(),Bi=a("p"),Bi.textContent=xv,gh=r(),rt=a("h3"),an=a("a"),gd=a("span"),f(to.$$.fragment),zu=r(),Li=a("span"),Li.textContent=vv,uh=r(),ie=a("div"),f(no.$$.fragment),Gu=r(),Wi=a("p"),Wi.innerHTML=_v,Au=r(),f(on.$$.fragment),Nu=r(),Ei=a("p"),Ei.innerHTML=Mv,Zu=r(),Hi=a("p"),Hi.innerHTML=kv,Fu=r(),rn=a("div"),f(so.$$.fragment),Du=r(),Oi=a("p"),Oi.textContent=Uv,Th=r(),it=a("h3"),ln=a("a"),ud=a("span"),f(ao.$$.fragment),Ru=r(),Yi=a("span"),Yi.textContent=jv,bh=r(),le=a("div"),f(oo.$$.fragment),Su=r(),Qi=a("p"),Qi.innerHTML=Pv,Vu=r(),f(pn.$$.fragment),Bu=r(),Xi=a("p"),Xi.innerHTML=$v,Lu=r(),Ki=a("p"),Ki.innerHTML=Cv,Wu=r(),cn=a("div"),f(ro.$$.fragment),Eu=r(),el=a("p"),el.textContent=Jv,yh=r(),lt=a("h3"),dn=a("a"),Td=a("span"),f(io.$$.fragment),Hu=r(),tl=a("span"),tl.textContent=Iv,wh=r(),W=a("div"),f(lo.$$.fragment),Ou=r(),nl=a("p"),nl.innerHTML=qv,Yu=r(),f(mn.$$.fragment),Qu=r(),sl=a("p"),sl.innerHTML=zv,Xu=r(),al=a("p"),al.innerHTML=Gv,Ku=r(),ol=a("p"),ol.innerHTML=Av,eT=r(),hn=a("div"),f(po.$$.fragment),tT=r(),rl=a("p"),rl.textContent=Nv,xh=r(),pt=a("h3"),fn=a("a"),bd=a("span"),f(co.$$.fragment),nT=r(),il=a("span"),il.textContent=Zv,vh=r(),be=a("div"),f(mo.$$.fragment),sT=r(),ll=a("p"),ll.innerHTML=Fv,aT=r(),pl=a("p"),pl.innerHTML=Dv,oT=r(),cl=a("p"),cl.innerHTML=Rv,rT=r(),gn=a("div"),f(ho.$$.fragment),iT=r(),dl=a("p"),dl.textContent=Sv,_h=r(),ct=a("h3"),un=a("a"),yd=a("span"),f(fo.$$.fragment),lT=r(),ml=a("span"),ml.textContent=Vv,Mh=r(),E=a("div"),f(go.$$.fragment),pT=r(),hl=a("p"),hl.innerHTML=Bv,cT=r(),f(Tn.$$.fragment),dT=r(),fl=a("p"),fl.innerHTML=Lv,mT=r(),gl=a("p"),gl.innerHTML=Wv,hT=r(),ul=a("p"),ul.innerHTML=Ev,fT=r(),bn=a("div"),f(uo.$$.fragment),gT=r(),Tl=a("p"),Tl.textContent=Hv,kh=r(),dt=a("h3"),yn=a("a"),wd=a("span"),f(To.$$.fragment),uT=r(),bl=a("span"),bl.textContent=Ov,Uh=r(),H=a("div"),f(bo.$$.fragment),TT=r(),yl=a("p"),yl.innerHTML=Yv,bT=r(),f(wn.$$.fragment),yT=r(),wl=a("p"),wl.innerHTML=Qv,wT=r(),xl=a("p"),xl.innerHTML=Xv,xT=r(),vl=a("p"),vl.innerHTML=Kv,vT=r(),xn=a("div"),f(yo.$$.fragment),_T=r(),_l=a("p"),_l.textContent=e_,jh=r(),mt=a("h2"),vn=a("a"),xd=a("span"),f(wo.$$.fragment),MT=r(),Ml=a("span"),Ml.textContent=t_,Ph=r(),xo=a("p"),xo.textContent=n_,$h=r(),ht=a("h3"),_n=a("a"),vd=a("span"),f(vo.$$.fragment),kT=r(),kl=a("span"),kl.textContent=s_,Ch=r(),pe=a("div"),f(_o.$$.fragment),UT=r(),Ul=a("p"),Ul.innerHTML=a_,jT=r(),f(Mn.$$.fragment),PT=r(),kn=a("div"),f(Mo.$$.fragment),$T=r(),jl=a("p"),jl.innerHTML=o_,CT=r(),Un=a("div"),f(ko.$$.fragment),JT=r(),Pl=a("p"),Pl.innerHTML=r_,IT=r(),jn=a("div"),f(Uo.$$.fragment),qT=r(),$l=a("p"),$l.textContent=i_,Jh=r(),O=a("div"),f(jo.$$.fragment),zT=r(),Cl=a("p"),Cl.textContent=l_,GT=r(),f(Pn.$$.fragment),AT=r(),Jl=a("p"),Jl.innerHTML=p_,NT=r(),Il=a("p"),Il.innerHTML=c_,ZT=r(),ql=a("p"),ql.innerHTML=d_,FT=r(),$n=a("div"),f(Po.$$.fragment),DT=r(),zl=a("p"),zl.textContent=m_,Ih=r(),ft=a("h3"),Cn=a("a"),_d=a("span"),f($o.$$.fragment),RT=r(),Gl=a("span"),Gl.textContent=h_,qh=r(),G=a("div"),f(Co.$$.fragment),ST=r(),Al=a("p"),Al.innerHTML=f_,VT=r(),f(Jn.$$.fragment),BT=r(),Nl=a("p"),Nl.innerHTML=g_,LT=r(),Zl=a("p"),Zl.innerHTML=u_,WT=r(),Fl=a("p"),Fl.innerHTML=T_,ET=r(),f(In.$$.fragment),HT=r(),f(qn.$$.fragment),OT=r(),zn=a("div"),f(Jo.$$.fragment),YT=r(),Dl=a("p"),Dl.textContent=b_,zh=r(),gt=a("h3"),Gn=a("a"),Md=a("span"),f(Io.$$.fragment),QT=r(),Rl=a("span"),Rl.textContent=y_,Gh=r(),z=a("div"),f(qo.$$.fragment),XT=r(),Sl=a("p"),Sl.innerHTML=w_,KT=r(),f(An.$$.fragment),eb=r(),Vl=a("p"),Vl.innerHTML=x_,tb=r(),Bl=a("p"),Bl.innerHTML=v_,nb=r(),Ll=a("p"),Ll.innerHTML=__,sb=r(),De=a("div"),f(zo.$$.fragment),ab=r(),Wl=a("p"),Wl.textContent=M_,ob=r(),El=a("p"),El.textContent=k_,rb=r(),Nn=a("div"),f(Go.$$.fragment),ib=r(),Hl=a("p"),Hl.textContent=U_,lb=r(),Zn=a("div"),f(Ao.$$.fragment),pb=r(),Ol=a("p"),Ol.textContent=j_,cb=r(),Fn=a("div"),f(No.$$.fragment),db=r(),Yl=a("p"),Yl.textContent=P_,Ah=r(),Zo=a("p"),Zo.innerHTML=$_,Nh=r(),ut=a("h3"),Dn=a("a"),kd=a("span"),f(Fo.$$.fragment),mb=r(),Ql=a("span"),Ql.textContent=C_,Zh=r(),A=a("div"),f(Do.$$.fragment),hb=r(),Xl=a("p"),Xl.innerHTML=J_,fb=r(),f(Rn.$$.fragment),gb=r(),Kl=a("p"),Kl.innerHTML=I_,ub=r(),ep=a("p"),ep.innerHTML=q_,Tb=r(),tp=a("p"),tp.innerHTML=z_,bb=r(),Sn=a("div"),f(Ro.$$.fragment),yb=r(),np=a("p"),np.textContent=G_,wb=r(),Re=a("div"),f(So.$$.fragment),xb=r(),sp=a("p"),sp.innerHTML=A_,vb=r(),ap=a("p"),ap.textContent=N_,_b=r(),Vn=a("div"),f(Vo.$$.fragment),Mb=r(),op=a("p"),op.textContent=Z_,Fh=r(),Tt=a("h3"),Bn=a("a"),Ud=a("span"),f(Bo.$$.fragment),kb=r(),rp=a("span"),rp.textContent=F_,Dh=r(),ce=a("div"),f(Lo.$$.fragment),Ub=r(),ip=a("p"),ip.textContent=D_,jb=r(),lp=a("p"),lp.innerHTML=R_,Pb=r(),pp=a("p"),pp.innerHTML=S_,$b=r(),f(Ln.$$.fragment),Cb=r(),Wn=a("div"),f(Wo.$$.fragment),Jb=r(),cp=a("p"),cp.textContent=V_,Rh=r(),bt=a("h3"),En=a("a"),jd=a("span"),f(Eo.$$.fragment),Ib=r(),dp=a("span"),dp.textContent=B_,Sh=r(),Y=a("div"),f(Ho.$$.fragment),qb=r(),mp=a("p"),mp.innerHTML=L_,zb=r(),f(Hn.$$.fragment),Gb=r(),hp=a("p"),hp.innerHTML=W_,Ab=r(),fp=a("p"),fp.innerHTML=E_,Nb=r(),gp=a("p"),gp.innerHTML=H_,Zb=r(),ne=a("div"),f(Oo.$$.fragment),Fb=r(),up=a("p"),up.textContent=O_,Db=r(),Tp=a("ul"),Tp.innerHTML=Y_,Rb=r(),bp=a("p"),bp.innerHTML=Q_,Sb=r(),f(On.$$.fragment),Vb=r(),yp=a("p"),yp.textContent=X_,Bb=r(),f(Yn.$$.fragment),Vh=r(),yt=a("h3"),Qn=a("a"),Pd=a("span"),f(Yo.$$.fragment),Lb=r(),wp=a("span"),wp.textContent=K_,Bh=r(),F=a("div"),f(Qo.$$.fragment),Wb=r(),xp=a("p"),xp.innerHTML=eM,Eb=r(),f(Xn.$$.fragment),Hb=r(),vp=a("p"),vp.innerHTML=tM,Ob=r(),_p=a("p"),_p.innerHTML=nM,Yb=r(),Mp=a("p"),Mp.innerHTML=sM,Qb=r(),kp=a("p"),kp.innerHTML=aM,Xb=r(),Kn=a("div"),f(Xo.$$.fragment),Kb=r(),Up=a("p"),Up.textContent=oM,Lh=r(),wt=a("h3"),es=a("a"),$d=a("span"),f(Ko.$$.fragment),ey=r(),jp=a("span"),jp.textContent=rM,Wh=r(),Q=a("div"),f(er.$$.fragment),ty=r(),Pp=a("p"),Pp.innerHTML=iM,ny=r(),f(ts.$$.fragment),sy=r(),$p=a("p"),$p.innerHTML=lM,ay=r(),Cp=a("p"),Cp.innerHTML=pM,oy=r(),Jp=a("p"),Jp.innerHTML=cM,ry=r(),ns=a("div"),f(tr.$$.fragment),iy=r(),Ip=a("p"),Ip.textContent=dM,Eh=r(),xt=a("h3"),ss=a("a"),Cd=a("span"),f(nr.$$.fragment),ly=r(),qp=a("span"),qp.textContent=mM,Hh=r(),N=a("div"),f(sr.$$.fragment),py=r(),zp=a("p"),zp.textContent=hM,cy=r(),f(as.$$.fragment),dy=r(),Gp=a("p"),Gp.innerHTML=fM,my=r(),Ap=a("p"),Ap.innerHTML=gM,hy=r(),Np=a("p"),Np.innerHTML=uM,fy=r(),f(os.$$.fragment),gy=r(),rs=a("div"),f(ar.$$.fragment),uy=r(),Zp=a("p"),Zp.textContent=TM,Ty=r(),is=a("div"),f(or.$$.fragment),by=r(),Fp=a("p"),Fp.textContent=bM,Oh=r(),vt=a("h3"),ls=a("a"),Jd=a("span"),f(rr.$$.fragment),yy=r(),Dp=a("span"),Dp.textContent=yM,Yh=r(),q=a("div"),f(ir.$$.fragment),wy=r(),Rp=a("p"),Rp.innerHTML=wM,xy=r(),f(ps.$$.fragment),vy=r(),Sp=a("p"),Sp.innerHTML=xM,_y=r(),Vp=a("p"),Vp.innerHTML=vM,My=r(),Bp=a("p"),Bp.innerHTML=_M,ky=r(),cs=a("div"),f(lr.$$.fragment),Uy=r(),Lp=a("p"),Lp.textContent=MM,jy=r(),Se=a("div"),f(pr.$$.fragment),Py=r(),Wp=a("p"),Wp.textContent=kM,$y=r(),Ep=a("p"),Ep.textContent=UM,Cy=r(),ds=a("div"),f(cr.$$.fragment),Jy=r(),Hp=a("p"),Hp.textContent=jM,Iy=r(),ms=a("div"),f(dr.$$.fragment),qy=r(),Op=a("p"),Op.textContent=PM,zy=r(),hs=a("div"),f(mr.$$.fragment),Gy=r(),Yp=a("p"),Yp.textContent=$M,Qh=r(),_t=a("h3"),fs=a("a"),Id=a("span"),f(hr.$$.fragment),Ay=r(),Qp=a("span"),Qp.textContent=CM,Xh=r(),de=a("div"),f(fr.$$.fragment),Ny=r(),Xp=a("p"),Xp.textContent=JM,Zy=r(),Kp=a("p"),Kp.innerHTML=IM,Fy=r(),ec=a("p"),ec.innerHTML=qM,Dy=r(),f(gs.$$.fragment),Ry=r(),us=a("div"),f(gr.$$.fragment),Sy=r(),tc=a("p"),tc.textContent=zM,Kh=r(),Mt=a("h3"),Ts=a("a"),qd=a("span"),f(ur.$$.fragment),Vy=r(),nc=a("span"),nc.textContent=GM,ef=r(),D=a("div"),f(Tr.$$.fragment),By=r(),sc=a("p"),sc.innerHTML=AM,Ly=r(),ac=a("p"),ac.innerHTML=NM,Wy=r(),f(bs.$$.fragment),Ey=r(),oc=a("p"),oc.innerHTML=ZM,Hy=r(),rc=a("p"),rc.innerHTML=FM,Oy=r(),ic=a("p"),ic.innerHTML=DM,Yy=r(),ys=a("div"),f(br.$$.fragment),Qy=r(),lc=a("p"),lc.innerHTML=RM,tf=r(),kt=a("h2"),ws=a("a"),zd=a("span"),f(yr.$$.fragment),Xy=r(),pc=a("span"),pc.textContent=SM,nf=r(),wr=a("p"),wr.textContent=VM,sf=r(),Ut=a("h3"),xs=a("a"),Gd=a("span"),f(xr.$$.fragment),Ky=r(),cc=a("span"),cc.textContent=BM,af=r(),X=a("div"),f(vr.$$.fragment),ew=r(),dc=a("p"),dc.innerHTML=LM,tw=r(),f(vs.$$.fragment),nw=r(),mc=a("p"),mc.innerHTML=WM,sw=r(),hc=a("p"),hc.innerHTML=EM,aw=r(),fc=a("p"),fc.innerHTML=HM,ow=r(),ze=a("div"),f(_r.$$.fragment),rw=r(),gc=a("p"),gc.innerHTML=OM,iw=r(),uc=a("p"),uc.textContent=YM,lw=r(),Tc=a("ul"),Tc.innerHTML=QM,of=r(),jt=a("h3"),_s=a("a"),Ad=a("span"),f(Mr.$$.fragment),pw=r(),bc=a("span"),bc.textContent=XM,rf=r(),K=a("div"),f(kr.$$.fragment),cw=r(),yc=a("p"),yc.textContent=KM,dw=r(),f(Ms.$$.fragment),mw=r(),wc=a("p"),wc.innerHTML=e2,hw=r(),xc=a("p"),xc.innerHTML=t2,fw=r(),vc=a("p"),vc.innerHTML=n2,gw=r(),ks=a("div"),f(Ur.$$.fragment),uw=r(),_c=a("p"),_c.textContent=s2,lf=r(),Pt=a("h3"),Us=a("a"),Nd=a("span"),f(jr.$$.fragment),Tw=r(),Mc=a("span"),Mc.textContent=a2,pf=r(),ee=a("div"),f(Pr.$$.fragment),bw=r(),kc=a("p"),kc.innerHTML=o2,yw=r(),f(js.$$.fragment),ww=r(),Uc=a("p"),Uc.innerHTML=r2,xw=r(),jc=a("p"),jc.textContent=i2,vw=r(),Pc=a("p"),Pc.innerHTML=l2,_w=r(),Ps=a("div"),f($r.$$.fragment),Mw=r(),$c=a("p"),$c.textContent=p2,cf=r(),$t=a("h3"),$s=a("a"),Zd=a("span"),f(Cr.$$.fragment),kw=r(),Cc=a("span"),Cc.textContent=c2,df=r(),te=a("div"),f(Jr.$$.fragment),Uw=r(),Jc=a("p"),Jc.innerHTML=d2,jw=r(),f(Cs.$$.fragment),Pw=r(),Ic=a("p"),Ic.innerHTML=m2,$w=r(),qc=a("p"),qc.innerHTML=h2,Cw=r(),zc=a("p"),zc.innerHTML=f2,Jw=r(),Ve=a("div"),f(Ir.$$.fragment),Iw=r(),Gc=a("p"),Gc.textContent=g2,qw=r(),Ac=a("ul"),Ac.innerHTML=u2,mf=r(),Ct=a("h2"),Js=a("a"),Fd=a("span"),f(qr.$$.fragment),zw=r(),Nc=a("span"),Nc.innerHTML=T2,hf=r(),J=a("div"),f(zr.$$.fragment),Gw=r(),Zc=a("p"),Zc.textContent=b2,Aw=r(),Fc=a("p"),Fc.textContent=y2,Nw=r(),Dc=a("p"),Dc.textContent=w2,Zw=r(),Rc=a("p"),Rc.textContent=x2,Fw=r(),Sc=a("p"),Sc.innerHTML=v2,Dw=r(),Is=a("div"),f(Gr.$$.fragment),Rw=r(),Vc=a("p"),Vc.textContent=_2,Sw=r(),Be=a("div"),f(Ar.$$.fragment),Vw=r(),Bc=a("p"),Bc.textContent=M2,Bw=r(),f(qs.$$.fragment),Lw=r(),zs=a("div"),f(Nr.$$.fragment),Ww=r(),Lc=a("p"),Lc.textContent=k2,Ew=r(),Gs=a("div"),f(Zr.$$.fragment),Hw=r(),Wc=a("p"),Wc.innerHTML=U2,Ow=r(),As=a("div"),f(Fr.$$.fragment),Yw=r(),Ec=a("p"),Ec.innerHTML=j2,Qw=r(),Ns=a("div"),f(Dr.$$.fragment),Xw=r(),Hc=a("p"),Hc.innerHTML=P2,Kw=r(),Zs=a("div"),f(Rr.$$.fragment),ex=r(),Oc=a("p"),Oc.textContent=$2,tx=r(),Fs=a("div"),f(Sr.$$.fragment),nx=r(),Yc=a("p"),Yc.innerHTML=C2,ff=r(),Dd=a("p"),this.h()},l(e){const l=Fk("svelte-1phssyn",document.head);p=o(l,"META",{name:!0,content:!0}),l.forEach(s),M=i(e),x=o(e,"P",{}),w(x).forEach(s),d=i(e),v=o(e,"H1",{class:!0});var Vr=w(v);n=o(Vr,"A",{id:!0,class:!0,href:!0});var Rd=w(n);_=o(Rd,"SPAN",{});var Sd=w(_);g(Rs.$$.fragment,Sd),Sd.forEach(s),Rd.forEach(s),Jg=i(Vr),ti=o(Vr,"SPAN",{"data-svelte-h":!0}),m(ti)!=="svelte-l4debw"&&(ti.textContent=ax),Vr.forEach(s),im=i(e),Ss=o(e,"P",{"data-svelte-h":!0}),m(Ss)!=="svelte-bnmuag"&&(Ss.innerHTML=ox),lm=i(e),Vs=o(e,"P",{"data-svelte-h":!0}),m(Vs)!=="svelte-yt9cfz"&&(Vs.textContent=rx),pm=i(e),Bs=o(e,"UL",{"data-svelte-h":!0}),m(Bs)!=="svelte-11ij84r"&&(Bs.innerHTML=ix),cm=i(e),Ee=o(e,"H2",{class:!0});var Br=w(Ee);Jt=o(Br,"A",{id:!0,class:!0,href:!0});var Vd=w(Jt);nd=o(Vd,"SPAN",{});var Bd=w(nd);g(Ls.$$.fragment,Bd),Bd.forEach(s),Vd.forEach(s),Ig=i(Br),ni=o(Br,"SPAN",{"data-svelte-h":!0}),m(ni)!=="svelte-1cxsez4"&&(ni.textContent=lx),Br.forEach(s),dm=i(e),Ws=o(e,"P",{"data-svelte-h":!0}),m(Ws)!=="svelte-l2tdp3"&&(Ws.innerHTML=px),mm=i(e),Es=o(e,"P",{"data-svelte-h":!0}),m(Es)!=="svelte-1x7q2yo"&&(Es.textContent=cx),hm=i(e),g(Hs.$$.fragment,e),fm=i(e),Os=o(e,"P",{"data-svelte-h":!0}),m(Os)!=="svelte-19h1yua"&&(Os.innerHTML=dx),gm=i(e),g(Ys.$$.fragment,e),um=i(e),Qs=o(e,"P",{"data-svelte-h":!0}),m(Qs)!=="svelte-10lm9b0"&&(Qs.innerHTML=mx),Tm=i(e),g(Xs.$$.fragment,e),bm=i(e),Ks=o(e,"P",{"data-svelte-h":!0}),m(Ks)!=="svelte-ww9dn5"&&(Ks.innerHTML=hx),ym=i(e),g(ea.$$.fragment,e),wm=i(e),ta=o(e,"P",{"data-svelte-h":!0}),m(ta)!=="svelte-1k2h3v5"&&(ta.textContent=fx),xm=i(e),g(na.$$.fragment,e),vm=i(e),ue=o(e,"DIV",{class:!0});var qe=w(ue);g(sa.$$.fragment,qe),qg=i(qe),si=o(qe,"P",{"data-svelte-h":!0}),m(si)!=="svelte-yig0xd"&&(si.innerHTML=gx),zg=i(qe),ai=o(qe,"P",{"data-svelte-h":!0}),m(ai)!=="svelte-1lntif9"&&(ai.textContent=ux),Gg=i(qe),oi=o(qe,"UL",{"data-svelte-h":!0}),m(oi)!=="svelte-18neydl"&&(oi.innerHTML=Tx),Ag=i(qe),g(It.$$.fragment,qe),qe.forEach(s),_m=i(e),He=o(e,"H2",{class:!0});var Lr=w(He);qt=o(Lr,"A",{id:!0,class:!0,href:!0});var Ld=w(qt);sd=o(Ld,"SPAN",{});var Wd=w(sd);g(aa.$$.fragment,Wd),Wd.forEach(s),Ld.forEach(s),Ng=i(Lr),ri=o(Lr,"SPAN",{"data-svelte-h":!0}),m(ri)!=="svelte-xv2eix"&&(ri.textContent=bx),Lr.forEach(s),Mm=i(e),oa=o(e,"P",{"data-svelte-h":!0}),m(oa)!=="svelte-1apicn"&&(oa.innerHTML=yx),km=i(e),g(ra.$$.fragment,e),Um=i(e),g(zt.$$.fragment,e),jm=i(e),g(ia.$$.fragment,e),Pm=i(e),g(la.$$.fragment,e),$m=i(e),pa=o(e,"P",{"data-svelte-h":!0}),m(pa)!=="svelte-be3eiz"&&(pa.textContent=wx),Cm=i(e),g(ca.$$.fragment,e),Jm=i(e),da=o(e,"P",{"data-svelte-h":!0}),m(da)!=="svelte-vxw3p4"&&(da.innerHTML=xx),Im=i(e),g(ma.$$.fragment,e),qm=i(e),ha=o(e,"P",{"data-svelte-h":!0}),m(ha)!=="svelte-15t12x9"&&(ha.textContent=vx),zm=i(e),fa=o(e,"P",{"data-svelte-h":!0}),m(fa)!=="svelte-qy4tut"&&(fa.textContent=_x),Gm=i(e),ga=o(e,"UL",{"data-svelte-h":!0}),m(ga)!=="svelte-afjyux"&&(ga.innerHTML=Mx),Am=i(e),Oe=o(e,"H2",{class:!0});var Wr=w(Oe);Gt=o(Wr,"A",{id:!0,class:!0,href:!0});var Ed=w(Gt);ad=o(Ed,"SPAN",{});var Hd=w(ad);g(ua.$$.fragment,Hd),Hd.forEach(s),Ed.forEach(s),Zg=i(Wr),ii=o(Wr,"SPAN",{"data-svelte-h":!0}),m(ii)!=="svelte-14c9f0q"&&(ii.textContent=kx),Wr.forEach(s),Nm=i(e),Ta=o(e,"P",{"data-svelte-h":!0}),m(Ta)!=="svelte-8boz4s"&&(Ta.innerHTML=Ux),Zm=i(e),ba=o(e,"P",{"data-svelte-h":!0}),m(ba)!=="svelte-1e8h99m"&&(ba.innerHTML=jx),Fm=i(e),g(ya.$$.fragment,e),Dm=i(e),wa=o(e,"P",{"data-svelte-h":!0}),m(wa)!=="svelte-jrh3w"&&(wa.textContent=Px),Rm=i(e),g(xa.$$.fragment,e),Sm=i(e),va=o(e,"P",{"data-svelte-h":!0}),m(va)!=="svelte-1bbc8q3"&&(va.textContent=$x),Vm=i(e),_a=o(e,"P",{"data-svelte-h":!0}),m(_a)!=="svelte-tu5fem"&&(_a.innerHTML=Cx),Bm=i(e),Ye=o(e,"H2",{class:!0});var Er=w(Ye);At=o(Er,"A",{id:!0,class:!0,href:!0});var Od=w(At);od=o(Od,"SPAN",{});var Yd=w(od);g(Ma.$$.fragment,Yd),Yd.forEach(s),Od.forEach(s),Fg=i(Er),li=o(Er,"SPAN",{"data-svelte-h":!0}),m(li)!=="svelte-1jydraj"&&(li.textContent=Jx),Er.forEach(s),Lm=i(e),ka=o(e,"P",{"data-svelte-h":!0}),m(ka)!=="svelte-v57rju"&&(ka.textContent=Ix),Wm=i(e),Ua=o(e,"P",{"data-svelte-h":!0}),m(Ua)!=="svelte-15o5e7w"&&(Ua.innerHTML=qx),Em=i(e),ja=o(e,"P",{"data-svelte-h":!0}),m(ja)!=="svelte-g2hs1z"&&(ja.textContent=zx),Hm=i(e),Pa=o(e,"UL",{"data-svelte-h":!0}),m(Pa)!=="svelte-bkoq64"&&(Pa.innerHTML=Gx),Om=i(e),g($a.$$.fragment,e),Ym=i(e),Ca=o(e,"P",{"data-svelte-h":!0}),m(Ca)!=="svelte-19c7ukz"&&(Ca.textContent=Ax),Qm=i(e),Qe=o(e,"H2",{class:!0});var Hr=w(Qe);Nt=o(Hr,"A",{id:!0,class:!0,href:!0});var Qd=w(Nt);rd=o(Qd,"SPAN",{});var Xd=w(rd);g(Ja.$$.fragment,Xd),Xd.forEach(s),Qd.forEach(s),Dg=i(Hr),pi=o(Hr,"SPAN",{"data-svelte-h":!0}),m(pi)!=="svelte-r7cvat"&&(pi.textContent=Nx),Hr.forEach(s),Xm=i(e),Ia=o(e,"P",{"data-svelte-h":!0}),m(Ia)!=="svelte-1dtjdk1"&&(Ia.innerHTML=Zx),Km=i(e),Xe=o(e,"H2",{class:!0});var Or=w(Xe);Zt=o(Or,"A",{id:!0,class:!0,href:!0});var Kd=w(Zt);id=o(Kd,"SPAN",{});var em=w(id);g(qa.$$.fragment,em),em.forEach(s),Kd.forEach(s),Rg=i(Or),ci=o(Or,"SPAN",{"data-svelte-h":!0}),m(ci)!=="svelte-ivwwlt"&&(ci.textContent=Fx),Or.forEach(s),eh=i(e),za=o(e,"P",{"data-svelte-h":!0}),m(za)!=="svelte-1uac455"&&(za.textContent=Dx),th=i(e),Ke=o(e,"H3",{class:!0});var Yr=w(Ke);Ft=o(Yr,"A",{id:!0,class:!0,href:!0});var tm=w(Ft);ld=o(tm,"SPAN",{});var nm=w(ld);g(Ga.$$.fragment,nm),nm.forEach(s),tm.forEach(s),Sg=i(Yr),di=o(Yr,"SPAN",{"data-svelte-h":!0}),m(di)!=="svelte-w9tjlb"&&(di.textContent=Rx),Yr.forEach(s),nh=i(e),S=o(e,"DIV",{class:!0});var me=w(S);g(Aa.$$.fragment,me),Vg=i(me),mi=o(me,"P",{"data-svelte-h":!0}),m(mi)!=="svelte-1wmh7ni"&&(mi.innerHTML=Sx),Bg=i(me),g(Dt.$$.fragment,me),Lg=i(me),hi=o(me,"P",{"data-svelte-h":!0}),m(hi)!=="svelte-13rexfx"&&(hi.innerHTML=Vx),Wg=i(me),fi=o(me,"P",{"data-svelte-h":!0}),m(fi)!=="svelte-hs0rlx"&&(fi.innerHTML=Bx),Eg=i(me),gi=o(me,"P",{"data-svelte-h":!0}),m(gi)!=="svelte-1pv1mxa"&&(gi.innerHTML=Lx),Hg=i(me),Rt=o(me,"DIV",{class:!0});var Qr=w(Rt);g(Na.$$.fragment,Qr),Og=i(Qr),ui=o(Qr,"P",{"data-svelte-h":!0}),m(ui)!=="svelte-7bvxnc"&&(ui.innerHTML=Wx),Qr.forEach(s),me.forEach(s),sh=i(e),et=o(e,"H3",{class:!0});var Xr=w(et);St=o(Xr,"A",{id:!0,class:!0,href:!0});var sm=w(St);pd=o(sm,"SPAN",{});var am=w(pd);g(Za.$$.fragment,am),am.forEach(s),sm.forEach(s),Yg=i(Xr),Ti=o(Xr,"SPAN",{"data-svelte-h":!0}),m(Ti)!=="svelte-yneo6v"&&(Ti.textContent=Ex),Xr.forEach(s),ah=i(e),re=o(e,"DIV",{class:!0});var ye=w(re);g(Fa.$$.fragment,ye),Qg=i(ye),bi=o(ye,"P",{"data-svelte-h":!0}),m(bi)!=="svelte-vm8asa"&&(bi.textContent=Hx),Xg=i(ye),yi=o(ye,"P",{"data-svelte-h":!0}),m(yi)!=="svelte-1l0gjoy"&&(yi.textContent=Ox),Kg=i(ye),g(Vt.$$.fragment,ye),eu=i(ye),wi=o(ye,"P",{"data-svelte-h":!0}),m(wi)!=="svelte-13rexfx"&&(wi.innerHTML=Yx),tu=i(ye),Bt=o(ye,"DIV",{class:!0});var Kr=w(Bt);g(Da.$$.fragment,Kr),nu=i(Kr),xi=o(Kr,"P",{"data-svelte-h":!0}),m(xi)!=="svelte-1om1mtx"&&(xi.innerHTML=Qx),Kr.forEach(s),ye.forEach(s),oh=i(e),tt=o(e,"H3",{class:!0});var ei=w(tt);Lt=o(ei,"A",{id:!0,class:!0,href:!0});var om=w(Lt);cd=o(om,"SPAN",{});var rm=w(cd);g(Ra.$$.fragment,rm),rm.forEach(s),om.forEach(s),su=i(ei),vi=o(ei,"SPAN",{"data-svelte-h":!0}),m(vi)!=="svelte-vdbend"&&(vi.textContent=Xx),ei.forEach(s),rh=i(e),V=o(e,"DIV",{class:!0});var he=w(V);g(Sa.$$.fragment,he),au=i(he),_i=o(he,"P",{"data-svelte-h":!0}),m(_i)!=="svelte-y1s454"&&(_i.innerHTML=Kx),ou=i(he),g(Wt.$$.fragment,he),ru=i(he),Mi=o(he,"P",{"data-svelte-h":!0}),m(Mi)!=="svelte-13rexfx"&&(Mi.innerHTML=ev),iu=i(he),ki=o(he,"P",{"data-svelte-h":!0}),m(ki)!=="svelte-1rxwo1n"&&(ki.innerHTML=tv),lu=i(he),Ui=o(he,"P",{"data-svelte-h":!0}),m(Ui)!=="svelte-1g4o6wf"&&(Ui.innerHTML=nv),pu=i(he),Et=o(he,"DIV",{class:!0});var uf=w(Et);g(Va.$$.fragment,uf),cu=i(uf),ji=o(uf,"P",{"data-svelte-h":!0}),m(ji)!=="svelte-jnn109"&&(ji.innerHTML=sv),uf.forEach(s),he.forEach(s),ih=i(e),nt=o(e,"H3",{class:!0});var Tf=w(nt);Ht=o(Tf,"A",{id:!0,class:!0,href:!0});var J2=w(Ht);dd=o(J2,"SPAN",{});var I2=w(dd);g(Ba.$$.fragment,I2),I2.forEach(s),J2.forEach(s),du=i(Tf),Pi=o(Tf,"SPAN",{"data-svelte-h":!0}),m(Pi)!=="svelte-1siwarh"&&(Pi.textContent=av),Tf.forEach(s),lh=i(e),Te=o(e,"DIV",{class:!0});var Le=w(Te);g(La.$$.fragment,Le),mu=i(Le),$i=o(Le,"P",{"data-svelte-h":!0}),m($i)!=="svelte-tmg4zt"&&($i.innerHTML=ov),hu=i(Le),g(Ot.$$.fragment,Le),fu=i(Le),Ci=o(Le,"P",{"data-svelte-h":!0}),m(Ci)!=="svelte-1828euu"&&(Ci.innerHTML=rv),gu=i(Le),Yt=o(Le,"DIV",{class:!0});var bf=w(Yt);g(Wa.$$.fragment,bf),uu=i(bf),Ji=o(bf,"P",{"data-svelte-h":!0}),m(Ji)!=="svelte-kd58rd"&&(Ji.textContent=iv),bf.forEach(s),Le.forEach(s),ph=i(e),st=o(e,"H2",{class:!0});var yf=w(st);Qt=o(yf,"A",{id:!0,class:!0,href:!0});var q2=w(Qt);md=o(q2,"SPAN",{});var z2=w(md);g(Ea.$$.fragment,z2),z2.forEach(s),q2.forEach(s),Tu=i(yf),Ii=o(yf,"SPAN",{"data-svelte-h":!0}),m(Ii)!=="svelte-1pyp6as"&&(Ii.textContent=lv),yf.forEach(s),ch=i(e),Ha=o(e,"P",{"data-svelte-h":!0}),m(Ha)!=="svelte-10a8pps"&&(Ha.textContent=pv),dh=i(e),at=o(e,"H3",{class:!0});var wf=w(at);Xt=o(wf,"A",{id:!0,class:!0,href:!0});var G2=w(Xt);hd=o(G2,"SPAN",{});var A2=w(hd);g(Oa.$$.fragment,A2),A2.forEach(s),G2.forEach(s),bu=i(wf),qi=o(wf,"SPAN",{"data-svelte-h":!0}),m(qi)!=="svelte-f3emsr"&&(qi.textContent=cv),wf.forEach(s),mh=i(e),B=o(e,"DIV",{class:!0});var we=w(B);g(Ya.$$.fragment,we),yu=i(we),zi=o(we,"P",{"data-svelte-h":!0}),m(zi)!=="svelte-cmozej"&&(zi.innerHTML=dv),wu=i(we),g(Kt.$$.fragment,we),xu=i(we),Gi=o(we,"P",{"data-svelte-h":!0}),m(Gi)!=="svelte-13rexfx"&&(Gi.innerHTML=mv),vu=i(we),Ai=o(we,"P",{"data-svelte-h":!0}),m(Ai)!=="svelte-akjpgl"&&(Ai.innerHTML=hv),_u=i(we),Ni=o(we,"P",{"data-svelte-h":!0}),m(Ni)!=="svelte-6trb8y"&&(Ni.innerHTML=fv),Mu=i(we),en=o(we,"DIV",{class:!0});var xf=w(en);g(Qa.$$.fragment,xf),ku=i(xf),Zi=o(xf,"P",{"data-svelte-h":!0}),m(Zi)!=="svelte-ypfmt8"&&(Zi.textContent=gv),xf.forEach(s),we.forEach(s),hh=i(e),ot=o(e,"H3",{class:!0});var vf=w(ot);tn=o(vf,"A",{id:!0,class:!0,href:!0});var N2=w(tn);fd=o(N2,"SPAN",{});var Z2=w(fd);g(Xa.$$.fragment,Z2),Z2.forEach(s),N2.forEach(s),Uu=i(vf),Fi=o(vf,"SPAN",{"data-svelte-h":!0}),m(Fi)!=="svelte-1cqbr90"&&(Fi.textContent=uv),vf.forEach(s),fh=i(e),L=o(e,"DIV",{class:!0});var xe=w(L);g(Ka.$$.fragment,xe),ju=i(xe),Di=o(xe,"P",{"data-svelte-h":!0}),m(Di)!=="svelte-rlbi70"&&(Di.innerHTML=Tv),Pu=i(xe),g(nn.$$.fragment,xe),$u=i(xe),Ri=o(xe,"P",{"data-svelte-h":!0}),m(Ri)!=="svelte-13rexfx"&&(Ri.innerHTML=bv),Cu=i(xe),Si=o(xe,"P",{"data-svelte-h":!0}),m(Si)!=="svelte-ixepnt"&&(Si.innerHTML=yv),Ju=i(xe),Vi=o(xe,"P",{"data-svelte-h":!0}),m(Vi)!=="svelte-cqpf5t"&&(Vi.innerHTML=wv),Iu=i(xe),sn=o(xe,"DIV",{class:!0});var _f=w(sn);g(eo.$$.fragment,_f),qu=i(_f),Bi=o(_f,"P",{"data-svelte-h":!0}),m(Bi)!=="svelte-ypfmt8"&&(Bi.textContent=xv),_f.forEach(s),xe.forEach(s),gh=i(e),rt=o(e,"H3",{class:!0});var Mf=w(rt);an=o(Mf,"A",{id:!0,class:!0,href:!0});var F2=w(an);gd=o(F2,"SPAN",{});var D2=w(gd);g(to.$$.fragment,D2),D2.forEach(s),F2.forEach(s),zu=i(Mf),Li=o(Mf,"SPAN",{"data-svelte-h":!0}),m(Li)!=="svelte-s0p1t6"&&(Li.textContent=vv),Mf.forEach(s),uh=i(e),ie=o(e,"DIV",{class:!0});var Ge=w(ie);g(no.$$.fragment,Ge),Gu=i(Ge),Wi=o(Ge,"P",{"data-svelte-h":!0}),m(Wi)!=="svelte-1y2a978"&&(Wi.innerHTML=_v),Au=i(Ge),g(on.$$.fragment,Ge),Nu=i(Ge),Ei=o(Ge,"P",{"data-svelte-h":!0}),m(Ei)!=="svelte-m8iwh"&&(Ei.innerHTML=Mv),Zu=i(Ge),Hi=o(Ge,"P",{"data-svelte-h":!0}),m(Hi)!=="svelte-151zbn3"&&(Hi.innerHTML=kv),Fu=i(Ge),rn=o(Ge,"DIV",{class:!0});var kf=w(rn);g(so.$$.fragment,kf),Du=i(kf),Oi=o(kf,"P",{"data-svelte-h":!0}),m(Oi)!=="svelte-1qn9qfa"&&(Oi.textContent=Uv),kf.forEach(s),Ge.forEach(s),Th=i(e),it=o(e,"H3",{class:!0});var Uf=w(it);ln=o(Uf,"A",{id:!0,class:!0,href:!0});var R2=w(ln);ud=o(R2,"SPAN",{});var S2=w(ud);g(ao.$$.fragment,S2),S2.forEach(s),R2.forEach(s),Ru=i(Uf),Yi=o(Uf,"SPAN",{"data-svelte-h":!0}),m(Yi)!=="svelte-8316l4"&&(Yi.textContent=jv),Uf.forEach(s),bh=i(e),le=o(e,"DIV",{class:!0});var Ae=w(le);g(oo.$$.fragment,Ae),Su=i(Ae),Qi=o(Ae,"P",{"data-svelte-h":!0}),m(Qi)!=="svelte-5hn3v1"&&(Qi.innerHTML=Pv),Vu=i(Ae),g(pn.$$.fragment,Ae),Bu=i(Ae),Xi=o(Ae,"P",{"data-svelte-h":!0}),m(Xi)!=="svelte-1c0r7t8"&&(Xi.innerHTML=$v),Lu=i(Ae),Ki=o(Ae,"P",{"data-svelte-h":!0}),m(Ki)!=="svelte-1pm9980"&&(Ki.innerHTML=Cv),Wu=i(Ae),cn=o(Ae,"DIV",{class:!0});var jf=w(cn);g(ro.$$.fragment,jf),Eu=i(jf),el=o(jf,"P",{"data-svelte-h":!0}),m(el)!=="svelte-1ega32d"&&(el.textContent=Jv),jf.forEach(s),Ae.forEach(s),yh=i(e),lt=o(e,"H3",{class:!0});var Pf=w(lt);dn=o(Pf,"A",{id:!0,class:!0,href:!0});var V2=w(dn);Td=o(V2,"SPAN",{});var B2=w(Td);g(io.$$.fragment,B2),B2.forEach(s),V2.forEach(s),Hu=i(Pf),tl=o(Pf,"SPAN",{"data-svelte-h":!0}),m(tl)!=="svelte-ly45fz"&&(tl.textContent=Iv),Pf.forEach(s),wh=i(e),W=o(e,"DIV",{class:!0});var ve=w(W);g(lo.$$.fragment,ve),Ou=i(ve),nl=o(ve,"P",{"data-svelte-h":!0}),m(nl)!=="svelte-1c7y9od"&&(nl.innerHTML=qv),Yu=i(ve),g(mn.$$.fragment,ve),Qu=i(ve),sl=o(ve,"P",{"data-svelte-h":!0}),m(sl)!=="svelte-13rexfx"&&(sl.innerHTML=zv),Xu=i(ve),al=o(ve,"P",{"data-svelte-h":!0}),m(al)!=="svelte-1smdk1n"&&(al.innerHTML=Gv),Ku=i(ve),ol=o(ve,"P",{"data-svelte-h":!0}),m(ol)!=="svelte-1ea8edc"&&(ol.innerHTML=Av),eT=i(ve),hn=o(ve,"DIV",{class:!0});var $f=w(hn);g(po.$$.fragment,$f),tT=i($f),rl=o($f,"P",{"data-svelte-h":!0}),m(rl)!=="svelte-1ws18e1"&&(rl.textContent=Nv),$f.forEach(s),ve.forEach(s),xh=i(e),pt=o(e,"H3",{class:!0});var Cf=w(pt);fn=o(Cf,"A",{id:!0,class:!0,href:!0});var L2=w(fn);bd=o(L2,"SPAN",{});var W2=w(bd);g(co.$$.fragment,W2),W2.forEach(s),L2.forEach(s),nT=i(Cf),il=o(Cf,"SPAN",{"data-svelte-h":!0}),m(il)!=="svelte-fl7w2a"&&(il.textContent=Zv),Cf.forEach(s),vh=i(e),be=o(e,"DIV",{class:!0});var We=w(be);g(mo.$$.fragment,We),sT=i(We),ll=o(We,"P",{"data-svelte-h":!0}),m(ll)!=="svelte-115eloe"&&(ll.innerHTML=Fv),aT=i(We),pl=o(We,"P",{"data-svelte-h":!0}),m(pl)!=="svelte-1sopiqd"&&(pl.innerHTML=Dv),oT=i(We),cl=o(We,"P",{"data-svelte-h":!0}),m(cl)!=="svelte-38n9pn"&&(cl.innerHTML=Rv),rT=i(We),gn=o(We,"DIV",{class:!0});var Jf=w(gn);g(ho.$$.fragment,Jf),iT=i(Jf),dl=o(Jf,"P",{"data-svelte-h":!0}),m(dl)!=="svelte-1wpkis2"&&(dl.textContent=Sv),Jf.forEach(s),We.forEach(s),_h=i(e),ct=o(e,"H3",{class:!0});var If=w(ct);un=o(If,"A",{id:!0,class:!0,href:!0});var E2=w(un);yd=o(E2,"SPAN",{});var H2=w(yd);g(fo.$$.fragment,H2),H2.forEach(s),E2.forEach(s),lT=i(If),ml=o(If,"SPAN",{"data-svelte-h":!0}),m(ml)!=="svelte-1h50lha"&&(ml.textContent=Vv),If.forEach(s),Mh=i(e),E=o(e,"DIV",{class:!0});var _e=w(E);g(go.$$.fragment,_e),pT=i(_e),hl=o(_e,"P",{"data-svelte-h":!0}),m(hl)!=="svelte-1lqk35m"&&(hl.innerHTML=Bv),cT=i(_e),g(Tn.$$.fragment,_e),dT=i(_e),fl=o(_e,"P",{"data-svelte-h":!0}),m(fl)!=="svelte-13rexfx"&&(fl.innerHTML=Lv),mT=i(_e),gl=o(_e,"P",{"data-svelte-h":!0}),m(gl)!=="svelte-yrjatx"&&(gl.innerHTML=Wv),hT=i(_e),ul=o(_e,"P",{"data-svelte-h":!0}),m(ul)!=="svelte-ab0ict"&&(ul.innerHTML=Ev),fT=i(_e),bn=o(_e,"DIV",{class:!0});var qf=w(bn);g(uo.$$.fragment,qf),gT=i(qf),Tl=o(qf,"P",{"data-svelte-h":!0}),m(Tl)!=="svelte-ypfmt8"&&(Tl.textContent=Hv),qf.forEach(s),_e.forEach(s),kh=i(e),dt=o(e,"H3",{class:!0});var zf=w(dt);yn=o(zf,"A",{id:!0,class:!0,href:!0});var O2=w(yn);wd=o(O2,"SPAN",{});var Y2=w(wd);g(To.$$.fragment,Y2),Y2.forEach(s),O2.forEach(s),uT=i(zf),bl=o(zf,"SPAN",{"data-svelte-h":!0}),m(bl)!=="svelte-1wt2sgt"&&(bl.textContent=Ov),zf.forEach(s),Uh=i(e),H=o(e,"DIV",{class:!0});var Me=w(H);g(bo.$$.fragment,Me),TT=i(Me),yl=o(Me,"P",{"data-svelte-h":!0}),m(yl)!=="svelte-zegbdg"&&(yl.innerHTML=Yv),bT=i(Me),g(wn.$$.fragment,Me),yT=i(Me),wl=o(Me,"P",{"data-svelte-h":!0}),m(wl)!=="svelte-13rexfx"&&(wl.innerHTML=Qv),wT=i(Me),xl=o(Me,"P",{"data-svelte-h":!0}),m(xl)!=="svelte-1e9j3tb"&&(xl.innerHTML=Xv),xT=i(Me),vl=o(Me,"P",{"data-svelte-h":!0}),m(vl)!=="svelte-1lmpzxi"&&(vl.innerHTML=Kv),vT=i(Me),xn=o(Me,"DIV",{class:!0});var Gf=w(xn);g(yo.$$.fragment,Gf),_T=i(Gf),_l=o(Gf,"P",{"data-svelte-h":!0}),m(_l)!=="svelte-1ws18e1"&&(_l.textContent=e_),Gf.forEach(s),Me.forEach(s),jh=i(e),mt=o(e,"H2",{class:!0});var Af=w(mt);vn=o(Af,"A",{id:!0,class:!0,href:!0});var Q2=w(vn);xd=o(Q2,"SPAN",{});var X2=w(xd);g(wo.$$.fragment,X2),X2.forEach(s),Q2.forEach(s),MT=i(Af),Ml=o(Af,"SPAN",{"data-svelte-h":!0}),m(Ml)!=="svelte-1psny5b"&&(Ml.textContent=t_),Af.forEach(s),Ph=i(e),xo=o(e,"P",{"data-svelte-h":!0}),m(xo)!=="svelte-ammvm7"&&(xo.textContent=n_),$h=i(e),ht=o(e,"H3",{class:!0});var Nf=w(ht);_n=o(Nf,"A",{id:!0,class:!0,href:!0});var K2=w(_n);vd=o(K2,"SPAN",{});var ek=w(vd);g(vo.$$.fragment,ek),ek.forEach(s),K2.forEach(s),kT=i(Nf),kl=o(Nf,"SPAN",{"data-svelte-h":!0}),m(kl)!=="svelte-1b046e5"&&(kl.textContent=s_),Nf.forEach(s),Ch=i(e),pe=o(e,"DIV",{class:!0});var Ne=w(pe);g(_o.$$.fragment,Ne),UT=i(Ne),Ul=o(Ne,"P",{"data-svelte-h":!0}),m(Ul)!=="svelte-1f0zyup"&&(Ul.innerHTML=a_),jT=i(Ne),g(Mn.$$.fragment,Ne),PT=i(Ne),kn=o(Ne,"DIV",{class:!0});var Zf=w(kn);g(Mo.$$.fragment,Zf),$T=i(Zf),jl=o(Zf,"P",{"data-svelte-h":!0}),m(jl)!=="svelte-dgjtw0"&&(jl.innerHTML=o_),Zf.forEach(s),CT=i(Ne),Un=o(Ne,"DIV",{class:!0});var Ff=w(Un);g(ko.$$.fragment,Ff),JT=i(Ff),Pl=o(Ff,"P",{"data-svelte-h":!0}),m(Pl)!=="svelte-4if1o7"&&(Pl.innerHTML=r_),Ff.forEach(s),IT=i(Ne),jn=o(Ne,"DIV",{class:!0});var Df=w(jn);g(Uo.$$.fragment,Df),qT=i(Df),$l=o(Df,"P",{"data-svelte-h":!0}),m($l)!=="svelte-1k7oap9"&&($l.textContent=i_),Df.forEach(s),Ne.forEach(s),Jh=i(e),O=o(e,"DIV",{class:!0});var ke=w(O);g(jo.$$.fragment,ke),zT=i(ke),Cl=o(ke,"P",{"data-svelte-h":!0}),m(Cl)!=="svelte-1aof0an"&&(Cl.textContent=l_),GT=i(ke),g(Pn.$$.fragment,ke),AT=i(ke),Jl=o(ke,"P",{"data-svelte-h":!0}),m(Jl)!=="svelte-13rexfx"&&(Jl.innerHTML=p_),NT=i(ke),Il=o(ke,"P",{"data-svelte-h":!0}),m(Il)!=="svelte-1s4blke"&&(Il.innerHTML=c_),ZT=i(ke),ql=o(ke,"P",{"data-svelte-h":!0}),m(ql)!=="svelte-dtzd0p"&&(ql.innerHTML=d_),FT=i(ke),$n=o(ke,"DIV",{class:!0});var Rf=w($n);g(Po.$$.fragment,Rf),DT=i(Rf),zl=o(Rf,"P",{"data-svelte-h":!0}),m(zl)!=="svelte-71qq28"&&(zl.textContent=m_),Rf.forEach(s),ke.forEach(s),Ih=i(e),ft=o(e,"H3",{class:!0});var Sf=w(ft);Cn=o(Sf,"A",{id:!0,class:!0,href:!0});var tk=w(Cn);_d=o(tk,"SPAN",{});var nk=w(_d);g($o.$$.fragment,nk),nk.forEach(s),tk.forEach(s),RT=i(Sf),Gl=o(Sf,"SPAN",{"data-svelte-h":!0}),m(Gl)!=="svelte-1m87n44"&&(Gl.textContent=h_),Sf.forEach(s),qh=i(e),G=o(e,"DIV",{class:!0});var se=w(G);g(Co.$$.fragment,se),ST=i(se),Al=o(se,"P",{"data-svelte-h":!0}),m(Al)!=="svelte-1y2vlya"&&(Al.innerHTML=f_),VT=i(se),g(Jn.$$.fragment,se),BT=i(se),Nl=o(se,"P",{"data-svelte-h":!0}),m(Nl)!=="svelte-13rexfx"&&(Nl.innerHTML=g_),LT=i(se),Zl=o(se,"P",{"data-svelte-h":!0}),m(Zl)!=="svelte-o7f43p"&&(Zl.innerHTML=u_),WT=i(se),Fl=o(se,"P",{"data-svelte-h":!0}),m(Fl)!=="svelte-6ieg"&&(Fl.innerHTML=T_),ET=i(se),g(In.$$.fragment,se),HT=i(se),g(qn.$$.fragment,se),OT=i(se),zn=o(se,"DIV",{class:!0});var Vf=w(zn);g(Jo.$$.fragment,Vf),YT=i(Vf),Dl=o(Vf,"P",{"data-svelte-h":!0}),m(Dl)!=="svelte-1dgb1r"&&(Dl.textContent=b_),Vf.forEach(s),se.forEach(s),zh=i(e),gt=o(e,"H3",{class:!0});var Bf=w(gt);Gn=o(Bf,"A",{id:!0,class:!0,href:!0});var sk=w(Gn);Md=o(sk,"SPAN",{});var ak=w(Md);g(Io.$$.fragment,ak),ak.forEach(s),sk.forEach(s),QT=i(Bf),Rl=o(Bf,"SPAN",{"data-svelte-h":!0}),m(Rl)!=="svelte-11sqppk"&&(Rl.textContent=y_),Bf.forEach(s),Gh=i(e),z=o(e,"DIV",{class:!0});var R=w(z);g(qo.$$.fragment,R),XT=i(R),Sl=o(R,"P",{"data-svelte-h":!0}),m(Sl)!=="svelte-15adoar"&&(Sl.innerHTML=w_),KT=i(R),g(An.$$.fragment,R),eb=i(R),Vl=o(R,"P",{"data-svelte-h":!0}),m(Vl)!=="svelte-13rexfx"&&(Vl.innerHTML=x_),tb=i(R),Bl=o(R,"P",{"data-svelte-h":!0}),m(Bl)!=="svelte-16m9hpe"&&(Bl.innerHTML=v_),nb=i(R),Ll=o(R,"P",{"data-svelte-h":!0}),m(Ll)!=="svelte-jwg5m8"&&(Ll.innerHTML=__),sb=i(R),De=o(R,"DIV",{class:!0});var Qc=w(De);g(zo.$$.fragment,Qc),ab=i(Qc),Wl=o(Qc,"P",{"data-svelte-h":!0}),m(Wl)!=="svelte-1qebl0w"&&(Wl.textContent=M_),ob=i(Qc),El=o(Qc,"P",{"data-svelte-h":!0}),m(El)!=="svelte-m7pmui"&&(El.textContent=k_),Qc.forEach(s),rb=i(R),Nn=o(R,"DIV",{class:!0});var Lf=w(Nn);g(Go.$$.fragment,Lf),ib=i(Lf),Hl=o(Lf,"P",{"data-svelte-h":!0}),m(Hl)!=="svelte-lj4b08"&&(Hl.textContent=U_),Lf.forEach(s),lb=i(R),Zn=o(R,"DIV",{class:!0});var Wf=w(Zn);g(Ao.$$.fragment,Wf),pb=i(Wf),Ol=o(Wf,"P",{"data-svelte-h":!0}),m(Ol)!=="svelte-226no6"&&(Ol.textContent=j_),Wf.forEach(s),cb=i(R),Fn=o(R,"DIV",{class:!0});var Ef=w(Fn);g(No.$$.fragment,Ef),db=i(Ef),Yl=o(Ef,"P",{"data-svelte-h":!0}),m(Yl)!=="svelte-vx34uc"&&(Yl.textContent=P_),Ef.forEach(s),R.forEach(s),Ah=i(e),Zo=o(e,"P",{"data-svelte-h":!0}),m(Zo)!=="svelte-uykkvb"&&(Zo.innerHTML=$_),Nh=i(e),ut=o(e,"H3",{class:!0});var Hf=w(ut);Dn=o(Hf,"A",{id:!0,class:!0,href:!0});var ok=w(Dn);kd=o(ok,"SPAN",{});var rk=w(kd);g(Fo.$$.fragment,rk),rk.forEach(s),ok.forEach(s),mb=i(Hf),Ql=o(Hf,"SPAN",{"data-svelte-h":!0}),m(Ql)!=="svelte-1u3qv8z"&&(Ql.textContent=C_),Hf.forEach(s),Zh=i(e),A=o(e,"DIV",{class:!0});var ae=w(A);g(Do.$$.fragment,ae),hb=i(ae),Xl=o(ae,"P",{"data-svelte-h":!0}),m(Xl)!=="svelte-81lrkw"&&(Xl.innerHTML=J_),fb=i(ae),g(Rn.$$.fragment,ae),gb=i(ae),Kl=o(ae,"P",{"data-svelte-h":!0}),m(Kl)!=="svelte-13rexfx"&&(Kl.innerHTML=I_),ub=i(ae),ep=o(ae,"P",{"data-svelte-h":!0}),m(ep)!=="svelte-19rkhs3"&&(ep.innerHTML=q_),Tb=i(ae),tp=o(ae,"P",{"data-svelte-h":!0}),m(tp)!=="svelte-13vdwbu"&&(tp.innerHTML=z_),bb=i(ae),Sn=o(ae,"DIV",{class:!0});var Of=w(Sn);g(Ro.$$.fragment,Of),yb=i(Of),np=o(Of,"P",{"data-svelte-h":!0}),m(np)!=="svelte-2lj46g"&&(np.textContent=G_),Of.forEach(s),wb=i(ae),Re=o(ae,"DIV",{class:!0});var Xc=w(Re);g(So.$$.fragment,Xc),xb=i(Xc),sp=o(Xc,"P",{"data-svelte-h":!0}),m(sp)!=="svelte-1iglp3e"&&(sp.innerHTML=A_),vb=i(Xc),ap=o(Xc,"P",{"data-svelte-h":!0}),m(ap)!=="svelte-tiqx9u"&&(ap.textContent=N_),Xc.forEach(s),_b=i(ae),Vn=o(ae,"DIV",{class:!0});var Yf=w(Vn);g(Vo.$$.fragment,Yf),Mb=i(Yf),op=o(Yf,"P",{"data-svelte-h":!0}),m(op)!=="svelte-d6foro"&&(op.textContent=Z_),Yf.forEach(s),ae.forEach(s),Fh=i(e),Tt=o(e,"H3",{class:!0});var Qf=w(Tt);Bn=o(Qf,"A",{id:!0,class:!0,href:!0});var ik=w(Bn);Ud=o(ik,"SPAN",{});var lk=w(Ud);g(Bo.$$.fragment,lk),lk.forEach(s),ik.forEach(s),kb=i(Qf),rp=o(Qf,"SPAN",{"data-svelte-h":!0}),m(rp)!=="svelte-j7790m"&&(rp.textContent=F_),Qf.forEach(s),Dh=i(e),ce=o(e,"DIV",{class:!0});var Ze=w(ce);g(Lo.$$.fragment,Ze),Ub=i(Ze),ip=o(Ze,"P",{"data-svelte-h":!0}),m(ip)!=="svelte-4fy8a0"&&(ip.textContent=D_),jb=i(Ze),lp=o(Ze,"P",{"data-svelte-h":!0}),m(lp)!=="svelte-hfdtd7"&&(lp.innerHTML=R_),Pb=i(Ze),pp=o(Ze,"P",{"data-svelte-h":!0}),m(pp)!=="svelte-3gfnx6"&&(pp.innerHTML=S_),$b=i(Ze),g(Ln.$$.fragment,Ze),Cb=i(Ze),Wn=o(Ze,"DIV",{class:!0});var Xf=w(Wn);g(Wo.$$.fragment,Xf),Jb=i(Xf),cp=o(Xf,"P",{"data-svelte-h":!0}),m(cp)!=="svelte-myfdp"&&(cp.textContent=V_),Xf.forEach(s),Ze.forEach(s),Rh=i(e),bt=o(e,"H3",{class:!0});var Kf=w(bt);En=o(Kf,"A",{id:!0,class:!0,href:!0});var pk=w(En);jd=o(pk,"SPAN",{});var ck=w(jd);g(Eo.$$.fragment,ck),ck.forEach(s),pk.forEach(s),Ib=i(Kf),dp=o(Kf,"SPAN",{"data-svelte-h":!0}),m(dp)!=="svelte-enpwo5"&&(dp.textContent=B_),Kf.forEach(s),Sh=i(e),Y=o(e,"DIV",{class:!0});var Ue=w(Y);g(Ho.$$.fragment,Ue),qb=i(Ue),mp=o(Ue,"P",{"data-svelte-h":!0}),m(mp)!=="svelte-1j45sfj"&&(mp.innerHTML=L_),zb=i(Ue),g(Hn.$$.fragment,Ue),Gb=i(Ue),hp=o(Ue,"P",{"data-svelte-h":!0}),m(hp)!=="svelte-13rexfx"&&(hp.innerHTML=W_),Ab=i(Ue),fp=o(Ue,"P",{"data-svelte-h":!0}),m(fp)!=="svelte-mmc9zf"&&(fp.innerHTML=E_),Nb=i(Ue),gp=o(Ue,"P",{"data-svelte-h":!0}),m(gp)!=="svelte-1jig9aq"&&(gp.innerHTML=H_),Zb=i(Ue),ne=o(Ue,"DIV",{class:!0});var je=w(ne);g(Oo.$$.fragment,je),Fb=i(je),up=o(je,"P",{"data-svelte-h":!0}),m(up)!=="svelte-1pyysfu"&&(up.textContent=O_),Db=i(je),Tp=o(je,"UL",{"data-svelte-h":!0}),m(Tp)!=="svelte-1ny9a5f"&&(Tp.innerHTML=Y_),Rb=i(je),bp=o(je,"P",{"data-svelte-h":!0}),m(bp)!=="svelte-11u3uey"&&(bp.innerHTML=Q_),Sb=i(je),g(On.$$.fragment,je),Vb=i(je),yp=o(je,"P",{"data-svelte-h":!0}),m(yp)!=="svelte-madj2v"&&(yp.textContent=X_),Bb=i(je),g(Yn.$$.fragment,je),je.forEach(s),Ue.forEach(s),Vh=i(e),yt=o(e,"H3",{class:!0});var eg=w(yt);Qn=o(eg,"A",{id:!0,class:!0,href:!0});var dk=w(Qn);Pd=o(dk,"SPAN",{});var mk=w(Pd);g(Yo.$$.fragment,mk),mk.forEach(s),dk.forEach(s),Lb=i(eg),wp=o(eg,"SPAN",{"data-svelte-h":!0}),m(wp)!=="svelte-futr1q"&&(wp.textContent=K_),eg.forEach(s),Bh=i(e),F=o(e,"DIV",{class:!0});var fe=w(F);g(Qo.$$.fragment,fe),Wb=i(fe),xp=o(fe,"P",{"data-svelte-h":!0}),m(xp)!=="svelte-n7evf0"&&(xp.innerHTML=eM),Eb=i(fe),g(Xn.$$.fragment,fe),Hb=i(fe),vp=o(fe,"P",{"data-svelte-h":!0}),m(vp)!=="svelte-13rexfx"&&(vp.innerHTML=tM),Ob=i(fe),_p=o(fe,"P",{"data-svelte-h":!0}),m(_p)!=="svelte-gg8agx"&&(_p.innerHTML=nM),Yb=i(fe),Mp=o(fe,"P",{"data-svelte-h":!0}),m(Mp)!=="svelte-me3s3q"&&(Mp.innerHTML=sM),Qb=i(fe),kp=o(fe,"P",{"data-svelte-h":!0}),m(kp)!=="svelte-1qrdw9i"&&(kp.innerHTML=aM),Xb=i(fe),Kn=o(fe,"DIV",{class:!0});var tg=w(Kn);g(Xo.$$.fragment,tg),Kb=i(tg),Up=o(tg,"P",{"data-svelte-h":!0}),m(Up)!=="svelte-14zfmze"&&(Up.textContent=oM),tg.forEach(s),fe.forEach(s),Lh=i(e),wt=o(e,"H3",{class:!0});var ng=w(wt);es=o(ng,"A",{id:!0,class:!0,href:!0});var hk=w(es);$d=o(hk,"SPAN",{});var fk=w($d);g(Ko.$$.fragment,fk),fk.forEach(s),hk.forEach(s),ey=i(ng),jp=o(ng,"SPAN",{"data-svelte-h":!0}),m(jp)!=="svelte-1r0vf7w"&&(jp.textContent=rM),ng.forEach(s),Wh=i(e),Q=o(e,"DIV",{class:!0});var Pe=w(Q);g(er.$$.fragment,Pe),ty=i(Pe),Pp=o(Pe,"P",{"data-svelte-h":!0}),m(Pp)!=="svelte-16fty2d"&&(Pp.innerHTML=iM),ny=i(Pe),g(ts.$$.fragment,Pe),sy=i(Pe),$p=o(Pe,"P",{"data-svelte-h":!0}),m($p)!=="svelte-26qptp"&&($p.innerHTML=lM),ay=i(Pe),Cp=o(Pe,"P",{"data-svelte-h":!0}),m(Cp)!=="svelte-vu92ey"&&(Cp.innerHTML=pM),oy=i(Pe),Jp=o(Pe,"P",{"data-svelte-h":!0}),m(Jp)!=="svelte-u1i8ee"&&(Jp.innerHTML=cM),ry=i(Pe),ns=o(Pe,"DIV",{class:!0});var sg=w(ns);g(tr.$$.fragment,sg),iy=i(sg),Ip=o(sg,"P",{"data-svelte-h":!0}),m(Ip)!=="svelte-1ql86ls"&&(Ip.textContent=dM),sg.forEach(s),Pe.forEach(s),Eh=i(e),xt=o(e,"H3",{class:!0});var ag=w(xt);ss=o(ag,"A",{id:!0,class:!0,href:!0});var gk=w(ss);Cd=o(gk,"SPAN",{});var uk=w(Cd);g(nr.$$.fragment,uk),uk.forEach(s),gk.forEach(s),ly=i(ag),qp=o(ag,"SPAN",{"data-svelte-h":!0}),m(qp)!=="svelte-dx3jm3"&&(qp.textContent=mM),ag.forEach(s),Hh=i(e),N=o(e,"DIV",{class:!0});var oe=w(N);g(sr.$$.fragment,oe),py=i(oe),zp=o(oe,"P",{"data-svelte-h":!0}),m(zp)!=="svelte-xbi6mw"&&(zp.textContent=hM),cy=i(oe),g(as.$$.fragment,oe),dy=i(oe),Gp=o(oe,"P",{"data-svelte-h":!0}),m(Gp)!=="svelte-26qptp"&&(Gp.innerHTML=fM),my=i(oe),Ap=o(oe,"P",{"data-svelte-h":!0}),m(Ap)!=="svelte-1qzwq9"&&(Ap.innerHTML=gM),hy=i(oe),Np=o(oe,"P",{"data-svelte-h":!0}),m(Np)!=="svelte-1iyxmj8"&&(Np.innerHTML=uM),fy=i(oe),g(os.$$.fragment,oe),gy=i(oe),rs=o(oe,"DIV",{class:!0});var og=w(rs);g(ar.$$.fragment,og),uy=i(og),Zp=o(og,"P",{"data-svelte-h":!0}),m(Zp)!=="svelte-48qsnz"&&(Zp.textContent=TM),og.forEach(s),Ty=i(oe),is=o(oe,"DIV",{class:!0});var rg=w(is);g(or.$$.fragment,rg),by=i(rg),Fp=o(rg,"P",{"data-svelte-h":!0}),m(Fp)!=="svelte-uzfqtg"&&(Fp.textContent=bM),rg.forEach(s),oe.forEach(s),Oh=i(e),vt=o(e,"H3",{class:!0});var ig=w(vt);ls=o(ig,"A",{id:!0,class:!0,href:!0});var Tk=w(ls);Jd=o(Tk,"SPAN",{});var bk=w(Jd);g(rr.$$.fragment,bk),bk.forEach(s),Tk.forEach(s),yy=i(ig),Dp=o(ig,"SPAN",{"data-svelte-h":!0}),m(Dp)!=="svelte-bvsvhg"&&(Dp.textContent=yM),ig.forEach(s),Yh=i(e),q=o(e,"DIV",{class:!0});var Z=w(q);g(ir.$$.fragment,Z),wy=i(Z),Rp=o(Z,"P",{"data-svelte-h":!0}),m(Rp)!=="svelte-15adoar"&&(Rp.innerHTML=wM),xy=i(Z),g(ps.$$.fragment,Z),vy=i(Z),Sp=o(Z,"P",{"data-svelte-h":!0}),m(Sp)!=="svelte-13rexfx"&&(Sp.innerHTML=xM),_y=i(Z),Vp=o(Z,"P",{"data-svelte-h":!0}),m(Vp)!=="svelte-16m9hpe"&&(Vp.innerHTML=vM),My=i(Z),Bp=o(Z,"P",{"data-svelte-h":!0}),m(Bp)!=="svelte-jwg5m8"&&(Bp.innerHTML=_M),ky=i(Z),cs=o(Z,"DIV",{class:!0});var lg=w(cs);g(lr.$$.fragment,lg),Uy=i(lg),Lp=o(lg,"P",{"data-svelte-h":!0}),m(Lp)!=="svelte-1fmsbp5"&&(Lp.textContent=MM),lg.forEach(s),jy=i(Z),Se=o(Z,"DIV",{class:!0});var Kc=w(Se);g(pr.$$.fragment,Kc),Py=i(Kc),Wp=o(Kc,"P",{"data-svelte-h":!0}),m(Wp)!=="svelte-1qebl0w"&&(Wp.textContent=kM),$y=i(Kc),Ep=o(Kc,"P",{"data-svelte-h":!0}),m(Ep)!=="svelte-m7pmui"&&(Ep.textContent=UM),Kc.forEach(s),Cy=i(Z),ds=o(Z,"DIV",{class:!0});var pg=w(ds);g(cr.$$.fragment,pg),Jy=i(pg),Hp=o(pg,"P",{"data-svelte-h":!0}),m(Hp)!=="svelte-lj4b08"&&(Hp.textContent=jM),pg.forEach(s),Iy=i(Z),ms=o(Z,"DIV",{class:!0});var cg=w(ms);g(dr.$$.fragment,cg),qy=i(cg),Op=o(cg,"P",{"data-svelte-h":!0}),m(Op)!=="svelte-226no6"&&(Op.textContent=PM),cg.forEach(s),zy=i(Z),hs=o(Z,"DIV",{class:!0});var dg=w(hs);g(mr.$$.fragment,dg),Gy=i(dg),Yp=o(dg,"P",{"data-svelte-h":!0}),m(Yp)!=="svelte-vx34uc"&&(Yp.textContent=$M),dg.forEach(s),Z.forEach(s),Qh=i(e),_t=o(e,"H3",{class:!0});var mg=w(_t);fs=o(mg,"A",{id:!0,class:!0,href:!0});var yk=w(fs);Id=o(yk,"SPAN",{});var wk=w(Id);g(hr.$$.fragment,wk),wk.forEach(s),yk.forEach(s),Ay=i(mg),Qp=o(mg,"SPAN",{"data-svelte-h":!0}),m(Qp)!=="svelte-puva4y"&&(Qp.textContent=CM),mg.forEach(s),Xh=i(e),de=o(e,"DIV",{class:!0});var Fe=w(de);g(fr.$$.fragment,Fe),Ny=i(Fe),Xp=o(Fe,"P",{"data-svelte-h":!0}),m(Xp)!=="svelte-1ufl6u7"&&(Xp.textContent=JM),Zy=i(Fe),Kp=o(Fe,"P",{"data-svelte-h":!0}),m(Kp)!=="svelte-sc6veu"&&(Kp.innerHTML=IM),Fy=i(Fe),ec=o(Fe,"P",{"data-svelte-h":!0}),m(ec)!=="svelte-175zgvy"&&(ec.innerHTML=qM),Dy=i(Fe),g(gs.$$.fragment,Fe),Ry=i(Fe),us=o(Fe,"DIV",{class:!0});var hg=w(us);g(gr.$$.fragment,hg),Sy=i(hg),tc=o(hg,"P",{"data-svelte-h":!0}),m(tc)!=="svelte-1q7dj96"&&(tc.textContent=zM),hg.forEach(s),Fe.forEach(s),Kh=i(e),Mt=o(e,"H3",{class:!0});var fg=w(Mt);Ts=o(fg,"A",{id:!0,class:!0,href:!0});var xk=w(Ts);qd=o(xk,"SPAN",{});var vk=w(qd);g(ur.$$.fragment,vk),vk.forEach(s),xk.forEach(s),Vy=i(fg),nc=o(fg,"SPAN",{"data-svelte-h":!0}),m(nc)!=="svelte-e5tr4l"&&(nc.textContent=GM),fg.forEach(s),ef=i(e),D=o(e,"DIV",{class:!0});var ge=w(D);g(Tr.$$.fragment,ge),By=i(ge),sc=o(ge,"P",{"data-svelte-h":!0}),m(sc)!=="svelte-gusdnf"&&(sc.innerHTML=AM),Ly=i(ge),ac=o(ge,"P",{"data-svelte-h":!0}),m(ac)!=="svelte-1hjzyz9"&&(ac.innerHTML=NM),Wy=i(ge),g(bs.$$.fragment,ge),Ey=i(ge),oc=o(ge,"P",{"data-svelte-h":!0}),m(oc)!=="svelte-13rexfx"&&(oc.innerHTML=ZM),Hy=i(ge),rc=o(ge,"P",{"data-svelte-h":!0}),m(rc)!=="svelte-429p2l"&&(rc.innerHTML=FM),Oy=i(ge),ic=o(ge,"P",{"data-svelte-h":!0}),m(ic)!=="svelte-17eq97f"&&(ic.innerHTML=DM),Yy=i(ge),ys=o(ge,"DIV",{class:!0});var gg=w(ys);g(br.$$.fragment,gg),Qy=i(gg),lc=o(gg,"P",{"data-svelte-h":!0}),m(lc)!=="svelte-d0dqnk"&&(lc.innerHTML=RM),gg.forEach(s),ge.forEach(s),tf=i(e),kt=o(e,"H2",{class:!0});var ug=w(kt);ws=o(ug,"A",{id:!0,class:!0,href:!0});var _k=w(ws);zd=o(_k,"SPAN",{});var Mk=w(zd);g(yr.$$.fragment,Mk),Mk.forEach(s),_k.forEach(s),Xy=i(ug),pc=o(ug,"SPAN",{"data-svelte-h":!0}),m(pc)!=="svelte-atom6z"&&(pc.textContent=SM),ug.forEach(s),nf=i(e),wr=o(e,"P",{"data-svelte-h":!0}),m(wr)!=="svelte-azvh9"&&(wr.textContent=VM),sf=i(e),Ut=o(e,"H3",{class:!0});var Tg=w(Ut);xs=o(Tg,"A",{id:!0,class:!0,href:!0});var kk=w(xs);Gd=o(kk,"SPAN",{});var Uk=w(Gd);g(xr.$$.fragment,Uk),Uk.forEach(s),kk.forEach(s),Ky=i(Tg),cc=o(Tg,"SPAN",{"data-svelte-h":!0}),m(cc)!=="svelte-v21ja8"&&(cc.textContent=BM),Tg.forEach(s),af=i(e),X=o(e,"DIV",{class:!0});var $e=w(X);g(vr.$$.fragment,$e),ew=i($e),dc=o($e,"P",{"data-svelte-h":!0}),m(dc)!=="svelte-40flx9"&&(dc.innerHTML=LM),tw=i($e),g(vs.$$.fragment,$e),nw=i($e),mc=o($e,"P",{"data-svelte-h":!0}),m(mc)!=="svelte-13rexfx"&&(mc.innerHTML=WM),sw=i($e),hc=o($e,"P",{"data-svelte-h":!0}),m(hc)!=="svelte-112r04y"&&(hc.innerHTML=EM),aw=i($e),fc=o($e,"P",{"data-svelte-h":!0}),m(fc)!=="svelte-1akhzjj"&&(fc.innerHTML=HM),ow=i($e),ze=o($e,"DIV",{class:!0});var Ds=w(ze);g(_r.$$.fragment,Ds),rw=i(Ds),gc=o(Ds,"P",{"data-svelte-h":!0}),m(gc)!=="svelte-1211nrg"&&(gc.innerHTML=OM),iw=i(Ds),uc=o(Ds,"P",{"data-svelte-h":!0}),m(uc)!=="svelte-1njhmhw"&&(uc.textContent=YM),lw=i(Ds),Tc=o(Ds,"UL",{"data-svelte-h":!0}),m(Tc)!=="svelte-gfpbs1"&&(Tc.innerHTML=QM),Ds.forEach(s),$e.forEach(s),of=i(e),jt=o(e,"H3",{class:!0});var bg=w(jt);_s=o(bg,"A",{id:!0,class:!0,href:!0});var jk=w(_s);Ad=o(jk,"SPAN",{});var Pk=w(Ad);g(Mr.$$.fragment,Pk),Pk.forEach(s),jk.forEach(s),pw=i(bg),bc=o(bg,"SPAN",{"data-svelte-h":!0}),m(bc)!=="svelte-1bmq9i2"&&(bc.textContent=XM),bg.forEach(s),rf=i(e),K=o(e,"DIV",{class:!0});var Ce=w(K);g(kr.$$.fragment,Ce),cw=i(Ce),yc=o(Ce,"P",{"data-svelte-h":!0}),m(yc)!=="svelte-aunxv4"&&(yc.textContent=KM),dw=i(Ce),g(Ms.$$.fragment,Ce),mw=i(Ce),wc=o(Ce,"P",{"data-svelte-h":!0}),m(wc)!=="svelte-13rexfx"&&(wc.innerHTML=e2),hw=i(Ce),xc=o(Ce,"P",{"data-svelte-h":!0}),m(xc)!=="svelte-rknvks"&&(xc.innerHTML=t2),fw=i(Ce),vc=o(Ce,"P",{"data-svelte-h":!0}),m(vc)!=="svelte-85c9z6"&&(vc.innerHTML=n2),gw=i(Ce),ks=o(Ce,"DIV",{class:!0});var yg=w(ks);g(Ur.$$.fragment,yg),uw=i(yg),_c=o(yg,"P",{"data-svelte-h":!0}),m(_c)!=="svelte-11eoigb"&&(_c.textContent=s2),yg.forEach(s),Ce.forEach(s),lf=i(e),Pt=o(e,"H3",{class:!0});var wg=w(Pt);Us=o(wg,"A",{id:!0,class:!0,href:!0});var $k=w(Us);Nd=o($k,"SPAN",{});var Ck=w(Nd);g(jr.$$.fragment,Ck),Ck.forEach(s),$k.forEach(s),Tw=i(wg),Mc=o(wg,"SPAN",{"data-svelte-h":!0}),m(Mc)!=="svelte-16p5kw6"&&(Mc.textContent=a2),wg.forEach(s),pf=i(e),ee=o(e,"DIV",{class:!0});var Je=w(ee);g(Pr.$$.fragment,Je),bw=i(Je),kc=o(Je,"P",{"data-svelte-h":!0}),m(kc)!=="svelte-yuzbfo"&&(kc.innerHTML=o2),yw=i(Je),g(js.$$.fragment,Je),ww=i(Je),Uc=o(Je,"P",{"data-svelte-h":!0}),m(Uc)!=="svelte-13rexfx"&&(Uc.innerHTML=r2),xw=i(Je),jc=o(Je,"P",{"data-svelte-h":!0}),m(jc)!=="svelte-172bsdq"&&(jc.textContent=i2),vw=i(Je),Pc=o(Je,"P",{"data-svelte-h":!0}),m(Pc)!=="svelte-6aba0z"&&(Pc.innerHTML=l2),_w=i(Je),Ps=o(Je,"DIV",{class:!0});var xg=w(Ps);g($r.$$.fragment,xg),Mw=i(xg),$c=o(xg,"P",{"data-svelte-h":!0}),m($c)!=="svelte-ypfmt8"&&($c.textContent=p2),xg.forEach(s),Je.forEach(s),cf=i(e),$t=o(e,"H3",{class:!0});var vg=w($t);$s=o(vg,"A",{id:!0,class:!0,href:!0});var Jk=w($s);Zd=o(Jk,"SPAN",{});var Ik=w(Zd);g(Cr.$$.fragment,Ik),Ik.forEach(s),Jk.forEach(s),kw=i(vg),Cc=o(vg,"SPAN",{"data-svelte-h":!0}),m(Cc)!=="svelte-mkpozj"&&(Cc.textContent=c2),vg.forEach(s),df=i(e),te=o(e,"DIV",{class:!0});var Ie=w(te);g(Jr.$$.fragment,Ie),Uw=i(Ie),Jc=o(Ie,"P",{"data-svelte-h":!0}),m(Jc)!=="svelte-1lg1j1m"&&(Jc.innerHTML=d2),jw=i(Ie),g(Cs.$$.fragment,Ie),Pw=i(Ie),Ic=o(Ie,"P",{"data-svelte-h":!0}),m(Ic)!=="svelte-13rexfx"&&(Ic.innerHTML=m2),$w=i(Ie),qc=o(Ie,"P",{"data-svelte-h":!0}),m(qc)!=="svelte-1s5rkx1"&&(qc.innerHTML=h2),Cw=i(Ie),zc=o(Ie,"P",{"data-svelte-h":!0}),m(zc)!=="svelte-lcegcp"&&(zc.innerHTML=f2),Jw=i(Ie),Ve=o(Ie,"DIV",{class:!0});var ed=w(Ve);g(Ir.$$.fragment,ed),Iw=i(ed),Gc=o(ed,"P",{"data-svelte-h":!0}),m(Gc)!=="svelte-10yp62t"&&(Gc.textContent=g2),qw=i(ed),Ac=o(ed,"UL",{"data-svelte-h":!0}),m(Ac)!=="svelte-15cnno4"&&(Ac.innerHTML=u2),ed.forEach(s),Ie.forEach(s),mf=i(e),Ct=o(e,"H2",{class:!0});var _g=w(Ct);Js=o(_g,"A",{id:!0,class:!0,href:!0});var qk=w(Js);Fd=o(qk,"SPAN",{});var zk=w(Fd);g(qr.$$.fragment,zk),zk.forEach(s),qk.forEach(s),zw=i(_g),Nc=o(_g,"SPAN",{"data-svelte-h":!0}),m(Nc)!=="svelte-xnhp2i"&&(Nc.innerHTML=T2),_g.forEach(s),hf=i(e),J=o(e,"DIV",{class:!0});var I=w(J);g(zr.$$.fragment,I),Gw=i(I),Zc=o(I,"P",{"data-svelte-h":!0}),m(Zc)!=="svelte-k7p6k2"&&(Zc.textContent=b2),Aw=i(I),Fc=o(I,"P",{"data-svelte-h":!0}),m(Fc)!=="svelte-3qu5a5"&&(Fc.textContent=y2),Nw=i(I),Dc=o(I,"P",{"data-svelte-h":!0}),m(Dc)!=="svelte-1mj6jcv"&&(Dc.textContent=w2),Zw=i(I),Rc=o(I,"P",{"data-svelte-h":!0}),m(Rc)!=="svelte-pcl79b"&&(Rc.textContent=x2),Fw=i(I),Sc=o(I,"P",{"data-svelte-h":!0}),m(Sc)!=="svelte-1v22l1g"&&(Sc.innerHTML=v2),Dw=i(I),Is=o(I,"DIV",{class:!0});var Mg=w(Is);g(Gr.$$.fragment,Mg),Rw=i(Mg),Vc=o(Mg,"P",{"data-svelte-h":!0}),m(Vc)!=="svelte-exnhmi"&&(Vc.textContent=_2),Mg.forEach(s),Sw=i(I),Be=o(I,"DIV",{class:!0});var td=w(Be);g(Ar.$$.fragment,td),Vw=i(td),Bc=o(td,"P",{"data-svelte-h":!0}),m(Bc)!=="svelte-1piccye"&&(Bc.textContent=M2),Bw=i(td),g(qs.$$.fragment,td),td.forEach(s),Lw=i(I),zs=o(I,"DIV",{class:!0});var kg=w(zs);g(Nr.$$.fragment,kg),Ww=i(kg),Lc=o(kg,"P",{"data-svelte-h":!0}),m(Lc)!=="svelte-p1t4ev"&&(Lc.textContent=k2),kg.forEach(s),Ew=i(I),Gs=o(I,"DIV",{class:!0});var Ug=w(Gs);g(Zr.$$.fragment,Ug),Hw=i(Ug),Wc=o(Ug,"P",{"data-svelte-h":!0}),m(Wc)!=="svelte-2wm42a"&&(Wc.innerHTML=U2),Ug.forEach(s),Ow=i(I),As=o(I,"DIV",{class:!0});var jg=w(As);g(Fr.$$.fragment,jg),Yw=i(jg),Ec=o(jg,"P",{"data-svelte-h":!0}),m(Ec)!=="svelte-10cd17f"&&(Ec.innerHTML=j2),jg.forEach(s),Qw=i(I),Ns=o(I,"DIV",{class:!0});var Pg=w(Ns);g(Dr.$$.fragment,Pg),Xw=i(Pg),Hc=o(Pg,"P",{"data-svelte-h":!0}),m(Hc)!=="svelte-12sv4vl"&&(Hc.innerHTML=P2),Pg.forEach(s),Kw=i(I),Zs=o(I,"DIV",{class:!0});var $g=w(Zs);g(Rr.$$.fragment,$g),ex=i($g),Oc=o($g,"P",{"data-svelte-h":!0}),m(Oc)!=="svelte-kp2v8j"&&(Oc.textContent=$2),$g.forEach(s),tx=i(I),Fs=o(I,"DIV",{class:!0});var Cg=w(Fs);g(Sr.$$.fragment,Cg),nx=i(Cg),Yc=o(Cg,"P",{"data-svelte-h":!0}),m(Yc)!=="svelte-10cd17f"&&(Yc.innerHTML=C2),Cg.forEach(s),I.forEach(s),ff=i(e),Dd=o(e,"P",{}),w(Dd).forEach(s),this.h()},h(){h(p,"name","hf:doc:metadata"),h(p,"content",JSON.stringify(M0)),h(n,"id","pipelines"),h(n,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),h(n,"href","#pipelines"),h(v,"class","relative group"),h(Jt,"id","transformers.pipeline"),h(Jt,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),h(Jt,"href","#transformers.pipeline"),h(Ee,"class","relative group"),h(ue,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(qt,"id","pipeline-batching"),h(qt,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),h(qt,"href","#pipeline-batching"),h(He,"class","relative group"),h(Gt,"id","pipeline-chunk-batching"),h(Gt,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),h(Gt,"href","#pipeline-chunk-batching"),h(Oe,"class","relative group"),h(At,"id","pipeline-custom-code"),h(At,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),h(At,"href","#pipeline-custom-code"),h(Ye,"class","relative group"),h(Nt,"id","implementing-a-pipeline"),h(Nt,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),h(Nt,"href","#implementing-a-pipeline"),h(Qe,"class","relative group"),h(Zt,"id","audio"),h(Zt,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),h(Zt,"href","#audio"),h(Xe,"class","relative group"),h(Ft,"id","transformers.AudioClassificationPipeline"),h(Ft,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),h(Ft,"href","#transformers.AudioClassificationPipeline"),h(Ke,"class","relative group"),h(Rt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(S,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(St,"id","transformers.AutomaticSpeechRecognitionPipeline"),h(St,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),h(St,"href","#transformers.AutomaticSpeechRecognitionPipeline"),h(et,"class","relative group"),h(Bt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(re,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(Lt,"id","transformers.TextToAudioPipeline"),h(Lt,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),h(Lt,"href","#transformers.TextToAudioPipeline"),h(tt,"class","relative group"),h(Et,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(V,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(Ht,"id","transformers.ZeroShotAudioClassificationPipeline"),h(Ht,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),h(Ht,"href","#transformers.ZeroShotAudioClassificationPipeline"),h(nt,"class","relative group"),h(Yt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(Te,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(Qt,"id","computer-vision"),h(Qt,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),h(Qt,"href","#computer-vision"),h(st,"class","relative group"),h(Xt,"id","transformers.DepthEstimationPipeline"),h(Xt,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),h(Xt,"href","#transformers.DepthEstimationPipeline"),h(at,"class","relative group"),h(en,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(B,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(tn,"id","transformers.ImageClassificationPipeline"),h(tn,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),h(tn,"href","#transformers.ImageClassificationPipeline"),h(ot,"class","relative group"),h(sn,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(L,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(an,"id","transformers.ImageSegmentationPipeline"),h(an,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),h(an,"href","#transformers.ImageSegmentationPipeline"),h(rt,"class","relative group"),h(rn,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(ie,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(ln,"id","transformers.ImageToImagePipeline"),h(ln,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),h(ln,"href","#transformers.ImageToImagePipeline"),h(it,"class","relative group"),h(cn,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(le,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(dn,"id","transformers.ObjectDetectionPipeline"),h(dn,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),h(dn,"href","#transformers.ObjectDetectionPipeline"),h(lt,"class","relative group"),h(hn,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(W,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(fn,"id","transformers.VideoClassificationPipeline"),h(fn,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),h(fn,"href","#transformers.VideoClassificationPipeline"),h(pt,"class","relative group"),h(gn,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(be,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(un,"id","transformers.ZeroShotImageClassificationPipeline"),h(un,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),h(un,"href","#transformers.ZeroShotImageClassificationPipeline"),h(ct,"class","relative group"),h(bn,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(E,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(yn,"id","transformers.ZeroShotObjectDetectionPipeline"),h(yn,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),h(yn,"href","#transformers.ZeroShotObjectDetectionPipeline"),h(dt,"class","relative group"),h(xn,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(H,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(vn,"id","natural-language-processing"),h(vn,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),h(vn,"href","#natural-language-processing"),h(mt,"class","relative group"),h(_n,"id","transformers.Conversation"),h(_n,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),h(_n,"href","#transformers.Conversation"),h(ht,"class","relative group"),h(kn,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(Un,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(jn,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(pe,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h($n,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(O,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(Cn,"id","transformers.FillMaskPipeline"),h(Cn,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),h(Cn,"href","#transformers.FillMaskPipeline"),h(ft,"class","relative group"),h(zn,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(G,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(Gn,"id","transformers.TokenClassificationPipeline"),h(Gn,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),h(Gn,"href","#transformers.TokenClassificationPipeline"),h(gt,"class","relative group"),h(De,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(Nn,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(Zn,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(Fn,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(z,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(Dn,"id","transformers.QuestionAnsweringPipeline"),h(Dn,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),h(Dn,"href","#transformers.QuestionAnsweringPipeline"),h(ut,"class","relative group"),h(Sn,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(Re,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(Vn,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(A,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(Bn,"id","transformers.SummarizationPipeline"),h(Bn,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),h(Bn,"href","#transformers.SummarizationPipeline"),h(Tt,"class","relative group"),h(Wn,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(ce,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(En,"id","transformers.TableQuestionAnsweringPipeline"),h(En,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),h(En,"href","#transformers.TableQuestionAnsweringPipeline"),h(bt,"class","relative group"),h(ne,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(Y,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(Qn,"id","transformers.TextClassificationPipeline"),h(Qn,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),h(Qn,"href","#transformers.TextClassificationPipeline"),h(yt,"class","relative group"),h(Kn,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(F,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(es,"id","transformers.TextGenerationPipeline"),h(es,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),h(es,"href","#transformers.TextGenerationPipeline"),h(wt,"class","relative group"),h(ns,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(Q,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(ss,"id","transformers.Text2TextGenerationPipeline"),h(ss,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),h(ss,"href","#transformers.Text2TextGenerationPipeline"),h(xt,"class","relative group"),h(rs,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(is,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(N,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(ls,"id","transformers.TokenClassificationPipeline"),h(ls,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),h(ls,"href","#transformers.TokenClassificationPipeline"),h(vt,"class","relative group"),h(cs,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(Se,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(ds,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(ms,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(hs,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(q,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(fs,"id","transformers.TranslationPipeline"),h(fs,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),h(fs,"href","#transformers.TranslationPipeline"),h(_t,"class","relative group"),h(us,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(de,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(Ts,"id","transformers.ZeroShotClassificationPipeline"),h(Ts,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),h(Ts,"href","#transformers.ZeroShotClassificationPipeline"),h(Mt,"class","relative group"),h(ys,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(D,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(ws,"id","multimodal"),h(ws,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),h(ws,"href","#multimodal"),h(kt,"class","relative group"),h(xs,"id","transformers.DocumentQuestionAnsweringPipeline"),h(xs,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),h(xs,"href","#transformers.DocumentQuestionAnsweringPipeline"),h(Ut,"class","relative group"),h(ze,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(X,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(_s,"id","transformers.FeatureExtractionPipeline"),h(_s,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),h(_s,"href","#transformers.FeatureExtractionPipeline"),h(jt,"class","relative group"),h(ks,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(K,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(Us,"id","transformers.ImageToTextPipeline"),h(Us,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),h(Us,"href","#transformers.ImageToTextPipeline"),h(Pt,"class","relative group"),h(Ps,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(ee,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h($s,"id","transformers.VisualQuestionAnsweringPipeline"),h($s,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),h($s,"href","#transformers.VisualQuestionAnsweringPipeline"),h($t,"class","relative group"),h(Ve,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(te,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(Js,"id","transformers.Pipeline"),h(Js,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),h(Js,"href","#transformers.Pipeline"),h(Ct,"class","relative group"),h(Is,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(Be,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(zs,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(Gs,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(As,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(Ns,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(Zs,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(Fs,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(J,"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,l){t(document.head,p),c(e,M,l),c(e,x,l),c(e,d,l),c(e,v,l),t(v,n),t(n,_),u(Rs,_,null),t(v,Jg),t(v,ti),c(e,im,l),c(e,Ss,l),c(e,lm,l),c(e,Vs,l),c(e,pm,l),c(e,Bs,l),c(e,cm,l),c(e,Ee,l),t(Ee,Jt),t(Jt,nd),u(Ls,nd,null),t(Ee,Ig),t(Ee,ni),c(e,dm,l),c(e,Ws,l),c(e,mm,l),c(e,Es,l),c(e,hm,l),u(Hs,e,l),c(e,fm,l),c(e,Os,l),c(e,gm,l),u(Ys,e,l),c(e,um,l),c(e,Qs,l),c(e,Tm,l),u(Xs,e,l),c(e,bm,l),c(e,Ks,l),c(e,ym,l),u(ea,e,l),c(e,wm,l),c(e,ta,l),c(e,xm,l),u(na,e,l),c(e,vm,l),c(e,ue,l),u(sa,ue,null),t(ue,qg),t(ue,si),t(ue,zg),t(ue,ai),t(ue,Gg),t(ue,oi),t(ue,Ag),u(It,ue,null),c(e,_m,l),c(e,He,l),t(He,qt),t(qt,sd),u(aa,sd,null),t(He,Ng),t(He,ri),c(e,Mm,l),c(e,oa,l),c(e,km,l),u(ra,e,l),c(e,Um,l),u(zt,e,l),c(e,jm,l),u(ia,e,l),c(e,Pm,l),u(la,e,l),c(e,$m,l),c(e,pa,l),c(e,Cm,l),u(ca,e,l),c(e,Jm,l),c(e,da,l),c(e,Im,l),u(ma,e,l),c(e,qm,l),c(e,ha,l),c(e,zm,l),c(e,fa,l),c(e,Gm,l),c(e,ga,l),c(e,Am,l),c(e,Oe,l),t(Oe,Gt),t(Gt,ad),u(ua,ad,null),t(Oe,Zg),t(Oe,ii),c(e,Nm,l),c(e,Ta,l),c(e,Zm,l),c(e,ba,l),c(e,Fm,l),u(ya,e,l),c(e,Dm,l),c(e,wa,l),c(e,Rm,l),u(xa,e,l),c(e,Sm,l),c(e,va,l),c(e,Vm,l),c(e,_a,l),c(e,Bm,l),c(e,Ye,l),t(Ye,At),t(At,od),u(Ma,od,null),t(Ye,Fg),t(Ye,li),c(e,Lm,l),c(e,ka,l),c(e,Wm,l),c(e,Ua,l),c(e,Em,l),c(e,ja,l),c(e,Hm,l),c(e,Pa,l),c(e,Om,l),u($a,e,l),c(e,Ym,l),c(e,Ca,l),c(e,Qm,l),c(e,Qe,l),t(Qe,Nt),t(Nt,rd),u(Ja,rd,null),t(Qe,Dg),t(Qe,pi),c(e,Xm,l),c(e,Ia,l),c(e,Km,l),c(e,Xe,l),t(Xe,Zt),t(Zt,id),u(qa,id,null),t(Xe,Rg),t(Xe,ci),c(e,eh,l),c(e,za,l),c(e,th,l),c(e,Ke,l),t(Ke,Ft),t(Ft,ld),u(Ga,ld,null),t(Ke,Sg),t(Ke,di),c(e,nh,l),c(e,S,l),u(Aa,S,null),t(S,Vg),t(S,mi),t(S,Bg),u(Dt,S,null),t(S,Lg),t(S,hi),t(S,Wg),t(S,fi),t(S,Eg),t(S,gi),t(S,Hg),t(S,Rt),u(Na,Rt,null),t(Rt,Og),t(Rt,ui),c(e,sh,l),c(e,et,l),t(et,St),t(St,pd),u(Za,pd,null),t(et,Yg),t(et,Ti),c(e,ah,l),c(e,re,l),u(Fa,re,null),t(re,Qg),t(re,bi),t(re,Xg),t(re,yi),t(re,Kg),u(Vt,re,null),t(re,eu),t(re,wi),t(re,tu),t(re,Bt),u(Da,Bt,null),t(Bt,nu),t(Bt,xi),c(e,oh,l),c(e,tt,l),t(tt,Lt),t(Lt,cd),u(Ra,cd,null),t(tt,su),t(tt,vi),c(e,rh,l),c(e,V,l),u(Sa,V,null),t(V,au),t(V,_i),t(V,ou),u(Wt,V,null),t(V,ru),t(V,Mi),t(V,iu),t(V,ki),t(V,lu),t(V,Ui),t(V,pu),t(V,Et),u(Va,Et,null),t(Et,cu),t(Et,ji),c(e,ih,l),c(e,nt,l),t(nt,Ht),t(Ht,dd),u(Ba,dd,null),t(nt,du),t(nt,Pi),c(e,lh,l),c(e,Te,l),u(La,Te,null),t(Te,mu),t(Te,$i),t(Te,hu),u(Ot,Te,null),t(Te,fu),t(Te,Ci),t(Te,gu),t(Te,Yt),u(Wa,Yt,null),t(Yt,uu),t(Yt,Ji),c(e,ph,l),c(e,st,l),t(st,Qt),t(Qt,md),u(Ea,md,null),t(st,Tu),t(st,Ii),c(e,ch,l),c(e,Ha,l),c(e,dh,l),c(e,at,l),t(at,Xt),t(Xt,hd),u(Oa,hd,null),t(at,bu),t(at,qi),c(e,mh,l),c(e,B,l),u(Ya,B,null),t(B,yu),t(B,zi),t(B,wu),u(Kt,B,null),t(B,xu),t(B,Gi),t(B,vu),t(B,Ai),t(B,_u),t(B,Ni),t(B,Mu),t(B,en),u(Qa,en,null),t(en,ku),t(en,Zi),c(e,hh,l),c(e,ot,l),t(ot,tn),t(tn,fd),u(Xa,fd,null),t(ot,Uu),t(ot,Fi),c(e,fh,l),c(e,L,l),u(Ka,L,null),t(L,ju),t(L,Di),t(L,Pu),u(nn,L,null),t(L,$u),t(L,Ri),t(L,Cu),t(L,Si),t(L,Ju),t(L,Vi),t(L,Iu),t(L,sn),u(eo,sn,null),t(sn,qu),t(sn,Bi),c(e,gh,l),c(e,rt,l),t(rt,an),t(an,gd),u(to,gd,null),t(rt,zu),t(rt,Li),c(e,uh,l),c(e,ie,l),u(no,ie,null),t(ie,Gu),t(ie,Wi),t(ie,Au),u(on,ie,null),t(ie,Nu),t(ie,Ei),t(ie,Zu),t(ie,Hi),t(ie,Fu),t(ie,rn),u(so,rn,null),t(rn,Du),t(rn,Oi),c(e,Th,l),c(e,it,l),t(it,ln),t(ln,ud),u(ao,ud,null),t(it,Ru),t(it,Yi),c(e,bh,l),c(e,le,l),u(oo,le,null),t(le,Su),t(le,Qi),t(le,Vu),u(pn,le,null),t(le,Bu),t(le,Xi),t(le,Lu),t(le,Ki),t(le,Wu),t(le,cn),u(ro,cn,null),t(cn,Eu),t(cn,el),c(e,yh,l),c(e,lt,l),t(lt,dn),t(dn,Td),u(io,Td,null),t(lt,Hu),t(lt,tl),c(e,wh,l),c(e,W,l),u(lo,W,null),t(W,Ou),t(W,nl),t(W,Yu),u(mn,W,null),t(W,Qu),t(W,sl),t(W,Xu),t(W,al),t(W,Ku),t(W,ol),t(W,eT),t(W,hn),u(po,hn,null),t(hn,tT),t(hn,rl),c(e,xh,l),c(e,pt,l),t(pt,fn),t(fn,bd),u(co,bd,null),t(pt,nT),t(pt,il),c(e,vh,l),c(e,be,l),u(mo,be,null),t(be,sT),t(be,ll),t(be,aT),t(be,pl),t(be,oT),t(be,cl),t(be,rT),t(be,gn),u(ho,gn,null),t(gn,iT),t(gn,dl),c(e,_h,l),c(e,ct,l),t(ct,un),t(un,yd),u(fo,yd,null),t(ct,lT),t(ct,ml),c(e,Mh,l),c(e,E,l),u(go,E,null),t(E,pT),t(E,hl),t(E,cT),u(Tn,E,null),t(E,dT),t(E,fl),t(E,mT),t(E,gl),t(E,hT),t(E,ul),t(E,fT),t(E,bn),u(uo,bn,null),t(bn,gT),t(bn,Tl),c(e,kh,l),c(e,dt,l),t(dt,yn),t(yn,wd),u(To,wd,null),t(dt,uT),t(dt,bl),c(e,Uh,l),c(e,H,l),u(bo,H,null),t(H,TT),t(H,yl),t(H,bT),u(wn,H,null),t(H,yT),t(H,wl),t(H,wT),t(H,xl),t(H,xT),t(H,vl),t(H,vT),t(H,xn),u(yo,xn,null),t(xn,_T),t(xn,_l),c(e,jh,l),c(e,mt,l),t(mt,vn),t(vn,xd),u(wo,xd,null),t(mt,MT),t(mt,Ml),c(e,Ph,l),c(e,xo,l),c(e,$h,l),c(e,ht,l),t(ht,_n),t(_n,vd),u(vo,vd,null),t(ht,kT),t(ht,kl),c(e,Ch,l),c(e,pe,l),u(_o,pe,null),t(pe,UT),t(pe,Ul),t(pe,jT),u(Mn,pe,null),t(pe,PT),t(pe,kn),u(Mo,kn,null),t(kn,$T),t(kn,jl),t(pe,CT),t(pe,Un),u(ko,Un,null),t(Un,JT),t(Un,Pl),t(pe,IT),t(pe,jn),u(Uo,jn,null),t(jn,qT),t(jn,$l),c(e,Jh,l),c(e,O,l),u(jo,O,null),t(O,zT),t(O,Cl),t(O,GT),u(Pn,O,null),t(O,AT),t(O,Jl),t(O,NT),t(O,Il),t(O,ZT),t(O,ql),t(O,FT),t(O,$n),u(Po,$n,null),t($n,DT),t($n,zl),c(e,Ih,l),c(e,ft,l),t(ft,Cn),t(Cn,_d),u($o,_d,null),t(ft,RT),t(ft,Gl),c(e,qh,l),c(e,G,l),u(Co,G,null),t(G,ST),t(G,Al),t(G,VT),u(Jn,G,null),t(G,BT),t(G,Nl),t(G,LT),t(G,Zl),t(G,WT),t(G,Fl),t(G,ET),u(In,G,null),t(G,HT),u(qn,G,null),t(G,OT),t(G,zn),u(Jo,zn,null),t(zn,YT),t(zn,Dl),c(e,zh,l),c(e,gt,l),t(gt,Gn),t(Gn,Md),u(Io,Md,null),t(gt,QT),t(gt,Rl),c(e,Gh,l),c(e,z,l),u(qo,z,null),t(z,XT),t(z,Sl),t(z,KT),u(An,z,null),t(z,eb),t(z,Vl),t(z,tb),t(z,Bl),t(z,nb),t(z,Ll),t(z,sb),t(z,De),u(zo,De,null),t(De,ab),t(De,Wl),t(De,ob),t(De,El),t(z,rb),t(z,Nn),u(Go,Nn,null),t(Nn,ib),t(Nn,Hl),t(z,lb),t(z,Zn),u(Ao,Zn,null),t(Zn,pb),t(Zn,Ol),t(z,cb),t(z,Fn),u(No,Fn,null),t(Fn,db),t(Fn,Yl),c(e,Ah,l),c(e,Zo,l),c(e,Nh,l),c(e,ut,l),t(ut,Dn),t(Dn,kd),u(Fo,kd,null),t(ut,mb),t(ut,Ql),c(e,Zh,l),c(e,A,l),u(Do,A,null),t(A,hb),t(A,Xl),t(A,fb),u(Rn,A,null),t(A,gb),t(A,Kl),t(A,ub),t(A,ep),t(A,Tb),t(A,tp),t(A,bb),t(A,Sn),u(Ro,Sn,null),t(Sn,yb),t(Sn,np),t(A,wb),t(A,Re),u(So,Re,null),t(Re,xb),t(Re,sp),t(Re,vb),t(Re,ap),t(A,_b),t(A,Vn),u(Vo,Vn,null),t(Vn,Mb),t(Vn,op),c(e,Fh,l),c(e,Tt,l),t(Tt,Bn),t(Bn,Ud),u(Bo,Ud,null),t(Tt,kb),t(Tt,rp),c(e,Dh,l),c(e,ce,l),u(Lo,ce,null),t(ce,Ub),t(ce,ip),t(ce,jb),t(ce,lp),t(ce,Pb),t(ce,pp),t(ce,$b),u(Ln,ce,null),t(ce,Cb),t(ce,Wn),u(Wo,Wn,null),t(Wn,Jb),t(Wn,cp),c(e,Rh,l),c(e,bt,l),t(bt,En),t(En,jd),u(Eo,jd,null),t(bt,Ib),t(bt,dp),c(e,Sh,l),c(e,Y,l),u(Ho,Y,null),t(Y,qb),t(Y,mp),t(Y,zb),u(Hn,Y,null),t(Y,Gb),t(Y,hp),t(Y,Ab),t(Y,fp),t(Y,Nb),t(Y,gp),t(Y,Zb),t(Y,ne),u(Oo,ne,null),t(ne,Fb),t(ne,up),t(ne,Db),t(ne,Tp),t(ne,Rb),t(ne,bp),t(ne,Sb),u(On,ne,null),t(ne,Vb),t(ne,yp),t(ne,Bb),u(Yn,ne,null),c(e,Vh,l),c(e,yt,l),t(yt,Qn),t(Qn,Pd),u(Yo,Pd,null),t(yt,Lb),t(yt,wp),c(e,Bh,l),c(e,F,l),u(Qo,F,null),t(F,Wb),t(F,xp),t(F,Eb),u(Xn,F,null),t(F,Hb),t(F,vp),t(F,Ob),t(F,_p),t(F,Yb),t(F,Mp),t(F,Qb),t(F,kp),t(F,Xb),t(F,Kn),u(Xo,Kn,null),t(Kn,Kb),t(Kn,Up),c(e,Lh,l),c(e,wt,l),t(wt,es),t(es,$d),u(Ko,$d,null),t(wt,ey),t(wt,jp),c(e,Wh,l),c(e,Q,l),u(er,Q,null),t(Q,ty),t(Q,Pp),t(Q,ny),u(ts,Q,null),t(Q,sy),t(Q,$p),t(Q,ay),t(Q,Cp),t(Q,oy),t(Q,Jp),t(Q,ry),t(Q,ns),u(tr,ns,null),t(ns,iy),t(ns,Ip),c(e,Eh,l),c(e,xt,l),t(xt,ss),t(ss,Cd),u(nr,Cd,null),t(xt,ly),t(xt,qp),c(e,Hh,l),c(e,N,l),u(sr,N,null),t(N,py),t(N,zp),t(N,cy),u(as,N,null),t(N,dy),t(N,Gp),t(N,my),t(N,Ap),t(N,hy),t(N,Np),t(N,fy),u(os,N,null),t(N,gy),t(N,rs),u(ar,rs,null),t(rs,uy),t(rs,Zp),t(N,Ty),t(N,is),u(or,is,null),t(is,by),t(is,Fp),c(e,Oh,l),c(e,vt,l),t(vt,ls),t(ls,Jd),u(rr,Jd,null),t(vt,yy),t(vt,Dp),c(e,Yh,l),c(e,q,l),u(ir,q,null),t(q,wy),t(q,Rp),t(q,xy),u(ps,q,null),t(q,vy),t(q,Sp),t(q,_y),t(q,Vp),t(q,My),t(q,Bp),t(q,ky),t(q,cs),u(lr,cs,null),t(cs,Uy),t(cs,Lp),t(q,jy),t(q,Se),u(pr,Se,null),t(Se,Py),t(Se,Wp),t(Se,$y),t(Se,Ep),t(q,Cy),t(q,ds),u(cr,ds,null),t(ds,Jy),t(ds,Hp),t(q,Iy),t(q,ms),u(dr,ms,null),t(ms,qy),t(ms,Op),t(q,zy),t(q,hs),u(mr,hs,null),t(hs,Gy),t(hs,Yp),c(e,Qh,l),c(e,_t,l),t(_t,fs),t(fs,Id),u(hr,Id,null),t(_t,Ay),t(_t,Qp),c(e,Xh,l),c(e,de,l),u(fr,de,null),t(de,Ny),t(de,Xp),t(de,Zy),t(de,Kp),t(de,Fy),t(de,ec),t(de,Dy),u(gs,de,null),t(de,Ry),t(de,us),u(gr,us,null),t(us,Sy),t(us,tc),c(e,Kh,l),c(e,Mt,l),t(Mt,Ts),t(Ts,qd),u(ur,qd,null),t(Mt,Vy),t(Mt,nc),c(e,ef,l),c(e,D,l),u(Tr,D,null),t(D,By),t(D,sc),t(D,Ly),t(D,ac),t(D,Wy),u(bs,D,null),t(D,Ey),t(D,oc),t(D,Hy),t(D,rc),t(D,Oy),t(D,ic),t(D,Yy),t(D,ys),u(br,ys,null),t(ys,Qy),t(ys,lc),c(e,tf,l),c(e,kt,l),t(kt,ws),t(ws,zd),u(yr,zd,null),t(kt,Xy),t(kt,pc),c(e,nf,l),c(e,wr,l),c(e,sf,l),c(e,Ut,l),t(Ut,xs),t(xs,Gd),u(xr,Gd,null),t(Ut,Ky),t(Ut,cc),c(e,af,l),c(e,X,l),u(vr,X,null),t(X,ew),t(X,dc),t(X,tw),u(vs,X,null),t(X,nw),t(X,mc),t(X,sw),t(X,hc),t(X,aw),t(X,fc),t(X,ow),t(X,ze),u(_r,ze,null),t(ze,rw),t(ze,gc),t(ze,iw),t(ze,uc),t(ze,lw),t(ze,Tc),c(e,of,l),c(e,jt,l),t(jt,_s),t(_s,Ad),u(Mr,Ad,null),t(jt,pw),t(jt,bc),c(e,rf,l),c(e,K,l),u(kr,K,null),t(K,cw),t(K,yc),t(K,dw),u(Ms,K,null),t(K,mw),t(K,wc),t(K,hw),t(K,xc),t(K,fw),t(K,vc),t(K,gw),t(K,ks),u(Ur,ks,null),t(ks,uw),t(ks,_c),c(e,lf,l),c(e,Pt,l),t(Pt,Us),t(Us,Nd),u(jr,Nd,null),t(Pt,Tw),t(Pt,Mc),c(e,pf,l),c(e,ee,l),u(Pr,ee,null),t(ee,bw),t(ee,kc),t(ee,yw),u(js,ee,null),t(ee,ww),t(ee,Uc),t(ee,xw),t(ee,jc),t(ee,vw),t(ee,Pc),t(ee,_w),t(ee,Ps),u($r,Ps,null),t(Ps,Mw),t(Ps,$c),c(e,cf,l),c(e,$t,l),t($t,$s),t($s,Zd),u(Cr,Zd,null),t($t,kw),t($t,Cc),c(e,df,l),c(e,te,l),u(Jr,te,null),t(te,Uw),t(te,Jc),t(te,jw),u(Cs,te,null),t(te,Pw),t(te,Ic),t(te,$w),t(te,qc),t(te,Cw),t(te,zc),t(te,Jw),t(te,Ve),u(Ir,Ve,null),t(Ve,Iw),t(Ve,Gc),t(Ve,qw),t(Ve,Ac),c(e,mf,l),c(e,Ct,l),t(Ct,Js),t(Js,Fd),u(qr,Fd,null),t(Ct,zw),t(Ct,Nc),c(e,hf,l),c(e,J,l),u(zr,J,null),t(J,Gw),t(J,Zc),t(J,Aw),t(J,Fc),t(J,Nw),t(J,Dc),t(J,Zw),t(J,Rc),t(J,Fw),t(J,Sc),t(J,Dw),t(J,Is),u(Gr,Is,null),t(Is,Rw),t(Is,Vc),t(J,Sw),t(J,Be),u(Ar,Be,null),t(Be,Vw),t(Be,Bc),t(Be,Bw),u(qs,Be,null),t(J,Lw),t(J,zs),u(Nr,zs,null),t(zs,Ww),t(zs,Lc),t(J,Ew),t(J,Gs),u(Zr,Gs,null),t(Gs,Hw),t(Gs,Wc),t(J,Ow),t(J,As),u(Fr,As,null),t(As,Yw),t(As,Ec),t(J,Qw),t(J,Ns),u(Dr,Ns,null),t(Ns,Xw),t(Ns,Hc),t(J,Kw),t(J,Zs),u(Rr,Zs,null),t(Zs,ex),t(Zs,Oc),t(J,tx),t(J,Fs),u(Sr,Fs,null),t(Fs,nx),t(Fs,Yc),c(e,ff,l),c(e,Dd,l),gf=!0},p(e,[l]){const Vr={};l&2&&(Vr.$$scope={dirty:l,ctx:e}),It.$set(Vr);const Rd={};l&2&&(Rd.$$scope={dirty:l,ctx:e}),zt.$set(Rd);const Sd={};l&2&&(Sd.$$scope={dirty:l,ctx:e}),Dt.$set(Sd);const Br={};l&2&&(Br.$$scope={dirty:l,ctx:e}),Vt.$set(Br);const Vd={};l&2&&(Vd.$$scope={dirty:l,ctx:e}),Wt.$set(Vd);const Bd={};l&2&&(Bd.$$scope={dirty:l,ctx:e}),Ot.$set(Bd);const qe={};l&2&&(qe.$$scope={dirty:l,ctx:e}),Kt.$set(qe);const Lr={};l&2&&(Lr.$$scope={dirty:l,ctx:e}),nn.$set(Lr);const Ld={};l&2&&(Ld.$$scope={dirty:l,ctx:e}),on.$set(Ld);const Wd={};l&2&&(Wd.$$scope={dirty:l,ctx:e}),pn.$set(Wd);const Wr={};l&2&&(Wr.$$scope={dirty:l,ctx:e}),mn.$set(Wr);const Ed={};l&2&&(Ed.$$scope={dirty:l,ctx:e}),Tn.$set(Ed);const Hd={};l&2&&(Hd.$$scope={dirty:l,ctx:e}),wn.$set(Hd);const Er={};l&2&&(Er.$$scope={dirty:l,ctx:e}),Mn.$set(Er);const Od={};l&2&&(Od.$$scope={dirty:l,ctx:e}),Pn.$set(Od);const Yd={};l&2&&(Yd.$$scope={dirty:l,ctx:e}),Jn.$set(Yd);const Hr={};l&2&&(Hr.$$scope={dirty:l,ctx:e}),In.$set(Hr);const Qd={};l&2&&(Qd.$$scope={dirty:l,ctx:e}),qn.$set(Qd);const Xd={};l&2&&(Xd.$$scope={dirty:l,ctx:e}),An.$set(Xd);const Or={};l&2&&(Or.$$scope={dirty:l,ctx:e}),Rn.$set(Or);const Kd={};l&2&&(Kd.$$scope={dirty:l,ctx:e}),Ln.$set(Kd);const em={};l&2&&(em.$$scope={dirty:l,ctx:e}),Hn.$set(em);const Yr={};l&2&&(Yr.$$scope={dirty:l,ctx:e}),On.$set(Yr);const tm={};l&2&&(tm.$$scope={dirty:l,ctx:e}),Yn.$set(tm);const nm={};l&2&&(nm.$$scope={dirty:l,ctx:e}),Xn.$set(nm);const me={};l&2&&(me.$$scope={dirty:l,ctx:e}),ts.$set(me);const Qr={};l&2&&(Qr.$$scope={dirty:l,ctx:e}),as.$set(Qr);const Xr={};l&2&&(Xr.$$scope={dirty:l,ctx:e}),os.$set(Xr);const sm={};l&2&&(sm.$$scope={dirty:l,ctx:e}),ps.$set(sm);const am={};l&2&&(am.$$scope={dirty:l,ctx:e}),gs.$set(am);const ye={};l&2&&(ye.$$scope={dirty:l,ctx:e}),bs.$set(ye);const Kr={};l&2&&(Kr.$$scope={dirty:l,ctx:e}),vs.$set(Kr);const ei={};l&2&&(ei.$$scope={dirty:l,ctx:e}),Ms.$set(ei);const om={};l&2&&(om.$$scope={dirty:l,ctx:e}),js.$set(om);const rm={};l&2&&(rm.$$scope={dirty:l,ctx:e}),Cs.$set(rm);const he={};l&2&&(he.$$scope={dirty:l,ctx:e}),qs.$set(he)},i(e){gf||(T(Rs.$$.fragment,e),T(Ls.$$.fragment,e),T(Hs.$$.fragment,e),T(Ys.$$.fragment,e),T(Xs.$$.fragment,e),T(ea.$$.fragment,e),T(na.$$.fragment,e),T(sa.$$.fragment,e),T(It.$$.fragment,e),T(aa.$$.fragment,e),T(ra.$$.fragment,e),T(zt.$$.fragment,e),T(ia.$$.fragment,e),T(la.$$.fragment,e),T(ca.$$.fragment,e),T(ma.$$.fragment,e),T(ua.$$.fragment,e),T(ya.$$.fragment,e),T(xa.$$.fragment,e),T(Ma.$$.fragment,e),T($a.$$.fragment,e),T(Ja.$$.fragment,e),T(qa.$$.fragment,e),T(Ga.$$.fragment,e),T(Aa.$$.fragment,e),T(Dt.$$.fragment,e),T(Na.$$.fragment,e),T(Za.$$.fragment,e),T(Fa.$$.fragment,e),T(Vt.$$.fragment,e),T(Da.$$.fragment,e),T(Ra.$$.fragment,e),T(Sa.$$.fragment,e),T(Wt.$$.fragment,e),T(Va.$$.fragment,e),T(Ba.$$.fragment,e),T(La.$$.fragment,e),T(Ot.$$.fragment,e),T(Wa.$$.fragment,e),T(Ea.$$.fragment,e),T(Oa.$$.fragment,e),T(Ya.$$.fragment,e),T(Kt.$$.fragment,e),T(Qa.$$.fragment,e),T(Xa.$$.fragment,e),T(Ka.$$.fragment,e),T(nn.$$.fragment,e),T(eo.$$.fragment,e),T(to.$$.fragment,e),T(no.$$.fragment,e),T(on.$$.fragment,e),T(so.$$.fragment,e),T(ao.$$.fragment,e),T(oo.$$.fragment,e),T(pn.$$.fragment,e),T(ro.$$.fragment,e),T(io.$$.fragment,e),T(lo.$$.fragment,e),T(mn.$$.fragment,e),T(po.$$.fragment,e),T(co.$$.fragment,e),T(mo.$$.fragment,e),T(ho.$$.fragment,e),T(fo.$$.fragment,e),T(go.$$.fragment,e),T(Tn.$$.fragment,e),T(uo.$$.fragment,e),T(To.$$.fragment,e),T(bo.$$.fragment,e),T(wn.$$.fragment,e),T(yo.$$.fragment,e),T(wo.$$.fragment,e),T(vo.$$.fragment,e),T(_o.$$.fragment,e),T(Mn.$$.fragment,e),T(Mo.$$.fragment,e),T(ko.$$.fragment,e),T(Uo.$$.fragment,e),T(jo.$$.fragment,e),T(Pn.$$.fragment,e),T(Po.$$.fragment,e),T($o.$$.fragment,e),T(Co.$$.fragment,e),T(Jn.$$.fragment,e),T(In.$$.fragment,e),T(qn.$$.fragment,e),T(Jo.$$.fragment,e),T(Io.$$.fragment,e),T(qo.$$.fragment,e),T(An.$$.fragment,e),T(zo.$$.fragment,e),T(Go.$$.fragment,e),T(Ao.$$.fragment,e),T(No.$$.fragment,e),T(Fo.$$.fragment,e),T(Do.$$.fragment,e),T(Rn.$$.fragment,e),T(Ro.$$.fragment,e),T(So.$$.fragment,e),T(Vo.$$.fragment,e),T(Bo.$$.fragment,e),T(Lo.$$.fragment,e),T(Ln.$$.fragment,e),T(Wo.$$.fragment,e),T(Eo.$$.fragment,e),T(Ho.$$.fragment,e),T(Hn.$$.fragment,e),T(Oo.$$.fragment,e),T(On.$$.fragment,e),T(Yn.$$.fragment,e),T(Yo.$$.fragment,e),T(Qo.$$.fragment,e),T(Xn.$$.fragment,e),T(Xo.$$.fragment,e),T(Ko.$$.fragment,e),T(er.$$.fragment,e),T(ts.$$.fragment,e),T(tr.$$.fragment,e),T(nr.$$.fragment,e),T(sr.$$.fragment,e),T(as.$$.fragment,e),T(os.$$.fragment,e),T(ar.$$.fragment,e),T(or.$$.fragment,e),T(rr.$$.fragment,e),T(ir.$$.fragment,e),T(ps.$$.fragment,e),T(lr.$$.fragment,e),T(pr.$$.fragment,e),T(cr.$$.fragment,e),T(dr.$$.fragment,e),T(mr.$$.fragment,e),T(hr.$$.fragment,e),T(fr.$$.fragment,e),T(gs.$$.fragment,e),T(gr.$$.fragment,e),T(ur.$$.fragment,e),T(Tr.$$.fragment,e),T(bs.$$.fragment,e),T(br.$$.fragment,e),T(yr.$$.fragment,e),T(xr.$$.fragment,e),T(vr.$$.fragment,e),T(vs.$$.fragment,e),T(_r.$$.fragment,e),T(Mr.$$.fragment,e),T(kr.$$.fragment,e),T(Ms.$$.fragment,e),T(Ur.$$.fragment,e),T(jr.$$.fragment,e),T(Pr.$$.fragment,e),T(js.$$.fragment,e),T($r.$$.fragment,e),T(Cr.$$.fragment,e),T(Jr.$$.fragment,e),T(Cs.$$.fragment,e),T(Ir.$$.fragment,e),T(qr.$$.fragment,e),T(zr.$$.fragment,e),T(Gr.$$.fragment,e),T(Ar.$$.fragment,e),T(qs.$$.fragment,e),T(Nr.$$.fragment,e),T(Zr.$$.fragment,e),T(Fr.$$.fragment,e),T(Dr.$$.fragment,e),T(Rr.$$.fragment,e),T(Sr.$$.fragment,e),gf=!0)},o(e){b(Rs.$$.fragment,e),b(Ls.$$.fragment,e),b(Hs.$$.fragment,e),b(Ys.$$.fragment,e),b(Xs.$$.fragment,e),b(ea.$$.fragment,e),b(na.$$.fragment,e),b(sa.$$.fragment,e),b(It.$$.fragment,e),b(aa.$$.fragment,e),b(ra.$$.fragment,e),b(zt.$$.fragment,e),b(ia.$$.fragment,e),b(la.$$.fragment,e),b(ca.$$.fragment,e),b(ma.$$.fragment,e),b(ua.$$.fragment,e),b(ya.$$.fragment,e),b(xa.$$.fragment,e),b(Ma.$$.fragment,e),b($a.$$.fragment,e),b(Ja.$$.fragment,e),b(qa.$$.fragment,e),b(Ga.$$.fragment,e),b(Aa.$$.fragment,e),b(Dt.$$.fragment,e),b(Na.$$.fragment,e),b(Za.$$.fragment,e),b(Fa.$$.fragment,e),b(Vt.$$.fragment,e),b(Da.$$.fragment,e),b(Ra.$$.fragment,e),b(Sa.$$.fragment,e),b(Wt.$$.fragment,e),b(Va.$$.fragment,e),b(Ba.$$.fragment,e),b(La.$$.fragment,e),b(Ot.$$.fragment,e),b(Wa.$$.fragment,e),b(Ea.$$.fragment,e),b(Oa.$$.fragment,e),b(Ya.$$.fragment,e),b(Kt.$$.fragment,e),b(Qa.$$.fragment,e),b(Xa.$$.fragment,e),b(Ka.$$.fragment,e),b(nn.$$.fragment,e),b(eo.$$.fragment,e),b(to.$$.fragment,e),b(no.$$.fragment,e),b(on.$$.fragment,e),b(so.$$.fragment,e),b(ao.$$.fragment,e),b(oo.$$.fragment,e),b(pn.$$.fragment,e),b(ro.$$.fragment,e),b(io.$$.fragment,e),b(lo.$$.fragment,e),b(mn.$$.fragment,e),b(po.$$.fragment,e),b(co.$$.fragment,e),b(mo.$$.fragment,e),b(ho.$$.fragment,e),b(fo.$$.fragment,e),b(go.$$.fragment,e),b(Tn.$$.fragment,e),b(uo.$$.fragment,e),b(To.$$.fragment,e),b(bo.$$.fragment,e),b(wn.$$.fragment,e),b(yo.$$.fragment,e),b(wo.$$.fragment,e),b(vo.$$.fragment,e),b(_o.$$.fragment,e),b(Mn.$$.fragment,e),b(Mo.$$.fragment,e),b(ko.$$.fragment,e),b(Uo.$$.fragment,e),b(jo.$$.fragment,e),b(Pn.$$.fragment,e),b(Po.$$.fragment,e),b($o.$$.fragment,e),b(Co.$$.fragment,e),b(Jn.$$.fragment,e),b(In.$$.fragment,e),b(qn.$$.fragment,e),b(Jo.$$.fragment,e),b(Io.$$.fragment,e),b(qo.$$.fragment,e),b(An.$$.fragment,e),b(zo.$$.fragment,e),b(Go.$$.fragment,e),b(Ao.$$.fragment,e),b(No.$$.fragment,e),b(Fo.$$.fragment,e),b(Do.$$.fragment,e),b(Rn.$$.fragment,e),b(Ro.$$.fragment,e),b(So.$$.fragment,e),b(Vo.$$.fragment,e),b(Bo.$$.fragment,e),b(Lo.$$.fragment,e),b(Ln.$$.fragment,e),b(Wo.$$.fragment,e),b(Eo.$$.fragment,e),b(Ho.$$.fragment,e),b(Hn.$$.fragment,e),b(Oo.$$.fragment,e),b(On.$$.fragment,e),b(Yn.$$.fragment,e),b(Yo.$$.fragment,e),b(Qo.$$.fragment,e),b(Xn.$$.fragment,e),b(Xo.$$.fragment,e),b(Ko.$$.fragment,e),b(er.$$.fragment,e),b(ts.$$.fragment,e),b(tr.$$.fragment,e),b(nr.$$.fragment,e),b(sr.$$.fragment,e),b(as.$$.fragment,e),b(os.$$.fragment,e),b(ar.$$.fragment,e),b(or.$$.fragment,e),b(rr.$$.fragment,e),b(ir.$$.fragment,e),b(ps.$$.fragment,e),b(lr.$$.fragment,e),b(pr.$$.fragment,e),b(cr.$$.fragment,e),b(dr.$$.fragment,e),b(mr.$$.fragment,e),b(hr.$$.fragment,e),b(fr.$$.fragment,e),b(gs.$$.fragment,e),b(gr.$$.fragment,e),b(ur.$$.fragment,e),b(Tr.$$.fragment,e),b(bs.$$.fragment,e),b(br.$$.fragment,e),b(yr.$$.fragment,e),b(xr.$$.fragment,e),b(vr.$$.fragment,e),b(vs.$$.fragment,e),b(_r.$$.fragment,e),b(Mr.$$.fragment,e),b(kr.$$.fragment,e),b(Ms.$$.fragment,e),b(Ur.$$.fragment,e),b(jr.$$.fragment,e),b(Pr.$$.fragment,e),b(js.$$.fragment,e),b($r.$$.fragment,e),b(Cr.$$.fragment,e),b(Jr.$$.fragment,e),b(Cs.$$.fragment,e),b(Ir.$$.fragment,e),b(qr.$$.fragment,e),b(zr.$$.fragment,e),b(Gr.$$.fragment,e),b(Ar.$$.fragment,e),b(qs.$$.fragment,e),b(Nr.$$.fragment,e),b(Zr.$$.fragment,e),b(Fr.$$.fragment,e),b(Dr.$$.fragment,e),b(Rr.$$.fragment,e),b(Sr.$$.fragment,e),gf=!1},d(e){e&&(s(M),s(x),s(d),s(v),s(im),s(Ss),s(lm),s(Vs),s(pm),s(Bs),s(cm),s(Ee),s(dm),s(Ws),s(mm),s(Es),s(hm),s(fm),s(Os),s(gm),s(um),s(Qs),s(Tm),s(bm),s(Ks),s(ym),s(wm),s(ta),s(xm),s(vm),s(ue),s(_m),s(He),s(Mm),s(oa),s(km),s(Um),s(jm),s(Pm),s($m),s(pa),s(Cm),s(Jm),s(da),s(Im),s(qm),s(ha),s(zm),s(fa),s(Gm),s(ga),s(Am),s(Oe),s(Nm),s(Ta),s(Zm),s(ba),s(Fm),s(Dm),s(wa),s(Rm),s(Sm),s(va),s(Vm),s(_a),s(Bm),s(Ye),s(Lm),s(ka),s(Wm),s(Ua),s(Em),s(ja),s(Hm),s(Pa),s(Om),s(Ym),s(Ca),s(Qm),s(Qe),s(Xm),s(Ia),s(Km),s(Xe),s(eh),s(za),s(th),s(Ke),s(nh),s(S),s(sh),s(et),s(ah),s(re),s(oh),s(tt),s(rh),s(V),s(ih),s(nt),s(lh),s(Te),s(ph),s(st),s(ch),s(Ha),s(dh),s(at),s(mh),s(B),s(hh),s(ot),s(fh),s(L),s(gh),s(rt),s(uh),s(ie),s(Th),s(it),s(bh),s(le),s(yh),s(lt),s(wh),s(W),s(xh),s(pt),s(vh),s(be),s(_h),s(ct),s(Mh),s(E),s(kh),s(dt),s(Uh),s(H),s(jh),s(mt),s(Ph),s(xo),s($h),s(ht),s(Ch),s(pe),s(Jh),s(O),s(Ih),s(ft),s(qh),s(G),s(zh),s(gt),s(Gh),s(z),s(Ah),s(Zo),s(Nh),s(ut),s(Zh),s(A),s(Fh),s(Tt),s(Dh),s(ce),s(Rh),s(bt),s(Sh),s(Y),s(Vh),s(yt),s(Bh),s(F),s(Lh),s(wt),s(Wh),s(Q),s(Eh),s(xt),s(Hh),s(N),s(Oh),s(vt),s(Yh),s(q),s(Qh),s(_t),s(Xh),s(de),s(Kh),s(Mt),s(ef),s(D),s(tf),s(kt),s(nf),s(wr),s(sf),s(Ut),s(af),s(X),s(of),s(jt),s(rf),s(K),s(lf),s(Pt),s(pf),s(ee),s(cf),s($t),s(df),s(te),s(mf),s(Ct),s(hf),s(J),s(ff),s(Dd)),s(p),y(Rs),y(Ls),y(Hs,e),y(Ys,e),y(Xs,e),y(ea,e),y(na,e),y(sa),y(It),y(aa),y(ra,e),y(zt,e),y(ia,e),y(la,e),y(ca,e),y(ma,e),y(ua),y(ya,e),y(xa,e),y(Ma),y($a,e),y(Ja),y(qa),y(Ga),y(Aa),y(Dt),y(Na),y(Za),y(Fa),y(Vt),y(Da),y(Ra),y(Sa),y(Wt),y(Va),y(Ba),y(La),y(Ot),y(Wa),y(Ea),y(Oa),y(Ya),y(Kt),y(Qa),y(Xa),y(Ka),y(nn),y(eo),y(to),y(no),y(on),y(so),y(ao),y(oo),y(pn),y(ro),y(io),y(lo),y(mn),y(po),y(co),y(mo),y(ho),y(fo),y(go),y(Tn),y(uo),y(To),y(bo),y(wn),y(yo),y(wo),y(vo),y(_o),y(Mn),y(Mo),y(ko),y(Uo),y(jo),y(Pn),y(Po),y($o),y(Co),y(Jn),y(In),y(qn),y(Jo),y(Io),y(qo),y(An),y(zo),y(Go),y(Ao),y(No),y(Fo),y(Do),y(Rn),y(Ro),y(So),y(Vo),y(Bo),y(Lo),y(Ln),y(Wo),y(Eo),y(Ho),y(Hn),y(Oo),y(On),y(Yn),y(Yo),y(Qo),y(Xn),y(Xo),y(Ko),y(er),y(ts),y(tr),y(nr),y(sr),y(as),y(os),y(ar),y(or),y(rr),y(ir),y(ps),y(lr),y(pr),y(cr),y(dr),y(mr),y(hr),y(fr),y(gs),y(gr),y(ur),y(Tr),y(bs),y(br),y(yr),y(xr),y(vr),y(vs),y(_r),y(Mr),y(kr),y(Ms),y(Ur),y(jr),y(Pr),y(js),y($r),y(Cr),y(Jr),y(Cs),y(Ir),y(qr),y(zr),y(Gr),y(Ar),y(qs),y(Nr),y(Zr),y(Fr),y(Dr),y(Rr),y(Sr)}}}const M0={local:"pipelines",sections:[{local:"transformers.pipeline",title:"The pipeline abstraction"},{local:"pipeline-batching",title:"Pipeline batching"},{local:"pipeline-chunk-batching",title:"Pipeline chunk batching"},{local:"pipeline-custom-code",title:"Pipeline custom code"},{local:"implementing-a-pipeline",title:"Implementing a pipeline"},{local:"audio",sections:[{local:"transformers.AudioClassificationPipeline",title:"AudioClassificationPipeline"},{local:"transformers.AutomaticSpeechRecognitionPipeline",title:"AutomaticSpeechRecognitionPipeline"},{local:"transformers.TextToAudioPipeline",title:"TextToAudioPipeline"},{local:"transformers.ZeroShotAudioClassificationPipeline",title:"ZeroShotAudioClassificationPipeline"}],title:"Audio"},{local:"computer-vision",sections:[{local:"transformers.DepthEstimationPipeline",title:"DepthEstimationPipeline"},{local:"transformers.ImageClassificationPipeline",title:"ImageClassificationPipeline"},{local:"transformers.ImageSegmentationPipeline",title:"ImageSegmentationPipeline"},{local:"transformers.ImageToImagePipeline",title:"ImageToImagePipeline"},{local:"transformers.ObjectDetectionPipeline",title:"ObjectDetectionPipeline"},{local:"transformers.VideoClassificationPipeline",title:"VideoClassificationPipeline"},{local:"transformers.ZeroShotImageClassificationPipeline",title:"ZeroShotImageClassificationPipeline"},{local:"transformers.ZeroShotObjectDetectionPipeline",title:"ZeroShotObjectDetectionPipeline"}],title:"Computer vision"},{local:"natural-language-processing",sections:[{local:"transformers.Conversation",title:"ConversationalPipeline"},{local:"transformers.FillMaskPipeline",title:"FillMaskPipeline"},{local:"transformers.TokenClassificationPipeline",title:"NerPipeline"},{local:"transformers.QuestionAnsweringPipeline",title:"QuestionAnsweringPipeline"},{local:"transformers.SummarizationPipeline",title:"SummarizationPipeline"},{local:"transformers.TableQuestionAnsweringPipeline",title:"TableQuestionAnsweringPipeline"},{local:"transformers.TextClassificationPipeline",title:"TextClassificationPipeline"},{local:"transformers.TextGenerationPipeline",title:"TextGenerationPipeline"},{local:"transformers.Text2TextGenerationPipeline",title:"Text2TextGenerationPipeline"},{local:"transformers.TokenClassificationPipeline",title:"TokenClassificationPipeline"},{local:"transformers.TranslationPipeline",title:"TranslationPipeline"},{local:"transformers.ZeroShotClassificationPipeline",title:"ZeroShotClassificationPipeline"}],title:"Natural Language Processing"},{local:"multimodal",sections:[{local:"transformers.DocumentQuestionAnsweringPipeline",title:"DocumentQuestionAnsweringPipeline"},{local:"transformers.FeatureExtractionPipeline",title:"FeatureExtractionPipeline"},{local:"transformers.ImageToTextPipeline",title:"ImageToTextPipeline"},{local:"transformers.VisualQuestionAnsweringPipeline",title:"VisualQuestionAnsweringPipeline"}],title:"Multimodal"},{local:"transformers.Pipeline",title:"Parent class: `Pipeline`"}],title:"Pipelines"};function k0(U){return Ak(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class q0 extends Nk{constructor(p){super(),Zk(this,p,k0,_0,Gk,{})}}export{q0 as component};
