import{s as lw,o as pw,n as J}from"../chunks/scheduler.9bc65507.js";import{S as cw,i as dw,g as r,s,r as h,A as mw,h as i,f as o,c as a,j as _,u as f,x as m,k,y as n,a as d,v as g,d as u,t as T,w as b}from"../chunks/index.707bf1b6.js";import{T as yu}from"../chunks/Tip.c2ecdbf4.js";import{D as U}from"../chunks/Docstring.17db21ae.js";import{C as v}from"../chunks/CodeBlock.54a9f38d.js";import{E as P}from"../chunks/ExampleCodeBlock.4f515aa9.js";import{H as $}from"../chunks/Heading.342b1fa6.js";function hw(j){let p,M="Examples:",y,c,w;return c=new v({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=r("p"),p.textContent=M,y=s(),h(c.$$.fragment)},l(t){p=i(t,"P",{"data-svelte-h":!0}),m(p)!=="svelte-kvfsh7"&&(p.textContent=M),y=a(t),f(c.$$.fragment,t)},m(t,x){d(t,p,x),d(t,y,x),g(c,t,x),w=!0},p:J,i(t){w||(u(c.$$.fragment,t),w=!0)},o(t){T(c.$$.fragment,t),w=!1},d(t){t&&(o(p),o(y)),b(c,t)}}}function fw(j){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.`,y,c,w="Example where it’s mostly a speedup:";return{c(){p=r("p"),p.textContent=M,y=s(),c=r("p"),c.textContent=w},l(t){p=i(t,"P",{"data-svelte-h":!0}),m(p)!=="svelte-gpletg"&&(p.textContent=M),y=a(t),c=i(t,"P",{"data-svelte-h":!0}),m(c)!=="svelte-1aumu59"&&(c.textContent=w)},m(t,x){d(t,p,x),d(t,y,x),d(t,c,x)},p:J,d(t){t&&(o(p),o(y),o(c))}}}function gw(j){let p,M="Example:",y,c,w;return c=new v({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=r("p"),p.textContent=M,y=s(),h(c.$$.fragment)},l(t){p=i(t,"P",{"data-svelte-h":!0}),m(p)!=="svelte-11lpom8"&&(p.textContent=M),y=a(t),f(c.$$.fragment,t)},m(t,x){d(t,p,x),d(t,y,x),g(c,t,x),w=!0},p:J,i(t){w||(u(c.$$.fragment,t),w=!0)},o(t){T(c.$$.fragment,t),w=!1},d(t){t&&(o(p),o(y)),b(c,t)}}}function uw(j){let p,M="Example:",y,c,w;return c=new v({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=r("p"),p.textContent=M,y=s(),h(c.$$.fragment)},l(t){p=i(t,"P",{"data-svelte-h":!0}),m(p)!=="svelte-11lpom8"&&(p.textContent=M),y=a(t),f(c.$$.fragment,t)},m(t,x){d(t,p,x),d(t,y,x),g(c,t,x),w=!0},p:J,i(t){w||(u(c.$$.fragment,t),w=!0)},o(t){T(c.$$.fragment,t),w=!1},d(t){t&&(o(p),o(y)),b(c,t)}}}function Tw(j){let p,M="Example:",y,c,w;return c=new v({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=r("p"),p.textContent=M,y=s(),h(c.$$.fragment)},l(t){p=i(t,"P",{"data-svelte-h":!0}),m(p)!=="svelte-11lpom8"&&(p.textContent=M),y=a(t),f(c.$$.fragment,t)},m(t,x){d(t,p,x),d(t,y,x),g(c,t,x),w=!0},p:J,i(t){w||(u(c.$$.fragment,t),w=!0)},o(t){T(c.$$.fragment,t),w=!1},d(t){t&&(o(p),o(y)),b(c,t)}}}function bw(j){let p,M="Example:",y,c,w;return c=new v({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=r("p"),p.textContent=M,y=s(),h(c.$$.fragment)},l(t){p=i(t,"P",{"data-svelte-h":!0}),m(p)!=="svelte-11lpom8"&&(p.textContent=M),y=a(t),f(c.$$.fragment,t)},m(t,x){d(t,p,x),d(t,y,x),g(c,t,x),w=!0},p:J,i(t){w||(u(c.$$.fragment,t),w=!0)},o(t){T(c.$$.fragment,t),w=!1},d(t){t&&(o(p),o(y)),b(c,t)}}}function yw(j){let p,M="Example:",y,c,w;return c=new v({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=r("p"),p.textContent=M,y=s(),h(c.$$.fragment)},l(t){p=i(t,"P",{"data-svelte-h":!0}),m(p)!=="svelte-11lpom8"&&(p.textContent=M),y=a(t),f(c.$$.fragment,t)},m(t,x){d(t,p,x),d(t,y,x),g(c,t,x),w=!0},p:J,i(t){w||(u(c.$$.fragment,t),w=!0)},o(t){T(c.$$.fragment,t),w=!1},d(t){t&&(o(p),o(y)),b(c,t)}}}function ww(j){let p,M="Example:",y,c,w;return c=new v({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=r("p"),p.textContent=M,y=s(),h(c.$$.fragment)},l(t){p=i(t,"P",{"data-svelte-h":!0}),m(p)!=="svelte-11lpom8"&&(p.textContent=M),y=a(t),f(c.$$.fragment,t)},m(t,x){d(t,p,x),d(t,y,x),g(c,t,x),w=!0},p:J,i(t){w||(u(c.$$.fragment,t),w=!0)},o(t){T(c.$$.fragment,t),w=!1},d(t){t&&(o(p),o(y)),b(c,t)}}}function xw(j){let p,M="Example:",y,c,w;return c=new v({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=r("p"),p.textContent=M,y=s(),h(c.$$.fragment)},l(t){p=i(t,"P",{"data-svelte-h":!0}),m(p)!=="svelte-11lpom8"&&(p.textContent=M),y=a(t),f(c.$$.fragment,t)},m(t,x){d(t,p,x),d(t,y,x),g(c,t,x),w=!0},p:J,i(t){w||(u(c.$$.fragment,t),w=!0)},o(t){T(c.$$.fragment,t),w=!1},d(t){t&&(o(p),o(y)),b(c,t)}}}function Mw(j){let p,M="Example:",y,c,w;return c=new v({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=r("p"),p.textContent=M,y=s(),h(c.$$.fragment)},l(t){p=i(t,"P",{"data-svelte-h":!0}),m(p)!=="svelte-11lpom8"&&(p.textContent=M),y=a(t),f(c.$$.fragment,t)},m(t,x){d(t,p,x),d(t,y,x),g(c,t,x),w=!0},p:J,i(t){w||(u(c.$$.fragment,t),w=!0)},o(t){T(c.$$.fragment,t),w=!1},d(t){t&&(o(p),o(y)),b(c,t)}}}function _w(j){let p,M="Example:",y,c,w;return c=new v({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=r("p"),p.textContent=M,y=s(),h(c.$$.fragment)},l(t){p=i(t,"P",{"data-svelte-h":!0}),m(p)!=="svelte-11lpom8"&&(p.textContent=M),y=a(t),f(c.$$.fragment,t)},m(t,x){d(t,p,x),d(t,y,x),g(c,t,x),w=!0},p:J,i(t){w||(u(c.$$.fragment,t),w=!0)},o(t){T(c.$$.fragment,t),w=!1},d(t){t&&(o(p),o(y)),b(c,t)}}}function kw(j){let p,M="Example:",y,c,w;return c=new v({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=r("p"),p.textContent=M,y=s(),h(c.$$.fragment)},l(t){p=i(t,"P",{"data-svelte-h":!0}),m(p)!=="svelte-11lpom8"&&(p.textContent=M),y=a(t),f(c.$$.fragment,t)},m(t,x){d(t,p,x),d(t,y,x),g(c,t,x),w=!0},p:J,i(t){w||(u(c.$$.fragment,t),w=!0)},o(t){T(c.$$.fragment,t),w=!1},d(t){t&&(o(p),o(y)),b(c,t)}}}function Uw(j){let p,M="Example:",y,c,w;return c=new v({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=r("p"),p.textContent=M,y=s(),h(c.$$.fragment)},l(t){p=i(t,"P",{"data-svelte-h":!0}),m(p)!=="svelte-11lpom8"&&(p.textContent=M),y=a(t),f(c.$$.fragment,t)},m(t,x){d(t,p,x),d(t,y,x),g(c,t,x),w=!0},p:J,i(t){w||(u(c.$$.fragment,t),w=!0)},o(t){T(c.$$.fragment,t),w=!1},d(t){t&&(o(p),o(y)),b(c,t)}}}function jw(j){let p,M="Usage:",y,c,w;return c=new v({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=r("p"),p.textContent=M,y=s(),h(c.$$.fragment)},l(t){p=i(t,"P",{"data-svelte-h":!0}),m(p)!=="svelte-5wyjqd"&&(p.textContent=M),y=a(t),f(c.$$.fragment,t)},m(t,x){d(t,p,x),d(t,y,x),g(c,t,x),w=!0},p:J,i(t){w||(u(c.$$.fragment,t),w=!0)},o(t){T(c.$$.fragment,t),w=!1},d(t){t&&(o(p),o(y)),b(c,t)}}}function vw(j){let p,M="Example:",y,c,w;return c=new v({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=r("p"),p.textContent=M,y=s(),h(c.$$.fragment)},l(t){p=i(t,"P",{"data-svelte-h":!0}),m(p)!=="svelte-11lpom8"&&(p.textContent=M),y=a(t),f(c.$$.fragment,t)},m(t,x){d(t,p,x),d(t,y,x),g(c,t,x),w=!0},p:J,i(t){w||(u(c.$$.fragment,t),w=!0)},o(t){T(c.$$.fragment,t),w=!1},d(t){t&&(o(p),o(y)),b(c,t)}}}function $w(j){let p,M="Example:",y,c,w;return c=new v({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=r("p"),p.textContent=M,y=s(),h(c.$$.fragment)},l(t){p=i(t,"P",{"data-svelte-h":!0}),m(p)!=="svelte-11lpom8"&&(p.textContent=M),y=a(t),f(c.$$.fragment,t)},m(t,x){d(t,p,x),d(t,y,x),g(c,t,x),w=!0},p:J,i(t){w||(u(c.$$.fragment,t),w=!0)},o(t){T(c.$$.fragment,t),w=!1},d(t){t&&(o(p),o(y)),b(c,t)}}}function Jw(j){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=r("p"),p.innerHTML=M},l(y){p=i(y,"P",{"data-svelte-h":!0}),m(p)!=="svelte-126iymh"&&(p.innerHTML=M)},m(y,c){d(y,p,c)},p:J,d(y){y&&o(p)}}}function Pw(j){let p,M="This pipeline now supports tokenizer_kwargs. For example try:",y,c,w;return c=new v({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=r("p"),p.textContent=M,y=s(),h(c.$$.fragment)},l(t){p=i(t,"P",{"data-svelte-h":!0}),m(p)!=="svelte-1pudxyz"&&(p.textContent=M),y=a(t),f(c.$$.fragment,t)},m(t,x){d(t,p,x),d(t,y,x),g(c,t,x),w=!0},p:J,i(t){w||(u(c.$$.fragment,t),w=!0)},o(t){T(c.$$.fragment,t),w=!1},d(t){t&&(o(p),o(y)),b(c,t)}}}function Cw(j){let p,M;return p=new P({props:{anchor:"transformers.FillMaskPipeline.example-2",$$slots:{default:[Pw]},$$scope:{ctx:j}}}),{c(){h(p.$$.fragment)},l(y){f(p.$$.fragment,y)},m(y,c){g(p,y,c),M=!0},p(y,c){const w={};c&2&&(w.$$scope={dirty:c,ctx:y}),p.$set(w)},i(y){M||(u(p.$$.fragment,y),M=!0)},o(y){T(p.$$.fragment,y),M=!1},d(y){b(p,y)}}}function Iw(j){let p,M="Example:",y,c,w;return c=new v({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=r("p"),p.textContent=M,y=s(),h(c.$$.fragment)},l(t){p=i(t,"P",{"data-svelte-h":!0}),m(p)!=="svelte-11lpom8"&&(p.textContent=M),y=a(t),f(c.$$.fragment,t)},m(t,x){d(t,p,x),d(t,y,x),g(c,t,x),w=!0},p:J,i(t){w||(u(c.$$.fragment,t),w=!0)},o(t){T(c.$$.fragment,t),w=!1},d(t){t&&(o(p),o(y)),b(c,t)}}}function qw(j){let p,M="Example:",y,c,w;return c=new v({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=r("p"),p.textContent=M,y=s(),h(c.$$.fragment)},l(t){p=i(t,"P",{"data-svelte-h":!0}),m(p)!=="svelte-11lpom8"&&(p.textContent=M),y=a(t),f(c.$$.fragment,t)},m(t,x){d(t,p,x),d(t,y,x),g(c,t,x),w=!0},p:J,i(t){w||(u(c.$$.fragment,t),w=!0)},o(t){T(c.$$.fragment,t),w=!1},d(t){t&&(o(p),o(y)),b(c,t)}}}function zw(j){let p,M="Usage:",y,c,w;return c=new v({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=r("p"),p.textContent=M,y=s(),h(c.$$.fragment)},l(t){p=i(t,"P",{"data-svelte-h":!0}),m(p)!=="svelte-5wyjqd"&&(p.textContent=M),y=a(t),f(c.$$.fragment,t)},m(t,x){d(t,p,x),d(t,y,x),g(c,t,x),w=!0},p:J,i(t){w||(u(c.$$.fragment,t),w=!0)},o(t){T(c.$$.fragment,t),w=!1},d(t){t&&(o(p),o(y)),b(c,t)}}}function Gw(j){let p,M="Example:",y,c,w;return c=new v({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=r("p"),p.textContent=M,y=s(),h(c.$$.fragment)},l(t){p=i(t,"P",{"data-svelte-h":!0}),m(p)!=="svelte-11lpom8"&&(p.textContent=M),y=a(t),f(c.$$.fragment,t)},m(t,x){d(t,p,x),d(t,y,x),g(c,t,x),w=!0},p:J,i(t){w||(u(c.$$.fragment,t),w=!0)},o(t){T(c.$$.fragment,t),w=!1},d(t){t&&(o(p),o(y)),b(c,t)}}}function Zw(j){let p,M="Example:",y,c,w;return c=new v({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=r("p"),p.textContent=M,y=s(),h(c.$$.fragment)},l(t){p=i(t,"P",{"data-svelte-h":!0}),m(p)!=="svelte-11lpom8"&&(p.textContent=M),y=a(t),f(c.$$.fragment,t)},m(t,x){d(t,p,x),d(t,y,x),g(c,t,x),w=!0},p:J,i(t){w||(u(c.$$.fragment,t),w=!0)},o(t){T(c.$$.fragment,t),w=!1},d(t){t&&(o(p),o(y)),b(c,t)}}}function Fw(j){let p,M="Example:",y,c,w;return c=new v({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=r("p"),p.textContent=M,y=s(),h(c.$$.fragment)},l(t){p=i(t,"P",{"data-svelte-h":!0}),m(p)!=="svelte-11lpom8"&&(p.textContent=M),y=a(t),f(c.$$.fragment,t)},m(t,x){d(t,p,x),d(t,y,x),g(c,t,x),w=!0},p:J,i(t){w||(u(c.$$.fragment,t),w=!0)},o(t){T(c.$$.fragment,t),w=!1},d(t){t&&(o(p),o(y)),b(c,t)}}}function Dw(j){let p,M="Example:",y,c,w;return c=new v({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=r("p"),p.textContent=M,y=s(),h(c.$$.fragment)},l(t){p=i(t,"P",{"data-svelte-h":!0}),m(p)!=="svelte-11lpom8"&&(p.textContent=M),y=a(t),f(c.$$.fragment,t)},m(t,x){d(t,p,x),d(t,y,x),g(c,t,x),w=!0},p:J,i(t){w||(u(c.$$.fragment,t),w=!0)},o(t){T(c.$$.fragment,t),w=!1},d(t){t&&(o(p),o(y)),b(c,t)}}}function Rw(j){let p,M="Example:",y,c,w;return c=new v({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=r("p"),p.textContent=M,y=s(),h(c.$$.fragment)},l(t){p=i(t,"P",{"data-svelte-h":!0}),m(p)!=="svelte-11lpom8"&&(p.textContent=M),y=a(t),f(c.$$.fragment,t)},m(t,x){d(t,p,x),d(t,y,x),g(c,t,x),w=!0},p:J,i(t){w||(u(c.$$.fragment,t),w=!0)},o(t){T(c.$$.fragment,t),w=!1},d(t){t&&(o(p),o(y)),b(c,t)}}}function Nw(j){let p,M="Example:",y,c,w;return c=new v({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=r("p"),p.textContent=M,y=s(),h(c.$$.fragment)},l(t){p=i(t,"P",{"data-svelte-h":!0}),m(p)!=="svelte-11lpom8"&&(p.textContent=M),y=a(t),f(c.$$.fragment,t)},m(t,x){d(t,p,x),d(t,y,x),g(c,t,x),w=!0},p:J,i(t){w||(u(c.$$.fragment,t),w=!0)},o(t){T(c.$$.fragment,t),w=!1},d(t){t&&(o(p),o(y)),b(c,t)}}}function Vw(j){let p,M="Usage:",y,c,w;return c=new v({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=r("p"),p.textContent=M,y=s(),h(c.$$.fragment)},l(t){p=i(t,"P",{"data-svelte-h":!0}),m(p)!=="svelte-5wyjqd"&&(p.textContent=M),y=a(t),f(c.$$.fragment,t)},m(t,x){d(t,p,x),d(t,y,x),g(c,t,x),w=!0},p:J,i(t){w||(u(c.$$.fragment,t),w=!0)},o(t){T(c.$$.fragment,t),w=!1},d(t){t&&(o(p),o(y)),b(c,t)}}}function Aw(j){let p,M="Example:",y,c,w;return c=new v({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=r("p"),p.textContent=M,y=s(),h(c.$$.fragment)},l(t){p=i(t,"P",{"data-svelte-h":!0}),m(p)!=="svelte-11lpom8"&&(p.textContent=M),y=a(t),f(c.$$.fragment,t)},m(t,x){d(t,p,x),d(t,y,x),g(c,t,x),w=!0},p:J,i(t){w||(u(c.$$.fragment,t),w=!0)},o(t){T(c.$$.fragment,t),w=!1},d(t){t&&(o(p),o(y)),b(c,t)}}}function Bw(j){let p,M="Usage:",y,c,w;return c=new v({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=r("p"),p.textContent=M,y=s(),h(c.$$.fragment)},l(t){p=i(t,"P",{"data-svelte-h":!0}),m(p)!=="svelte-5wyjqd"&&(p.textContent=M),y=a(t),f(c.$$.fragment,t)},m(t,x){d(t,p,x),d(t,y,x),g(c,t,x),w=!0},p:J,i(t){w||(u(c.$$.fragment,t),w=!0)},o(t){T(c.$$.fragment,t),w=!1},d(t){t&&(o(p),o(y)),b(c,t)}}}function Ww(j){let p,M="Example:",y,c,w;return c=new v({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=r("p"),p.textContent=M,y=s(),h(c.$$.fragment)},l(t){p=i(t,"P",{"data-svelte-h":!0}),m(p)!=="svelte-11lpom8"&&(p.textContent=M),y=a(t),f(c.$$.fragment,t)},m(t,x){d(t,p,x),d(t,y,x),g(c,t,x),w=!0},p:J,i(t){w||(u(c.$$.fragment,t),w=!0)},o(t){T(c.$$.fragment,t),w=!1},d(t){t&&(o(p),o(y)),b(c,t)}}}function Lw(j){let p,M="Example:",y,c,w;return c=new v({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=r("p"),p.textContent=M,y=s(),h(c.$$.fragment)},l(t){p=i(t,"P",{"data-svelte-h":!0}),m(p)!=="svelte-11lpom8"&&(p.textContent=M),y=a(t),f(c.$$.fragment,t)},m(t,x){d(t,p,x),d(t,y,x),g(c,t,x),w=!0},p:J,i(t){w||(u(c.$$.fragment,t),w=!0)},o(t){T(c.$$.fragment,t),w=!1},d(t){t&&(o(p),o(y)),b(c,t)}}}function Sw(j){let p,M="Example:",y,c,w;return c=new v({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=r("p"),p.textContent=M,y=s(),h(c.$$.fragment)},l(t){p=i(t,"P",{"data-svelte-h":!0}),m(p)!=="svelte-11lpom8"&&(p.textContent=M),y=a(t),f(c.$$.fragment,t)},m(t,x){d(t,p,x),d(t,y,x),g(c,t,x),w=!0},p:J,i(t){w||(u(c.$$.fragment,t),w=!0)},o(t){T(c.$$.fragment,t),w=!1},d(t){t&&(o(p),o(y)),b(c,t)}}}function Ow(j){let p,M="Example:",y,c,w;return c=new v({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=r("p"),p.textContent=M,y=s(),h(c.$$.fragment)},l(t){p=i(t,"P",{"data-svelte-h":!0}),m(p)!=="svelte-11lpom8"&&(p.textContent=M),y=a(t),f(c.$$.fragment,t)},m(t,x){d(t,p,x),d(t,y,x),g(c,t,x),w=!0},p:J,i(t){w||(u(c.$$.fragment,t),w=!0)},o(t){T(c.$$.fragment,t),w=!1},d(t){t&&(o(p),o(y)),b(c,t)}}}function Hw(j){let p,M="Example:",y,c,w;return c=new v({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=r("p"),p.textContent=M,y=s(),h(c.$$.fragment)},l(t){p=i(t,"P",{"data-svelte-h":!0}),m(p)!=="svelte-11lpom8"&&(p.textContent=M),y=a(t),f(c.$$.fragment,t)},m(t,x){d(t,p,x),d(t,y,x),g(c,t,x),w=!0},p:J,i(t){w||(u(c.$$.fragment,t),w=!0)},o(t){T(c.$$.fragment,t),w=!1},d(t){t&&(o(p),o(y)),b(c,t)}}}function Yw(j){let p,M="Examples:",y,c,w;return c=new v({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=r("p"),p.textContent=M,y=s(),h(c.$$.fragment)},l(t){p=i(t,"P",{"data-svelte-h":!0}),m(p)!=="svelte-kvfsh7"&&(p.textContent=M),y=a(t),f(c.$$.fragment,t)},m(t,x){d(t,p,x),d(t,y,x),g(c,t,x),w=!0},p:J,i(t){w||(u(c.$$.fragment,t),w=!0)},o(t){T(c.$$.fragment,t),w=!1},d(t){t&&(o(p),o(y)),b(c,t)}}}function Ew(j){let p,M,y,c,w,t,x,wu=`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.`,ep,wn,xu="There are two categories of pipeline abstractions to be aware about:",tp,xn,Mu='<li>The <a href="/docs/transformers/main/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>',np,Mn,sp,_n,_u=`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.`,ap,kn,ku="Simple call on one item:",op,Un,rp,jn,Uu=`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:`,ip,vn,lp,$n,ju="To call a pipeline on many items, you can call it with a <em>list</em>.",pp,Jn,cp,Pn,vu=`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.`,dp,Cn,mp,In,$u="For ease of use, a generator is also possible:",hp,qn,fp,Me,zn,Cd,Do,Ju='Utility factory method to build a <a href="/docs/transformers/main/en/main_classes/pipelines#transformers.Pipeline">Pipeline</a>.',Id,Ro,Pu="Pipelines are made of:",qd,No,Cu='<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>',zd,He,gp,Gn,up,Zn,Iu=`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>).`,Tp,Fn,bp,Ye,yp,Dn,wp,Rn,xp,Nn,qu="Example where it’s most a slowdown:",Mp,Vn,_p,An,zu=`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.`,kp,Bn,Up,Wn,Gu=`There are no good (general) solutions for this problem, and your mileage may vary depending on your use cases. Rule of
thumb:`,jp,Ln,Zu="For users, a rule of thumb is:",vp,Sn,Fu=`<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>`,$p,On,Jp,Hn,Du=`<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.`,Pp,Yn,Ru=`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:`,Cp,En,Ip,Qn,Nu="Now becomes:",qp,Xn,zp,Kn,Vu=`This should be very transparent to your code because the pipelines are used in
the same way.`,Gp,es,Au=`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.`,Zp,ts,Fp,ns,Bu="If you want to override a specific pipeline.",Dp,ss,Wu=`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.`,Rp,as,Lu="If you want to try simply you can:",Np,os,Su="<li>Subclass your pipeline of choice</li>",Vp,rs,Ap,is,Ou="That should enable you to do all the custom code you want.",Bp,ls,Wp,ps,Hu='<a href="../add_new_pipeline">Implementing a new pipeline</a>',Lp,cs,Sp,ds,Yu="Pipelines available for audio tasks include the following.",Op,ms,Hp,B,hs,Gd,Vo,Eu=`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.`,Zd,Ee,Fd,Ao,Qu='Learn more about the basics of using a pipeline in the <a href="../pipeline_tutorial">pipeline tutorial</a>',Dd,Bo,Xu=`This pipeline can currently be loaded from <a href="/docs/transformers/main/en/main_classes/pipelines#transformers.pipeline">pipeline()</a> using the following task identifier:
<code>&quot;audio-classification&quot;</code>.`,Rd,Wo,Ku=`See the list of available models on
<a href="https://huggingface.co/models?filter=audio-classification" rel="nofollow">huggingface.co/models</a>.`,Nd,Qe,fs,Vd,Lo,eT=`Classify the sequence(s) given as inputs. See the <a href="/docs/transformers/main/en/main_classes/pipelines#transformers.AutomaticSpeechRecognitionPipeline">AutomaticSpeechRecognitionPipeline</a> documentation for more
information.`,Yp,gs,Ep,re,us,Ad,So,tT="Pipeline that aims at extracting spoken text contained within some audio.",Bd,Oo,nT=`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`,Wd,Xe,Ld,Ho,sT='Learn more about the basics of using a pipeline in the <a href="../pipeline_tutorial">pipeline tutorial</a>',Sd,Ke,Ts,Od,Yo,aT=`Transcribe the audio sequence(s) given as inputs to text. See the <a href="/docs/transformers/main/en/main_classes/pipelines#transformers.AutomaticSpeechRecognitionPipeline">AutomaticSpeechRecognitionPipeline</a>
documentation for more information.`,Qp,bs,Xp,W,ys,Hd,Eo,oT=`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.`,Yd,et,Ed,Qo,rT='Learn more about the basics of using a pipeline in the <a href="../pipeline_tutorial">pipeline tutorial</a>',Qd,Xo,iT=`This pipeline can currently be loaded from <a href="/docs/transformers/main/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>.`,Xd,Ko,lT='See the list of available models on <a href="https://huggingface.co/models?filter=text-to-speech" rel="nofollow">huggingface.co/models</a>.',Kd,tt,ws,em,er,pT='Generates speech/audio from the inputs. See the <a href="/docs/transformers/main/en/main_classes/pipelines#transformers.TextToAudioPipeline">TextToAudioPipeline</a> documentation for more information.',Kp,xs,ec,_e,Ms,tm,tr,cT=`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>.`,nm,nt,sm,nr,dT=`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/main/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>.`,am,st,_s,om,sr,mT="Assign labels to the audio(s) passed as inputs.",tc,ks,nc,Us,hT="Pipelines available for computer vision tasks include the following.",sc,js,ac,L,vs,rm,ar,fT="Depth estimation pipeline using any <code>AutoModelForDepthEstimation</code>. This pipeline predicts the depth of an image.",im,at,lm,or,gT='Learn more about the basics of using a pipeline in the <a href="../pipeline_tutorial">pipeline tutorial</a>',pm,rr,uT=`This depth estimation pipeline can currently be loaded from <a href="/docs/transformers/main/en/main_classes/pipelines#transformers.pipeline">pipeline()</a> using the following task identifier:
<code>&quot;depth-estimation&quot;</code>.`,cm,ir,TT='See the list of available models on <a href="https://huggingface.co/models?filter=depth-estimation" rel="nofollow">huggingface.co/models</a>.',dm,ot,$s,mm,lr,bT="Assign labels to the image(s) passed as inputs.",oc,Js,rc,S,Ps,hm,pr,yT=`Image classification pipeline using any <code>AutoModelForImageClassification</code>. This pipeline predicts the class of an
image.`,fm,rt,gm,cr,wT='Learn more about the basics of using a pipeline in the <a href="../pipeline_tutorial">pipeline tutorial</a>',um,dr,xT=`This image classification pipeline can currently be loaded from <a href="/docs/transformers/main/en/main_classes/pipelines#transformers.pipeline">pipeline()</a> using the following task identifier:
<code>&quot;image-classification&quot;</code>.`,Tm,mr,MT=`See the list of available models on
<a href="https://huggingface.co/models?filter=image-classification" rel="nofollow">huggingface.co/models</a>.`,bm,it,Cs,ym,hr,_T="Assign labels to the image(s) passed as inputs.",ic,Is,lc,ie,qs,wm,fr,kT=`Image segmentation pipeline using any <code>AutoModelForXXXSegmentation</code>. This pipeline predicts masks of objects and
their classes.`,xm,lt,Mm,gr,UT=`This image segmentation pipeline can currently be loaded from <a href="/docs/transformers/main/en/main_classes/pipelines#transformers.pipeline">pipeline()</a> using the following task identifier:
<code>&quot;image-segmentation&quot;</code>.`,_m,ur,jT=`See the list of available models on
<a href="https://huggingface.co/models?filter=image-segmentation" rel="nofollow">huggingface.co/models</a>.`,km,pt,zs,Um,Tr,vT="Perform segmentation (detect masks & classes) in the image(s) passed as inputs.",pc,Gs,cc,le,Zs,jm,br,$T=`Image to Image pipeline using any <code>AutoModelForImageToImage</code>. This pipeline generates an image based on a previous
image input.`,vm,ct,$m,yr,JT=`This image to image pipeline can currently be loaded from <a href="/docs/transformers/main/en/main_classes/pipelines#transformers.pipeline">pipeline()</a> using the following task identifier:
<code>&quot;image-to-image&quot;</code>.`,Jm,wr,PT='See the list of available models on <a href="https://huggingface.co/models?filter=image-to-image" rel="nofollow">huggingface.co/models</a>.',Pm,dt,Fs,Cm,xr,CT="Transform the image(s) passed as inputs.",dc,Ds,mc,O,Rs,Im,Mr,IT=`Object detection pipeline using any <code>AutoModelForObjectDetection</code>. This pipeline predicts bounding boxes of objects
and their classes.`,qm,mt,zm,_r,qT='Learn more about the basics of using a pipeline in the <a href="../pipeline_tutorial">pipeline tutorial</a>',Gm,kr,zT=`This object detection pipeline can currently be loaded from <a href="/docs/transformers/main/en/main_classes/pipelines#transformers.pipeline">pipeline()</a> using the following task identifier:
<code>&quot;object-detection&quot;</code>.`,Zm,Ur,GT='See the list of available models on <a href="https://huggingface.co/models?filter=object-detection" rel="nofollow">huggingface.co/models</a>.',Fm,ht,Ns,Dm,jr,ZT="Detect objects (bounding boxes & classes) in the image(s) passed as inputs.",hc,Vs,fc,ke,As,Rm,vr,FT=`Video classification pipeline using any <code>AutoModelForVideoClassification</code>. This pipeline predicts the class of a
video.`,Nm,$r,DT=`This video classification pipeline can currently be loaded from <a href="/docs/transformers/main/en/main_classes/pipelines#transformers.pipeline">pipeline()</a> using the following task identifier:
<code>&quot;video-classification&quot;</code>.`,Vm,Jr,RT=`See the list of available models on
<a href="https://huggingface.co/models?filter=video-classification" rel="nofollow">huggingface.co/models</a>.`,Am,ft,Bs,Bm,Pr,NT="Assign labels to the video(s) passed as inputs.",gc,Ws,uc,H,Ls,Wm,Cr,VT=`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>.`,Lm,gt,Sm,Ir,AT='Learn more about the basics of using a pipeline in the <a href="../pipeline_tutorial">pipeline tutorial</a>',Om,qr,BT=`This image classification pipeline can currently be loaded from <a href="/docs/transformers/main/en/main_classes/pipelines#transformers.pipeline">pipeline()</a> using the following task identifier:
<code>&quot;zero-shot-image-classification&quot;</code>.`,Hm,zr,WT=`See the list of available models on
<a href="https://huggingface.co/models?filter=zero-shot-image-classification" rel="nofollow">huggingface.co/models</a>.`,Ym,ut,Ss,Em,Gr,LT="Assign labels to the image(s) passed as inputs.",Tc,Os,bc,Y,Hs,Qm,Zr,ST=`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>.`,Xm,Tt,Km,Fr,OT='Learn more about the basics of using a pipeline in the <a href="../pipeline_tutorial">pipeline tutorial</a>',eh,Dr,HT=`This object detection pipeline can currently be loaded from <a href="/docs/transformers/main/en/main_classes/pipelines#transformers.pipeline">pipeline()</a> using the following task identifier:
<code>&quot;zero-shot-object-detection&quot;</code>.`,th,Rr,YT=`See the list of available models on
<a href="https://huggingface.co/models?filter=zero-shot-object-detection" rel="nofollow">huggingface.co/models</a>.`,nh,bt,Ys,sh,Nr,ET="Detect objects (bounding boxes & classes) in the image(s) passed as inputs.",yc,Es,wc,Qs,QT="Pipelines available for natural language processing tasks include the following.",xc,Xs,Mc,pe,Ks,ah,Vr,XT=`Utility class containing a conversation and its history. This class is meant to be used as an input to the
<a href="/docs/transformers/main/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.`,oh,yt,rh,wt,ea,ih,Ar,KT=`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.`,lh,xt,ta,ph,Br,eb="This is a legacy method. We recommend just using <code>add_message</code> with an appropriate role instead.",ch,Mt,na,dh,Wr,tb=`This is a legacy method that no longer has any effect, as the Conversation no longer distinguishes between
processed and unprocessed user input.`,_c,E,sa,mh,Lr,nb="Multi-turn conversational pipeline.",hh,_t,fh,Sr,sb='Learn more about the basics of using a pipeline in the <a href="../pipeline_tutorial">pipeline tutorial</a>',gh,Or,ab=`This conversational pipeline can currently be loaded from <a href="/docs/transformers/main/en/main_classes/pipelines#transformers.pipeline">pipeline()</a> using the following task identifier:
<code>&quot;conversational&quot;</code>.`,uh,Hr,ob=`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>.`,Th,kt,aa,bh,Yr,rb="Generate responses for the conversation(s) given as inputs.",kc,oa,Uc,G,ra,yh,Er,ib=`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.`,wh,Ut,xh,Qr,lb='Learn more about the basics of using a pipeline in the <a href="../pipeline_tutorial">pipeline tutorial</a>',Mh,Xr,pb=`This mask filling pipeline can currently be loaded from <a href="/docs/transformers/main/en/main_classes/pipelines#transformers.pipeline">pipeline()</a> using the following task identifier:
<code>&quot;fill-mask&quot;</code>.`,_h,Kr,cb=`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>.`,kh,jt,Uh,vt,jh,$t,ia,vh,ei,db="Fill the masked token in the text(s) given as inputs.",jc,la,vc,z,pa,$h,ti,mb=`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.`,Jh,Jt,Ph,ni,hb='Learn more about the basics of using a pipeline in the <a href="../pipeline_tutorial">pipeline tutorial</a>',Ch,si,fb=`This token recognition pipeline can currently be loaded from <a href="/docs/transformers/main/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).`,Ih,ai,gb=`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>.`,qh,Ae,ca,zh,oi,ub="Override tokens from a given word that disagree to force agreement on word boundaries.",Gh,ri,Tb=`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`,Zh,Pt,da,Fh,ii,bb="Fuse various numpy arrays into dicts with all the information needed for aggregation",Dh,Ct,ma,Rh,li,yb="Find and group together the adjacent tokens with the same entity predicted.",Nh,It,ha,Vh,pi,wb="Group together the adjacent tokens with the same entity predicted.",$c,fa,xb='See <a href="/docs/transformers/main/en/main_classes/pipelines#transformers.TokenClassificationPipeline">TokenClassificationPipeline</a> for all details.',Jc,ga,Pc,Z,ua,Ah,ci,Mb=`Question Answering pipeline using any <code>ModelForQuestionAnswering</code>. See the <a href="../task_summary#question-answering">question answering
examples</a> for more information.`,Bh,qt,Wh,di,_b='Learn more about the basics of using a pipeline in the <a href="../pipeline_tutorial">pipeline tutorial</a>',Lh,mi,kb=`This question answering pipeline can currently be loaded from <a href="/docs/transformers/main/en/main_classes/pipelines#transformers.pipeline">pipeline()</a> using the following task identifier:
<code>&quot;question-answering&quot;</code>.`,Sh,hi,Ub=`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>.`,Oh,zt,Ta,Hh,fi,jb="Answer the question(s) given as inputs by using the context(s).",Yh,Be,ba,Eh,gi,vb=`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>.`,Qh,ui,$b="We currently support extractive question answering.",Xh,Gt,ya,Kh,Ti,Jb="When decoding from token probabilities, this method maps token indexes to actual word in the initial context.",Cc,wa,Ic,ce,xa,ef,bi,Pb="Summarize news articles and other documents.",tf,yi,Cb=`This summarizing pipeline can currently be loaded from <a href="/docs/transformers/main/en/main_classes/pipelines#transformers.pipeline">pipeline()</a> using the following task identifier:
<code>&quot;summarization&quot;</code>.`,nf,wi,Ib=`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>`,sf,Zt,af,Ft,Ma,of,xi,qb="Summarize the text(s) given as inputs.",qc,_a,zc,Q,ka,rf,Mi,zb=`Table Question Answering pipeline using a <code>ModelForTableQuestionAnswering</code>. This pipeline is only available in
PyTorch.`,lf,Dt,pf,_i,Gb='Learn more about the basics of using a pipeline in the <a href="../pipeline_tutorial">pipeline tutorial</a>',cf,ki,Zb=`This tabular question answering pipeline can currently be loaded from <a href="/docs/transformers/main/en/main_classes/pipelines#transformers.pipeline">pipeline()</a> using the following task
identifier: <code>&quot;table-question-answering&quot;</code>.`,df,Ui,Fb=`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>.`,mf,se,Ua,hf,ji,Db="Answers queries according to a table. The pipeline accepts several types of inputs which are detailed below:",ff,vi,Rb="<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>",gf,$i,Nb="The <code>table</code> argument should be a dict or a DataFrame built from that dict, containing the whole table:",uf,Rt,Tf,Ji,Vb="This dictionary can be passed in as such, or can be converted to a pandas DataFrame:",bf,Nt,Gc,ja,Zc,N,va,yf,Pi,Ab=`Text classification pipeline using any <code>ModelForSequenceClassification</code>. See the <a href="../task_summary#sequence-classification">sequence classification
examples</a> for more information.`,wf,Vt,xf,Ci,Bb='Learn more about the basics of using a pipeline in the <a href="../pipeline_tutorial">pipeline tutorial</a>',Mf,Ii,Wb=`This text classification pipeline can currently be loaded from <a href="/docs/transformers/main/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).`,_f,qi,Lb=`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.`,kf,zi,Sb=`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>.`,Uf,At,$a,jf,Gi,Ob="Classify the text(s) given as inputs.",Fc,Ja,Dc,X,Pa,vf,Zi,Hb=`Language generation pipeline using any <code>ModelWithLMHead</code>. This pipeline predicts the words that will follow a
specified text prompt.`,$f,Bt,Jf,Fi,Yb=`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>.`,Pf,Di,Eb=`This language generation pipeline can currently be loaded from <a href="/docs/transformers/main/en/main_classes/pipelines#transformers.pipeline">pipeline()</a> using the following task identifier:
<code>&quot;text-generation&quot;</code>.`,Cf,Ri,Qb=`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>.`,If,Wt,Ca,qf,Ni,Xb="Complete the prompt(s) given as inputs.",Rc,Ia,Nc,F,qa,zf,Vi,Kb="Pipeline for text to text generation using seq2seq models.",Gf,Lt,Zf,Ai,ey=`Learn more about the basics of using a pipeline in the <a href="../pipeline_tutorial">pipeline tutorial</a>. You can pass text
generation parameters to this pipeline to control stopping criteria, decoding strategy, and more. Learn more about
text generation parameters in <a href="../generation_strategies">Text generation strategies</a> and <a href="text_generation">Text
generation</a>.`,Ff,Bi,ty=`This Text2TextGenerationPipeline pipeline can currently be loaded from <a href="/docs/transformers/main/en/main_classes/pipelines#transformers.pipeline">pipeline()</a> using the following task
identifier: <code>&quot;text2text-generation&quot;</code>.`,Df,Wi,ny=`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>`,Rf,St,Nf,Ot,za,Vf,Li,sy="Generate the output text(s) using text(s) given as inputs.",Af,Ht,Ga,Bf,Si,ay="Checks whether there might be something wrong with given input with regard to the model.",Vc,Za,Ac,q,Fa,Wf,Oi,oy=`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.`,Lf,Yt,Sf,Hi,ry='Learn more about the basics of using a pipeline in the <a href="../pipeline_tutorial">pipeline tutorial</a>',Of,Yi,iy=`This token recognition pipeline can currently be loaded from <a href="/docs/transformers/main/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).`,Hf,Ei,ly=`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>.`,Yf,Et,Da,Ef,Qi,py="Classify each token of the text(s) given as inputs.",Qf,We,Ra,Xf,Xi,cy="Override tokens from a given word that disagree to force agreement on word boundaries.",Kf,Ki,dy=`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`,eg,Qt,Na,tg,el,my="Fuse various numpy arrays into dicts with all the information needed for aggregation",ng,Xt,Va,sg,tl,hy="Find and group together the adjacent tokens with the same entity predicted.",ag,Kt,Aa,og,nl,fy="Group together the adjacent tokens with the same entity predicted.",Bc,Ba,Wc,de,Wa,rg,sl,gy="Translates from one language to another.",ig,al,uy=`This translation pipeline can currently be loaded from <a href="/docs/transformers/main/en/main_classes/pipelines#transformers.pipeline">pipeline()</a> using the following task identifier:
<code>&quot;translation_xx_to_yy&quot;</code>.`,lg,ol,Ty=`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>`,pg,en,cg,tn,La,dg,rl,by="Translate the text(s) given as inputs.",Lc,Sa,Sc,V,Oa,mg,il,yy=`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.`,hg,ll,wy=`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>.`,fg,nn,gg,pl,xy='Learn more about the basics of using a pipeline in the <a href="../pipeline_tutorial">pipeline tutorial</a>',ug,cl,My=`This NLI pipeline can currently be loaded from <a href="/docs/transformers/main/en/main_classes/pipelines#transformers.pipeline">pipeline()</a> using the following task identifier:
<code>&quot;zero-shot-classification&quot;</code>.`,Tg,dl,_y=`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>.`,bg,sn,Ha,yg,ml,ky=`Classify the sequence(s) given as inputs. See the <a href="/docs/transformers/main/en/main_classes/pipelines#transformers.ZeroShotClassificationPipeline">ZeroShotClassificationPipeline</a> documentation for more
information.`,Oc,Ya,Hc,Ea,Uy="Pipelines available for multimodal tasks include the following.",Yc,Qa,Ec,K,Xa,wg,hl,jy=`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.`,xg,an,Mg,fl,vy='Learn more about the basics of using a pipeline in the <a href="../pipeline_tutorial">pipeline tutorial</a>',_g,gl,$y=`This document question answering pipeline can currently be loaded from <a href="/docs/transformers/main/en/main_classes/pipelines#transformers.pipeline">pipeline()</a> using the following task
identifier: <code>&quot;document-question-answering&quot;</code>.`,kg,ul,Jy=`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>.`,Ug,Re,Ka,jg,Tl,Py=`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.`,vg,bl,Cy="You can invoke the pipeline several ways:",$g,yl,Iy="<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>",Qc,eo,Xc,ee,to,Jg,wl,qy=`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.`,Pg,on,Cg,xl,zy='Learn more about the basics of using a pipeline in the <a href="../pipeline_tutorial">pipeline tutorial</a>',Ig,Ml,Gy=`This feature extraction pipeline can currently be loaded from <a href="/docs/transformers/main/en/main_classes/pipelines#transformers.pipeline">pipeline()</a> using the task identifier:
<code>&quot;feature-extraction&quot;</code>.`,qg,_l,Zy=`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>.`,zg,rn,no,Gg,kl,Fy="Extract the features of the input(s).",Kc,so,ed,te,ao,Zg,Ul,Dy="Image To Text pipeline using a <code>AutoModelForVision2Seq</code>. This pipeline predicts a caption for a given image.",Fg,ln,Dg,jl,Ry='Learn more about the basics of using a pipeline in the <a href="../pipeline_tutorial">pipeline tutorial</a>',Rg,vl,Ny=`This image to text pipeline can currently be loaded from pipeline() using the following task identifier:
“image-to-text”.`,Ng,$l,Vy=`See the list of available models on
<a href="https://huggingface.co/models?pipeline_tag=image-to-text" rel="nofollow">huggingface.co/models</a>.`,Vg,pn,oo,Ag,Jl,Ay="Assign labels to the image(s) passed as inputs.",td,ro,nd,ne,io,Bg,Pl,By=`Visual Question Answering pipeline using a <code>AutoModelForVisualQuestionAnswering</code>. This pipeline is currently only
available in PyTorch.`,Wg,cn,Lg,Cl,Wy='Learn more about the basics of using a pipeline in the <a href="../pipeline_tutorial">pipeline tutorial</a>',Sg,Il,Ly=`This visual question answering pipeline can currently be loaded from <a href="/docs/transformers/main/en/main_classes/pipelines#transformers.pipeline">pipeline()</a> using the following task
identifiers: <code>&quot;visual-question-answering&quot;, &quot;vqa&quot;</code>.`,Og,ql,Sy=`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>.`,Hg,Le,lo,Yg,zl,Oy=`Answers open-ended questions about images. The pipeline accepts several types of inputs which are detailed
below:`,Eg,Gl,Hy="<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>",sd,po,ad,C,co,Qg,Zl,Yy=`The Pipeline class is the class from which all pipelines inherit. Refer to this class for methods shared across
different pipelines.`,Xg,Fl,Ey=`Base class implementing pipelined operations. Pipeline workflow is defined as a sequence of the following
operations:`,Kg,Dl,Qy="Input -> Tokenization -> Model Inference -> Post-Processing (task dependent) -> Output",eu,Rl,Xy="Pipeline supports running on CPU or GPU through the device argument (see below).",tu,Nl,Ky=`Some pipeline, like for instance <a href="/docs/transformers/main/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.`,nu,dn,mo,su,Vl,ew="Check if the model class is in supported by the pipeline.",au,Se,ho,ou,Al,tw="Context Manager allowing tensor allocation on the user-specified device in framework agnostic way.",ru,mn,iu,hn,fo,lu,Bl,nw="Ensure PyTorch tensors are on the specified device.",pu,fn,go,cu,Wl,sw=`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).`,du,gn,uo,mu,Ll,aw="Scikit / Keras interface to transformers’ pipelines. This method will forward to <strong>call</strong>().",hu,un,To,fu,Sl,ow=`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.`,gu,Tn,bo,uu,Ol,rw="Save the pipeline’s model and tokenizer.",Tu,bn,yo,bu,Hl,iw="Scikit / Keras interface to transformers’ pipelines. This method will forward to <strong>call</strong>().",od,Kl,rd;return w=new $({props:{title:"Pipelines",local:"pipelines",headingTag:"h1"}}),Mn=new $({props:{title:"The pipeline abstraction",local:"transformers.pipeline",headingTag:"h2"}}),Un=new v({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}}),vn=new v({props:{code:"cGlwZSUyMCUzRCUyMHBpcGVsaW5lKG1vZGVsJTNEJTIycm9iZXJ0YS1sYXJnZS1tbmxpJTIyKSUwQXBpcGUoJTIyVGhpcyUyMHJlc3RhdXJhbnQlMjBpcyUyMGF3ZXNvbWUlMjIp",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span>pipe = pipeline(model=<span class="hljs-string">&quot;roberta-large-mnli&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>pipe(<span class="hljs-string">&quot;This restaurant is awesome&quot;</span>)
[{<span class="hljs-string">&#x27;label&#x27;</span>: <span class="hljs-string">&#x27;NEUTRAL&#x27;</span>, <span class="hljs-string">&#x27;score&#x27;</span>: <span class="hljs-number">0.7313136458396912</span>}]`,wrap:!1}}),Jn=new v({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}}),Cn=new v({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}}),qn=new v({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}}),zn=new U({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[str, bool, 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/main/en/main_classes/pipelines#transformers.AudioClassificationPipeline">AudioClassificationPipeline</a>.</li>
<li><code>&quot;automatic-speech-recognition&quot;</code>: will return a <a href="/docs/transformers/main/en/main_classes/pipelines#transformers.AutomaticSpeechRecognitionPipeline">AutomaticSpeechRecognitionPipeline</a>.</li>
<li><code>&quot;conversational&quot;</code>: will return a <a href="/docs/transformers/main/en/main_classes/pipelines#transformers.ConversationalPipeline">ConversationalPipeline</a>.</li>
<li><code>&quot;depth-estimation&quot;</code>: will return a <a href="/docs/transformers/main/en/main_classes/pipelines#transformers.DepthEstimationPipeline">DepthEstimationPipeline</a>.</li>
<li><code>&quot;document-question-answering&quot;</code>: will return a <a href="/docs/transformers/main/en/main_classes/pipelines#transformers.DocumentQuestionAnsweringPipeline">DocumentQuestionAnsweringPipeline</a>.</li>
<li><code>&quot;feature-extraction&quot;</code>: will return a <a href="/docs/transformers/main/en/main_classes/pipelines#transformers.FeatureExtractionPipeline">FeatureExtractionPipeline</a>.</li>
<li><code>&quot;fill-mask&quot;</code>: will return a <a href="/docs/transformers/main/en/main_classes/pipelines#transformers.FillMaskPipeline">FillMaskPipeline</a>:.</li>
<li><code>&quot;image-classification&quot;</code>: will return a <a href="/docs/transformers/main/en/main_classes/pipelines#transformers.ImageClassificationPipeline">ImageClassificationPipeline</a>.</li>
<li><code>&quot;image-segmentation&quot;</code>: will return a <a href="/docs/transformers/main/en/main_classes/pipelines#transformers.ImageSegmentationPipeline">ImageSegmentationPipeline</a>.</li>
<li><code>&quot;image-to-image&quot;</code>: will return a <a href="/docs/transformers/main/en/main_classes/pipelines#transformers.ImageToImagePipeline">ImageToImagePipeline</a>.</li>
<li><code>&quot;image-to-text&quot;</code>: will return a <a href="/docs/transformers/main/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/main/en/main_classes/pipelines#transformers.ObjectDetectionPipeline">ObjectDetectionPipeline</a>.</li>
<li><code>&quot;question-answering&quot;</code>: will return a <a href="/docs/transformers/main/en/main_classes/pipelines#transformers.QuestionAnsweringPipeline">QuestionAnsweringPipeline</a>.</li>
<li><code>&quot;summarization&quot;</code>: will return a <a href="/docs/transformers/main/en/main_classes/pipelines#transformers.SummarizationPipeline">SummarizationPipeline</a>.</li>
<li><code>&quot;table-question-answering&quot;</code>: will return a <a href="/docs/transformers/main/en/main_classes/pipelines#transformers.TableQuestionAnsweringPipeline">TableQuestionAnsweringPipeline</a>.</li>
<li><code>&quot;text2text-generation&quot;</code>: will return a <a href="/docs/transformers/main/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/main/en/main_classes/pipelines#transformers.TextClassificationPipeline">TextClassificationPipeline</a>.</li>
<li><code>&quot;text-generation&quot;</code>: will return a <a href="/docs/transformers/main/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/main/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/main/en/main_classes/pipelines#transformers.TokenClassificationPipeline">TokenClassificationPipeline</a>.</li>
<li><code>&quot;translation&quot;</code>: will return a <a href="/docs/transformers/main/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/main/en/main_classes/pipelines#transformers.TranslationPipeline">TranslationPipeline</a>.</li>
<li><code>&quot;video-classification&quot;</code>: will return a <a href="/docs/transformers/main/en/main_classes/pipelines#transformers.VideoClassificationPipeline">VideoClassificationPipeline</a>.</li>
<li><code>&quot;visual-question-answering&quot;</code>: will return a <a href="/docs/transformers/main/en/main_classes/pipelines#transformers.VisualQuestionAnsweringPipeline">VisualQuestionAnsweringPipeline</a>.</li>
<li><code>&quot;zero-shot-classification&quot;</code>: will return a <a href="/docs/transformers/main/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/main/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/main/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/main/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/main/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> or <a href="/docs/transformers/main/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/main/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> (for PyTorch) or
<a href="/docs/transformers/main/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/main/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/main/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/main/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/main/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/main/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/main/src/transformers/pipelines/__init__.py#L530",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


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


<p><a
  href="/docs/transformers/main/en/main_classes/pipelines#transformers.Pipeline"
>Pipeline</a></p>
`}}),He=new P({props:{anchor:"transformers.pipeline.example",$$slots:{default:[hw]},$$scope:{ctx:j}}}),Gn=new $({props:{title:"Pipeline batching",local:"pipeline-batching",headingTag:"h2"}}),Fn=new v({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}}),Ye=new yu({props:{warning:!0,$$slots:{default:[fw]},$$scope:{ctx:j}}}),Dn=new v({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}}),Rn=new v({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}}),Vn=new v({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}}),Bn=new v({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}}),On=new $({props:{title:"Pipeline chunk batching",local:"pipeline-chunk-batching",headingTag:"h2"}}),En=new v({props:{code:"cHJlcHJvY2Vzc2VkJTIwJTNEJTIwcGlwZS5wcmVwcm9jZXNzKGlucHV0cyklMEFtb2RlbF9vdXRwdXRzJTIwJTNEJTIwcGlwZS5mb3J3YXJkKHByZXByb2Nlc3NlZCklMEFvdXRwdXRzJTIwJTNEJTIwcGlwZS5wb3N0cHJvY2Vzcyhtb2RlbF9vdXRwdXRzKQ==",highlighted:`preprocessed = pipe.preprocess(inputs)
model_outputs = pipe.forward(preprocessed)
outputs = pipe.postprocess(model_outputs)`,wrap:!1}}),Xn=new v({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}}),ts=new $({props:{title:"Pipeline custom code",local:"pipeline-custom-code",headingTag:"h2"}}),rs=new v({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}}),ls=new $({props:{title:"Implementing a pipeline",local:"implementing-a-pipeline",headingTag:"h2"}}),cs=new $({props:{title:"Audio",local:"audio",headingTag:"h2"}}),ms=new $({props:{title:"AudioClassificationPipeline",local:"transformers.AudioClassificationPipeline",headingTag:"h3"}}),hs=new U({props:{name:"class transformers.AudioClassificationPipeline",anchor:"transformers.AudioClassificationPipeline",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.AudioClassificationPipeline.model",description:`<strong>model</strong> (<a href="/docs/transformers/main/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> or <a href="/docs/transformers/main/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/main/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> for PyTorch and <a href="/docs/transformers/main/en/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a> for TensorFlow.`,name:"model"},{anchor:"transformers.AudioClassificationPipeline.tokenizer",description:`<strong>tokenizer</strong> (<a href="/docs/transformers/main/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/main/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/main/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/main/src/transformers/pipelines/audio_classification.py#L67"}}),Ee=new P({props:{anchor:"transformers.AudioClassificationPipeline.example",$$slots:{default:[gw]},$$scope:{ctx:j}}}),fs=new U({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/main/src/transformers/pipelines/audio_classification.py#L103",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


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


<p>A list of <code>dict</code> with the following keys</p>
`}}),gs=new $({props:{title:"AutomaticSpeechRecognitionPipeline",local:"transformers.AutomaticSpeechRecognitionPipeline",headingTag:"h3"}}),us=new U({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/main/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> or <a href="/docs/transformers/main/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/main/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> for PyTorch and <a href="/docs/transformers/main/en/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a> for TensorFlow.`,name:"model"},{anchor:"transformers.AutomaticSpeechRecognitionPipeline.tokenizer",description:`<strong>tokenizer</strong> (<a href="/docs/transformers/main/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/main/en/main_classes/tokenizer#transformers.PreTrainedTokenizer">PreTrainedTokenizer</a>.`,name:"tokenizer"},{anchor:"transformers.AutomaticSpeechRecognitionPipeline.feature_extractor",description:`<strong>feature_extractor</strong> (<a href="/docs/transformers/main/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/main/en/model_doc/wav2vec2#transformers.Wav2Vec2ProcessorWithLM">Wav2Vec2ProcessorWithLM</a> for more information.`,name:"decoder"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/pipelines/automatic_speech_recognition.py#L135"}}),Xe=new P({props:{anchor:"transformers.AutomaticSpeechRecognitionPipeline.example",$$slots:{default:[uw]},$$scope:{ctx:j}}}),Ts=new U({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/main/src/transformers/pipelines/automatic_speech_recognition.py#L294",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


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


<p><code>Dict</code></p>
`}}),bs=new $({props:{title:"TextToAudioPipeline",local:"transformers.TextToAudioPipeline",headingTag:"h3"}}),ys=new U({props:{name:"class transformers.TextToAudioPipeline",anchor:"transformers.TextToAudioPipeline",parameters:[{name:"*args",val:""},{name:"vocoder",val:" = None"},{name:"sampling_rate",val:" = None"},{name:"**kwargs",val:""}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/pipelines/text_to_audio.py#L27"}}),et=new P({props:{anchor:"transformers.TextToAudioPipeline.example",$$slots:{default:[Tw]},$$scope:{ctx:j}}}),ws=new U({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/main/src/transformers/pipelines/text_to_audio.py#L122",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


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


<p>A <code>dict</code> or a list of <code>dict</code></p>
`}}),xs=new $({props:{title:"ZeroShotAudioClassificationPipeline",local:"transformers.ZeroShotAudioClassificationPipeline",headingTag:"h3"}}),Ms=new U({props:{name:"class transformers.ZeroShotAudioClassificationPipeline",anchor:"transformers.ZeroShotAudioClassificationPipeline",parameters:[{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.ZeroShotAudioClassificationPipeline.model",description:`<strong>model</strong> (<a href="/docs/transformers/main/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> or <a href="/docs/transformers/main/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/main/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> for PyTorch and <a href="/docs/transformers/main/en/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a> for TensorFlow.`,name:"model"},{anchor:"transformers.ZeroShotAudioClassificationPipeline.tokenizer",description:`<strong>tokenizer</strong> (<a href="/docs/transformers/main/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/main/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/main/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/main/src/transformers/pipelines/zero_shot_audio_classification.py#L33"}}),nt=new P({props:{anchor:"transformers.ZeroShotAudioClassificationPipeline.example",$$slots:{default:[bw]},$$scope:{ctx:j}}}),_s=new U({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/main/src/transformers/pipelines/zero_shot_audio_classification.py#L64",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>A list of dictionaries containing result, one dictionary per proposed label. The dictionaries contain the
following keys:</p>
<ul>
<li><strong>label</strong> (<code>str</code>) — The label identified by the model. It is one of the suggested <code>candidate_label</code>.</li>
<li><strong>score</strong> (<code>float</code>) — The score attributed by the model for that label (between 0 and 1).</li>
</ul>
`}}),ks=new $({props:{title:"Computer vision",local:"computer-vision",headingTag:"h2"}}),js=new $({props:{title:"DepthEstimationPipeline",local:"transformers.DepthEstimationPipeline",headingTag:"h3"}}),vs=new U({props:{name:"class transformers.DepthEstimationPipeline",anchor:"transformers.DepthEstimationPipeline",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.DepthEstimationPipeline.model",description:`<strong>model</strong> (<a href="/docs/transformers/main/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> or <a href="/docs/transformers/main/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/main/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> for PyTorch and <a href="/docs/transformers/main/en/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a> for TensorFlow.`,name:"model"},{anchor:"transformers.DepthEstimationPipeline.tokenizer",description:`<strong>tokenizer</strong> (<a href="/docs/transformers/main/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/main/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/main/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/main/src/transformers/pipelines/depth_estimation.py#L23"}}),at=new P({props:{anchor:"transformers.DepthEstimationPipeline.example",$$slots:{default:[yw]},$$scope:{ctx:j}}}),$s=new U({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/main/src/transformers/pipelines/depth_estimation.py#L53",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>A dictionary or a list of dictionaries containing result. If the input is a single image, will return a
dictionary, if the input is a list of several images, will return a list of dictionaries corresponding to
the images.</p>
<p>The dictionaries contain the following keys:</p>
<ul>
<li><strong>label</strong> (<code>str</code>) — The label identified by the model.</li>
<li><strong>score</strong> (<code>int</code>) — The score attributed by the model for that label.</li>
</ul>
`}}),Js=new $({props:{title:"ImageClassificationPipeline",local:"transformers.ImageClassificationPipeline",headingTag:"h3"}}),Ps=new U({props:{name:"class transformers.ImageClassificationPipeline",anchor:"transformers.ImageClassificationPipeline",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.ImageClassificationPipeline.model",description:`<strong>model</strong> (<a href="/docs/transformers/main/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> or <a href="/docs/transformers/main/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/main/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> for PyTorch and <a href="/docs/transformers/main/en/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a> for TensorFlow.`,name:"model"},{anchor:"transformers.ImageClassificationPipeline.tokenizer",description:`<strong>tokenizer</strong> (<a href="/docs/transformers/main/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/main/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/main/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/main/src/transformers/pipelines/image_classification.py#L32"}}),rt=new P({props:{anchor:"transformers.ImageClassificationPipeline.example",$$slots:{default:[ww]},$$scope:{ctx:j}}}),Cs=new U({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/main/src/transformers/pipelines/image_classification.py#L74",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>A dictionary or a list of dictionaries containing result. If the input is a single image, will return a
dictionary, if the input is a list of several images, will return a list of dictionaries corresponding to
the images.</p>
<p>The dictionaries contain the following keys:</p>
<ul>
<li><strong>label</strong> (<code>str</code>) — The label identified by the model.</li>
<li><strong>score</strong> (<code>int</code>) — The score attributed by the model for that label.</li>
</ul>
`}}),Is=new $({props:{title:"ImageSegmentationPipeline",local:"transformers.ImageSegmentationPipeline",headingTag:"h3"}}),qs=new U({props:{name:"class transformers.ImageSegmentationPipeline",anchor:"transformers.ImageSegmentationPipeline",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.ImageSegmentationPipeline.model",description:`<strong>model</strong> (<a href="/docs/transformers/main/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> or <a href="/docs/transformers/main/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/main/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> for PyTorch and <a href="/docs/transformers/main/en/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a> for TensorFlow.`,name:"model"},{anchor:"transformers.ImageSegmentationPipeline.tokenizer",description:`<strong>tokenizer</strong> (<a href="/docs/transformers/main/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/main/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/main/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/main/src/transformers/pipelines/image_segmentation.py#L31"}}),lt=new P({props:{anchor:"transformers.ImageSegmentationPipeline.example",$$slots:{default:[xw]},$$scope:{ctx:j}}}),zs=new U({props:{name:"__call__",anchor:"transformers.ImageSegmentationPipeline.__call__",parameters:[{name:"images",val:""},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.ImageSegmentationPipeline.__call__.images",description:`<strong>images</strong> (<code>str</code>, <code>List[str]</code>, <code>PIL.Image</code> or <code>List[PIL.Image]</code>) &#x2014;
The pipeline handles three types of images:</p>
<ul>
<li>A string containing an HTTP(S) link pointing to an image</li>
<li>A string containing a local path to an image</li>
<li>An image loaded in PIL directly</li>
</ul>
<p>The pipeline accepts either a single image or a batch of images. Images in a batch must all be in the
same format: all as HTTP(S) links, all as local paths, or all as PIL images.`,name:"images"},{anchor:"transformers.ImageSegmentationPipeline.__call__.subtask",description:`<strong>subtask</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Segmentation task to be performed, choose [<code>semantic</code>, <code>instance</code> and <code>panoptic</code>] depending on model
capabilities. If not set, the pipeline will attempt tp resolve in the following order:
<code>panoptic</code>, <code>instance</code>, <code>semantic</code>.`,name:"subtask"},{anchor:"transformers.ImageSegmentationPipeline.__call__.threshold",description:`<strong>threshold</strong> (<code>float</code>, <em>optional</em>, defaults to 0.9) &#x2014;
Probability threshold to filter out predicted masks.`,name:"threshold"},{anchor:"transformers.ImageSegmentationPipeline.__call__.mask_threshold",description:`<strong>mask_threshold</strong> (<code>float</code>, <em>optional</em>, defaults to 0.5) &#x2014;
Threshold to use when turning the predicted masks into binary values.`,name:"mask_threshold"},{anchor:"transformers.ImageSegmentationPipeline.__call__.overlap_mask_area_threshold",description:`<strong>overlap_mask_area_threshold</strong> (<code>float</code>, <em>optional</em>, defaults to 0.5) &#x2014;
Mask overlap threshold to eliminate small, disconnected segments.`,name:"overlap_mask_area_threshold"},{anchor:"transformers.ImageSegmentationPipeline.__call__.timeout",description:`<strong>timeout</strong> (<code>float</code>, <em>optional</em>, defaults to None) &#x2014;
The maximum time in seconds to wait for fetching images from the web. If None, no timeout is set and
the call may block forever.`,name:"timeout"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/pipelines/image_segmentation.py#L97",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>A dictionary or a list of dictionaries containing the result. If the input is a single image, will return a
list of dictionaries, if the input is a list of several images, will return a list of list of dictionaries
corresponding to each image.</p>
<p>The dictionaries contain the mask, label and score (where applicable) of each detected object and contains
the following keys:</p>
<ul>
<li><strong>label</strong> (<code>str</code>) — The class label identified by the model.</li>
<li><strong>mask</strong> (<code>PIL.Image</code>) — A binary mask of the detected object as a Pil Image of shape (width, height) of
the original image. Returns a mask filled with zeros if no object is found.</li>
<li><strong>score</strong> (<em>optional</em> <code>float</code>) — Optionally, when the model is capable of estimating a confidence of the
“object” described by the label and the mask.</li>
</ul>
`}}),Gs=new $({props:{title:"ImageToImagePipeline",local:"transformers.ImageToImagePipeline",headingTag:"h3"}}),Zs=new U({props:{name:"class transformers.ImageToImagePipeline",anchor:"transformers.ImageToImagePipeline",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.ImageToImagePipeline.model",description:`<strong>model</strong> (<a href="/docs/transformers/main/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> or <a href="/docs/transformers/main/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/main/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> for PyTorch and <a href="/docs/transformers/main/en/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a> for TensorFlow.`,name:"model"},{anchor:"transformers.ImageToImagePipeline.tokenizer",description:`<strong>tokenizer</strong> (<a href="/docs/transformers/main/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/main/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/main/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/main/src/transformers/pipelines/image_to_image.py#L40"}}),ct=new P({props:{anchor:"transformers.ImageToImagePipeline.example",$$slots:{default:[Mw]},$$scope:{ctx:j}}}),Fs=new U({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/main/src/transformers/pipelines/image_to_image.py#L87",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>An image (Image.Image) or a list of images (List[“Image.Image”]) containing result(s). If the input is a
single image, the return will be also a single image, if the input is a list of several images, it will
return a list of transformed images.</p>
`}}),Ds=new $({props:{title:"ObjectDetectionPipeline",local:"transformers.ObjectDetectionPipeline",headingTag:"h3"}}),Rs=new U({props:{name:"class transformers.ObjectDetectionPipeline",anchor:"transformers.ObjectDetectionPipeline",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.ObjectDetectionPipeline.model",description:`<strong>model</strong> (<a href="/docs/transformers/main/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> or <a href="/docs/transformers/main/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/main/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> for PyTorch and <a href="/docs/transformers/main/en/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a> for TensorFlow.`,name:"model"},{anchor:"transformers.ObjectDetectionPipeline.tokenizer",description:`<strong>tokenizer</strong> (<a href="/docs/transformers/main/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/main/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/main/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/main/src/transformers/pipelines/object_detection.py#L27"}}),mt=new P({props:{anchor:"transformers.ObjectDetectionPipeline.example",$$slots:{default:[_w]},$$scope:{ctx:j}}}),Ns=new U({props:{name:"__call__",anchor:"transformers.ObjectDetectionPipeline.__call__",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.ObjectDetectionPipeline.__call__.images",description:`<strong>images</strong> (<code>str</code>, <code>List[str]</code>, <code>PIL.Image</code> or <code>List[PIL.Image]</code>) &#x2014;
The pipeline handles three types of images:</p>
<ul>
<li>A string containing an HTTP(S) link pointing to an image</li>
<li>A string containing a local path to an image</li>
<li>An image loaded in PIL directly</li>
</ul>
<p>The pipeline accepts either a single image or a batch of images. Images in a batch must all be in the
same format: all as HTTP(S) links, all as local paths, or all as PIL images.`,name:"images"},{anchor:"transformers.ObjectDetectionPipeline.__call__.threshold",description:`<strong>threshold</strong> (<code>float</code>, <em>optional</em>, defaults to 0.9) &#x2014;
The probability necessary to make a prediction.`,name:"threshold"},{anchor:"transformers.ObjectDetectionPipeline.__call__.timeout",description:`<strong>timeout</strong> (<code>float</code>, <em>optional</em>, defaults to None) &#x2014;
The maximum time in seconds to wait for fetching images from the web. If None, no timeout is set and
the call may block forever.`,name:"timeout"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/pipelines/object_detection.py#L72",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>A list of dictionaries or a list of list of dictionaries containing the result. If the input is a single
image, will return a list of dictionaries, if the input is a list of several images, will return a list of
list of dictionaries corresponding to each image.</p>
<p>The dictionaries contain the following keys:</p>
<ul>
<li><strong>label</strong> (<code>str</code>) — The class label identified by the model.</li>
<li><strong>score</strong> (<code>float</code>) — The score attributed by the model for that label.</li>
<li><strong>box</strong> (<code>List[Dict[str, int]]</code>) — The bounding box of detected object in image’s original size.</li>
</ul>
`}}),Vs=new $({props:{title:"VideoClassificationPipeline",local:"transformers.VideoClassificationPipeline",headingTag:"h3"}}),As=new U({props:{name:"class transformers.VideoClassificationPipeline",anchor:"transformers.VideoClassificationPipeline",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.VideoClassificationPipeline.model",description:`<strong>model</strong> (<a href="/docs/transformers/main/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> or <a href="/docs/transformers/main/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/main/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> for PyTorch and <a href="/docs/transformers/main/en/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a> for TensorFlow.`,name:"model"},{anchor:"transformers.VideoClassificationPipeline.tokenizer",description:`<strong>tokenizer</strong> (<a href="/docs/transformers/main/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/main/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/main/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/main/src/transformers/pipelines/video_classification.py#L22"}}),Bs=new U({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/main/src/transformers/pipelines/video_classification.py#L51",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>A dictionary or a list of dictionaries containing result. If the input is a single video, will return a
dictionary, if the input is a list of several videos, will return a list of dictionaries corresponding to
the videos.</p>
<p>The dictionaries contain the following keys:</p>
<ul>
<li><strong>label</strong> (<code>str</code>) — The label identified by the model.</li>
<li><strong>score</strong> (<code>int</code>) — The score attributed by the model for that label.</li>
</ul>
`}}),Ws=new $({props:{title:"ZeroShotImageClassificationPipeline",local:"transformers.ZeroShotImageClassificationPipeline",headingTag:"h3"}}),Ls=new U({props:{name:"class transformers.ZeroShotImageClassificationPipeline",anchor:"transformers.ZeroShotImageClassificationPipeline",parameters:[{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.ZeroShotImageClassificationPipeline.model",description:`<strong>model</strong> (<a href="/docs/transformers/main/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> or <a href="/docs/transformers/main/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/main/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> for PyTorch and <a href="/docs/transformers/main/en/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a> for TensorFlow.`,name:"model"},{anchor:"transformers.ZeroShotImageClassificationPipeline.tokenizer",description:`<strong>tokenizer</strong> (<a href="/docs/transformers/main/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/main/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/main/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/main/src/transformers/pipelines/zero_shot_image_classification.py#L31"}}),gt=new P({props:{anchor:"transformers.ZeroShotImageClassificationPipeline.example",$$slots:{default:[kw]},$$scope:{ctx:j}}}),Ss=new U({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/main/src/transformers/pipelines/zero_shot_image_classification.py#L74",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>A list of dictionaries containing result, one dictionary per proposed label. The dictionaries contain the
following keys:</p>
<ul>
<li><strong>label</strong> (<code>str</code>) — The label identified by the model. It is one of the suggested <code>candidate_label</code>.</li>
<li><strong>score</strong> (<code>float</code>) — The score attributed by the model for that label (between 0 and 1).</li>
</ul>
`}}),Os=new $({props:{title:"ZeroShotObjectDetectionPipeline",local:"transformers.ZeroShotObjectDetectionPipeline",headingTag:"h3"}}),Hs=new U({props:{name:"class transformers.ZeroShotObjectDetectionPipeline",anchor:"transformers.ZeroShotObjectDetectionPipeline",parameters:[{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.ZeroShotObjectDetectionPipeline.model",description:`<strong>model</strong> (<a href="/docs/transformers/main/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> or <a href="/docs/transformers/main/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/main/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> for PyTorch and <a href="/docs/transformers/main/en/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a> for TensorFlow.`,name:"model"},{anchor:"transformers.ZeroShotObjectDetectionPipeline.tokenizer",description:`<strong>tokenizer</strong> (<a href="/docs/transformers/main/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/main/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/main/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/main/src/transformers/pipelines/zero_shot_object_detection.py#L23"}}),Tt=new P({props:{anchor:"transformers.ZeroShotObjectDetectionPipeline.example",$$slots:{default:[Uw]},$$scope:{ctx:j}}}),Ys=new U({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/main/src/transformers/pipelines/zero_shot_object_detection.py#L65",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>A list of lists containing prediction results, one list per input image. Each list contains dictionaries
with the following keys:</p>
<ul>
<li><strong>label</strong> (<code>str</code>) — Text query corresponding to the found object.</li>
<li><strong>score</strong> (<code>float</code>) — Score corresponding to the object (between 0 and 1).</li>
<li><strong>box</strong> (<code>Dict[str,int]</code>) — Bounding box of the detected object in image’s original size. It is a
dictionary with <code>x_min</code>, <code>x_max</code>, <code>y_min</code>, <code>y_max</code> keys.</li>
</ul>
`}}),Es=new $({props:{title:"Natural Language Processing",local:"natural-language-processing",headingTag:"h2"}}),Xs=new $({props:{title:"ConversationalPipeline",local:"transformers.Conversation",headingTag:"h3"}}),Ks=new U({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/main/src/transformers/pipelines/conversational.py#L18"}}),yt=new P({props:{anchor:"transformers.Conversation.example",$$slots:{default:[jw]},$$scope:{ctx:j}}}),ea=new U({props:{name:"add_user_input",anchor:"transformers.Conversation.add_user_input",parameters:[{name:"text",val:": str"},{name:"overwrite",val:": bool = False"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/pipelines/conversational.py#L88"}}),ta=new U({props:{name:"append_response",anchor:"transformers.Conversation.append_response",parameters:[{name:"response",val:": str"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/pipelines/conversational.py#L109"}}),na=new U({props:{name:"mark_processed",anchor:"transformers.Conversation.mark_processed",parameters:[],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/pipelines/conversational.py#L115"}}),sa=new U({props:{name:"class transformers.ConversationalPipeline",anchor:"transformers.ConversationalPipeline",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.ConversationalPipeline.model",description:`<strong>model</strong> (<a href="/docs/transformers/main/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> or <a href="/docs/transformers/main/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/main/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> for PyTorch and <a href="/docs/transformers/main/en/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a> for TensorFlow.`,name:"model"},{anchor:"transformers.ConversationalPipeline.tokenizer",description:`<strong>tokenizer</strong> (<a href="/docs/transformers/main/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/main/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/main/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/main/src/transformers/pipelines/conversational.py#L191"}}),_t=new P({props:{anchor:"transformers.ConversationalPipeline.example",$$slots:{default:[vw]},$$scope:{ctx:j}}}),aa=new U({props:{name:"__call__",anchor:"transformers.ConversationalPipeline.__call__",parameters:[{name:"conversations",val:": typing.Union[typing.List[typing.Dict], 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/main/en/main_classes/pipelines#transformers.Conversation">Conversation</a> or a list of <a href="/docs/transformers/main/en/main_classes/pipelines#transformers.Conversation">Conversation</a>) &#x2014;
Conversation to generate responses for. Inputs can also be passed as a list of dictionaries with <code>role</code>
and <code>content</code> keys - in this case, they will be converted to <code>Conversation</code> objects automatically.
Multiple conversations in either format may be passed as a list.`,name:"conversations"},{anchor:"transformers.ConversationalPipeline.__call__.clean_up_tokenization_spaces",description:`<strong>clean_up_tokenization_spaces</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to clean up the potential extra spaces in the text output.
generate_kwargs &#x2014;
Additional keyword arguments to pass along to the generate method of the model (see the generate method
corresponding to your framework <a href="./model#generative-models">here</a>).`,name:"clean_up_tokenization_spaces"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/pipelines/conversational.py#L250",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


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


<p><a
  href="/docs/transformers/main/en/main_classes/pipelines#transformers.Conversation"
>Conversation</a> or a list of <a
  href="/docs/transformers/main/en/main_classes/pipelines#transformers.Conversation"
>Conversation</a></p>
`}}),oa=new $({props:{title:"FillMaskPipeline",local:"transformers.FillMaskPipeline",headingTag:"h3"}}),ra=new U({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/main/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> or <a href="/docs/transformers/main/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/main/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> for PyTorch and <a href="/docs/transformers/main/en/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a> for TensorFlow.`,name:"model"},{anchor:"transformers.FillMaskPipeline.tokenizer",description:`<strong>tokenizer</strong> (<a href="/docs/transformers/main/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/main/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/main/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/main/src/transformers/pipelines/fill_mask.py#L34"}}),Ut=new P({props:{anchor:"transformers.FillMaskPipeline.example",$$slots:{default:[$w]},$$scope:{ctx:j}}}),jt=new yu({props:{$$slots:{default:[Jw]},$$scope:{ctx:j}}}),vt=new yu({props:{$$slots:{default:[Cw]},$$scope:{ctx:j}}}),ia=new U({props:{name:"__call__",anchor:"transformers.FillMaskPipeline.__call__",parameters:[{name:"inputs",val:""},{name:"*args",val:""},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.FillMaskPipeline.__call__.args",description:`<strong>args</strong> (<code>str</code> or <code>List[str]</code>) &#x2014;
One or several texts (or one list of prompts) with masked tokens.`,name:"args"},{anchor:"transformers.FillMaskPipeline.__call__.targets",description:`<strong>targets</strong> (<code>str</code> or <code>List[str]</code>, <em>optional</em>) &#x2014;
When passed, the model will limit the scores to the passed targets instead of looking up in the whole
vocab. If the provided targets are not in the model vocab, they will be tokenized and the first
resulting token will be used (with a warning, and that might be slower).`,name:"targets"},{anchor:"transformers.FillMaskPipeline.__call__.top_k",description:`<strong>top_k</strong> (<code>int</code>, <em>optional</em>) &#x2014;
When passed, overrides the number of predictions to return.`,name:"top_k"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/pipelines/fill_mask.py#L248",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


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


<p>A list or a list of list of <code>dict</code></p>
`}}),la=new $({props:{title:"NerPipeline",local:"transformers.TokenClassificationPipeline",headingTag:"h3"}}),pa=new U({props:{name:"class transformers.TokenClassificationPipeline",anchor:"transformers.TokenClassificationPipeline",parameters:[{name:"args_parser",val:" = <transformers.pipelines.token_classification.TokenClassificationArgumentHandler object at 0x7fe8efae6d00>"},{name:"*args",val:""},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.TokenClassificationPipeline.model",description:`<strong>model</strong> (<a href="/docs/transformers/main/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> or <a href="/docs/transformers/main/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/main/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> for PyTorch and <a href="/docs/transformers/main/en/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a> for TensorFlow.`,name:"model"},{anchor:"transformers.TokenClassificationPipeline.tokenizer",description:`<strong>tokenizer</strong> (<a href="/docs/transformers/main/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/main/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/main/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/main/src/transformers/pipelines/token_classification.py#L96"}}),Jt=new P({props:{anchor:"transformers.TokenClassificationPipeline.example",$$slots:{default:[Iw]},$$scope:{ctx:j}}}),ca=new U({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/main/src/transformers/pipelines/token_classification.py#L470"}}),da=new U({props:{name:"gather_pre_entities",anchor:"transformers.TokenClassificationPipeline.gather_pre_entities",parameters:[{name:"sentence",val:": str"},{name:"input_ids",val:": ndarray"},{name:"scores",val:": ndarray"},{name:"offset_mapping",val:": 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/main/src/transformers/pipelines/token_classification.py#L356"}}),ma=new U({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/main/src/transformers/pipelines/token_classification.py#L533"}}),ha=new U({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/main/src/transformers/pipelines/token_classification.py#L498"}}),ga=new $({props:{title:"QuestionAnsweringPipeline",local:"transformers.QuestionAnsweringPipeline",headingTag:"h3"}}),ua=new U({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/main/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> or <a href="/docs/transformers/main/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/main/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> for PyTorch and <a href="/docs/transformers/main/en/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a> for TensorFlow.`,name:"model"},{anchor:"transformers.QuestionAnsweringPipeline.tokenizer",description:`<strong>tokenizer</strong> (<a href="/docs/transformers/main/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/main/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/main/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/main/src/transformers/pipelines/question_answering.py#L225"}}),qt=new P({props:{anchor:"transformers.QuestionAnsweringPipeline.example",$$slots:{default:[qw]},$$scope:{ctx:j}}}),Ta=new U({props:{name:"__call__",anchor:"transformers.QuestionAnsweringPipeline.__call__",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.QuestionAnsweringPipeline.__call__.args",description:`<strong>args</strong> (<code>SquadExample</code> or a list of <code>SquadExample</code>) &#x2014;
One or several <code>SquadExample</code> containing the question and context.`,name:"args"},{anchor:"transformers.QuestionAnsweringPipeline.__call__.X",description:`<strong>X</strong> (<code>SquadExample</code> or a list of <code>SquadExample</code>, <em>optional</em>) &#x2014;
One or several <code>SquadExample</code> containing the question and context (will be treated the same way as if
passed as the first positional argument).`,name:"X"},{anchor:"transformers.QuestionAnsweringPipeline.__call__.data",description:`<strong>data</strong> (<code>SquadExample</code> or a list of <code>SquadExample</code>, <em>optional</em>) &#x2014;
One or several <code>SquadExample</code> containing the question and context (will be treated the same way as if
passed as the first positional argument).`,name:"data"},{anchor:"transformers.QuestionAnsweringPipeline.__call__.question",description:`<strong>question</strong> (<code>str</code> or <code>List[str]</code>) &#x2014;
One or several question(s) (must be used in conjunction with the <code>context</code> argument).`,name:"question"},{anchor:"transformers.QuestionAnsweringPipeline.__call__.context",description:`<strong>context</strong> (<code>str</code> or <code>List[str]</code>) &#x2014;
One or several context(s) associated with the question(s) (must be used in conjunction with the
<code>question</code> argument).`,name:"context"},{anchor:"transformers.QuestionAnsweringPipeline.__call__.topk",description:`<strong>topk</strong> (<code>int</code>, <em>optional</em>, defaults to 1) &#x2014;
The number of answers to return (will be chosen by order of likelihood). Note that we return less than
topk answers if there are not enough options available within the context.`,name:"topk"},{anchor:"transformers.QuestionAnsweringPipeline.__call__.doc_stride",description:`<strong>doc_stride</strong> (<code>int</code>, <em>optional</em>, defaults to 128) &#x2014;
If the context is too long to fit with the question for the model, it will be split in several chunks
with some overlap. This argument controls the size of that overlap.`,name:"doc_stride"},{anchor:"transformers.QuestionAnsweringPipeline.__call__.max_answer_len",description:`<strong>max_answer_len</strong> (<code>int</code>, <em>optional</em>, defaults to 15) &#x2014;
The maximum length of predicted answers (e.g., only answers with a shorter length are considered).`,name:"max_answer_len"},{anchor:"transformers.QuestionAnsweringPipeline.__call__.max_seq_len",description:`<strong>max_seq_len</strong> (<code>int</code>, <em>optional</em>, defaults to 384) &#x2014;
The maximum length of the total sentence (context + question) in tokens of each chunk passed to the
model. The context will be split in several chunks (using <code>doc_stride</code> as overlap) if needed.`,name:"max_seq_len"},{anchor:"transformers.QuestionAnsweringPipeline.__call__.max_question_len",description:`<strong>max_question_len</strong> (<code>int</code>, <em>optional</em>, defaults to 64) &#x2014;
The maximum length of the question after tokenization. It will be truncated if needed.`,name:"max_question_len"},{anchor:"transformers.QuestionAnsweringPipeline.__call__.handle_impossible_answer",description:`<strong>handle_impossible_answer</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not we accept impossible as an answer.`,name:"handle_impossible_answer"},{anchor:"transformers.QuestionAnsweringPipeline.__call__.align_to_words",description:`<strong>align_to_words</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Attempts to align the answer to real words. Improves quality on space separated langages. Might hurt on
non-space-separated languages (like Japanese or Chinese)`,name:"align_to_words"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/pipelines/question_answering.py#L343",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


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


<p>A <code>dict</code> or a list of <code>dict</code></p>
`}}),ba=new U({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/main/src/transformers/pipelines/question_answering.py#L278",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


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


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


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


<p>Dictionary like \`{‘answer’</p>
`}}),wa=new $({props:{title:"SummarizationPipeline",local:"transformers.SummarizationPipeline",headingTag:"h3"}}),xa=new U({props:{name:"class transformers.SummarizationPipeline",anchor:"transformers.SummarizationPipeline",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.SummarizationPipeline.model",description:`<strong>model</strong> (<a href="/docs/transformers/main/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> or <a href="/docs/transformers/main/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/main/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> for PyTorch and <a href="/docs/transformers/main/en/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a> for TensorFlow.`,name:"model"},{anchor:"transformers.SummarizationPipeline.tokenizer",description:`<strong>tokenizer</strong> (<a href="/docs/transformers/main/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/main/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/main/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/main/src/transformers/pipelines/text2text_generation.py#L217"}}),Zt=new P({props:{anchor:"transformers.SummarizationPipeline.example",$$slots:{default:[zw]},$$scope:{ctx:j}}}),Ma=new U({props:{name:"__call__",anchor:"transformers.SummarizationPipeline.__call__",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.SummarizationPipeline.__call__.documents",description:`<strong>documents</strong> (<em>str</em> or <code>List[str]</code>) &#x2014;
One or several articles (or one list of articles) to summarize.`,name:"documents"},{anchor:"transformers.SummarizationPipeline.__call__.return_text",description:`<strong>return_text</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Whether or not to include the decoded texts in the outputs`,name:"return_text"},{anchor:"transformers.SummarizationPipeline.__call__.return_tensors",description:`<strong>return_tensors</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to include the tensors of predictions (as token indices) in the outputs.`,name:"return_tensors"},{anchor:"transformers.SummarizationPipeline.__call__.clean_up_tokenization_spaces",description:`<strong>clean_up_tokenization_spaces</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to clean up the potential extra spaces in the text output.
generate_kwargs &#x2014;
Additional keyword arguments to pass along to the generate method of the model (see the generate method
corresponding to your framework <a href="./model#generative-models">here</a>).`,name:"clean_up_tokenization_spaces"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/pipelines/text2text_generation.py#L245",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


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


<p>A list or a list of list of <code>dict</code></p>
`}}),_a=new $({props:{title:"TableQuestionAnsweringPipeline",local:"transformers.TableQuestionAnsweringPipeline",headingTag:"h3"}}),ka=new U({props:{name:"class transformers.TableQuestionAnsweringPipeline",anchor:"transformers.TableQuestionAnsweringPipeline",parameters:[{name:"args_parser",val:" = <transformers.pipelines.table_question_answering.TableQuestionAnsweringArgumentHandler object at 0x7fe8a003b400>"},{name:"*args",val:""},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.TableQuestionAnsweringPipeline.model",description:`<strong>model</strong> (<a href="/docs/transformers/main/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> or <a href="/docs/transformers/main/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/main/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> for PyTorch and <a href="/docs/transformers/main/en/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a> for TensorFlow.`,name:"model"},{anchor:"transformers.TableQuestionAnsweringPipeline.tokenizer",description:`<strong>tokenizer</strong> (<a href="/docs/transformers/main/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/main/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/main/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/main/src/transformers/pipelines/table_question_answering.py#L88"}}),Dt=new P({props:{anchor:"transformers.TableQuestionAnsweringPipeline.example",$$slots:{default:[Gw]},$$scope:{ctx:j}}}),Ua=new U({props:{name:"__call__",anchor:"transformers.TableQuestionAnsweringPipeline.__call__",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.TableQuestionAnsweringPipeline.__call__.table",description:`<strong>table</strong> (<code>pd.DataFrame</code> or <code>Dict</code>) &#x2014;
Pandas DataFrame or dictionary that will be converted to a DataFrame containing all the table values.
See above for an example of dictionary.`,name:"table"},{anchor:"transformers.TableQuestionAnsweringPipeline.__call__.query",description:`<strong>query</strong> (<code>str</code> or <code>List[str]</code>) &#x2014;
Query or list of queries that will be sent to the model alongside the table.`,name:"query"},{anchor:"transformers.TableQuestionAnsweringPipeline.__call__.sequential",description:`<strong>sequential</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether to do inference sequentially or as a batch. Batching is faster, but models like SQA require the
inference to be done sequentially to extract relations within sequences, given their conversational
nature.`,name:"sequential"},{anchor:"transformers.TableQuestionAnsweringPipeline.__call__.padding",description:`<strong>padding</strong> (<code>bool</code>, <code>str</code> or <a href="/docs/transformers/main/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/main/src/transformers/pipelines/table_question_answering.py#L270",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


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


<p>A dictionary or a list of dictionaries containing results</p>
`}}),Rt=new P({props:{anchor:"transformers.TableQuestionAnsweringPipeline.__call__.example",$$slots:{default:[Zw]},$$scope:{ctx:j}}}),Nt=new P({props:{anchor:"transformers.TableQuestionAnsweringPipeline.__call__.example-2",$$slots:{default:[Fw]},$$scope:{ctx:j}}}),ja=new $({props:{title:"TextClassificationPipeline",local:"transformers.TextClassificationPipeline",headingTag:"h3"}}),va=new U({props:{name:"class transformers.TextClassificationPipeline",anchor:"transformers.TextClassificationPipeline",parameters:[{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.TextClassificationPipeline.model",description:`<strong>model</strong> (<a href="/docs/transformers/main/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> or <a href="/docs/transformers/main/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/main/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> for PyTorch and <a href="/docs/transformers/main/en/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a> for TensorFlow.`,name:"model"},{anchor:"transformers.TextClassificationPipeline.tokenizer",description:`<strong>tokenizer</strong> (<a href="/docs/transformers/main/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/main/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/main/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/main/src/transformers/pipelines/text_classification.py#L49"}}),Vt=new P({props:{anchor:"transformers.TextClassificationPipeline.example",$$slots:{default:[Dw]},$$scope:{ctx:j}}}),$a=new U({props:{name:"__call__",anchor:"transformers.TextClassificationPipeline.__call__",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.TextClassificationPipeline.__call__.args",description:`<strong>args</strong> (<code>str</code> or <code>List[str]</code> or <code>Dict[str]</code>, or <code>List[Dict[str]]</code>) &#x2014;
One or several texts to classify. In order to use text pairs for your classification, you can send a
dictionary containing <code>{&quot;text&quot;, &quot;text_pair&quot;}</code> keys, or a list of those.`,name:"args"},{anchor:"transformers.TextClassificationPipeline.__call__.top_k",description:`<strong>top_k</strong> (<code>int</code>, <em>optional</em>, defaults to <code>1</code>) &#x2014;
How many results to return.`,name:"top_k"},{anchor:"transformers.TextClassificationPipeline.__call__.function_to_apply",description:`<strong>function_to_apply</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;default&quot;</code>) &#x2014;
The function to apply to the model outputs in order to retrieve the scores. Accepts four different
values:</p>
<p>If this argument is not specified, then it will apply the following functions according to the number
of labels:</p>
<ul>
<li>If the model has a single label, will apply the sigmoid function on the output.</li>
<li>If the model has several labels, will apply the softmax function on the output.</li>
</ul>
<p>Possible values are:</p>
<ul>
<li><code>&quot;sigmoid&quot;</code>: Applies the sigmoid function on the output.</li>
<li><code>&quot;softmax&quot;</code>: Applies the softmax function on the output.</li>
<li><code>&quot;none&quot;</code>: Does not apply any function on the output.</li>
</ul>`,name:"function_to_apply"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/pipelines/text_classification.py#L122",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


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


<p>A list or a list of list of <code>dict</code></p>
`}}),Ja=new $({props:{title:"TextGenerationPipeline",local:"transformers.TextGenerationPipeline",headingTag:"h3"}}),Pa=new U({props:{name:"class transformers.TextGenerationPipeline",anchor:"transformers.TextGenerationPipeline",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.TextGenerationPipeline.model",description:`<strong>model</strong> (<a href="/docs/transformers/main/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> or <a href="/docs/transformers/main/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/main/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> for PyTorch and <a href="/docs/transformers/main/en/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a> for TensorFlow.`,name:"model"},{anchor:"transformers.TextGenerationPipeline.tokenizer",description:`<strong>tokenizer</strong> (<a href="/docs/transformers/main/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/main/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/main/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/main/src/transformers/pipelines/text_generation.py#L24"}}),Bt=new P({props:{anchor:"transformers.TextGenerationPipeline.example",$$slots:{default:[Rw]},$$scope:{ctx:j}}}),Ca=new U({props:{name:"__call__",anchor:"transformers.TextGenerationPipeline.__call__",parameters:[{name:"text_inputs",val:""},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.TextGenerationPipeline.__call__.args",description:`<strong>args</strong> (<code>str</code> or <code>List[str]</code>) &#x2014;
One or several prompts (or one list of prompts) to complete.`,name:"args"},{anchor:"transformers.TextGenerationPipeline.__call__.return_tensors",description:`<strong>return_tensors</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to return the tensors of predictions (as token indices) in the outputs. If set to
<code>True</code>, the decoded text is not returned.`,name:"return_tensors"},{anchor:"transformers.TextGenerationPipeline.__call__.return_text",description:`<strong>return_text</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Whether or not to return the decoded texts in the outputs.`,name:"return_text"},{anchor:"transformers.TextGenerationPipeline.__call__.return_full_text",description:`<strong>return_full_text</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
If set to <code>False</code> only added text is returned, otherwise the full text is returned. Only meaningful if
<em>return_text</em> is set to True.`,name:"return_full_text"},{anchor:"transformers.TextGenerationPipeline.__call__.clean_up_tokenization_spaces",description:`<strong>clean_up_tokenization_spaces</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to clean up the potential extra spaces in the text output.`,name:"clean_up_tokenization_spaces"},{anchor:"transformers.TextGenerationPipeline.__call__.prefix",description:`<strong>prefix</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Prefix added to prompt.`,name:"prefix"},{anchor:"transformers.TextGenerationPipeline.__call__.handle_long_generation",description:`<strong>handle_long_generation</strong> (<code>str</code>, <em>optional</em>) &#x2014;
By default, this pipelines does not handle long generation (ones that exceed in one form or the other
the model maximum length). There is no perfect way to adress this (more info
:<a href="https://github.com/huggingface/transformers/issues/14033#issuecomment-948385227" rel="nofollow">https://github.com/huggingface/transformers/issues/14033#issuecomment-948385227</a>). This provides common
strategies to work around that problem depending on your use case.</p>
<ul>
<li><code>None</code> : default strategy where nothing in particular happens</li>
<li><code>&quot;hole&quot;</code>: Truncates left of input, and leaves a gap wide enough to let generation happen (might
truncate a lot of the prompt and not suitable when generation exceed the model capacity)</li>
</ul>
<p>generate_kwargs &#x2014;
Additional keyword arguments to pass along to the generate method of the model (see the generate method
corresponding to your framework <a href="./model#generative-models">here</a>).`,name:"handle_long_generation"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/pipelines/text_generation.py#L167",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


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


<p>A list or a list of list of <code>dict</code></p>
`}}),Ia=new $({props:{title:"Text2TextGenerationPipeline",local:"transformers.Text2TextGenerationPipeline",headingTag:"h3"}}),qa=new U({props:{name:"class transformers.Text2TextGenerationPipeline",anchor:"transformers.Text2TextGenerationPipeline",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.Text2TextGenerationPipeline.model",description:`<strong>model</strong> (<a href="/docs/transformers/main/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> or <a href="/docs/transformers/main/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/main/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> for PyTorch and <a href="/docs/transformers/main/en/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a> for TensorFlow.`,name:"model"},{anchor:"transformers.Text2TextGenerationPipeline.tokenizer",description:`<strong>tokenizer</strong> (<a href="/docs/transformers/main/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/main/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/main/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/main/src/transformers/pipelines/text2text_generation.py#L26"}}),Lt=new P({props:{anchor:"transformers.Text2TextGenerationPipeline.example",$$slots:{default:[Nw]},$$scope:{ctx:j}}}),St=new P({props:{anchor:"transformers.Text2TextGenerationPipeline.example-2",$$slots:{default:[Vw]},$$scope:{ctx:j}}}),za=new U({props:{name:"__call__",anchor:"transformers.Text2TextGenerationPipeline.__call__",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.Text2TextGenerationPipeline.__call__.args",description:`<strong>args</strong> (<code>str</code> or <code>List[str]</code>) &#x2014;
Input text for the encoder.`,name:"args"},{anchor:"transformers.Text2TextGenerationPipeline.__call__.return_tensors",description:`<strong>return_tensors</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to include the tensors of predictions (as token indices) in the outputs.`,name:"return_tensors"},{anchor:"transformers.Text2TextGenerationPipeline.__call__.return_text",description:`<strong>return_text</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Whether or not to include the decoded texts in the outputs.`,name:"return_text"},{anchor:"transformers.Text2TextGenerationPipeline.__call__.clean_up_tokenization_spaces",description:`<strong>clean_up_tokenization_spaces</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to clean up the potential extra spaces in the text output.`,name:"clean_up_tokenization_spaces"},{anchor:"transformers.Text2TextGenerationPipeline.__call__.truncation",description:`<strong>truncation</strong> (<code>TruncationStrategy</code>, <em>optional</em>, defaults to <code>TruncationStrategy.DO_NOT_TRUNCATE</code>) &#x2014;
The truncation strategy for the tokenization within the pipeline. <code>TruncationStrategy.DO_NOT_TRUNCATE</code>
(default) will never truncate, but it is sometimes desirable to truncate the input to fit the model&#x2019;s
max_length instead of throwing an error down the line.
generate_kwargs &#x2014;
Additional keyword arguments to pass along to the generate method of the model (see the generate method
corresponding to your framework <a href="./model#generative-models">here</a>).`,name:"truncation"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/pipelines/text2text_generation.py#L138",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


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


<p>A list or a list of list of <code>dict</code></p>
`}}),Ga=new U({props:{name:"check_inputs",anchor:"transformers.Text2TextGenerationPipeline.check_inputs",parameters:[{name:"input_length",val:": int"},{name:"min_length",val:": int"},{name:"max_length",val:": int"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/pipelines/text2text_generation.py#L111"}}),Za=new $({props:{title:"TokenClassificationPipeline",local:"transformers.TokenClassificationPipeline",headingTag:"h3"}}),Fa=new U({props:{name:"class transformers.TokenClassificationPipeline",anchor:"transformers.TokenClassificationPipeline",parameters:[{name:"args_parser",val:" = <transformers.pipelines.token_classification.TokenClassificationArgumentHandler object at 0x7fe8efae6d00>"},{name:"*args",val:""},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.TokenClassificationPipeline.model",description:`<strong>model</strong> (<a href="/docs/transformers/main/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> or <a href="/docs/transformers/main/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/main/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> for PyTorch and <a href="/docs/transformers/main/en/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a> for TensorFlow.`,name:"model"},{anchor:"transformers.TokenClassificationPipeline.tokenizer",description:`<strong>tokenizer</strong> (<a href="/docs/transformers/main/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/main/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/main/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/main/src/transformers/pipelines/token_classification.py#L96"}}),Yt=new P({props:{anchor:"transformers.TokenClassificationPipeline.example",$$slots:{default:[Aw]},$$scope:{ctx:j}}}),Da=new U({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/main/src/transformers/pipelines/token_classification.py#L219",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


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


<p>A list or a list of list of <code>dict</code></p>
`}}),Ra=new U({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/main/src/transformers/pipelines/token_classification.py#L470"}}),Na=new U({props:{name:"gather_pre_entities",anchor:"transformers.TokenClassificationPipeline.gather_pre_entities",parameters:[{name:"sentence",val:": str"},{name:"input_ids",val:": ndarray"},{name:"scores",val:": ndarray"},{name:"offset_mapping",val:": 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/main/src/transformers/pipelines/token_classification.py#L356"}}),Va=new U({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/main/src/transformers/pipelines/token_classification.py#L533"}}),Aa=new U({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/main/src/transformers/pipelines/token_classification.py#L498"}}),Ba=new $({props:{title:"TranslationPipeline",local:"transformers.TranslationPipeline",headingTag:"h3"}}),Wa=new U({props:{name:"class transformers.TranslationPipeline",anchor:"transformers.TranslationPipeline",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.TranslationPipeline.model",description:`<strong>model</strong> (<a href="/docs/transformers/main/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> or <a href="/docs/transformers/main/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/main/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> for PyTorch and <a href="/docs/transformers/main/en/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a> for TensorFlow.`,name:"model"},{anchor:"transformers.TranslationPipeline.tokenizer",description:`<strong>tokenizer</strong> (<a href="/docs/transformers/main/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/main/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/main/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/main/src/transformers/pipelines/text2text_generation.py#L287"}}),en=new P({props:{anchor:"transformers.TranslationPipeline.example",$$slots:{default:[Bw]},$$scope:{ctx:j}}}),La=new U({props:{name:"__call__",anchor:"transformers.TranslationPipeline.__call__",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.TranslationPipeline.__call__.args",description:`<strong>args</strong> (<code>str</code> or <code>List[str]</code>) &#x2014;
Texts to be translated.`,name:"args"},{anchor:"transformers.TranslationPipeline.__call__.return_tensors",description:`<strong>return_tensors</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to include the tensors of predictions (as token indices) in the outputs.`,name:"return_tensors"},{anchor:"transformers.TranslationPipeline.__call__.return_text",description:`<strong>return_text</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Whether or not to include the decoded texts in the outputs.`,name:"return_text"},{anchor:"transformers.TranslationPipeline.__call__.clean_up_tokenization_spaces",description:`<strong>clean_up_tokenization_spaces</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to clean up the potential extra spaces in the text output.`,name:"clean_up_tokenization_spaces"},{anchor:"transformers.TranslationPipeline.__call__.src_lang",description:`<strong>src_lang</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The language of the input. Might be required for multilingual models. Will not have any effect for
single pair translation models`,name:"src_lang"},{anchor:"transformers.TranslationPipeline.__call__.tgt_lang",description:`<strong>tgt_lang</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The language of the desired output. Might be required for multilingual models. Will not have any effect
for single pair translation models
generate_kwargs &#x2014;
Additional keyword arguments to pass along to the generate method of the model (see the generate method
corresponding to your framework <a href="./model#generative-models">here</a>).`,name:"tgt_lang"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/pipelines/text2text_generation.py#L341",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


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


<p>A list or a list of list of <code>dict</code></p>
`}}),Sa=new $({props:{title:"ZeroShotClassificationPipeline",local:"transformers.ZeroShotClassificationPipeline",headingTag:"h3"}}),Oa=new U({props:{name:"class transformers.ZeroShotClassificationPipeline",anchor:"transformers.ZeroShotClassificationPipeline",parameters:[{name:"args_parser",val:" = <transformers.pipelines.zero_shot_classification.ZeroShotClassificationArgumentHandler object at 0x7fe8efa3d910>"},{name:"*args",val:""},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.ZeroShotClassificationPipeline.model",description:`<strong>model</strong> (<a href="/docs/transformers/main/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> or <a href="/docs/transformers/main/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/main/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> for PyTorch and <a href="/docs/transformers/main/en/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a> for TensorFlow.`,name:"model"},{anchor:"transformers.ZeroShotClassificationPipeline.tokenizer",description:`<strong>tokenizer</strong> (<a href="/docs/transformers/main/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/main/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/main/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/main/src/transformers/pipelines/zero_shot_classification.py#L47"}}),nn=new P({props:{anchor:"transformers.ZeroShotClassificationPipeline.example",$$slots:{default:[Ww]},$$scope:{ctx:j}}}),Ha=new U({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/main/src/transformers/pipelines/zero_shot_classification.py#L163",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


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


<p>A <code>dict</code> or a list of <code>dict</code></p>
`}}),Ya=new $({props:{title:"Multimodal",local:"multimodal",headingTag:"h2"}}),Qa=new $({props:{title:"DocumentQuestionAnsweringPipeline",local:"transformers.DocumentQuestionAnsweringPipeline",headingTag:"h3"}}),Xa=new U({props:{name:"class transformers.DocumentQuestionAnsweringPipeline",anchor:"transformers.DocumentQuestionAnsweringPipeline",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.DocumentQuestionAnsweringPipeline.model",description:`<strong>model</strong> (<a href="/docs/transformers/main/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> or <a href="/docs/transformers/main/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/main/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> for PyTorch and <a href="/docs/transformers/main/en/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a> for TensorFlow.`,name:"model"},{anchor:"transformers.DocumentQuestionAnsweringPipeline.tokenizer",description:`<strong>tokenizer</strong> (<a href="/docs/transformers/main/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/main/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/main/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/main/src/transformers/pipelines/document_question_answering.py#L102"}}),an=new P({props:{anchor:"transformers.DocumentQuestionAnsweringPipeline.example",$$slots:{default:[Lw]},$$scope:{ctx:j}}}),Ka=new U({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/main/src/transformers/pipelines/document_question_answering.py#L194",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


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


<p>A <code>dict</code> or a list of <code>dict</code></p>
`}}),eo=new $({props:{title:"FeatureExtractionPipeline",local:"transformers.FeatureExtractionPipeline",headingTag:"h3"}}),to=new U({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/main/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> or <a href="/docs/transformers/main/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/main/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> for PyTorch and <a href="/docs/transformers/main/en/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a> for TensorFlow.`,name:"model"},{anchor:"transformers.FeatureExtractionPipeline.tokenizer",description:`<strong>tokenizer</strong> (<a href="/docs/transformers/main/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/main/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/main/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/main/src/transformers/pipelines/feature_extraction.py#L7"}}),on=new P({props:{anchor:"transformers.FeatureExtractionPipeline.example",$$slots:{default:[Sw]},$$scope:{ctx:j}}}),no=new U({props:{name:"__call__",anchor:"transformers.FeatureExtractionPipeline.__call__",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.FeatureExtractionPipeline.__call__.args",description:"<strong>args</strong> (<code>str</code> or <code>List[str]</code>) &#x2014; One or several texts (or one list of texts) to get the features of.",name:"args"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/pipelines/feature_extraction.py#L97",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


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


<p>A nested list of <code>float</code></p>
`}}),so=new $({props:{title:"ImageToTextPipeline",local:"transformers.ImageToTextPipeline",headingTag:"h3"}}),ao=new U({props:{name:"class transformers.ImageToTextPipeline",anchor:"transformers.ImageToTextPipeline",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.ImageToTextPipeline.model",description:`<strong>model</strong> (<a href="/docs/transformers/main/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> or <a href="/docs/transformers/main/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/main/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> for PyTorch and <a href="/docs/transformers/main/en/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a> for TensorFlow.`,name:"model"},{anchor:"transformers.ImageToTextPipeline.tokenizer",description:`<strong>tokenizer</strong> (<a href="/docs/transformers/main/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/main/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/main/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/main/src/transformers/pipelines/image_to_text.py#L31"}}),ln=new P({props:{anchor:"transformers.ImageToTextPipeline.example",$$slots:{default:[Ow]},$$scope:{ctx:j}}}),oo=new U({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/main/src/transformers/pipelines/image_to_text.py#L83",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


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


<p>A list or a list of list of <code>dict</code></p>
`}}),ro=new $({props:{title:"VisualQuestionAnsweringPipeline",local:"transformers.VisualQuestionAnsweringPipeline",headingTag:"h3"}}),io=new U({props:{name:"class transformers.VisualQuestionAnsweringPipeline",anchor:"transformers.VisualQuestionAnsweringPipeline",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.VisualQuestionAnsweringPipeline.model",description:`<strong>model</strong> (<a href="/docs/transformers/main/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> or <a href="/docs/transformers/main/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/main/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> for PyTorch and <a href="/docs/transformers/main/en/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a> for TensorFlow.`,name:"model"},{anchor:"transformers.VisualQuestionAnsweringPipeline.tokenizer",description:`<strong>tokenizer</strong> (<a href="/docs/transformers/main/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/main/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/main/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/main/src/transformers/pipelines/visual_question_answering.py#L19"}}),cn=new P({props:{anchor:"transformers.VisualQuestionAnsweringPipeline.example",$$slots:{default:[Hw]},$$scope:{ctx:j}}}),lo=new U({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/main/src/transformers/pipelines/visual_question_answering.py#L70",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


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


<p>A dictionary or a list of dictionaries containing the result. The dictionaries contain the following keys</p>
`}}),po=new $({props:{title:"Parent class: Pipeline",local:"transformers.Pipeline",headingTag:"h2"}}),co=new U({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/main/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> or <a href="/docs/transformers/main/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/main/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> for PyTorch and <a href="/docs/transformers/main/en/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a> for TensorFlow.`,name:"model"},{anchor:"transformers.Pipeline.tokenizer",description:`<strong>tokenizer</strong> (<a href="/docs/transformers/main/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/main/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/main/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/main/src/transformers/pipelines/base.py#L741"}}),mo=new U({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/main/src/transformers/pipelines/base.py#L962"}}),ho=new U({props:{name:"device_placement",anchor:"transformers.Pipeline.device_placement",parameters:[],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/pipelines/base.py#L901",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


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


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


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