import{s as hw,o as fw,n as $}from"../chunks/scheduler.25b97de1.js";import{S as gw,i as uw,g as l,s,r as f,A as Tw,h as c,f as r,c as o,j as U,u as g,x as m,k,y as n,a as d,v as u,d as T,t as y,w as b,m as yw,n as bw}from"../chunks/index.d9030fc9.js";import{T as sc}from"../chunks/Tip.baa67368.js";import{D as j}from"../chunks/Docstring.ffac8efa.js";import{C as v}from"../chunks/CodeBlock.e6cd0d95.js";import{E as P}from"../chunks/ExampleCodeBlock.22dfe688.js";import{H as J,E as ww}from"../chunks/EditOnGithub.91d95064.js";function _w(M){let a;return{c(){a=yw("While there are such optional arguments as `tokenizer`, `feature_extractor`, `image_processor`, and `processor`,\nthey shouldn't be specified all at once. If these components are not provided, `pipeline` will try to load\nrequired ones automatically. In case you want to provide these components explicitly, please refer to a\nspecific pipeline in order to get more details regarding what components are required.")},l(x){a=bw(x,"While there are such optional arguments as `tokenizer`, `feature_extractor`, `image_processor`, and `processor`,\nthey shouldn't be specified all at once. If these components are not provided, `pipeline` will try to load\nrequired ones automatically. In case you want to provide these components explicitly, please refer to a\nspecific pipeline in order to get more details regarding what components are required.")},m(x,h){d(x,a,h)},d(x){x&&r(a)}}}function xw(M){let a,x="Examples:",h,p,w;return p=new v({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMHBpcGVsaW5lJTJDJTIwQXV0b01vZGVsRm9yVG9rZW5DbGFzc2lmaWNhdGlvbiUyQyUyMEF1dG9Ub2tlbml6ZXIlMEElMEElMjMlMjBTZW50aW1lbnQlMjBhbmFseXNpcyUyMHBpcGVsaW5lJTBBYW5hbHl6ZXIlMjAlM0QlMjBwaXBlbGluZSglMjJzZW50aW1lbnQtYW5hbHlzaXMlMjIpJTBBJTBBJTIzJTIwUXVlc3Rpb24lMjBhbnN3ZXJpbmclMjBwaXBlbGluZSUyQyUyMHNwZWNpZnlpbmclMjB0aGUlMjBjaGVja3BvaW50JTIwaWRlbnRpZmllciUwQW9yYWNsZSUyMCUzRCUyMHBpcGVsaW5lKCUwQSUyMCUyMCUyMCUyMCUyMnF1ZXN0aW9uLWFuc3dlcmluZyUyMiUyQyUyMG1vZGVsJTNEJTIyZGlzdGlsYmVydCUyRmRpc3RpbGJlcnQtYmFzZS1jYXNlZC1kaXN0aWxsZWQtc3F1YWQlMjIlMkMlMjB0b2tlbml6ZXIlM0QlMjJnb29nbGUtYmVydCUyRmJlcnQtYmFzZS1jYXNlZCUyMiUwQSklMEElMEElMjMlMjBOYW1lZCUyMGVudGl0eSUyMHJlY29nbml0aW9uJTIwcGlwZWxpbmUlMkMlMjBwYXNzaW5nJTIwaW4lMjBhJTIwc3BlY2lmaWMlMjBtb2RlbCUyMGFuZCUyMHRva2VuaXplciUwQW1vZGVsJTIwJTNEJTIwQXV0b01vZGVsRm9yVG9rZW5DbGFzc2lmaWNhdGlvbi5mcm9tX3ByZXRyYWluZWQoJTIyZGJtZHolMkZiZXJ0LWxhcmdlLWNhc2VkLWZpbmV0dW5lZC1jb25sbDAzLWVuZ2xpc2glMjIpJTBBdG9rZW5pemVyJTIwJTNEJTIwQXV0b1Rva2VuaXplci5mcm9tX3ByZXRyYWluZWQoJTIyZ29vZ2xlLWJlcnQlMkZiZXJ0LWJhc2UtY2FzZWQlMjIpJTBBcmVjb2duaXplciUyMCUzRCUyMHBpcGVsaW5lKCUyMm5lciUyMiUyQyUyMG1vZGVsJTNEbW9kZWwlMkMlMjB0b2tlbml6ZXIlM0R0b2tlbml6ZXIp",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/distilbert-base-cased-distilled-squad&quot;</span>, tokenizer=<span class="hljs-string">&quot;google-bert/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;google-bert/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(){a=l("p"),a.textContent=x,h=s(),f(p.$$.fragment)},l(t){a=c(t,"P",{"data-svelte-h":!0}),m(a)!=="svelte-kvfsh7"&&(a.textContent=x),h=o(t),g(p.$$.fragment,t)},m(t,_){d(t,a,_),d(t,h,_),u(p,t,_),w=!0},p:$,i(t){w||(T(p.$$.fragment,t),w=!0)},o(t){y(p.$$.fragment,t),w=!1},d(t){t&&(r(a),r(h)),b(p,t)}}}function Mw(M){let a,x=`However, this is not automatically a win for performance. It can be either a 10x speedup or 5x slowdown depending
on hardware, data and the actual model being used.`,h,p,w="Example where it’s mostly a speedup:";return{c(){a=l("p"),a.textContent=x,h=s(),p=l("p"),p.textContent=w},l(t){a=c(t,"P",{"data-svelte-h":!0}),m(a)!=="svelte-gpletg"&&(a.textContent=x),h=o(t),p=c(t,"P",{"data-svelte-h":!0}),m(p)!=="svelte-1aumu59"&&(p.textContent=w)},m(t,_){d(t,a,_),d(t,h,_),d(t,p,_)},p:$,d(t){t&&(r(a),r(h),r(p))}}}function Uw(M){let a,x="Example:",h,p,w;return p=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(){a=l("p"),a.textContent=x,h=s(),f(p.$$.fragment)},l(t){a=c(t,"P",{"data-svelte-h":!0}),m(a)!=="svelte-11lpom8"&&(a.textContent=x),h=o(t),g(p.$$.fragment,t)},m(t,_){d(t,a,_),d(t,h,_),u(p,t,_),w=!0},p:$,i(t){w||(T(p.$$.fragment,t),w=!0)},o(t){y(p.$$.fragment,t),w=!1},d(t){t&&(r(a),r(h)),b(p,t)}}}function kw(M){let a,x="Example:",h,p,w;return p=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(){a=l("p"),a.textContent=x,h=s(),f(p.$$.fragment)},l(t){a=c(t,"P",{"data-svelte-h":!0}),m(a)!=="svelte-11lpom8"&&(a.textContent=x),h=o(t),g(p.$$.fragment,t)},m(t,_){d(t,a,_),d(t,h,_),u(p,t,_),w=!0},p:$,i(t){w||(T(p.$$.fragment,t),w=!0)},o(t){y(p.$$.fragment,t),w=!1},d(t){t&&(r(a),r(h)),b(p,t)}}}function jw(M){let a,x="Example:",h,p,w;return p=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(){a=l("p"),a.textContent=x,h=s(),f(p.$$.fragment)},l(t){a=c(t,"P",{"data-svelte-h":!0}),m(a)!=="svelte-11lpom8"&&(a.textContent=x),h=o(t),g(p.$$.fragment,t)},m(t,_){d(t,a,_),d(t,h,_),u(p,t,_),w=!0},p:$,i(t){w||(T(p.$$.fragment,t),w=!0)},o(t){y(p.$$.fragment,t),w=!1},d(t){t&&(r(a),r(h)),b(p,t)}}}function vw(M){let a,x="Example:",h,p,w;return p=new v({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMHBpcGVsaW5lJTBBJTBBbXVzaWNfZ2VuZXJhdG9yJTIwJTNEJTIwcGlwZWxpbmUodGFzayUzRCUyMnRleHQtdG8tYXVkaW8lMjIlMkMlMjBtb2RlbCUzRCUyMmZhY2Vib29rJTJGbXVzaWNnZW4tc21hbGwlMjIlMkMlMjBmcmFtZXdvcmslM0QlMjJwdCUyMiklMEElMEElMjMlMjBkaXZlcnNpZnklMjB0aGUlMjBtdXNpYyUyMGdlbmVyYXRpb24lMjBieSUyMGFkZGluZyUyMHJhbmRvbW5lc3MlMjB3aXRoJTIwYSUyMGhpZ2glMjB0ZW1wZXJhdHVyZSUyMGFuZCUyMHNldCUyMGElMjBtYXhpbXVtJTIwbXVzaWMlMjBsZW5ndGglMEFnZW5lcmF0ZV9rd2FyZ3MlMjAlM0QlMjAlN0IlMEElMjAlMjAlMjAlMjAlMjJkb19zYW1wbGUlMjIlM0ElMjBUcnVlJTJDJTBBJTIwJTIwJTIwJTIwJTIydGVtcGVyYXR1cmUlMjIlM0ElMjAwLjclMkMlMEElMjAlMjAlMjAlMjAlMjJtYXhfbmV3X3Rva2VucyUyMiUzQSUyMDM1JTJDJTBBJTdEJTBBJTBBb3V0cHV0cyUyMCUzRCUyMG11c2ljX2dlbmVyYXRvciglMjJUZWNobm8lMjBtdXNpYyUyMHdpdGglMjBoaWdoJTIwbWVsb2RpYyUyMHJpZmZzJTIyJTJDJTIwZ2VuZXJhdGVfa3dhcmdzJTNEZ2VuZXJhdGVfa3dhcmdzKQ==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> pipeline

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

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

<span class="hljs-meta">&gt;&gt;&gt; </span>outputs = music_generator(<span class="hljs-string">&quot;Techno music with high melodic riffs&quot;</span>, generate_kwargs=generate_kwargs)`,wrap:!1}}),{c(){a=l("p"),a.textContent=x,h=s(),f(p.$$.fragment)},l(t){a=c(t,"P",{"data-svelte-h":!0}),m(a)!=="svelte-11lpom8"&&(a.textContent=x),h=o(t),g(p.$$.fragment,t)},m(t,_){d(t,a,_),d(t,h,_),u(p,t,_),w=!0},p:$,i(t){w||(T(p.$$.fragment,t),w=!0)},o(t){y(p.$$.fragment,t),w=!1},d(t){t&&(r(a),r(h)),b(p,t)}}}function Jw(M){let a,x=`You can specify parameters passed to the model by using <code>TextToAudioPipeline.__call__.forward_params</code> or
<code>TextToAudioPipeline.__call__.generate_kwargs</code>.`,h,p,w;return p=new P({props:{anchor:"transformers.TextToAudioPipeline.example-2",$$slots:{default:[vw]},$$scope:{ctx:M}}}),{c(){a=l("p"),a.innerHTML=x,h=s(),f(p.$$.fragment)},l(t){a=c(t,"P",{"data-svelte-h":!0}),m(a)!=="svelte-1g6q8re"&&(a.innerHTML=x),h=o(t),g(p.$$.fragment,t)},m(t,_){d(t,a,_),d(t,h,_),u(p,t,_),w=!0},p(t,_){const oc={};_&2&&(oc.$$scope={dirty:_,ctx:t}),p.$set(oc)},i(t){w||(T(p.$$.fragment,t),w=!0)},o(t){y(p.$$.fragment,t),w=!1},d(t){t&&(r(a),r(h)),b(p,t)}}}function $w(M){let a,x="The default <code>hypothesis_template</code> is : <code>&quot;This is a sound of {}.&quot;</code>. Make sure you update it for your usage.";return{c(){a=l("p"),a.innerHTML=x},l(h){a=c(h,"P",{"data-svelte-h":!0}),m(a)!=="svelte-2d3hnv"&&(a.innerHTML=x)},m(h,p){d(h,a,p)},p:$,d(h){h&&r(a)}}}function Pw(M){let a,x="Example:",h,p,w;return p=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(){a=l("p"),a.textContent=x,h=s(),f(p.$$.fragment)},l(t){a=c(t,"P",{"data-svelte-h":!0}),m(a)!=="svelte-11lpom8"&&(a.textContent=x),h=o(t),g(p.$$.fragment,t)},m(t,_){d(t,a,_),d(t,h,_),u(p,t,_),w=!0},p:$,i(t){w||(T(p.$$.fragment,t),w=!0)},o(t){y(p.$$.fragment,t),w=!1},d(t){t&&(r(a),r(h)),b(p,t)}}}function Cw(M){let a,x="Example:",h,p,w;return p=new v({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMHBpcGVsaW5lJTBBJTBBZGVwdGhfZXN0aW1hdG9yJTIwJTNEJTIwcGlwZWxpbmUodGFzayUzRCUyMmRlcHRoLWVzdGltYXRpb24lMjIlMkMlMjBtb2RlbCUzRCUyMkxpaGVZb3VuZyUyRmRlcHRoLWFueXRoaW5nLWJhc2UtaGYlMjIpJTBBb3V0cHV0JTIwJTNEJTIwZGVwdGhfZXN0aW1hdG9yKCUyMmh0dHAlM0ElMkYlMkZpbWFnZXMuY29jb2RhdGFzZXQub3JnJTJGdmFsMjAxNyUyRjAwMDAwMDAzOTc2OS5qcGclMjIpJTBBJTIzJTIwVGhpcyUyMGlzJTIwYSUyMHRlbnNvciUyMHdpdGglMjB0aGUlMjB2YWx1ZXMlMjBiZWluZyUyMHRoZSUyMGRlcHRoJTIwZXhwcmVzc2VkJTIwaW4lMjBtZXRlcnMlMjBmb3IlMjBlYWNoJTIwcGl4ZWwlMEFvdXRwdXQlNUIlMjJwcmVkaWN0ZWRfZGVwdGglMjIlNUQuc2hhcGU=",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;LiheYoung/depth-anything-base-hf&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(){a=l("p"),a.textContent=x,h=s(),f(p.$$.fragment)},l(t){a=c(t,"P",{"data-svelte-h":!0}),m(a)!=="svelte-11lpom8"&&(a.textContent=x),h=o(t),g(p.$$.fragment,t)},m(t,_){d(t,a,_),d(t,h,_),u(p,t,_),w=!0},p:$,i(t){w||(T(p.$$.fragment,t),w=!0)},o(t){y(p.$$.fragment,t),w=!1},d(t){t&&(r(a),r(h)),b(p,t)}}}function Iw(M){let a,x="Example:",h,p,w;return p=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(){a=l("p"),a.textContent=x,h=s(),f(p.$$.fragment)},l(t){a=c(t,"P",{"data-svelte-h":!0}),m(a)!=="svelte-11lpom8"&&(a.textContent=x),h=o(t),g(p.$$.fragment,t)},m(t,_){d(t,a,_),d(t,h,_),u(p,t,_),w=!0},p:$,i(t){w||(T(p.$$.fragment,t),w=!0)},o(t){y(p.$$.fragment,t),w=!1},d(t){t&&(r(a),r(h)),b(p,t)}}}function qw(M){let a,x="Example:",h,p,w;return p=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(){a=l("p"),a.textContent=x,h=s(),f(p.$$.fragment)},l(t){a=c(t,"P",{"data-svelte-h":!0}),m(a)!=="svelte-11lpom8"&&(a.textContent=x),h=o(t),g(p.$$.fragment,t)},m(t,_){d(t,a,_),d(t,h,_),u(p,t,_),w=!0},p:$,i(t){w||(T(p.$$.fragment,t),w=!0)},o(t){y(p.$$.fragment,t),w=!1},d(t){t&&(r(a),r(h)),b(p,t)}}}function Gw(M){let a,x="Example:",h,p,w;return p=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(){a=l("p"),a.textContent=x,h=s(),f(p.$$.fragment)},l(t){a=c(t,"P",{"data-svelte-h":!0}),m(a)!=="svelte-11lpom8"&&(a.textContent=x),h=o(t),g(p.$$.fragment,t)},m(t,_){d(t,a,_),d(t,h,_),u(p,t,_),w=!0},p:$,i(t){w||(T(p.$$.fragment,t),w=!0)},o(t){y(p.$$.fragment,t),w=!1},d(t){t&&(r(a),r(h)),b(p,t)}}}function Zw(M){let a,x="Example:",h,p,w;return p=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(){a=l("p"),a.textContent=x,h=s(),f(p.$$.fragment)},l(t){a=c(t,"P",{"data-svelte-h":!0}),m(a)!=="svelte-11lpom8"&&(a.textContent=x),h=o(t),g(p.$$.fragment,t)},m(t,_){d(t,a,_),d(t,h,_),u(p,t,_),w=!0},p:$,i(t){w||(T(p.$$.fragment,t),w=!0)},o(t){y(p.$$.fragment,t),w=!1},d(t){t&&(r(a),r(h)),b(p,t)}}}function Fw(M){let a,x="Example:",h,p,w;return p=new v({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMHBpcGVsaW5lJTBBJTBBY2xhc3NpZmllciUyMCUzRCUyMHBpcGVsaW5lKG1vZGVsJTNEJTIyZ29vZ2xlJTJGc2lnbGlwLXNvNDAwbS1wYXRjaDE0LTM4NCUyMiklMEFjbGFzc2lmaWVyKCUwQSUyMCUyMCUyMCUyMCUyMmh0dHBzJTNBJTJGJTJGaHVnZ2luZ2ZhY2UuY28lMkZkYXRhc2V0cyUyRk5hcnNpbCUyRmltYWdlX2R1bW15JTJGcmF3JTJGbWFpbiUyRnBhcnJvdHMucG5nJTIyJTJDJTBBJTIwJTIwJTIwJTIwY2FuZGlkYXRlX2xhYmVscyUzRCU1QiUyMmFuaW1hbHMlMjIlMkMlMjAlMjJodW1hbnMlMjIlMkMlMjAlMjJsYW5kc2NhcGUlMjIlNUQlMkMlMEEpJTBBJTBBY2xhc3NpZmllciglMEElMjAlMjAlMjAlMjAlMjJodHRwcyUzQSUyRiUyRmh1Z2dpbmdmYWNlLmNvJTJGZGF0YXNldHMlMkZOYXJzaWwlMkZpbWFnZV9kdW1teSUyRnJhdyUyRm1haW4lMkZwYXJyb3RzLnBuZyUyMiUyQyUwQSUyMCUyMCUyMCUyMGNhbmRpZGF0ZV9sYWJlbHMlM0QlNUIlMjJibGFjayUyMGFuZCUyMHdoaXRlJTIyJTJDJTIwJTIycGhvdG9yZWFsaXN0JTIyJTJDJTIwJTIycGFpbnRpbmclMjIlNUQlMkMlMEEp",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;google/siglip-so400m-patch14-384&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(){a=l("p"),a.textContent=x,h=s(),f(p.$$.fragment)},l(t){a=c(t,"P",{"data-svelte-h":!0}),m(a)!=="svelte-11lpom8"&&(a.textContent=x),h=o(t),g(p.$$.fragment,t)},m(t,_){d(t,a,_),d(t,h,_),u(p,t,_),w=!0},p:$,i(t){w||(T(p.$$.fragment,t),w=!0)},o(t){y(p.$$.fragment,t),w=!1},d(t){t&&(r(a),r(h)),b(p,t)}}}function zw(M){let a,x="Example:",h,p,w;return p=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(){a=l("p"),a.textContent=x,h=s(),f(p.$$.fragment)},l(t){a=c(t,"P",{"data-svelte-h":!0}),m(a)!=="svelte-11lpom8"&&(a.textContent=x),h=o(t),g(p.$$.fragment,t)},m(t,_){d(t,a,_),d(t,h,_),u(p,t,_),w=!0},p:$,i(t){w||(T(p.$$.fragment,t),w=!0)},o(t){y(p.$$.fragment,t),w=!1},d(t){t&&(r(a),r(h)),b(p,t)}}}function Bw(M){let a,x="Example:",h,p,w;return p=new v({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMHBpcGVsaW5lJTBBJTBBZmlsbF9tYXNrZXIlMjAlM0QlMjBwaXBlbGluZShtb2RlbCUzRCUyMmdvb2dsZS1iZXJ0JTJGYmVydC1iYXNlLXVuY2FzZWQlMjIpJTBBZmlsbF9tYXNrZXIoJTIyVGhpcyUyMGlzJTIwYSUyMHNpbXBsZSUyMCU1Qk1BU0slNUQuJTIyKQ==",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;google-bert/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(){a=l("p"),a.textContent=x,h=s(),f(p.$$.fragment)},l(t){a=c(t,"P",{"data-svelte-h":!0}),m(a)!=="svelte-11lpom8"&&(a.textContent=x),h=o(t),g(p.$$.fragment,t)},m(t,_){d(t,a,_),d(t,h,_),u(p,t,_),w=!0},p:$,i(t){w||(T(p.$$.fragment,t),w=!0)},o(t){y(p.$$.fragment,t),w=!1},d(t){t&&(r(a),r(h)),b(p,t)}}}function Rw(M){let a,x=`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(){a=l("p"),a.innerHTML=x},l(h){a=c(h,"P",{"data-svelte-h":!0}),m(a)!=="svelte-126iymh"&&(a.innerHTML=x)},m(h,p){d(h,a,p)},p:$,d(h){h&&r(a)}}}function Dw(M){let a,x="This pipeline now supports tokenizer_kwargs. For example try:",h,p,w;return p=new v({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMHBpcGVsaW5lJTBBJTBBZmlsbF9tYXNrZXIlMjAlM0QlMjBwaXBlbGluZShtb2RlbCUzRCUyMmdvb2dsZS1iZXJ0JTJGYmVydC1iYXNlLXVuY2FzZWQlMjIpJTBBdG9rZW5pemVyX2t3YXJncyUyMCUzRCUyMCU3QiUyMnRydW5jYXRpb24lMjIlM0ElMjBUcnVlJTdEJTBBZmlsbF9tYXNrZXIoJTBBJTIwJTIwJTIwJTIwJTIyVGhpcyUyMGlzJTIwYSUyMHNpbXBsZSUyMCU1Qk1BU0slNUQuJTIwJTIyJTIwJTJCJTIwJTIyLi4ud2l0aCUyMGElMjBsYXJnZSUyMGFtb3VudCUyMG9mJTIwcmVwZWF0ZWQlMjB0ZXh0JTIwYXBwZW5kZWQuJTIwJTIyJTIwKiUyMDEwMCUyQyUwQSUyMCUyMCUyMCUyMHRva2VuaXplcl9rd2FyZ3MlM0R0b2tlbml6ZXJfa3dhcmdzJTJDJTBBKQ==",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;google-bert/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(){a=l("p"),a.textContent=x,h=s(),f(p.$$.fragment)},l(t){a=c(t,"P",{"data-svelte-h":!0}),m(a)!=="svelte-1pudxyz"&&(a.textContent=x),h=o(t),g(p.$$.fragment,t)},m(t,_){d(t,a,_),d(t,h,_),u(p,t,_),w=!0},p:$,i(t){w||(T(p.$$.fragment,t),w=!0)},o(t){y(p.$$.fragment,t),w=!1},d(t){t&&(r(a),r(h)),b(p,t)}}}function Nw(M){let a,x;return a=new P({props:{anchor:"transformers.FillMaskPipeline.example-2",$$slots:{default:[Dw]},$$scope:{ctx:M}}}),{c(){f(a.$$.fragment)},l(h){g(a.$$.fragment,h)},m(h,p){u(a,h,p),x=!0},p(h,p){const w={};p&2&&(w.$$scope={dirty:p,ctx:h}),a.$set(w)},i(h){x||(T(a.$$.fragment,h),x=!0)},o(h){y(a.$$.fragment,h),x=!1},d(h){b(a,h)}}}function Aw(M){let a,x="Example:",h,p,w;return p=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(){a=l("p"),a.textContent=x,h=s(),f(p.$$.fragment)},l(t){a=c(t,"P",{"data-svelte-h":!0}),m(a)!=="svelte-11lpom8"&&(a.textContent=x),h=o(t),g(p.$$.fragment,t)},m(t,_){d(t,a,_),d(t,h,_),u(p,t,_),w=!0},p:$,i(t){w||(T(p.$$.fragment,t),w=!0)},o(t){y(p.$$.fragment,t),w=!1},d(t){t&&(r(a),r(h)),b(p,t)}}}function Vw(M){let a,x="Usage:",h,p,w;return p=new v({props:{code:"JTIzJTIwdXNlJTIwYmFydCUyMGluJTIwcHl0b3JjaCUwQXN1bW1hcml6ZXIlMjAlM0QlMjBwaXBlbGluZSglMjJzdW1tYXJpemF0aW9uJTIyKSUwQXN1bW1hcml6ZXIoJTIyQW4lMjBhcHBsZSUyMGElMjBkYXklMkMlMjBrZWVwcyUyMHRoZSUyMGRvY3RvciUyMGF3YXklMjIlMkMlMjBtaW5fbGVuZ3RoJTNENSUyQyUyMG1heF9sZW5ndGglM0QyMCklMEElMEElMjMlMjB1c2UlMjB0NSUyMGluJTIwdGYlMEFzdW1tYXJpemVyJTIwJTNEJTIwcGlwZWxpbmUoJTIyc3VtbWFyaXphdGlvbiUyMiUyQyUyMG1vZGVsJTNEJTIyZ29vZ2xlLXQ1JTJGdDUtYmFzZSUyMiUyQyUyMHRva2VuaXplciUzRCUyMmdvb2dsZS10NSUyRnQ1LWJhc2UlMjIlMkMlMjBmcmFtZXdvcmslM0QlMjJ0ZiUyMiklMEFzdW1tYXJpemVyKCUyMkFuJTIwYXBwbGUlMjBhJTIwZGF5JTJDJTIwa2VlcHMlMjB0aGUlMjBkb2N0b3IlMjBhd2F5JTIyJTJDJTIwbWluX2xlbmd0aCUzRDUlMkMlMjBtYXhfbGVuZ3RoJTNEMjAp",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;google-t5/t5-base&quot;</span>, tokenizer=<span class="hljs-string">&quot;google-t5/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(){a=l("p"),a.textContent=x,h=s(),f(p.$$.fragment)},l(t){a=c(t,"P",{"data-svelte-h":!0}),m(a)!=="svelte-5wyjqd"&&(a.textContent=x),h=o(t),g(p.$$.fragment,t)},m(t,_){d(t,a,_),d(t,h,_),u(p,t,_),w=!0},p:$,i(t){w||(T(p.$$.fragment,t),w=!0)},o(t){y(p.$$.fragment,t),w=!1},d(t){t&&(r(a),r(h)),b(p,t)}}}function Sw(M){let a,x="Example:",h,p,w;return p=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(){a=l("p"),a.textContent=x,h=s(),f(p.$$.fragment)},l(t){a=c(t,"P",{"data-svelte-h":!0}),m(a)!=="svelte-11lpom8"&&(a.textContent=x),h=o(t),g(p.$$.fragment,t)},m(t,_){d(t,a,_),d(t,h,_),u(p,t,_),w=!0},p:$,i(t){w||(T(p.$$.fragment,t),w=!0)},o(t){y(p.$$.fragment,t),w=!1},d(t){t&&(r(a),r(h)),b(p,t)}}}function Ww(M){let a,x="Example:",h,p,w;return p=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(){a=l("p"),a.textContent=x,h=s(),f(p.$$.fragment)},l(t){a=c(t,"P",{"data-svelte-h":!0}),m(a)!=="svelte-11lpom8"&&(a.textContent=x),h=o(t),g(p.$$.fragment,t)},m(t,_){d(t,a,_),d(t,h,_),u(p,t,_),w=!0},p:$,i(t){w||(T(p.$$.fragment,t),w=!0)},o(t){y(p.$$.fragment,t),w=!1},d(t){t&&(r(a),r(h)),b(p,t)}}}function Lw(M){let a,x="Example:",h,p,w;return p=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(){a=l("p"),a.textContent=x,h=s(),f(p.$$.fragment)},l(t){a=c(t,"P",{"data-svelte-h":!0}),m(a)!=="svelte-11lpom8"&&(a.textContent=x),h=o(t),g(p.$$.fragment,t)},m(t,_){d(t,a,_),d(t,h,_),u(p,t,_),w=!0},p:$,i(t){w||(T(p.$$.fragment,t),w=!0)},o(t){y(p.$$.fragment,t),w=!1},d(t){t&&(r(a),r(h)),b(p,t)}}}function Hw(M){let a,x="Example:",h,p,w;return p=new v({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMHBpcGVsaW5lJTBBJTBBY2xhc3NpZmllciUyMCUzRCUyMHBpcGVsaW5lKG1vZGVsJTNEJTIyZGlzdGlsYmVydCUyRmRpc3RpbGJlcnQtYmFzZS11bmNhc2VkLWZpbmV0dW5lZC1zc3QtMi1lbmdsaXNoJTIyKSUwQWNsYXNzaWZpZXIoJTIyVGhpcyUyMG1vdmllJTIwaXMlMjBkaXNndXN0aW5nbHklMjBnb29kJTIwISUyMiklMEElMEFjbGFzc2lmaWVyKCUyMkRpcmVjdG9yJTIwdHJpZWQlMjB0b28lMjBtdWNoLiUyMik=",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/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(){a=l("p"),a.textContent=x,h=s(),f(p.$$.fragment)},l(t){a=c(t,"P",{"data-svelte-h":!0}),m(a)!=="svelte-11lpom8"&&(a.textContent=x),h=o(t),g(p.$$.fragment,t)},m(t,_){d(t,a,_),d(t,h,_),u(p,t,_),w=!0},p:$,i(t){w||(T(p.$$.fragment,t),w=!0)},o(t){y(p.$$.fragment,t),w=!1},d(t){t&&(r(a),r(h)),b(p,t)}}}function Yw(M){let a,x="Examples:",h,p,w;return p=new v({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMHBpcGVsaW5lJTBBJTBBZ2VuZXJhdG9yJTIwJTNEJTIwcGlwZWxpbmUobW9kZWwlM0QlMjJvcGVuYWktY29tbXVuaXR5JTJGZ3B0MiUyMiklMEFnZW5lcmF0b3IoJTIySSUyMGNhbid0JTIwYmVsaWV2ZSUyMHlvdSUyMGRpZCUyMHN1Y2glMjBhJTIwJTIyJTJDJTIwZG9fc2FtcGxlJTNERmFsc2UpJTBBJTBBJTIzJTIwVGhlc2UlMjBwYXJhbWV0ZXJzJTIwd2lsbCUyMHJldHVybiUyMHN1Z2dlc3Rpb25zJTJDJTIwYW5kJTIwb25seSUyMHRoZSUyMG5ld2x5JTIwY3JlYXRlZCUyMHRleHQlMjBtYWtpbmclMjBpdCUyMGVhc2llciUyMGZvciUyMHByb21wdGluZyUyMHN1Z2dlc3Rpb25zLiUwQW91dHB1dHMlMjAlM0QlMjBnZW5lcmF0b3IoJTIyTXklMjB0YXJ0JTIwbmVlZHMlMjBzb21lJTIyJTJDJTIwbnVtX3JldHVybl9zZXF1ZW5jZXMlM0Q0JTJDJTIwcmV0dXJuX2Z1bGxfdGV4dCUzREZhbHNlKQ==",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;openai-community/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(){a=l("p"),a.textContent=x,h=s(),f(p.$$.fragment)},l(t){a=c(t,"P",{"data-svelte-h":!0}),m(a)!=="svelte-kvfsh7"&&(a.textContent=x),h=o(t),g(p.$$.fragment,t)},m(t,_){d(t,a,_),d(t,h,_),u(p,t,_),w=!0},p:$,i(t){w||(T(p.$$.fragment,t),w=!0)},o(t){y(p.$$.fragment,t),w=!1},d(t){t&&(r(a),r(h)),b(p,t)}}}function Ow(M){let a,x;return a=new v({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMHBpcGVsaW5lJTBBJTBBZ2VuZXJhdG9yJTIwJTNEJTIwcGlwZWxpbmUobW9kZWwlM0QlMjJIdWdnaW5nRmFjZUg0JTJGemVwaHlyLTdiLWJldGElMjIpJTBBJTIzJTIwWmVwaHlyLWJldGElMjBpcyUyMGElMjBjb252ZXJzYXRpb25hbCUyMG1vZGVsJTJDJTIwc28lMjBsZXQncyUyMHBhc3MlMjBpdCUyMGElMjBjaGF0JTIwaW5zdGVhZCUyMG9mJTIwYSUyMHNpbmdsZSUyMHN0cmluZyUwQWdlbmVyYXRvciglNUIlN0IlMjJyb2xlJTIyJTNBJTIwJTIydXNlciUyMiUyQyUyMCUyMmNvbnRlbnQlMjIlM0ElMjAlMjJXaGF0JTIwaXMlMjB0aGUlMjBjYXBpdGFsJTIwb2YlMjBGcmFuY2UlM0YlMjBBbnN3ZXIlMjBpbiUyMG9uZSUyMHdvcmQuJTIyJTdEJTVEJTJDJTIwZG9fc2FtcGxlJTNERmFsc2UlMkMlMjBtYXhfbmV3X3Rva2VucyUzRDIp",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;HuggingFaceH4/zephyr-7b-beta&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># Zephyr-beta is a conversational model, so let&#x27;s pass it a chat instead of a single string</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>generator([{<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;What is the capital of France? Answer in one word.&quot;</span>}], do_sample=<span class="hljs-literal">False</span>, max_new_tokens=<span class="hljs-number">2</span>)
[{<span class="hljs-string">&#x27;generated_text&#x27;</span>: [{<span class="hljs-string">&#x27;role&#x27;</span>: <span class="hljs-string">&#x27;user&#x27;</span>, <span class="hljs-string">&#x27;content&#x27;</span>: <span class="hljs-string">&#x27;What is the capital of France? Answer in one word.&#x27;</span>}, {<span class="hljs-string">&#x27;role&#x27;</span>: <span class="hljs-string">&#x27;assistant&#x27;</span>, <span class="hljs-string">&#x27;content&#x27;</span>: <span class="hljs-string">&#x27;Paris&#x27;</span>}]}]`,wrap:!1}}),{c(){f(a.$$.fragment)},l(h){g(a.$$.fragment,h)},m(h,p){u(a,h,p),x=!0},p:$,i(h){x||(T(a.$$.fragment,h),x=!0)},o(h){y(a.$$.fragment,h),x=!1},d(h){b(a,h)}}}function Ew(M){let a,x="Example:",h,p,w;return p=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(){a=l("p"),a.textContent=x,h=s(),f(p.$$.fragment)},l(t){a=c(t,"P",{"data-svelte-h":!0}),m(a)!=="svelte-11lpom8"&&(a.textContent=x),h=o(t),g(p.$$.fragment,t)},m(t,_){d(t,a,_),d(t,h,_),u(p,t,_),w=!0},p:$,i(t){w||(T(p.$$.fragment,t),w=!0)},o(t){y(p.$$.fragment,t),w=!1},d(t){t&&(r(a),r(h)),b(p,t)}}}function Qw(M){let a,x="Usage:",h,p,w;return p=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(){a=l("p"),a.textContent=x,h=s(),f(p.$$.fragment)},l(t){a=c(t,"P",{"data-svelte-h":!0}),m(a)!=="svelte-5wyjqd"&&(a.textContent=x),h=o(t),g(p.$$.fragment,t)},m(t,_){d(t,a,_),d(t,h,_),u(p,t,_),w=!0},p:$,i(t){w||(T(p.$$.fragment,t),w=!0)},o(t){y(p.$$.fragment,t),w=!1},d(t){t&&(r(a),r(h)),b(p,t)}}}function Xw(M){let a,x="Example:",h,p,w;return p=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(){a=l("p"),a.textContent=x,h=s(),f(p.$$.fragment)},l(t){a=c(t,"P",{"data-svelte-h":!0}),m(a)!=="svelte-11lpom8"&&(a.textContent=x),h=o(t),g(p.$$.fragment,t)},m(t,_){d(t,a,_),d(t,h,_),u(p,t,_),w=!0},p:$,i(t){w||(T(p.$$.fragment,t),w=!0)},o(t){y(p.$$.fragment,t),w=!1},d(t){t&&(r(a),r(h)),b(p,t)}}}function Kw(M){let a,x="Usage:",h,p,w;return p=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(){a=l("p"),a.textContent=x,h=s(),f(p.$$.fragment)},l(t){a=c(t,"P",{"data-svelte-h":!0}),m(a)!=="svelte-5wyjqd"&&(a.textContent=x),h=o(t),g(p.$$.fragment,t)},m(t,_){d(t,a,_),d(t,h,_),u(p,t,_),w=!0},p:$,i(t){w||(T(p.$$.fragment,t),w=!0)},o(t){y(p.$$.fragment,t),w=!1},d(t){t&&(r(a),r(h)),b(p,t)}}}function e_(M){let a,x="Example:",h,p,w;return p=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(){a=l("p"),a.textContent=x,h=s(),f(p.$$.fragment)},l(t){a=c(t,"P",{"data-svelte-h":!0}),m(a)!=="svelte-11lpom8"&&(a.textContent=x),h=o(t),g(p.$$.fragment,t)},m(t,_){d(t,a,_),d(t,h,_),u(p,t,_),w=!0},p:$,i(t){w||(T(p.$$.fragment,t),w=!0)},o(t){y(p.$$.fragment,t),w=!1},d(t){t&&(r(a),r(h)),b(p,t)}}}function t_(M){let a,x="Example:",h,p,w;return p=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(){a=l("p"),a.textContent=x,h=s(),f(p.$$.fragment)},l(t){a=c(t,"P",{"data-svelte-h":!0}),m(a)!=="svelte-11lpom8"&&(a.textContent=x),h=o(t),g(p.$$.fragment,t)},m(t,_){d(t,a,_),d(t,h,_),u(p,t,_),w=!0},p:$,i(t){w||(T(p.$$.fragment,t),w=!0)},o(t){y(p.$$.fragment,t),w=!1},d(t){t&&(r(a),r(h)),b(p,t)}}}function n_(M){let a,x="Example:",h,p,w;return p=new v({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMHBpcGVsaW5lJTBBJTBBZXh0cmFjdG9yJTIwJTNEJTIwcGlwZWxpbmUobW9kZWwlM0QlMjJnb29nbGUtYmVydCUyRmJlcnQtYmFzZS11bmNhc2VkJTIyJTJDJTIwdGFzayUzRCUyMmZlYXR1cmUtZXh0cmFjdGlvbiUyMiklMEFyZXN1bHQlMjAlM0QlMjBleHRyYWN0b3IoJTIyVGhpcyUyMGlzJTIwYSUyMHNpbXBsZSUyMHRlc3QuJTIyJTJDJTIwcmV0dXJuX3RlbnNvcnMlM0RUcnVlKSUwQXJlc3VsdC5zaGFwZSUyMCUyMCUyMyUyMFRoaXMlMjBpcyUyMGElMjB0ZW5zb3IlMjBvZiUyMHNoYXBlJTIwJTVCMSUyQyUyMHNlcXVlbmNlX2xlbmd0aCUyQyUyMGhpZGRlbl9kaW1lbnNpb24lNUQlMjByZXByZXNlbnRpbmclMjB0aGUlMjBpbnB1dCUyMHN0cmluZy4=",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;google-bert/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_length, 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(){a=l("p"),a.textContent=x,h=s(),f(p.$$.fragment)},l(t){a=c(t,"P",{"data-svelte-h":!0}),m(a)!=="svelte-11lpom8"&&(a.textContent=x),h=o(t),g(p.$$.fragment,t)},m(t,_){d(t,a,_),d(t,h,_),u(p,t,_),w=!0},p:$,i(t){w||(T(p.$$.fragment,t),w=!0)},o(t){y(p.$$.fragment,t),w=!1},d(t){t&&(r(a),r(h)),b(p,t)}}}function s_(M){let a,x="Example:",h,p,w;return p=new v({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMHBpcGVsaW5lJTBBJTBBZXh0cmFjdG9yJTIwJTNEJTIwcGlwZWxpbmUobW9kZWwlM0QlMjJnb29nbGUlMkZ2aXQtYmFzZS1wYXRjaDE2LTIyNCUyMiUyQyUyMHRhc2slM0QlMjJpbWFnZS1mZWF0dXJlLWV4dHJhY3Rpb24lMjIpJTBBcmVzdWx0JTIwJTNEJTIwZXh0cmFjdG9yKCUyMmh0dHBzJTNBJTJGJTJGaHVnZ2luZ2ZhY2UuY28lMkZkYXRhc2V0cyUyRk5hcnNpbCUyRmltYWdlX2R1bW15JTJGcmF3JTJGbWFpbiUyRnBhcnJvdHMucG5nJTIyJTJDJTIwcmV0dXJuX3RlbnNvcnMlM0RUcnVlKSUwQXJlc3VsdC5zaGFwZSUyMCUyMCUyMyUyMFRoaXMlMjBpcyUyMGElMjB0ZW5zb3IlMjBvZiUyMHNoYXBlJTIwJTVCMSUyQyUyMHNlcXVlbmNlX2xlbnRoJTJDJTIwaGlkZGVuX2RpbWVuc2lvbiU1RCUyMHJlcHJlc2VudGluZyUyMHRoZSUyMGlucHV0JTIwaW1hZ2Uu",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;google/vit-base-patch16-224&quot;</span>, task=<span class="hljs-string">&quot;image-feature-extraction&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>result = extractor(<span class="hljs-string">&quot;https://huggingface.co/datasets/Narsil/image_dummy/raw/main/parrots.png&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 image.</span>
torch.Size([<span class="hljs-number">1</span>, <span class="hljs-number">197</span>, <span class="hljs-number">768</span>])`,wrap:!1}}),{c(){a=l("p"),a.textContent=x,h=s(),f(p.$$.fragment)},l(t){a=c(t,"P",{"data-svelte-h":!0}),m(a)!=="svelte-11lpom8"&&(a.textContent=x),h=o(t),g(p.$$.fragment,t)},m(t,_){d(t,a,_),d(t,h,_),u(p,t,_),w=!0},p:$,i(t){w||(T(p.$$.fragment,t),w=!0)},o(t){y(p.$$.fragment,t),w=!1},d(t){t&&(r(a),r(h)),b(p,t)}}}function o_(M){let a,x="Example:",h,p,w;return p=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(){a=l("p"),a.textContent=x,h=s(),f(p.$$.fragment)},l(t){a=c(t,"P",{"data-svelte-h":!0}),m(a)!=="svelte-11lpom8"&&(a.textContent=x),h=o(t),g(p.$$.fragment,t)},m(t,_){d(t,a,_),d(t,h,_),u(p,t,_),w=!0},p:$,i(t){w||(T(p.$$.fragment,t),w=!0)},o(t){y(p.$$.fragment,t),w=!1},d(t){t&&(r(a),r(h)),b(p,t)}}}function a_(M){let a,x="Example:",h,p,w;return p=new v({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMHBpcGVsaW5lJTBBJTBBcGlwZSUyMCUzRCUyMHBpcGVsaW5lKHRhc2slM0QlMjJpbWFnZS10ZXh0LXRvLXRleHQlMjIlMkMlMjBtb2RlbCUzRCUyMlNhbGVzZm9yY2UlMkZibGlwLWltYWdlLWNhcHRpb25pbmctYmFzZSUyMiklMEFwaXBlKCUyMmh0dHBzJTNBJTJGJTJGaHVnZ2luZ2ZhY2UuY28lMkZkYXRhc2V0cyUyRk5hcnNpbCUyRmltYWdlX2R1bW15JTJGcmF3JTJGbWFpbiUyRnBhcnJvdHMucG5nJTIyJTJDJTIwdGV4dCUzRCUyMkElMjBwaG90byUyMG9mJTIyKQ==",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(task=<span class="hljs-string">&quot;image-text-to-text&quot;</span>, model=<span class="hljs-string">&quot;Salesforce/blip-image-captioning-base&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>pipe(<span class="hljs-string">&quot;https://huggingface.co/datasets/Narsil/image_dummy/raw/main/parrots.png&quot;</span>, text=<span class="hljs-string">&quot;A photo of&quot;</span>)
[{<span class="hljs-string">&#x27;generated_text&#x27;</span>: <span class="hljs-string">&#x27;a photo of two birds&#x27;</span>}]`,wrap:!1}}),{c(){a=l("p"),a.textContent=x,h=s(),f(p.$$.fragment)},l(t){a=c(t,"P",{"data-svelte-h":!0}),m(a)!=="svelte-11lpom8"&&(a.textContent=x),h=o(t),g(p.$$.fragment,t)},m(t,_){d(t,a,_),d(t,h,_),u(p,t,_),w=!0},p:$,i(t){w||(T(p.$$.fragment,t),w=!0)},o(t){y(p.$$.fragment,t),w=!1},d(t){t&&(r(a),r(h)),b(p,t)}}}function r_(M){let a,x;return a=new v({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMHBpcGVsaW5lJTBBJTBBcGlwZSUyMCUzRCUyMHBpcGVsaW5lKCUyMmltYWdlLXRleHQtdG8tdGV4dCUyMiUyQyUyMG1vZGVsJTNEJTIybGxhdmEtaGYlMkZsbGF2YS1pbnRlcmxlYXZlLXF3ZW4tMC41Yi1oZiUyMiklMEFtZXNzYWdlcyUyMCUzRCUyMCU1QiUwQSUyMCUyMCUyMCUyMCU3QiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMnJvbGUlMjIlM0ElMjAlMjJ1c2VyJTIyJTJDJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIyY29udGVudCUyMiUzQSUyMCU1QiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCU3QiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMnR5cGUlMjIlM0ElMjAlMjJpbWFnZSUyMiUyQyUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMnVybCUyMiUzQSUyMCUyMmh0dHBzJTNBJTJGJTJGcWlhbndlbi1yZXMub3NzLWNuLWJlaWppbmcuYWxpeXVuY3MuY29tJTJGUXdlbi1WTCUyRmFzc2V0cyUyRmRlbW8uanBlZyUyMiUyQyUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCU3RCUyQyUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCU3QiUyMnR5cGUlMjIlM0ElMjAlMjJ0ZXh0JTIyJTJDJTIwJTIydGV4dCUyMiUzQSUyMCUyMkRlc2NyaWJlJTIwdGhpcyUyMGltYWdlLiUyMiU3RCUyQyUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCU1RCUyQyUwQSUyMCUyMCUyMCUyMCU3RCUyQyUwQSUyMCUyMCUyMCUyMCU3QiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMnJvbGUlMjIlM0ElMjAlMjJhc3Npc3RhbnQlMjIlMkMlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjJjb250ZW50JTIyJTNBJTIwJTVCJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTdCJTIydHlwZSUyMiUzQSUyMCUyMnRleHQlMjIlMkMlMjAlMjJ0ZXh0JTIyJTNBJTIwJTIyVGhlcmUlMjBpcyUyMGElMjBkb2clMjBhbmQlMjIlN0QlMkMlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlNUQlMkMlMEElMjAlMjAlMjAlMjAlN0QlMkMlMEElNUQlMEFwaXBlKHRleHQlM0RtZXNzYWdlcyUyQyUyMG1heF9uZXdfdG9rZW5zJTNEMjAlMkMlMjByZXR1cm5fZnVsbF90ZXh0JTNERmFsc2Up",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(<span class="hljs-string">&quot;image-text-to-text&quot;</span>, model=<span class="hljs-string">&quot;llava-hf/llava-interleave-qwen-0.5b-hf&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>messages = [
<span class="hljs-meta">&gt;&gt;&gt; </span>    {
<span class="hljs-meta">&gt;&gt;&gt; </span>        <span class="hljs-string">&quot;role&quot;</span>: <span class="hljs-string">&quot;user&quot;</span>,
<span class="hljs-meta">&gt;&gt;&gt; </span>        <span class="hljs-string">&quot;content&quot;</span>: [
<span class="hljs-meta">&gt;&gt;&gt; </span>            {
<span class="hljs-meta">&gt;&gt;&gt; </span>                <span class="hljs-string">&quot;type&quot;</span>: <span class="hljs-string">&quot;image&quot;</span>,
<span class="hljs-meta">&gt;&gt;&gt; </span>                <span class="hljs-string">&quot;url&quot;</span>: <span class="hljs-string">&quot;https://qianwen-res.oss-cn-beijing.aliyuncs.com/Qwen-VL/assets/demo.jpeg&quot;</span>,
<span class="hljs-meta">&gt;&gt;&gt; </span>            },
<span class="hljs-meta">&gt;&gt;&gt; </span>            {<span class="hljs-string">&quot;type&quot;</span>: <span class="hljs-string">&quot;text&quot;</span>, <span class="hljs-string">&quot;text&quot;</span>: <span class="hljs-string">&quot;Describe this image.&quot;</span>},
<span class="hljs-meta">&gt;&gt;&gt; </span>        ],
<span class="hljs-meta">&gt;&gt;&gt; </span>    },
<span class="hljs-meta">&gt;&gt;&gt; </span>    {
<span class="hljs-meta">&gt;&gt;&gt; </span>        <span class="hljs-string">&quot;role&quot;</span>: <span class="hljs-string">&quot;assistant&quot;</span>,
<span class="hljs-meta">&gt;&gt;&gt; </span>        <span class="hljs-string">&quot;content&quot;</span>: [
<span class="hljs-meta">&gt;&gt;&gt; </span>            {<span class="hljs-string">&quot;type&quot;</span>: <span class="hljs-string">&quot;text&quot;</span>, <span class="hljs-string">&quot;text&quot;</span>: <span class="hljs-string">&quot;There is a dog and&quot;</span>},
<span class="hljs-meta">&gt;&gt;&gt; </span>        ],
<span class="hljs-meta">&gt;&gt;&gt; </span>    },
<span class="hljs-meta">&gt;&gt;&gt; </span>]
<span class="hljs-meta">&gt;&gt;&gt; </span>pipe(text=messages, max_new_tokens=<span class="hljs-number">20</span>, return_full_text=<span class="hljs-literal">False</span>)
[{<span class="hljs-string">&#x27;input_text&#x27;</span>: [{<span class="hljs-string">&#x27;role&#x27;</span>: <span class="hljs-string">&#x27;user&#x27;</span>,
    <span class="hljs-string">&#x27;content&#x27;</span>: [{<span class="hljs-string">&#x27;type&#x27;</span>: <span class="hljs-string">&#x27;image&#x27;</span>,
    <span class="hljs-string">&#x27;url&#x27;</span>: <span class="hljs-string">&#x27;https://qianwen-res.oss-cn-beijing.aliyuncs.com/Qwen-VL/assets/demo.jpeg&#x27;</span>},
    {<span class="hljs-string">&#x27;type&#x27;</span>: <span class="hljs-string">&#x27;text&#x27;</span>, <span class="hljs-string">&#x27;text&#x27;</span>: <span class="hljs-string">&#x27;Describe this image.&#x27;</span>}]},
{<span class="hljs-string">&#x27;role&#x27;</span>: <span class="hljs-string">&#x27;assistant&#x27;</span>,
    <span class="hljs-string">&#x27;content&#x27;</span>: [{<span class="hljs-string">&#x27;type&#x27;</span>: <span class="hljs-string">&#x27;text&#x27;</span>, <span class="hljs-string">&#x27;text&#x27;</span>: <span class="hljs-string">&#x27;There is a dog and&#x27;</span>}]}],
<span class="hljs-string">&#x27;generated_text&#x27;</span>: <span class="hljs-string">&#x27; a person in the image. The dog is sitting on the sand, and the person is sitting on&#x27;</span>}]`,wrap:!1}}),{c(){f(a.$$.fragment)},l(h){g(a.$$.fragment,h)},m(h,p){u(a,h,p),x=!0},p:$,i(h){x||(T(a.$$.fragment,h),x=!0)},o(h){y(a.$$.fragment,h),x=!1},d(h){b(a,h)}}}function i_(M){let a,x="Example:",h,p,w;return p=new v({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMHBpcGVsaW5lJTBBJTBBZ2VuZXJhdG9yJTIwJTNEJTIwcGlwZWxpbmUobW9kZWwlM0QlMjJmYWNlYm9vayUyRnNhbS12aXQtYmFzZSUyMiUyQyUyMHRhc2slM0QlMjJtYXNrLWdlbmVyYXRpb24lMjIpJTBBb3V0cHV0cyUyMCUzRCUyMGdlbmVyYXRvciglMEElMjAlMjAlMjAlMjAlMjJodHRwJTNBJTJGJTJGaW1hZ2VzLmNvY29kYXRhc2V0Lm9yZyUyRnZhbDIwMTclMkYwMDAwMDAwMzk3NjkuanBnJTIyJTJDJTBBKSUwQSUwQW91dHB1dHMlMjAlM0QlMjBnZW5lcmF0b3IoJTBBJTIwJTIwJTIwJTIwJTIyaHR0cHMlM0ElMkYlMkZodWdnaW5nZmFjZS5jbyUyRmRhdGFzZXRzJTJGTmFyc2lsJTJGaW1hZ2VfZHVtbXklMkZyYXclMkZtYWluJTJGcGFycm90cy5wbmclMjIlMkMlMjBwb2ludHNfcGVyX2JhdGNoJTNEMTI4JTBBKQ==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> pipeline

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

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

pipe = pipeline(<span class="hljs-string">&quot;google-bert/bert-base-cased&quot;</span>)

<span class="hljs-comment"># Push the pipe to your namespace with the name &quot;my-finetuned-bert&quot;.</span>
pipe.push_to_hub(<span class="hljs-string">&quot;my-finetuned-bert&quot;</span>)

<span class="hljs-comment"># Push the pipe to an organization with the name &quot;my-finetuned-bert&quot;.</span>
pipe.push_to_hub(<span class="hljs-string">&quot;huggingface/my-finetuned-bert&quot;</span>)`,wrap:!1}}),{c(){a=l("p"),a.textContent=x,h=s(),f(p.$$.fragment)},l(t){a=c(t,"P",{"data-svelte-h":!0}),m(a)!=="svelte-kvfsh7"&&(a.textContent=x),h=o(t),g(p.$$.fragment,t)},m(t,_){d(t,a,_),d(t,h,_),u(p,t,_),w=!0},p:$,i(t){w||(T(p.$$.fragment,t),w=!0)},o(t){y(p.$$.fragment,t),w=!1},d(t){t&&(r(a),r(h)),b(p,t)}}}function d_(M){let a,x,h,p,w,t,_,oc=`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.`,rc,xn,ku="There are two categories of pipeline abstractions to be aware about:",ic,Mn,ju='<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>',lc,Un,cc,kn,vu=`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.`,pc,jn,Ju="Simple call on one item:",dc,vn,mc,Jn,$u=`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:`,hc,$n,fc,Pn,Pu="To call a pipeline on many items, you can call it with a <em>list</em>.",gc,Cn,uc,In,Cu=`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.`,Tc,qn,yc,Gn,Iu="For ease of use, a generator is also possible:",bc,Zn,wc,pe,Fn,Zd,Aa,qu='Utility factory method to build a <a href="/docs/transformers/main/en/main_classes/pipelines#transformers.Pipeline">Pipeline</a>.',Fd,Va,Gu="A pipeline consists of:",zd,Sa,Zu=`<li>One or more components for pre-processing model inputs, such as a <a href="tokenizer">tokenizer</a>,
<a href="image_processor">image_processor</a>, <a href="feature_extractor">feature_extractor</a>, or <a href="processors">processor</a>.</li> <li>A <a href="model">model</a> that generates predictions from the inputs.</li> <li>Optional post-processing steps to refine the model’s output, which can also be handled by processors.</li>`,Bd,Ye,Rd,Oe,_c,zn,xc,Bn,Fu=`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>).`,Mc,Rn,Uc,Ee,kc,Dn,jc,Nn,vc,An,zu="Example where it’s most a slowdown:",Jc,Vn,$c,Sn,Bu=`This is a occasional very long sentence compared to the other. In that case, the <strong>whole</strong> batch will need to be 400
tokens long, so the whole batch will be [64, 400] instead of [64, 4], leading to the high slowdown. Even worse, on
bigger batches, the program simply crashes.`,Pc,Wn,Cc,Ln,Ru=`There are no good (general) solutions for this problem, and your mileage may vary depending on your use cases. Rule of
thumb:`,Ic,Hn,Du="For users, a rule of thumb is:",qc,Yn,Nu=`<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>`,Gc,On,Zc,En,Au=`<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.`,Fc,Qn,Vu=`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:`,zc,Xn,Bc,Kn,Su="Now becomes:",Rc,es,Dc,ts,Wu=`This should be very transparent to your code because the pipelines are used in
the same way.`,Nc,ns,Lu=`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.`,Ac,ss,Vc,os,Hu="Models can be run in FP16 which can be significantly faster on GPU while saving memory. Most models will not suffer noticeable performance loss from this. The larger the model, the less likely that it will.",Sc,as,Yu="To enable FP16 inference, you can simply pass <code>torch_dtype=torch.float16</code> or <code>torch_dtype=&#39;float16&#39;</code> to the pipeline constructor. Note that this only works for models with a PyTorch backend. Your inputs will be converted to FP16 internally.",Wc,rs,Lc,is,Ou="If you want to override a specific pipeline.",Hc,ls,Eu=`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.`,Yc,cs,Qu="If you want to try simply you can:",Oc,ps,Xu="<li>Subclass your pipeline of choice</li>",Ec,ds,Qc,ms,Ku="That should enable you to do all the custom code you want.",Xc,hs,Kc,fs,eT='<a href="../add_new_pipeline">Implementing a new pipeline</a>',ep,gs,tp,us,tT="Pipelines available for audio tasks include the following.",np,Ts,sp,H,ys,Dd,Wa,nT=`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.`,Nd,Qe,Ad,La,sT='Learn more about the basics of using a pipeline in the <a href="../pipeline_tutorial">pipeline tutorial</a>',Vd,Ha,oT=`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>.`,Sd,Ya,aT=`See the list of available models on
<a href="https://huggingface.co/models?filter=audio-classification" rel="nofollow">huggingface.co/models</a>.`,Wd,Xe,bs,Ld,Oa,rT=`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.`,op,ws,ap,de,_s,Hd,Ea,iT="Pipeline that aims at extracting spoken text contained within some audio.",Yd,Qa,lT=`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`,Od,Ke,Ed,Xa,cT='Learn more about the basics of using a pipeline in the <a href="../pipeline_tutorial">pipeline tutorial</a>',Qd,et,xs,Xd,Ka,pT=`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.`,rp,Ms,ip,R,Us,Kd,er,dT=`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.`,em,tt,tm,tr,mT='Learn more about the basics of using a pipeline in the <a href="../pipeline_tutorial">pipeline tutorial</a>',nm,nt,sm,nr,hT=`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>.`,om,sr,fT='See the list of available models on <a href="https://huggingface.co/models?filter=text-to-speech" rel="nofollow">huggingface.co/models</a>.',am,st,ks,rm,or,gT='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.',lp,js,cp,me,vs,im,ar,uT=`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>.`,lm,ot,cm,at,pm,rr,TT=`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>.`,dm,rt,Js,mm,ir,yT="Assign labels to the audio(s) passed as inputs.",pp,$s,dp,Ps,bT="Pipelines available for computer vision tasks include the following.",mp,Cs,hp,Y,Is,hm,lr,wT="Depth estimation pipeline using any <code>AutoModelForDepthEstimation</code>. This pipeline predicts the depth of an image.",fm,it,gm,cr,_T='Learn more about the basics of using a pipeline in the <a href="../pipeline_tutorial">pipeline tutorial</a>',um,pr,xT=`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>.`,Tm,dr,MT='See the list of available models on <a href="https://huggingface.co/models?filter=depth-estimation" rel="nofollow">huggingface.co/models</a>.',ym,lt,qs,bm,mr,UT="Predict the depth(s) of the image(s) passed as inputs.",fp,Gs,gp,O,Zs,wm,hr,kT=`Image classification pipeline using any <code>AutoModelForImageClassification</code>. This pipeline predicts the class of an
image.`,_m,ct,xm,fr,jT='Learn more about the basics of using a pipeline in the <a href="../pipeline_tutorial">pipeline tutorial</a>',Mm,gr,vT=`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>.`,Um,ur,JT=`See the list of available models on
<a href="https://huggingface.co/models?filter=image-classification" rel="nofollow">huggingface.co/models</a>.`,km,pt,Fs,jm,Tr,$T="Assign labels to the image(s) passed as inputs.",up,zs,Tp,he,Bs,vm,yr,PT=`Image segmentation pipeline using any <code>AutoModelForXXXSegmentation</code>. This pipeline predicts masks of objects and
their classes.`,Jm,dt,$m,br,CT=`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>.`,Pm,wr,IT=`See the list of available models on
<a href="https://huggingface.co/models?filter=image-segmentation" rel="nofollow">huggingface.co/models</a>.`,Cm,mt,Rs,Im,_r,qT="Perform segmentation (detect masks & classes) in the image(s) passed as inputs.",yp,Ds,bp,fe,Ns,qm,xr,GT=`Image to Image pipeline using any <code>AutoModelForImageToImage</code>. This pipeline generates an image based on a previous
image input.`,Gm,ht,Zm,Mr,ZT=`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>.`,Fm,Ur,FT='See the list of available models on <a href="https://huggingface.co/models?filter=image-to-image" rel="nofollow">huggingface.co/models</a>.',zm,ft,As,Bm,kr,zT="Transform the image(s) passed as inputs.",wp,Vs,_p,E,Ss,Rm,jr,BT=`Object detection pipeline using any <code>AutoModelForObjectDetection</code>. This pipeline predicts bounding boxes of objects
and their classes.`,Dm,gt,Nm,vr,RT='Learn more about the basics of using a pipeline in the <a href="../pipeline_tutorial">pipeline tutorial</a>',Am,Jr,DT=`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>.`,Vm,$r,NT='See the list of available models on <a href="https://huggingface.co/models?filter=object-detection" rel="nofollow">huggingface.co/models</a>.',Sm,ut,Ws,Wm,Pr,AT="Detect objects (bounding boxes & classes) in the image(s) passed as inputs.",xp,Ls,Mp,ve,Hs,Lm,Cr,VT=`Video classification pipeline using any <code>AutoModelForVideoClassification</code>. This pipeline predicts the class of a
video.`,Hm,Ir,ST=`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>.`,Ym,qr,WT=`See the list of available models on
<a href="https://huggingface.co/models?filter=video-classification" rel="nofollow">huggingface.co/models</a>.`,Om,Tt,Ys,Em,Gr,LT="Assign labels to the video(s) passed as inputs.",Up,Os,kp,Q,Es,Qm,Zr,HT=`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>.`,Xm,yt,Km,Fr,YT='Learn more about the basics of using a pipeline in the <a href="../pipeline_tutorial">pipeline tutorial</a>',eh,zr,OT=`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>.`,th,Br,ET=`See the list of available models on
<a href="https://huggingface.co/models?filter=zero-shot-image-classification" rel="nofollow">huggingface.co/models</a>.`,nh,bt,Qs,sh,Rr,QT="Assign labels to the image(s) passed as inputs.",jp,Xs,vp,X,Ks,oh,Dr,XT=`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>.`,ah,wt,rh,Nr,KT='Learn more about the basics of using a pipeline in the <a href="../pipeline_tutorial">pipeline tutorial</a>',ih,Ar,ey=`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>.`,lh,Vr,ty=`See the list of available models on
<a href="https://huggingface.co/models?filter=zero-shot-object-detection" rel="nofollow">huggingface.co/models</a>.`,ch,_t,eo,ph,Sr,ny="Detect objects (bounding boxes & classes) in the image(s) passed as inputs.",Jp,to,$p,no,sy="Pipelines available for natural language processing tasks include the following.",Pp,so,Cp,G,oo,dh,Wr,oy=`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.`,mh,xt,hh,Lr,ay='Learn more about the basics of using a pipeline in the <a href="../pipeline_tutorial">pipeline tutorial</a>',fh,Hr,ry=`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>.`,gh,Yr,iy=`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>.`,uh,Mt,Th,Ut,yh,kt,ao,bh,Or,ly="Fill the masked token in the text(s) given as inputs.",Ip,ro,qp,Z,io,wh,Er,cy=`Question Answering pipeline using any <code>ModelForQuestionAnswering</code>. See the <a href="../task_summary#question-answering">question answering
examples</a> for more information.`,_h,jt,xh,Qr,py='Learn more about the basics of using a pipeline in the <a href="../pipeline_tutorial">pipeline tutorial</a>',Mh,Xr,dy=`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>.`,Uh,Kr,my=`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>.`,kh,vt,lo,jh,ei,hy="Answer the question(s) given as inputs by using the context(s).",vh,Ae,co,Jh,ti,fy=`QuestionAnsweringPipeline leverages the <code>SquadExample</code> internally. This helper method encapsulate all the
logic for converting question(s) and context(s) to <code>SquadExample</code>.`,$h,ni,gy="We currently support extractive question answering.",Ph,Jt,po,Ch,si,uy="When decoding from token probabilities, this method maps token indexes to actual word in the initial context.",Gp,mo,Zp,ge,ho,Ih,oi,Ty="Summarize news articles and other documents.",qh,ai,yy=`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>.`,Gh,ri,by=`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>google-t5/t5-small</em>’, ’<em>google-t5/t5-base</em>’, ’<em>google-t5/t5-large</em>’, ’<em>google-t5/t5-3b</em>’, ’<em>google-t5/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>`,Zh,$t,Fh,Pt,fo,zh,ii,wy="Summarize the text(s) given as inputs.",Fp,go,zp,K,uo,Bh,li,_y=`Table Question Answering pipeline using a <code>ModelForTableQuestionAnswering</code>. This pipeline is only available in
PyTorch.`,Rh,Ct,Dh,ci,xy='Learn more about the basics of using a pipeline in the <a href="../pipeline_tutorial">pipeline tutorial</a>',Nh,pi,My=`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>.`,Ah,di,Uy=`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>.`,Vh,le,To,Sh,mi,ky="Answers queries according to a table. The pipeline accepts several types of inputs which are detailed below:",Wh,hi,jy="<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>",Lh,fi,vy="The <code>table</code> argument should be a dict or a DataFrame built from that dict, containing the whole table:",Hh,It,Yh,gi,Jy="This dictionary can be passed in as such, or can be converted to a pandas DataFrame:",Oh,qt,Bp,yo,Rp,D,bo,Eh,ui,$y=`Text classification pipeline using any <code>ModelForSequenceClassification</code>. See the <a href="../task_summary#sequence-classification">sequence classification
examples</a> for more information.`,Qh,Gt,Xh,Ti,Py='Learn more about the basics of using a pipeline in the <a href="../pipeline_tutorial">pipeline tutorial</a>',Kh,yi,Cy=`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).`,ef,bi,Iy=`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. In case of regression
tasks (<code>model.config.problem_type == &quot;regression&quot;</code>), will not apply any function on the output.`,tf,wi,qy=`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>.`,nf,Zt,wo,sf,_i,Gy="Classify the text(s) given as inputs.",Dp,_o,Np,N,xo,of,xi,Zy=`Language generation pipeline using any <code>ModelWithLMHead</code>. This pipeline predicts the words that will follow a
specified text prompt. When the underlying model is a conversational model, it can also accept one or more chats,
in which case the pipeline will operate in chat mode and will continue the chat(s) by adding its response(s).
Each chat takes the form of a list of dicts, where each dict contains “role” and “content” keys.`,af,Ft,rf,zt,lf,Mi,Fy=`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>.`,cf,Ui,zy=`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>.`,pf,ki,By=`The models that this pipeline can use are models that have been trained with an autoregressive language modeling
objective. See the list of available <a href="https://huggingface.co/models?filter=text-generation" rel="nofollow">text completion models</a>
and the list of <a href="https://huggingface.co/models?other=conversational" rel="nofollow">conversational models</a>
on [huggingface.co/models].`,df,Bt,Mo,mf,ji,Ry="Complete the prompt(s) given as inputs.",Ap,Uo,Vp,F,ko,hf,vi,Dy="Pipeline for text to text generation using seq2seq models.",ff,Rt,gf,Ji,Ny=`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>.`,uf,$i,Ay=`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>.`,Tf,Pi,Vy=`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>`,yf,Dt,bf,Nt,jo,wf,Ci,Sy="Generate the output text(s) using text(s) given as inputs.",_f,At,vo,xf,Ii,Wy="Checks whether there might be something wrong with given input with regard to the model.",Sp,Jo,Wp,q,$o,Mf,qi,Ly=`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.`,Uf,Vt,kf,Gi,Hy='Learn more about the basics of using a pipeline in the <a href="../pipeline_tutorial">pipeline tutorial</a>',jf,Zi,Yy=`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).`,vf,Fi,Oy=`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>.`,Jf,St,Po,$f,zi,Ey="Classify each token of the text(s) given as inputs.",Pf,Ve,Co,Cf,Bi,Qy="Override tokens from a given word that disagree to force agreement on word boundaries.",If,Ri,Xy=`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`,qf,Wt,Io,Gf,Di,Ky="Fuse various numpy arrays into dicts with all the information needed for aggregation",Zf,Lt,qo,Ff,Ni,eb="Find and group together the adjacent tokens with the same entity predicted.",zf,Ht,Go,Bf,Ai,tb="Group together the adjacent tokens with the same entity predicted.",Lp,Zo,Hp,ue,Fo,Rf,Vi,nb="Translates from one language to another.",Df,Si,sb=`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>.`,Nf,Wi,ob=`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>`,Af,Yt,Vf,Ot,zo,Sf,Li,ab="Translate the text(s) given as inputs.",Yp,Bo,Op,A,Ro,Wf,Hi,rb=`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.`,Lf,Yi,ib=`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>.`,Hf,Et,Yf,Oi,lb='Learn more about the basics of using a pipeline in the <a href="../pipeline_tutorial">pipeline tutorial</a>',Of,Ei,cb=`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>.`,Ef,Qi,pb=`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>.`,Qf,Qt,Do,Xf,Xi,db=`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.`,Ep,No,Qp,Ao,mb="Pipelines available for multimodal tasks include the following.",Xp,Vo,Kp,ee,So,Kf,Ki,hb=`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.`,eg,Xt,tg,el,fb='Learn more about the basics of using a pipeline in the <a href="../pipeline_tutorial">pipeline tutorial</a>',ng,tl,gb=`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>.`,sg,nl,ub=`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>.`,og,De,Wo,ag,sl,Tb=`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.`,rg,ol,yb="You can invoke the pipeline several ways:",ig,al,bb="<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>",ed,Lo,td,te,Ho,lg,rl,wb=`Feature extraction pipeline uses no model head. This pipeline extracts the hidden states from the base
transformer, which can be used as features in downstream tasks.`,cg,Kt,pg,il,_b='Learn more about the basics of using a pipeline in the <a href="../pipeline_tutorial">pipeline tutorial</a>',dg,ll,xb=`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>.`,mg,cl,Mb=`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>.`,hg,en,Yo,fg,pl,Ub="Extract the features of the input(s).",nd,Oo,sd,ne,Eo,gg,dl,kb=`Image feature extraction pipeline uses no model head. This pipeline extracts the hidden states from the base
transformer, which can be used as features in downstream tasks.`,ug,tn,Tg,ml,jb='Learn more about the basics of using a pipeline in the <a href="../pipeline_tutorial">pipeline tutorial</a>',yg,hl,vb=`This image 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;image-feature-extraction&quot;</code>.`,bg,fl,Jb=`All vision 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>.`,wg,nn,Qo,_g,gl,$b="Extract the features of the input(s).",od,Xo,ad,se,Ko,xg,ul,Pb="Image To Text pipeline using a <code>AutoModelForVision2Seq</code>. This pipeline predicts a caption for a given image.",Mg,sn,Ug,Tl,Cb='Learn more about the basics of using a pipeline in the <a href="../pipeline_tutorial">pipeline tutorial</a>',kg,yl,Ib=`This image to text pipeline can currently be loaded from pipeline() using the following task identifier:
“image-to-text”.`,jg,bl,qb=`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,on,ea,Jg,wl,Gb="Assign labels to the image(s) passed as inputs.",rd,ta,id,V,na,$g,_l,Zb=`Image-text-to-text pipeline using an <code>AutoModelForImageTextToText</code>. This pipeline generates text given an image and text.
When the underlying model is a conversational model, it can also accept one or more chats,
in which case the pipeline will operate in chat mode and will continue the chat(s) by adding its response(s).
Each chat takes the form of a list of dicts, where each dict contains “role” and “content” keys.`,Pg,an,Cg,rn,Ig,xl,Fb='Learn more about the basics of using a pipeline in the <a href="../pipeline_tutorial">pipeline tutorial</a>',qg,Ml,zb=`This image-text to text pipeline can currently be loaded from pipeline() using the following task identifier:
“image-text-to-text”.`,Gg,Ul,Bb=`See the list of available models on
<a href="https://huggingface.co/models?pipeline_tag=image-text-to-text" rel="nofollow">huggingface.co/models</a>.`,Zg,ln,sa,Fg,kl,Rb="Generate a text given text and the image(s) passed as inputs.",ld,oa,cd,z,aa,zg,jl,Db=`Automatic mask generation for images using <code>SamForMaskGeneration</code>. This pipeline predicts binary masks for an
image, given an image. It is a <code>ChunkPipeline</code> because you can seperate the points in a mini-batch in order to
avoid OOM issues. Use the <code>points_per_batch</code> argument to control the number of points that will be processed at the
same time. Default is <code>64</code>.`,Bg,vl,Nb="The pipeline works in 3 steps:",Rg,Jl,Ab=`<li><p><code>preprocess</code>: A grid of 1024 points evenly separated is generated along with bounding boxes and point
labels.
For more details on how the points and bounding boxes are created, check the <code>_generate_crop_boxes</code>
function. The image is also preprocessed using the <code>image_processor</code>. This function <code>yields</code> a minibatch of
<code>points_per_batch</code>.</p></li> <li><p><code>forward</code>: feeds the outputs of <code>preprocess</code> to the model. The image embedding is computed only once.
Calls both <code>self.model.get_image_embeddings</code> and makes sure that the gradients are not computed, and the
tensors and models are on the same device.</p></li> <li><p><code>postprocess</code>: The most important part of the automatic mask generation happens here. Three steps
are induced:</p> <ul><li>image_processor.postprocess_masks (run on each minibatch loop): takes in the raw output masks,
resizes them according
to the image size, and transforms there to binary masks.</li> <li>image_processor.filter_masks (on each minibatch loop): uses both <code>pred_iou_thresh</code> and
<code>stability_scores</code>. Also
applies a variety of filters based on non maximum suppression to remove bad masks.</li> <li>image_processor.postprocess_masks_for_amg applies the NSM on the mask to only keep relevant ones.</li></ul></li>`,Dg,cn,Ng,$l,Vb='Learn more about the basics of using a pipeline in the <a href="../pipeline_tutorial">pipeline tutorial</a>',Ag,Pl,Sb=`This 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;mask-generation&quot;</code>.`,Vg,Cl,Wb='See the list of available models on <a href="https://huggingface.co/models?filter=mask-generation" rel="nofollow">huggingface.co/models</a>.',Sg,pn,ra,Wg,Il,Lb="Generates binary segmentation masks",pd,ia,dd,oe,la,Lg,ql,Hb=`Visual Question Answering pipeline using a <code>AutoModelForVisualQuestionAnswering</code>. This pipeline is currently only
available in PyTorch.`,Hg,dn,Yg,Gl,Yb='Learn more about the basics of using a pipeline in the <a href="../pipeline_tutorial">pipeline tutorial</a>',Og,Zl,Ob=`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>.`,Eg,Fl,Eb=`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>.`,Qg,Se,ca,Xg,zl,Qb=`Answers open-ended questions about images. The pipeline accepts several types of inputs which are detailed
below:`,Kg,Bl,Xb="<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>",md,pa,hd,C,da,eu,Rl,Kb=`The Pipeline class is the class from which all pipelines inherit. Refer to this class for methods shared across
different pipelines.`,tu,Dl,ew=`Base class implementing pipelined operations. Pipeline workflow is defined as a sequence of the following
operations:`,nu,Nl,tw="Input -> Tokenization -> Model Inference -> Post-Processing (task dependent) -> Output",su,Al,nw="Pipeline supports running on CPU or GPU through the device argument (see below).",ou,Vl,sw=`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.`,au,mn,ma,ru,Sl,ow="Check if the model class is in supported by the pipeline.",iu,We,ha,lu,Wl,aw="Context Manager allowing tensor allocation on the user-specified device in framework agnostic way.",cu,hn,pu,fn,fa,du,Ll,rw="Ensure PyTorch tensors are on the specified device.",mu,gn,ga,hu,Hl,iw=`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).`,fu,un,ua,gu,Yl,lw="Scikit / Keras interface to transformers’ pipelines. This method will forward to <strong>call</strong>().",uu,Tn,Ta,Tu,Ol,cw=`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.`,yu,Le,ya,bu,El,pw="Upload the pipeline file to the 🤗 Model Hub.",wu,yn,_u,bn,ba,xu,Ql,dw="Save the pipeline’s model and tokenizer.",Mu,wn,wa,Uu,Xl,mw="Scikit / Keras interface to transformers’ pipelines. This method will forward to <strong>call</strong>().",fd,_a,gd,ac,ud;return w=new J({props:{title:"Pipelines",local:"pipelines",headingTag:"h1"}}),Un=new J({props:{title:"The pipeline abstraction",local:"transformers.pipeline",headingTag:"h2"}}),vn=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}}),$n=new v({props:{code:"cGlwZSUyMCUzRCUyMHBpcGVsaW5lKG1vZGVsJTNEJTIyRmFjZWJvb2tBSSUyRnJvYmVydGEtbGFyZ2UtbW5saSUyMiklMEFwaXBlKCUyMlRoaXMlMjByZXN0YXVyYW50JTIwaXMlMjBhd2Vzb21lJTIyKQ==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span>pipe = pipeline(model=<span class="hljs-string">&quot;FacebookAI/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}}),Cn=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}}),qn=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}}),Zn=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}}),Fn=new j({props:{name:"transformers.pipeline",anchor:"transformers.pipeline",parameters:[{name:"task",val:": str = None"},{name:"model",val:": Union = None"},{name:"config",val:": Union = None"},{name:"tokenizer",val:": Union = None"},{name:"feature_extractor",val:": Union = None"},{name:"image_processor",val:": Union = None"},{name:"processor",val:": Union = None"},{name:"framework",val:": Optional = None"},{name:"revision",val:": Optional = None"},{name:"use_fast",val:": bool = True"},{name:"token",val:": Union = None"},{name:"device",val:": Union = None"},{name:"device_map",val:" = None"},{name:"torch_dtype",val:" = None"},{name:"trust_remote_code",val:": Optional = None"},{name:"model_kwargs",val:": Dict = None"},{name:"pipeline_class",val:": Optional = None"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.pipeline.task",description:`<strong>task</strong> (<code>str</code>) &#x2014;
The task defining which pipeline will be returned. Currently accepted tasks are:</p>
<ul>
<li><code>&quot;audio-classification&quot;</code>: will return a <a href="/docs/transformers/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;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-feature-extraction&quot;</code>: will return an <a href="/docs/transformers/main/en/main_classes/pipelines#transformers.ImageFeatureExtractionPipeline">ImageFeatureExtractionPipeline</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-text-to-text&quot;</code>: will return a <a href="/docs/transformers/main/en/main_classes/pipelines#transformers.ImageTextToTextPipeline">ImageTextToTextPipeline</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 <a href="/docs/transformers/main/en/main_classes/pipelines#transformers.MaskGenerationPipeline">MaskGenerationPipeline</a>.</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.image_processor",description:`<strong>image_processor</strong> (<code>str</code> or <a href="/docs/transformers/main/en/main_classes/image_processor#transformers.BaseImageProcessor">BaseImageProcessor</a>, <em>optional</em>) &#x2014;
The image processor that will be used by the pipeline to preprocess images for the model. This can be a
model identifier or an actual image processor inheriting from <a href="/docs/transformers/main/en/main_classes/image_processor#transformers.BaseImageProcessor">BaseImageProcessor</a>.</p>
<p>Image processors are used for Vision models and multi-modal models that require image inputs. Multi-modal
models will also require a tokenizer to be passed.</p>
<p>If not provided, the default image processor 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 image processor for <code>config</code> is loaded (if it is
a string).`,name:"image_processor"},{anchor:"transformers.pipeline.processor",description:`<strong>processor</strong> (<code>str</code> or <a href="/docs/transformers/main/en/main_classes/processors#transformers.ProcessorMixin">ProcessorMixin</a>, <em>optional</em>) &#x2014;
The processor that will be used by the pipeline to preprocess data for the model. This can be a model
identifier or an actual processor inheriting from <a href="/docs/transformers/main/en/main_classes/processors#transformers.ProcessorMixin">ProcessorMixin</a>.</p>
<p>Processors are used for multi-modal models that require multi-modal inputs, for example, a model that
requires both text and image inputs.</p>
<p>If not provided, the default processor 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 processor for <code>config</code> is loaded (if it is a string).`,name:"processor"},{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#L567",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>
`}}),Ye=new sc({props:{$$slots:{default:[_w]},$$scope:{ctx:M}}}),Oe=new P({props:{anchor:"transformers.pipeline.example",$$slots:{default:[xw]},$$scope:{ctx:M}}}),zn=new J({props:{title:"Pipeline batching",local:"pipeline-batching",headingTag:"h2"}}),Rn=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}}),Ee=new sc({props:{warning:!0,$$slots:{default:[Mw]},$$scope:{ctx:M}}}),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}}),Nn=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}}),Wn=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 J({props:{title:"Pipeline chunk batching",local:"pipeline-chunk-batching",headingTag:"h2"}}),Xn=new v({props:{code:"cHJlcHJvY2Vzc2VkJTIwJTNEJTIwcGlwZS5wcmVwcm9jZXNzKGlucHV0cyklMEFtb2RlbF9vdXRwdXRzJTIwJTNEJTIwcGlwZS5mb3J3YXJkKHByZXByb2Nlc3NlZCklMEFvdXRwdXRzJTIwJTNEJTIwcGlwZS5wb3N0cHJvY2Vzcyhtb2RlbF9vdXRwdXRzKQ==",highlighted:`preprocessed = pipe.preprocess(inputs)
model_outputs = pipe.forward(preprocessed)
outputs = pipe.postprocess(model_outputs)`,wrap:!1}}),es=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}}),ss=new J({props:{title:"Pipeline FP16 inference",local:"pipeline-fp16-inference",headingTag:"h2"}}),rs=new J({props:{title:"Pipeline custom code",local:"pipeline-custom-code",headingTag:"h2"}}),ds=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}}),hs=new J({props:{title:"Implementing a pipeline",local:"implementing-a-pipeline",headingTag:"h2"}}),gs=new J({props:{title:"Audio",local:"audio",headingTag:"h2"}}),Ts=new J({props:{title:"AudioClassificationPipeline",local:"transformers.AudioClassificationPipeline",headingTag:"h3"}}),ys=new j({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.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 data for the model. This object inherits from
<a href="/docs/transformers/main/en/main_classes/feature_extractor#transformers.SequenceFeatureExtractor">SequenceFeatureExtractor</a>.`,name:"feature_extractor"},{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.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.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 serialized format (i.e., pickle) or as
the raw output data e.g. text.`,name:"binary_output"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/pipelines/audio_classification.py#L66"}}),Qe=new P({props:{anchor:"transformers.AudioClassificationPipeline.example",$$slots:{default:[Uw]},$$scope:{ctx:M}}}),bs=new j({props:{name:"__call__",anchor:"transformers.AudioClassificationPipeline.__call__",parameters:[{name:"inputs",val:": Union"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.AudioClassificationPipeline.__call__.inputs",description:`<strong>inputs</strong> (<code>np.ndarray</code> or <code>bytes</code> or <code>str</code> or <code>dict</code>) &#x2014;
The inputs is either :<ul>
<li><code>str</code> that is the filename of the audio file, the file will be read at the correct sampling rate
to get the waveform using <em>ffmpeg</em>. This requires <em>ffmpeg</em> to be installed on the system.</li>
<li><code>bytes</code> it is supposed to be the content of an audio file and is interpreted by <em>ffmpeg</em> in the
same way.</li>
<li>(<code>np.ndarray</code> of shape (n, ) of type <code>np.float32</code> or <code>np.float64</code>)
Raw audio at the correct sampling rate (no further check will be done)</li>
<li><code>dict</code> form can be used to pass raw audio sampled at arbitrary <code>sampling_rate</code> and let this
pipeline do the resampling. The dict must be either be in the format <code>{&quot;sampling_rate&quot;: int, &quot;raw&quot;: np.array}</code>, or <code>{&quot;sampling_rate&quot;: int, &quot;array&quot;: np.array}</code>, where the key <code>&quot;raw&quot;</code> or
<code>&quot;array&quot;</code> is used to denote the raw audio waveform.</li>
</ul>`,name:"inputs"},{anchor:"transformers.AudioClassificationPipeline.__call__.top_k",description:`<strong>top_k</strong> (<code>int</code>, <em>optional</em>, defaults to None) &#x2014;
The number of top labels that will be returned by the pipeline. If the provided number is <code>None</code> or
higher than the number of labels available in the model configuration, it will default to the number of
labels.`,name:"top_k"},{anchor:"transformers.AudioClassificationPipeline.__call__.function_to_apply(str,",description:`<strong>function_to_apply(<code>str</code>,</strong> <em>optional</em>, defaults to &#x201C;softmax&#x201D;) &#x2014;
The function to apply to the model output. By default, the pipeline will apply the softmax function to
the output of the model. Valid options: [&#x201C;softmax&#x201D;, &#x201C;sigmoid&#x201D;, &#x201C;none&#x201D;]. Note that passing Python&#x2019;s
built-in <code>None</code> will default to &#x201C;softmax&#x201D;, so you need to pass the string &#x201C;none&#x201D; to disable any
post-processing.`,name:"function_to_apply(str,"}],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>
`}}),ws=new J({props:{title:"AutomaticSpeechRecognitionPipeline",local:"transformers.AutomaticSpeechRecognitionPipeline",headingTag:"h3"}}),_s=new j({props:{name:"class transformers.AutomaticSpeechRecognitionPipeline",anchor:"transformers.AutomaticSpeechRecognitionPipeline",parameters:[{name:"model",val:": PreTrainedModel"},{name:"feature_extractor",val:": Union = None"},{name:"tokenizer",val:": Optional = None"},{name:"decoder",val:": Union = None"},{name:"device",val:": Union = None"},{name:"torch_dtype",val:": Union = None"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.AutomaticSpeechRecognitionPipeline.model",description:`<strong>model</strong> (<a href="/docs/transformers/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.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.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.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"},{anchor:"transformers.AutomaticSpeechRecognitionPipeline.chunk_length_s",description:`<strong>chunk_length_s</strong> (<code>float</code>, <em>optional</em>, defaults to 0) &#x2014;
The input length for in each chunk. If <code>chunk_length_s = 0</code> then chunking is disabled (default).</p>
<div class="course-tip  bg-gradient-to-br dark:bg-gradient-to-r before:border-green-500 dark:before:border-green-800 from-green-50 dark:from-gray-900 to-white dark:to-gray-950 border border-green-50 text-green-700 dark:text-gray-400">
						
<p>For more information on how to effectively use <code>chunk_length_s</code>, please have a look at the <a href="https://huggingface.co/blog/asr-chunking" rel="nofollow">ASR chunking
blog post</a>.</p>

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

					</div>`,name:"stride_length_s"},{anchor:"transformers.AutomaticSpeechRecognitionPipeline.framework",description:`<strong>framework</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The framework to use, either <code>&quot;pt&quot;</code> for PyTorch or <code>&quot;tf&quot;</code> for TensorFlow. The specified framework must be
installed. If no framework is specified, will default to the one currently installed. If no framework is
specified and both frameworks are installed, will default to the framework of the <code>model</code>, or to PyTorch if
no model is provided.`,name:"framework"},{anchor:"transformers.AutomaticSpeechRecognitionPipeline.device",description:`<strong>device</strong> (Union[<code>int</code>, <code>torch.device</code>], <em>optional</em>) &#x2014;
Device ordinal for CPU/GPU supports. Setting this to <code>None</code> will leverage CPU, a positive will run the
model on the associated CUDA device id.`,name:"device"},{anchor:"transformers.AutomaticSpeechRecognitionPipeline.torch_dtype",description:`<strong>torch_dtype</strong> (Union[<code>int</code>, <code>torch.dtype</code>], <em>optional</em>) &#x2014;
The data-type (dtype) of the computation. Setting this to <code>None</code> will use float32 precision. Set to
<code>torch.float16</code> or <code>torch.bfloat16</code> to use half-precision in the respective dtypes.`,name:"torch_dtype"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/pipelines/automatic_speech_recognition.py#L127"}}),Ke=new P({props:{anchor:"transformers.AutomaticSpeechRecognitionPipeline.example",$$slots:{default:[kw]},$$scope:{ctx:M}}}),xs=new j({props:{name:"__call__",anchor:"transformers.AutomaticSpeechRecognitionPipeline.__call__",parameters:[{name:"inputs",val:": Union"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.AutomaticSpeechRecognitionPipeline.__call__.inputs",description:`<strong>inputs</strong> (<code>np.ndarray</code> or <code>bytes</code> or <code>str</code> or <code>dict</code>) &#x2014;
The inputs is either :</p>
<ul>
<li><code>str</code> that is either the filename of a local audio file, or a public URL address to download the
audio file. The file will be read at the correct sampling rate to get the waveform using
<em>ffmpeg</em>. This requires <em>ffmpeg</em> to be installed on the system.</li>
<li><code>bytes</code> it is supposed to be the content of an audio file and is interpreted by <em>ffmpeg</em> in the
same way.</li>
<li>(<code>np.ndarray</code> of shape (n, ) of type <code>np.float32</code> or <code>np.float64</code>)
Raw audio at the correct sampling rate (no further check will be done)</li>
<li><code>dict</code> form can be used to pass raw audio sampled at arbitrary <code>sampling_rate</code> and let this
pipeline do the resampling. The dict must be in the format <code>{&quot;sampling_rate&quot;: int, &quot;raw&quot;: np.array}</code> with optionally a <code>&quot;stride&quot;: (left: int, right: int)</code> than can ask the pipeline to
treat the first <code>left</code> samples and last <code>right</code> samples to be ignored in decoding (but used at
inference to provide more context to the model). Only use <code>stride</code> with CTC models.</li>
</ul>`,name:"inputs"},{anchor:"transformers.AutomaticSpeechRecognitionPipeline.__call__.return_timestamps",description:`<strong>return_timestamps</strong> (<em>optional</em>, <code>str</code> or <code>bool</code>) &#x2014;
Only available for pure CTC models (Wav2Vec2, HuBERT, etc) and the Whisper model. Not available for
other sequence-to-sequence models.</p>
<p>For CTC models, timestamps can take one of two formats:</p>
<ul>
<li><code>&quot;char&quot;</code>: the pipeline will return timestamps along the text for every character in the text. For
instance, if you get <code>[{&quot;text&quot;: &quot;h&quot;, &quot;timestamp&quot;: (0.5, 0.6)}, {&quot;text&quot;: &quot;i&quot;, &quot;timestamp&quot;: (0.7, 0.9)}]</code>, then it means the model predicts that the letter &#x201C;h&#x201D; was spoken after <code>0.5</code> and before
<code>0.6</code> seconds.</li>
<li><code>&quot;word&quot;</code>: the pipeline will return timestamps along the text for every word in the text. For
instance, if you get <code>[{&quot;text&quot;: &quot;hi &quot;, &quot;timestamp&quot;: (0.5, 0.9)}, {&quot;text&quot;: &quot;there&quot;, &quot;timestamp&quot;: (1.0, 1.5)}]</code>, then it means the model predicts that the word &#x201C;hi&#x201D; was spoken after <code>0.5</code> and
before <code>0.9</code> seconds.</li>
</ul>
<p>For the Whisper model, timestamps can take one of two formats:</p>
<ul>
<li><code>&quot;word&quot;</code>: same as above for word-level CTC timestamps. Word-level timestamps are predicted
through the <em>dynamic-time warping (DTW)</em> algorithm, an approximation to word-level timestamps
by inspecting the cross-attention weights.</li>
<li><code>True</code>: the pipeline will return timestamps along the text for <em>segments</em> of words in the text.
For instance, if you get <code>[{&quot;text&quot;: &quot; Hi there!&quot;, &quot;timestamp&quot;: (0.5, 1.5)}]</code>, then it means the
model predicts that the segment &#x201C;Hi there!&#x201D; was spoken after <code>0.5</code> and before <code>1.5</code> seconds.
Note that a segment of text refers to a sequence of one or more words, rather than individual
words as with word-level timestamps.</li>
</ul>`,name:"return_timestamps"},{anchor:"transformers.AutomaticSpeechRecognitionPipeline.__call__.generate_kwargs",description:`<strong>generate_kwargs</strong> (<code>dict</code>, <em>optional</em>) &#x2014;
The dictionary of ad-hoc parametrization of <code>generate_config</code> to be used for the generation call. For a
complete overview of generate, check the <a href="https://huggingface.co/docs/transformers/en/main_classes/text_generation" rel="nofollow">following
guide</a>.`,name:"generate_kwargs"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/pipelines/automatic_speech_recognition.py#L222",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>
`}}),Ms=new J({props:{title:"TextToAudioPipeline",local:"transformers.TextToAudioPipeline",headingTag:"h3"}}),Us=new j({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"}}),tt=new P({props:{anchor:"transformers.TextToAudioPipeline.example",$$slots:{default:[jw]},$$scope:{ctx:M}}}),nt=new sc({props:{$$slots:{default:[Jw]},$$scope:{ctx:M}}}),ks=new j({props:{name:"__call__",anchor:"transformers.TextToAudioPipeline.__call__",parameters:[{name:"text_inputs",val:": Union"},{name:"**forward_params",val:""}],parametersDescription:[{anchor:"transformers.TextToAudioPipeline.__call__.text_inputs",description:`<strong>text_inputs</strong> (<code>str</code> or <code>List[str]</code>) &#x2014;
The text(s) to generate.`,name:"text_inputs"},{anchor:"transformers.TextToAudioPipeline.__call__.forward_params",description:`<strong>forward_params</strong> (<code>dict</code>, <em>optional</em>) &#x2014;
Parameters passed to the model generation/forward method. <code>forward_params</code> are always passed to the
underlying model.`,name:"forward_params"},{anchor:"transformers.TextToAudioPipeline.__call__.generate_kwargs",description:`<strong>generate_kwargs</strong> (<code>dict</code>, <em>optional</em>) &#x2014;
The dictionary of ad-hoc parametrization of <code>generate_config</code> to be used for the generation call. For a
complete overview of generate, check the <a href="https://huggingface.co/docs/transformers/en/main_classes/text_generation" rel="nofollow">following
guide</a>. <code>generate_kwargs</code> are
only passed to the underlying model if the latter is a generative model.`,name:"generate_kwargs"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/pipelines/text_to_audio.py#L164",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>
`}}),js=new J({props:{title:"ZeroShotAudioClassificationPipeline",local:"transformers.ZeroShotAudioClassificationPipeline",headingTag:"h3"}}),vs=new j({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.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 data for the model. This object inherits from
<a href="/docs/transformers/main/en/main_classes/feature_extractor#transformers.SequenceFeatureExtractor">SequenceFeatureExtractor</a>.`,name:"feature_extractor"},{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.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.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 serialized format (i.e., pickle) or as
the raw output data e.g. text.`,name:"binary_output"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/pipelines/zero_shot_audio_classification.py#L32"}}),ot=new sc({props:{warning:!0,$$slots:{default:[$w]},$$scope:{ctx:M}}}),at=new P({props:{anchor:"transformers.ZeroShotAudioClassificationPipeline.example",$$slots:{default:[Pw]},$$scope:{ctx:M}}}),Js=new j({props:{name:"__call__",anchor:"transformers.ZeroShotAudioClassificationPipeline.__call__",parameters:[{name:"audios",val:": Union"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.ZeroShotAudioClassificationPipeline.__call__.audios",description:`<strong>audios</strong> (<code>str</code>, <code>List[str]</code>, <code>np.array</code> or <code>List[np.array]</code>) &#x2014;
The pipeline handles three types of inputs:<ul>
<li>A string containing a http link pointing to an audio</li>
<li>A string containing a local path to an audio</li>
<li>An audio loaded in numpy</li>
</ul>`,name:"audios"},{anchor:"transformers.ZeroShotAudioClassificationPipeline.__call__.candidate_labels",description:`<strong>candidate_labels</strong> (<code>List[str]</code>) &#x2014;
The candidate labels for this audio. They will be formatted using <em>hypothesis_template</em>.`,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 format used in conjunction with <em>candidate_labels</em> to attempt the audio classification by
replacing the placeholder with the candidate_labels. Pass &#x201D;{}&#x201D; if <em>candidate_labels</em> are
already formatted.`,name:"hypothesis_template"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/pipelines/zero_shot_audio_classification.py#L70",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>A list of dictionaries containing one entry per proposed label. Each dictionary contains the
following keys:</p>
<ul>
<li><strong>label</strong> (<code>str</code>) — One of the suggested <em>candidate_labels</em>.</li>
<li><strong>score</strong> (<code>float</code>) — The score attributed by the model to that label. It is a value between
0 and 1, computed as the <code>softmax</code> of <code>logits_per_audio</code>.</li>
</ul>
`}}),$s=new J({props:{title:"Computer vision",local:"computer-vision",headingTag:"h2"}}),Cs=new J({props:{title:"DepthEstimationPipeline",local:"transformers.DepthEstimationPipeline",headingTag:"h3"}}),Is=new j({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.image_processor",description:`<strong>image_processor</strong> (<a href="/docs/transformers/main/en/main_classes/image_processor#transformers.BaseImageProcessor">BaseImageProcessor</a>) &#x2014;
The image processor 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/image_processor#transformers.BaseImageProcessor">BaseImageProcessor</a>.`,name:"image_processor"},{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.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.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 serialized format (i.e., pickle) or as
the raw output data e.g. text.`,name:"binary_output"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/pipelines/depth_estimation.py#L24"}}),it=new P({props:{anchor:"transformers.DepthEstimationPipeline.example",$$slots:{default:[Cw]},$$scope:{ctx:M}}}),qs=new j({props:{name:"__call__",anchor:"transformers.DepthEstimationPipeline.__call__",parameters:[{name:"inputs",val:": Union = None"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.DepthEstimationPipeline.__call__.inputs",description:`<strong>inputs</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:"inputs"},{anchor:"transformers.DepthEstimationPipeline.__call__.parameters",description:`<strong>parameters</strong> (<code>Dict</code>, <em>optional</em>) &#x2014;
A dictionary of argument names to parameter values, to control pipeline behaviour.
The only parameter available right now is <code>timeout</code>, which is the length of time, in seconds,
that the pipeline should wait before giving up on trying to download an image.`,name:"parameters"},{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#L55",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>predicted_depth</strong> (<code>torch.Tensor</code>) — The predicted depth by the model as a <code>torch.Tensor</code>.</li>
<li><strong>depth</strong> (<code>PIL.Image</code>) — The predicted depth by the model as a <code>PIL.Image</code>.</li>
</ul>
`}}),Gs=new J({props:{title:"ImageClassificationPipeline",local:"transformers.ImageClassificationPipeline",headingTag:"h3"}}),Zs=new j({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.image_processor",description:`<strong>image_processor</strong> (<a href="/docs/transformers/main/en/main_classes/image_processor#transformers.BaseImageProcessor">BaseImageProcessor</a>) &#x2014;
The image processor 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/image_processor#transformers.BaseImageProcessor">BaseImageProcessor</a>.`,name:"image_processor"},{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.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.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 serialized format (i.e., pickle) or as
the raw output data e.g. text.`,name:"binary_output"},{anchor:"transformers.ImageClassificationPipeline.function_to_apply",description:`<strong>function_to_apply</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;default&quot;</code>) &#x2014;
The function to apply to the model outputs in order to retrieve the scores. Accepts four different values:</p>
<ul>
<li><code>&quot;default&quot;</code>: if the model has a single label, will apply the sigmoid function on the output. If the model
has several labels, will apply the softmax function on the output.</li>
<li><code>&quot;sigmoid&quot;</code>: Applies the sigmoid function on the output.</li>
<li><code>&quot;softmax&quot;</code>: Applies the softmax function on the output.</li>
<li><code>&quot;none&quot;</code>: Does not apply any function on the output.</li>
</ul>`,name:"function_to_apply"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/pipelines/image_classification.py#L65"}}),ct=new P({props:{anchor:"transformers.ImageClassificationPipeline.example",$$slots:{default:[Iw]},$$scope:{ctx:M}}}),Fs=new j({props:{name:"__call__",anchor:"transformers.ImageClassificationPipeline.__call__",parameters:[{name:"inputs",val:": Union = None"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.ImageClassificationPipeline.__call__.inputs",description:`<strong>inputs</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:"inputs"},{anchor:"transformers.ImageClassificationPipeline.__call__.function_to_apply",description:`<strong>function_to_apply</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;default&quot;</code>) &#x2014;
The function to apply to the model outputs in order to retrieve the scores. Accepts four different
values:</p>
<p>If this argument is not specified, then it will apply the following functions according to the number
of labels:</p>
<ul>
<li>If the model has a single label, will apply the sigmoid function on the output.</li>
<li>If the model has several labels, will apply the softmax function on the output.</li>
</ul>
<p>Possible values are:</p>
<ul>
<li><code>&quot;sigmoid&quot;</code>: Applies the sigmoid function on the output.</li>
<li><code>&quot;softmax&quot;</code>: Applies the softmax function on the output.</li>
<li><code>&quot;none&quot;</code>: Does not apply any function on the output.</li>
</ul>`,name:"function_to_apply"},{anchor:"transformers.ImageClassificationPipeline.__call__.top_k",description:`<strong>top_k</strong> (<code>int</code>, <em>optional</em>, defaults to 5) &#x2014;
The number of top labels that will be returned by the pipeline. If the provided number is higher than
the number of labels available in the model configuration, it will default to the number of labels.`,name:"top_k"},{anchor:"transformers.ImageClassificationPipeline.__call__.timeout",description:`<strong>timeout</strong> (<code>float</code>, <em>optional</em>, defaults to None) &#x2014;
The maximum time in seconds to wait for fetching images from the web. If None, no timeout is set and
the call may block forever.`,name:"timeout"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/pipelines/image_classification.py#L125",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>
`}}),zs=new J({props:{title:"ImageSegmentationPipeline",local:"transformers.ImageSegmentationPipeline",headingTag:"h3"}}),Bs=new j({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.image_processor",description:`<strong>image_processor</strong> (<a href="/docs/transformers/main/en/main_classes/image_processor#transformers.BaseImageProcessor">BaseImageProcessor</a>) &#x2014;
The image processor 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/image_processor#transformers.BaseImageProcessor">BaseImageProcessor</a>.`,name:"image_processor"},{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.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.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 serialized format (i.e., pickle) or as
the raw output data e.g. text.`,name:"binary_output"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/pipelines/image_segmentation.py#L30"}}),dt=new P({props:{anchor:"transformers.ImageSegmentationPipeline.example",$$slots:{default:[qw]},$$scope:{ctx:M}}}),Rs=new j({props:{name:"__call__",anchor:"transformers.ImageSegmentationPipeline.__call__",parameters:[{name:"inputs",val:" = None"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.ImageSegmentationPipeline.__call__.inputs",description:`<strong>inputs</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:"inputs"},{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>
`}}),Ds=new J({props:{title:"ImageToImagePipeline",local:"transformers.ImageToImagePipeline",headingTag:"h3"}}),Ns=new j({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.image_processor",description:`<strong>image_processor</strong> (<a href="/docs/transformers/main/en/main_classes/image_processor#transformers.BaseImageProcessor">BaseImageProcessor</a>) &#x2014;
The image processor 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/image_processor#transformers.BaseImageProcessor">BaseImageProcessor</a>.`,name:"image_processor"},{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.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.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 serialized format (i.e., pickle) or as
the raw output data e.g. text.`,name:"binary_output"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/pipelines/image_to_image.py#L39"}}),ht=new P({props:{anchor:"transformers.ImageToImagePipeline.example",$$slots:{default:[Gw]},$$scope:{ctx:M}}}),As=new j({props:{name:"__call__",anchor:"transformers.ImageToImagePipeline.__call__",parameters:[{name:"images",val:": Union"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.ImageToImagePipeline.__call__.images",description:`<strong>images</strong> (<code>str</code>, <code>List[str]</code>, <code>PIL.Image</code> or <code>List[PIL.Image]</code>) &#x2014;
The pipeline handles three types of images:</p>
<ul>
<li>A string containing a http link pointing to an image</li>
<li>A string containing a local path to an image</li>
<li>An image loaded in PIL directly</li>
</ul>
<p>The pipeline accepts either a single image or a batch of images, which must then be passed as a string.
Images in a batch must all be in the same format: all as http links, all as local paths, or all as PIL
images.`,name:"images"},{anchor:"transformers.ImageToImagePipeline.__call__.timeout",description:`<strong>timeout</strong> (<code>float</code>, <em>optional</em>, defaults to None) &#x2014;
The maximum time in seconds to wait for fetching images from the web. If None, no timeout is used and
the call may block forever.`,name:"timeout"}],source:"https://github.com/huggingface/transformers/blob/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>
`}}),Vs=new J({props:{title:"ObjectDetectionPipeline",local:"transformers.ObjectDetectionPipeline",headingTag:"h3"}}),Ss=new j({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.image_processor",description:`<strong>image_processor</strong> (<a href="/docs/transformers/main/en/main_classes/image_processor#transformers.BaseImageProcessor">BaseImageProcessor</a>) &#x2014;
The image processor 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/image_processor#transformers.BaseImageProcessor">BaseImageProcessor</a>.`,name:"image_processor"},{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.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.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 serialized format (i.e., pickle) or as
the raw output data e.g. text.`,name:"binary_output"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/pipelines/object_detection.py#L26"}}),gt=new P({props:{anchor:"transformers.ObjectDetectionPipeline.example",$$slots:{default:[Zw]},$$scope:{ctx:M}}}),Ws=new j({props:{name:"__call__",anchor:"transformers.ObjectDetectionPipeline.__call__",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.ObjectDetectionPipeline.__call__.inputs",description:`<strong>inputs</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:"inputs"},{anchor:"transformers.ObjectDetectionPipeline.__call__.threshold",description:`<strong>threshold</strong> (<code>float</code>, <em>optional</em>, defaults to 0.5) &#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>
`}}),Ls=new J({props:{title:"VideoClassificationPipeline",local:"transformers.VideoClassificationPipeline",headingTag:"h3"}}),Hs=new j({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.image_processor",description:`<strong>image_processor</strong> (<a href="/docs/transformers/main/en/main_classes/image_processor#transformers.BaseImageProcessor">BaseImageProcessor</a>) &#x2014;
The image processor 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/image_processor#transformers.BaseImageProcessor">BaseImageProcessor</a>.`,name:"image_processor"},{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.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.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 serialized format (i.e., pickle) or as
the raw output data e.g. text.`,name:"binary_output"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/pipelines/video_classification.py#L41"}}),Ys=new j({props:{name:"__call__",anchor:"transformers.VideoClassificationPipeline.__call__",parameters:[{name:"inputs",val:": Union = None"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.VideoClassificationPipeline.__call__.inputs",description:`<strong>inputs</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:"inputs"},{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"},{anchor:"transformers.VideoClassificationPipeline.__call__.function_to_apply(str,",description:`<strong>function_to_apply(<code>str</code>,</strong> <em>optional</em>, defaults to &#x201C;softmax&#x201D;) &#x2014;
The function to apply to the model output. By default, the pipeline will apply the softmax function to
the output of the model. Valid options: [&#x201C;softmax&#x201D;, &#x201C;sigmoid&#x201D;, &#x201C;none&#x201D;]. Note that passing Python&#x2019;s
built-in <code>None</code> will default to &#x201C;softmax&#x201D;, so you need to pass the string &#x201C;none&#x201D; to disable any
post-processing.`,name:"function_to_apply(str,"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/pipelines/video_classification.py#L80",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>
`}}),Os=new J({props:{title:"ZeroShotImageClassificationPipeline",local:"transformers.ZeroShotImageClassificationPipeline",headingTag:"h3"}}),Es=new j({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.image_processor",description:`<strong>image_processor</strong> (<a href="/docs/transformers/main/en/main_classes/image_processor#transformers.BaseImageProcessor">BaseImageProcessor</a>) &#x2014;
The image processor 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/image_processor#transformers.BaseImageProcessor">BaseImageProcessor</a>.`,name:"image_processor"},{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.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.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 serialized format (i.e., pickle) or as
the raw output data e.g. text.`,name:"binary_output"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/pipelines/zero_shot_image_classification.py#L33"}}),yt=new P({props:{anchor:"transformers.ZeroShotImageClassificationPipeline.example",$$slots:{default:[Fw]},$$scope:{ctx:M}}}),Qs=new j({props:{name:"__call__",anchor:"transformers.ZeroShotImageClassificationPipeline.__call__",parameters:[{name:"image",val:": Union = None"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.ZeroShotImageClassificationPipeline.__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>`,name:"image"},{anchor:"transformers.ZeroShotImageClassificationPipeline.__call__.candidate_labels",description:`<strong>candidate_labels</strong> (<code>List[str]</code>) &#x2014;
The candidate labels for this image. They will be formatted using <em>hypothesis_template</em>.`,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 format used in conjunction with <em>candidate_labels</em> to attempt the image classification by
replacing the placeholder with the candidate_labels. Pass &#x201D;{}&#x201D; if <em>candidate_labels</em> are
already formatted.`,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#L77",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>A list of dictionaries containing one entry per proposed label. Each dictionary contains the
following keys:</p>
<ul>
<li><strong>label</strong> (<code>str</code>) — One of the suggested <em>candidate_labels</em>.</li>
<li><strong>score</strong> (<code>float</code>) — The score attributed by the model to that label. It is a value between
0 and 1, computed as the <code>softmax</code> of <code>logits_per_image</code>.</li>
</ul>
`}}),Xs=new J({props:{title:"ZeroShotObjectDetectionPipeline",local:"transformers.ZeroShotObjectDetectionPipeline",headingTag:"h3"}}),Ks=new j({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.image_processor",description:`<strong>image_processor</strong> (<a href="/docs/transformers/main/en/main_classes/image_processor#transformers.BaseImageProcessor">BaseImageProcessor</a>) &#x2014;
The image processor 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/image_processor#transformers.BaseImageProcessor">BaseImageProcessor</a>.`,name:"image_processor"},{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.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.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 serialized format (i.e., pickle) or as
the raw output data e.g. text.`,name:"binary_output"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/pipelines/zero_shot_object_detection.py#L22"}}),wt=new P({props:{anchor:"transformers.ZeroShotObjectDetectionPipeline.example",$$slots:{default:[zw]},$$scope:{ctx:M}}}),eo=new j({props:{name:"__call__",anchor:"transformers.ZeroShotObjectDetectionPipeline.__call__",parameters:[{name:"image",val:": Union"},{name:"candidate_labels",val:": Union = None"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.ZeroShotObjectDetectionPipeline.__call__.image",description:`<strong>image</strong> (<code>str</code>, <code>PIL.Image</code> or <code>List[Dict[str, Any]]</code>) &#x2014;
The pipeline handles three types of images:</p>
<ul>
<li>A string containing an http url pointing to an image</li>
<li>A string containing a local path to an image</li>
<li>An image loaded in PIL directly</li>
</ul>
<p>You can use this parameter to send directly a list of images, or a dataset or a generator like so:`,name:"image"}],source:"https://github.com/huggingface/transformers/blob/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>
`}}),to=new J({props:{title:"Natural Language Processing",local:"natural-language-processing",headingTag:"h2"}}),so=new J({props:{title:"FillMaskPipeline",local:"transformers.FillMaskPipeline",headingTag:"h3"}}),oo=new j({props:{name:"class transformers.FillMaskPipeline",anchor:"transformers.FillMaskPipeline",parameters:[{name:"model",val:": Union"},{name:"tokenizer",val:": Optional = None"},{name:"feature_extractor",val:": Optional = None"},{name:"image_processor",val:": Optional = None"},{name:"processor",val:": Optional = None"},{name:"modelcard",val:": Optional = None"},{name:"framework",val:": Optional = None"},{name:"task",val:": str = ''"},{name:"args_parser",val:": ArgumentHandler = None"},{name:"device",val:": Union = None"},{name:"torch_dtype",val:": Union = None"},{name:"binary_output",val:": bool = False"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.FillMaskPipeline.model",description:`<strong>model</strong> (<a href="/docs/transformers/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.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.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 serialized format (i.e., pickle) or as
the raw output data e.g. text.`,name:"binary_output"},{anchor:"transformers.FillMaskPipeline.top_k",description:`<strong>top_k</strong> (<code>int</code>, <em>optional</em>, 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"},{anchor:"transformers.FillMaskPipeline.tokenizer_kwargs",description:`<strong>tokenizer_kwargs</strong> (<code>dict</code>, <em>optional</em>) &#x2014;
Additional dictionary of keyword arguments passed along to the tokenizer.`,name:"tokenizer_kwargs"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/pipelines/fill_mask.py#L22"}}),xt=new P({props:{anchor:"transformers.FillMaskPipeline.example",$$slots:{default:[Bw]},$$scope:{ctx:M}}}),Mt=new sc({props:{$$slots:{default:[Rw]},$$scope:{ctx:M}}}),Ut=new sc({props:{$$slots:{default:[Nw]},$$scope:{ctx:M}}}),ao=new j({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>
`}}),ro=new J({props:{title:"QuestionAnsweringPipeline",local:"transformers.QuestionAnsweringPipeline",headingTag:"h3"}}),io=new j({props:{name:"class transformers.QuestionAnsweringPipeline",anchor:"transformers.QuestionAnsweringPipeline",parameters:[{name:"model",val:": Union"},{name:"tokenizer",val:": PreTrainedTokenizer"},{name:"modelcard",val:": Optional = None"},{name:"framework",val:": Optional = None"},{name:"task",val:": str = ''"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.QuestionAnsweringPipeline.model",description:`<strong>model</strong> (<a href="/docs/transformers/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.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.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 serialized format (i.e., pickle) or as
the raw output data e.g. text.`,name:"binary_output"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/pipelines/question_answering.py#L232"}}),jt=new P({props:{anchor:"transformers.QuestionAnsweringPipeline.example",$$slots:{default:[Aw]},$$scope:{ctx:M}}}),lo=new j({props:{name:"__call__",anchor:"transformers.QuestionAnsweringPipeline.__call__",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],parametersDescription:[{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__.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.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 languages. 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#L351",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>
`}}),co=new j({props:{name:"create_sample",anchor:"transformers.QuestionAnsweringPipeline.create_sample",parameters:[{name:"question",val:": Union"},{name:"context",val:": Union"}],parametersDescription:[{anchor:"transformers.QuestionAnsweringPipeline.create_sample.question",description:"<strong>question</strong> (<code>str</code> or <code>List[str]</code>) &#x2014; The question(s) asked.",name:"question"},{anchor:"transformers.QuestionAnsweringPipeline.create_sample.context",description:"<strong>context</strong> (<code>str</code> or <code>List[str]</code>) &#x2014; The context(s) in which we will look for the answer.",name:"context"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/pipelines/question_answering.py#L286",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>
`}}),po=new j({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#L641",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>
`}}),mo=new J({props:{title:"SummarizationPipeline",local:"transformers.SummarizationPipeline",headingTag:"h3"}}),ho=new j({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.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.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 serialized format (i.e., pickle) or as
the raw output data e.g. text.`,name:"binary_output"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/pipelines/text2text_generation.py#L221"}}),$t=new P({props:{anchor:"transformers.SummarizationPipeline.example",$$slots:{default:[Vw]},$$scope:{ctx:M}}}),fo=new j({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="./text_generation">here</a>).`,name:"clean_up_tokenization_spaces"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/pipelines/text2text_generation.py#L250",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>
`}}),go=new J({props:{title:"TableQuestionAnsweringPipeline",local:"transformers.TableQuestionAnsweringPipeline",headingTag:"h3"}}),uo=new j({props:{name:"class transformers.TableQuestionAnsweringPipeline",anchor:"transformers.TableQuestionAnsweringPipeline",parameters:[{name:"args_parser",val:" = <transformers.pipelines.table_question_answering.TableQuestionAnsweringArgumentHandler object at 0x7f64a9cfee60>"},{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.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.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 serialized format (i.e., pickle) or as
the raw output data e.g. text.`,name:"binary_output"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/pipelines/table_question_answering.py#L85"}}),Ct=new P({props:{anchor:"transformers.TableQuestionAnsweringPipeline.example",$$slots:{default:[Sw]},$$scope:{ctx:M}}}),To=new j({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#L269",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>
`}}),It=new P({props:{anchor:"transformers.TableQuestionAnsweringPipeline.__call__.example",$$slots:{default:[Ww]},$$scope:{ctx:M}}}),qt=new P({props:{anchor:"transformers.TableQuestionAnsweringPipeline.__call__.example-2",$$slots:{default:[Lw]},$$scope:{ctx:M}}}),yo=new J({props:{title:"TextClassificationPipeline",local:"transformers.TextClassificationPipeline",headingTag:"h3"}}),bo=new j({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.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.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 serialized format (i.e., pickle) or as
the raw output data e.g. 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. In case of regression tasks, will not
apply any 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#L34"}}),Gt=new P({props:{anchor:"transformers.TextClassificationPipeline.example",$$slots:{default:[Hw]},$$scope:{ctx:M}}}),wo=new j({props:{name:"__call__",anchor:"transformers.TextClassificationPipeline.__call__",parameters:[{name:"inputs",val:""},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.TextClassificationPipeline.__call__.inputs",description:`<strong>inputs</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:"inputs"},{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 problem type is regression, will not apply any function on the output.</li>
<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#L123",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>
`}}),_o=new J({props:{title:"TextGenerationPipeline",local:"transformers.TextGenerationPipeline",headingTag:"h3"}}),xo=new j({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.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.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 serialized format (i.e., pickle) or as
the raw output data e.g. text.`,name:"binary_output"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/pipelines/text_generation.py#L37"}}),Ft=new P({props:{anchor:"transformers.TextGenerationPipeline.example",$$slots:{default:[Yw]},$$scope:{ctx:M}}}),zt=new P({props:{anchor:"transformers.TextGenerationPipeline.example-2",$$slots:{default:[Ow]},$$scope:{ctx:M}}}),Mo=new j({props:{name:"__call__",anchor:"transformers.TextGenerationPipeline.__call__",parameters:[{name:"text_inputs",val:""},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.TextGenerationPipeline.__call__.text_inputs",description:`<strong>text_inputs</strong> (<code>str</code>, <code>List[str]</code>, List[Dict[str, str]], or <code>List[List[Dict[str, str]]]</code>) &#x2014;
One or several prompts (or one list of prompts) to complete. If strings or a list of string are
passed, this pipeline will continue each prompt. Alternatively, a &#x201C;chat&#x201D;, in the form of a list
of dicts with &#x201C;role&#x201D; and &#x201C;content&#x201D; keys, can be passed, or a list of such chats. When chats are passed,
the model&#x2019;s chat template will be used to format them before passing them to the model.`,name:"text_inputs"},{anchor:"transformers.TextGenerationPipeline.__call__.return_tensors",description:`<strong>return_tensors</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Returns 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>) &#x2014;
Returns 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. Cannot be
specified at the same time as <code>return_text</code>.`,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>True</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__.continue_final_message(",description:`<strong>continue_final_message(</strong> <code>bool</code>, <em>optional</em>) &#x2014; This indicates that you want the model to continue the
last message in the input chat rather than starting a new one, allowing you to &#x201C;prefill&#x201D; its response.
By default this is <code>True</code> when the final message in the input chat has the <code>assistant</code> role and
<code>False</code> otherwise, but you can manually override that behaviour by setting this flag.`,name:"continue_final_message("},{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>`,name:"handle_long_generation"},{anchor:"transformers.TextGenerationPipeline.__call__.generate_kwargs",description:`<strong>generate_kwargs</strong> (<code>dict</code>, <em>optional</em>) &#x2014;
Additional keyword arguments to pass along to the generate method of the model (see the generate method
corresponding to your framework <a href="./text_generation">here</a>).`,name:"generate_kwargs"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/pipelines/text_generation.py#L215",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 lists of <code>dict</code></p>
`}}),Uo=new J({props:{title:"Text2TextGenerationPipeline",local:"transformers.Text2TextGenerationPipeline",headingTag:"h3"}}),ko=new j({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.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.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 serialized format (i.e., pickle) or as
the raw output data e.g. text.`,name:"binary_output"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/pipelines/text2text_generation.py#L25"}}),Rt=new P({props:{anchor:"transformers.Text2TextGenerationPipeline.example",$$slots:{default:[Ew]},$$scope:{ctx:M}}}),Dt=new P({props:{anchor:"transformers.Text2TextGenerationPipeline.example-2",$$slots:{default:[Qw]},$$scope:{ctx:M}}}),jo=new j({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="./text_generation">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>
`}}),vo=new j({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"}}),Jo=new J({props:{title:"TokenClassificationPipeline",local:"transformers.TokenClassificationPipeline",headingTag:"h3"}}),$o=new j({props:{name:"class transformers.TokenClassificationPipeline",anchor:"transformers.TokenClassificationPipeline",parameters:[{name:"args_parser",val:" = <transformers.pipelines.token_classification.TokenClassificationArgumentHandler object at 0x7f64a9cfd450>"},{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.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.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 serialized format (i.e., pickle) or as
the raw output data e.g. 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#L63"}}),Vt=new P({props:{anchor:"transformers.TokenClassificationPipeline.example",$$slots:{default:[Xw]},$$scope:{ctx:M}}}),Po=new j({props:{name:"__call__",anchor:"transformers.TokenClassificationPipeline.__call__",parameters:[{name:"inputs",val:": Union"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.TokenClassificationPipeline.__call__.inputs",description:`<strong>inputs</strong> (<code>str</code> or <code>List[str]</code>) &#x2014;
One or several texts (or one list of texts) for token classification.`,name:"inputs"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/pipelines/token_classification.py#L220",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>
`}}),Co=new j({props:{name:"aggregate_words",anchor:"transformers.TokenClassificationPipeline.aggregate_words",parameters:[{name:"entities",val:": List"},{name:"aggregation_strategy",val:": AggregationStrategy"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/pipelines/token_classification.py#L475"}}),Io=new j({props:{name:"gather_pre_entities",anchor:"transformers.TokenClassificationPipeline.gather_pre_entities",parameters:[{name:"sentence",val:": str"},{name:"input_ids",val:": ndarray"},{name:"scores",val:": ndarray"},{name:"offset_mapping",val:": Optional"},{name:"special_tokens_mask",val:": ndarray"},{name:"aggregation_strategy",val:": AggregationStrategy"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/pipelines/token_classification.py#L361"}}),qo=new j({props:{name:"group_entities",anchor:"transformers.TokenClassificationPipeline.group_entities",parameters:[{name:"entities",val:": List"}],parametersDescription:[{anchor:"transformers.TokenClassificationPipeline.group_entities.entities",description:"<strong>entities</strong> (<code>dict</code>) &#x2014; The entities predicted by the pipeline.",name:"entities"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/pipelines/token_classification.py#L538"}}),Go=new j({props:{name:"group_sub_entities",anchor:"transformers.TokenClassificationPipeline.group_sub_entities",parameters:[{name:"entities",val:": List"}],parametersDescription:[{anchor:"transformers.TokenClassificationPipeline.group_sub_entities.entities",description:"<strong>entities</strong> (<code>dict</code>) &#x2014; The entities predicted by the pipeline.",name:"entities"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/pipelines/token_classification.py#L503"}}),Zo=new J({props:{title:"TranslationPipeline",local:"transformers.TranslationPipeline",headingTag:"h3"}}),Fo=new j({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.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.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 serialized format (i.e., pickle) or as
the raw output data e.g. text.`,name:"binary_output"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/pipelines/text2text_generation.py#L291"}}),Yt=new P({props:{anchor:"transformers.TranslationPipeline.example",$$slots:{default:[Kw]},$$scope:{ctx:M}}}),zo=new j({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="./text_generation">here</a>).`,name:"tgt_lang"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/pipelines/text2text_generation.py#L346",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>
`}}),Bo=new J({props:{title:"ZeroShotClassificationPipeline",local:"transformers.ZeroShotClassificationPipeline",headingTag:"h3"}}),Ro=new j({props:{name:"class transformers.ZeroShotClassificationPipeline",anchor:"transformers.ZeroShotClassificationPipeline",parameters:[{name:"args_parser",val:" = <transformers.pipelines.zero_shot_classification.ZeroShotClassificationArgumentHandler object at 0x7f64a9d7c1f0>"},{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.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.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 serialized format (i.e., pickle) or as
the raw output data e.g. text.`,name:"binary_output"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/pipelines/zero_shot_classification.py#L46"}}),Et=new P({props:{anchor:"transformers.ZeroShotClassificationPipeline.example",$$slots:{default:[e_]},$$scope:{ctx:M}}}),Do=new j({props:{name:"__call__",anchor:"transformers.ZeroShotClassificationPipeline.__call__",parameters:[{name:"sequences",val:": Union"},{name:"*args",val:""},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.ZeroShotClassificationPipeline.__call__.sequences",description:`<strong>sequences</strong> (<code>str</code> or <code>List[str]</code>) &#x2014;
The sequence(s) to classify, will be truncated if the model input is too large.`,name:"sequences"},{anchor:"transformers.ZeroShotClassificationPipeline.__call__.candidate_labels",description:`<strong>candidate_labels</strong> (<code>str</code> or <code>List[str]</code>) &#x2014;
The set of possible class labels to classify each sequence into. Can be a single label, a string of
comma-separated labels, or a list of labels.`,name:"candidate_labels"},{anchor:"transformers.ZeroShotClassificationPipeline.__call__.hypothesis_template",description:`<strong>hypothesis_template</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;This example is {}.&quot;</code>) &#x2014;
The template used to turn each label into an NLI-style hypothesis. This template must include a {} or
similar syntax for the candidate label to be inserted into the template. For example, the default
template is <code>&quot;This example is {}.&quot;</code> With the candidate label <code>&quot;sports&quot;</code>, this would be fed into the
model like <code>&quot;&lt;cls&gt; sequence to classify &lt;sep&gt; This example is sports . &lt;sep&gt;&quot;</code>. The default template
works well in many cases, but it may be worthwhile to experiment with different templates depending on
the task setting.`,name:"hypothesis_template"},{anchor:"transformers.ZeroShotClassificationPipeline.__call__.multi_label",description:`<strong>multi_label</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not multiple candidate labels can be true. If <code>False</code>, the scores are normalized such that
the sum of the label likelihoods for each sequence is 1. If <code>True</code>, the labels are considered
independent and probabilities are normalized for each candidate by doing a softmax of the entailment
score vs. the contradiction score.`,name:"multi_label"}],source:"https://github.com/huggingface/transformers/blob/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>
`}}),No=new J({props:{title:"Multimodal",local:"multimodal",headingTag:"h2"}}),Vo=new J({props:{title:"DocumentQuestionAnsweringPipeline",local:"transformers.DocumentQuestionAnsweringPipeline",headingTag:"h3"}}),So=new j({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.image_processor",description:`<strong>image_processor</strong> (<a href="/docs/transformers/main/en/main_classes/image_processor#transformers.BaseImageProcessor">BaseImageProcessor</a>) &#x2014;
The image processor 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/image_processor#transformers.BaseImageProcessor">BaseImageProcessor</a>.`,name:"image_processor"},{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.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.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 serialized format (i.e., pickle) or as
the raw output data e.g. text.`,name:"binary_output"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/pipelines/document_question_answering.py#L101"}}),Xt=new P({props:{anchor:"transformers.DocumentQuestionAnsweringPipeline.example",$$slots:{default:[t_]},$$scope:{ctx:M}}}),Wo=new j({props:{name:"__call__",anchor:"transformers.DocumentQuestionAnsweringPipeline.__call__",parameters:[{name:"image",val:": Union"},{name:"question",val:": Optional = None"},{name:"word_boxes",val:": Tuple = None"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.DocumentQuestionAnsweringPipeline.__call__.image",description:`<strong>image</strong> (<code>str</code> or <code>PIL.Image</code>) &#x2014;
The pipeline handles three types of images:</p>
<ul>
<li>A string containing a http link pointing to an image</li>
<li>A string containing a local path to an image</li>
<li>An image loaded in PIL directly</li>
</ul>
<p>The pipeline accepts either a single image or a batch of images. If given a single image, it can be
broadcasted to multiple questions.`,name:"image"},{anchor:"transformers.DocumentQuestionAnsweringPipeline.__call__.question",description:`<strong>question</strong> (<code>str</code>) &#x2014;
A question to ask of the document.`,name:"question"},{anchor:"transformers.DocumentQuestionAnsweringPipeline.__call__.word_boxes",description:`<strong>word_boxes</strong> (<code>List[str, Tuple[float, float, float, float]]</code>, <em>optional</em>) &#x2014;
A list of words and bounding boxes (normalized 0-&gt;1000). If you provide this optional input, then the
pipeline will use these words and boxes instead of running OCR on the image to derive them for models
that need them (e.g. LayoutLM). This allows you to reuse OCR&#x2019;d results across many invocations of the
pipeline without having to re-run it each time.`,name:"word_boxes"},{anchor:"transformers.DocumentQuestionAnsweringPipeline.__call__.top_k",description:`<strong>top_k</strong> (<code>int</code>, <em>optional</em>, defaults to 1) &#x2014;
The number of answers to return (will be chosen by order of likelihood). Note that we return less than
top_k answers if there are not enough options available within the context.`,name:"top_k"},{anchor:"transformers.DocumentQuestionAnsweringPipeline.__call__.doc_stride",description:`<strong>doc_stride</strong> (<code>int</code>, <em>optional</em>, defaults to 128) &#x2014;
If the words in the document are too long to fit with the question for the model, it will be split in
several chunks with some overlap. This argument controls the size of that overlap.`,name:"doc_stride"},{anchor:"transformers.DocumentQuestionAnsweringPipeline.__call__.max_answer_len",description:`<strong>max_answer_len</strong> (<code>int</code>, <em>optional</em>, defaults to 15) &#x2014;
The maximum length of predicted answers (e.g., only answers with a shorter length are considered).`,name:"max_answer_len"},{anchor:"transformers.DocumentQuestionAnsweringPipeline.__call__.max_seq_len",description:`<strong>max_seq_len</strong> (<code>int</code>, <em>optional</em>, defaults to 384) &#x2014;
The maximum length of the total sentence (context + question) in tokens of each chunk passed to the
model. The context will be split in several chunks (using <code>doc_stride</code> as overlap) if needed.`,name:"max_seq_len"},{anchor:"transformers.DocumentQuestionAnsweringPipeline.__call__.max_question_len",description:`<strong>max_question_len</strong> (<code>int</code>, <em>optional</em>, defaults to 64) &#x2014;
The maximum length of the question after tokenization. It will be truncated if needed.`,name:"max_question_len"},{anchor:"transformers.DocumentQuestionAnsweringPipeline.__call__.handle_impossible_answer",description:`<strong>handle_impossible_answer</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not we accept impossible as an answer.`,name:"handle_impossible_answer"},{anchor:"transformers.DocumentQuestionAnsweringPipeline.__call__.lang",description:`<strong>lang</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Language to use while running OCR. Defaults to english.`,name:"lang"},{anchor:"transformers.DocumentQuestionAnsweringPipeline.__call__.tesseract_config",description:`<strong>tesseract_config</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Additional flags to pass to tesseract while running OCR.`,name:"tesseract_config"},{anchor:"transformers.DocumentQuestionAnsweringPipeline.__call__.timeout",description:`<strong>timeout</strong> (<code>float</code>, <em>optional</em>, defaults to None) &#x2014;
The maximum time in seconds to wait for fetching images from the web. If None, no timeout is set and
the call may block forever.`,name:"timeout"}],source:"https://github.com/huggingface/transformers/blob/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>
`}}),Lo=new J({props:{title:"FeatureExtractionPipeline",local:"transformers.FeatureExtractionPipeline",headingTag:"h3"}}),Ho=new j({props:{name:"class transformers.FeatureExtractionPipeline",anchor:"transformers.FeatureExtractionPipeline",parameters:[{name:"model",val:": Union"},{name:"tokenizer",val:": Optional = None"},{name:"feature_extractor",val:": Optional = None"},{name:"image_processor",val:": Optional = None"},{name:"processor",val:": Optional = None"},{name:"modelcard",val:": Optional = None"},{name:"framework",val:": Optional = None"},{name:"task",val:": str = ''"},{name:"args_parser",val:": ArgumentHandler = None"},{name:"device",val:": Union = None"},{name:"torch_dtype",val:": Union = None"},{name:"binary_output",val:": bool = False"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.FeatureExtractionPipeline.model",description:`<strong>model</strong> (<a href="/docs/transformers/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.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.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.FeatureExtractionPipeline.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.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. You can pass native <code>torch.device</code> or a <code>str</code> too`,name:"device"},{anchor:"transformers.FeatureExtractionPipeline.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.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"},{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"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/pipelines/feature_extraction.py#L7"}}),Kt=new P({props:{anchor:"transformers.FeatureExtractionPipeline.example",$$slots:{default:[n_]},$$scope:{ctx:M}}}),Yo=new j({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#L76",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>
`}}),Oo=new J({props:{title:"ImageFeatureExtractionPipeline",local:"transformers.ImageFeatureExtractionPipeline",headingTag:"h3"}}),Eo=new j({props:{name:"class transformers.ImageFeatureExtractionPipeline",anchor:"transformers.ImageFeatureExtractionPipeline",parameters:[{name:"model",val:": Union"},{name:"tokenizer",val:": Optional = None"},{name:"feature_extractor",val:": Optional = None"},{name:"image_processor",val:": Optional = None"},{name:"processor",val:": Optional = None"},{name:"modelcard",val:": Optional = None"},{name:"framework",val:": Optional = None"},{name:"task",val:": str = ''"},{name:"args_parser",val:": ArgumentHandler = None"},{name:"device",val:": Union = None"},{name:"torch_dtype",val:": Union = None"},{name:"binary_output",val:": bool = False"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.ImageFeatureExtractionPipeline.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.ImageFeatureExtractionPipeline.image_processor",description:`<strong>image_processor</strong> (<a href="/docs/transformers/main/en/main_classes/image_processor#transformers.BaseImageProcessor">BaseImageProcessor</a>) &#x2014;
The image processor 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/image_processor#transformers.BaseImageProcessor">BaseImageProcessor</a>.`,name:"image_processor"},{anchor:"transformers.ImageFeatureExtractionPipeline.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.ImageFeatureExtractionPipeline.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.ImageFeatureExtractionPipeline.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.ImageFeatureExtractionPipeline.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.ImageFeatureExtractionPipeline.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.ImageFeatureExtractionPipeline.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.ImageFeatureExtractionPipeline.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.ImageFeatureExtractionPipeline.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.ImageFeatureExtractionPipeline.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 serialized format (i.e., pickle) or as
the raw output data e.g. text.`,name:"binary_output"},{anchor:"transformers.ImageFeatureExtractionPipeline.image_processor_kwargs",description:`<strong>image_processor_kwargs</strong> (<code>dict</code>, <em>optional</em>) &#x2014;
Additional dictionary of keyword arguments passed along to the image processor e.g.
{&#x201C;size&#x201D;: {&#x201C;height&#x201D;: 100, &#x201C;width&#x201D;: 100}&#x200C;}`,name:"image_processor_kwargs"},{anchor:"transformers.ImageFeatureExtractionPipeline.pool",description:`<strong>pool</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to return the pooled output. If <code>False</code>, the model will return the raw hidden states.`,name:"pool"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/pipelines/image_feature_extraction.py#L11"}}),tn=new P({props:{anchor:"transformers.ImageFeatureExtractionPipeline.example",$$slots:{default:[s_]},$$scope:{ctx:M}}}),Qo=new j({props:{name:"__call__",anchor:"transformers.ImageFeatureExtractionPipeline.__call__",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.ImageFeatureExtractionPipeline.__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.ImageFeatureExtractionPipeline.__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_feature_extraction.py#L91",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>
`}}),Xo=new J({props:{title:"ImageToTextPipeline",local:"transformers.ImageToTextPipeline",headingTag:"h3"}}),Ko=new j({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.image_processor",description:`<strong>image_processor</strong> (<a href="/docs/transformers/main/en/main_classes/image_processor#transformers.BaseImageProcessor">BaseImageProcessor</a>) &#x2014;
The image processor 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/image_processor#transformers.BaseImageProcessor">BaseImageProcessor</a>.`,name:"image_processor"},{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.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.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 serialized format (i.e., pickle) or as
the raw output data e.g. text.`,name:"binary_output"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/pipelines/image_to_text.py#L45"}}),sn=new P({props:{anchor:"transformers.ImageToTextPipeline.example",$$slots:{default:[o_]},$$scope:{ctx:M}}}),ea=new j({props:{name:"__call__",anchor:"transformers.ImageToTextPipeline.__call__",parameters:[{name:"inputs",val:": Union = None"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.ImageToTextPipeline.__call__.inputs",description:`<strong>inputs</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:"inputs"},{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#L97",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>
`}}),ta=new J({props:{title:"ImageTextToTextPipeline",local:"transformers.ImageTextToTextPipeline",headingTag:"h3"}}),na=new j({props:{name:"class transformers.ImageTextToTextPipeline",anchor:"transformers.ImageTextToTextPipeline",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.ImageTextToTextPipeline.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.ImageTextToTextPipeline.processor",description:`<strong>processor</strong> (<a href="/docs/transformers/main/en/main_classes/processors#transformers.ProcessorMixin">ProcessorMixin</a>) &#x2014;
The processor 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/processors#transformers.ProcessorMixin">ProcessorMixin</a>. Processor is a composite object that might contain <code>tokenizer</code>, <code>feature_extractor</code>, and
<code>image_processor</code>.`,name:"processor"},{anchor:"transformers.ImageTextToTextPipeline.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.ImageTextToTextPipeline.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.ImageTextToTextPipeline.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.ImageTextToTextPipeline.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.ImageTextToTextPipeline.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.ImageTextToTextPipeline.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.ImageTextToTextPipeline.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.ImageTextToTextPipeline.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.ImageTextToTextPipeline.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 serialized format (i.e., pickle) or as
the raw output data e.g. text.`,name:"binary_output"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/pipelines/image_text_to_text.py#L98"}}),an=new P({props:{anchor:"transformers.ImageTextToTextPipeline.example",$$slots:{default:[a_]},$$scope:{ctx:M}}}),rn=new P({props:{anchor:"transformers.ImageTextToTextPipeline.example-2",$$slots:{default:[r_]},$$scope:{ctx:M}}}),sa=new j({props:{name:"__call__",anchor:"transformers.ImageTextToTextPipeline.__call__",parameters:[{name:"images",val:": Union = None"},{name:"text",val:": Union = None"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.ImageTextToTextPipeline.__call__.images",description:`<strong>images</strong> (<code>str</code>, <code>List[str]</code>, <code>PIL.Image or </code>List[PIL.Image]\`) &#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.ImageTextToTextPipeline.__call__.text",description:`<strong>text</strong> (str, List[str], <code>List[Dict[str, Union[str, PIL.Image]]]</code>) &#x2014;
The text to be used for generation. If a list of strings is passed, the length of the list should be the
same as the number of images. Text can also follow the chat format: a list of dictionaries where each
dictionary represents a message in a conversation. Each dictionary should have two keys: &#x2018;role&#x2019; and
&#x2018;content&#x2019;. &#x2018;role&#x2019; should be one of &#x2018;user&#x2019;, &#x2018;system&#x2019; or &#x2018;assistant&#x2019;. &#x2018;content&#x2019; should be a list of dictionary
containing the text of the message and the type of the message. The type of the message can be either
&#x2018;text&#x2019; or &#x2018;image&#x2019;. If the type is &#x2018;image&#x2019;, no text is needed.`,name:"text"},{anchor:"transformers.ImageTextToTextPipeline.__call__.return_tensors",description:`<strong>return_tensors</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Returns 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.ImageTextToTextPipeline.__call__.return_text",description:`<strong>return_text</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Returns the decoded texts in the outputs.`,name:"return_text"},{anchor:"transformers.ImageTextToTextPipeline.__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. Cannot be
specified at the same time as <code>return_text</code>.`,name:"return_full_text"},{anchor:"transformers.ImageTextToTextPipeline.__call__.continue_final_message(",description:`<strong>continue_final_message(</strong> <code>bool</code>, <em>optional</em>) &#x2014; This indicates that you want the model to continue the
last message in the input chat rather than starting a new one, allowing you to &#x201C;prefill&#x201D; its response.
By default this is <code>True</code> when the final message in the input chat has the <code>assistant</code> role and
<code>False</code> otherwise, but you can manually override that behaviour by setting this flag.`,name:"continue_final_message("}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/pipelines/image_text_to_text.py#L216",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


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


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


<p><code>Dict</code></p>
`}}),ia=new J({props:{title:"VisualQuestionAnsweringPipeline",local:"transformers.VisualQuestionAnsweringPipeline",headingTag:"h3"}}),la=new j({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.image_processor",description:`<strong>image_processor</strong> (<a href="/docs/transformers/main/en/main_classes/image_processor#transformers.BaseImageProcessor">BaseImageProcessor</a>) &#x2014;
The image processor 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/image_processor#transformers.BaseImageProcessor">BaseImageProcessor</a>.`,name:"image_processor"},{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.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.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 serialized format (i.e., pickle) or as
the raw output data e.g. text.`,name:"binary_output"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/pipelines/visual_question_answering.py#L19"}}),dn=new P({props:{anchor:"transformers.VisualQuestionAnsweringPipeline.example",$$slots:{default:[l_]},$$scope:{ctx:M}}}),ca=new j({props:{name:"__call__",anchor:"transformers.VisualQuestionAnsweringPipeline.__call__",parameters:[{name:"image",val:": Union"},{name:"question",val:": Union = 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>, <code>List[PIL.Image]</code> or <code>KeyDataset</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.
For dataset: the passed in dataset must be of type <code>transformers.pipelines.pt_utils.KeyDataset</code>
Example:`,name:"image"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/pipelines/visual_question_answering.py#L71",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>
`}}),pa=new J({props:{title:"Parent class: Pipeline",local:"transformers.Pipeline",headingTag:"h2"}}),da=new j({props:{name:"class transformers.Pipeline",anchor:"transformers.Pipeline",parameters:[{name:"model",val:": Union"},{name:"tokenizer",val:": Optional = None"},{name:"feature_extractor",val:": Optional = None"},{name:"image_processor",val:": Optional = None"},{name:"processor",val:": Optional = None"},{name:"modelcard",val:": Optional = None"},{name:"framework",val:": Optional = None"},{name:"task",val:": str = ''"},{name:"args_parser",val:": ArgumentHandler = None"},{name:"device",val:": Union = None"},{name:"torch_dtype",val:": Union = None"},{name:"binary_output",val:": bool = False"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.Pipeline.model",description:`<strong>model</strong> (<a href="/docs/transformers/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.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 data for the model. This object inherits from
<a href="/docs/transformers/main/en/main_classes/feature_extractor#transformers.SequenceFeatureExtractor">SequenceFeatureExtractor</a>.`,name:"feature_extractor"},{anchor:"transformers.Pipeline.image_processor",description:`<strong>image_processor</strong> (<a href="/docs/transformers/main/en/main_classes/image_processor#transformers.BaseImageProcessor">BaseImageProcessor</a>) &#x2014;
The image processor 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/image_processor#transformers.BaseImageProcessor">BaseImageProcessor</a>.`,name:"image_processor"},{anchor:"transformers.Pipeline.processor",description:`<strong>processor</strong> (<a href="/docs/transformers/main/en/main_classes/processors#transformers.ProcessorMixin">ProcessorMixin</a>) &#x2014;
The processor 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/processors#transformers.ProcessorMixin">ProcessorMixin</a>. Processor is a composite object that might contain <code>tokenizer</code>, <code>feature_extractor</code>, and
<code>image_processor</code>.`,name:"processor"},{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.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.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 serialized format (i.e., pickle) or as
the raw output data e.g. text.`,name:"binary_output"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/pipelines/base.py#L802"}}),ma=new j({props:{name:"check_model_type",anchor:"transformers.Pipeline.check_model_type",parameters:[{name:"supported_models",val:": Union"}],parametersDescription:[{anchor:"transformers.Pipeline.check_model_type.supported_models",description:`<strong>supported_models</strong> (<code>List[str]</code> or <code>dict</code>) &#x2014;
The list of models supported by the pipeline, or a dictionary with model class values.`,name:"supported_models"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/pipelines/base.py#L1124"}}),ha=new j({props:{name:"device_placement",anchor:"transformers.Pipeline.device_placement",parameters:[],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/pipelines/base.py#L1059",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


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