import{s as ut,n as Mt,o as rt}from"../chunks/scheduler.aec39e6a.js";import{S as jt,i as Tt,e as i,s as e,c,h as dt,a as p,d as l,b as a,f as ot,g as u,j as o,k as ct,l as ht,m as n,n as M,t as r,o as j,p as T}from"../chunks/index.4ee0a2d0.js";import{C as mt,H as Vs,E as Jt}from"../chunks/MermaidChart.svelte_svelte_type_style_lang.2422a08e.js";import{C as d}from"../chunks/CodeBlock.27357de2.js";function yt(Ss){let h,ts,K,ls,m,ns,J,es,y,as,I,xs='The <a href="https://github.com/aws/sagemaker-huggingface-inference-toolkit/tree/main" rel="nofollow">Sagemaker Hugging Face Inference Toolkit</a> accepts inputs in the <code>inputs</code> key, and supports additional <a href="https://huggingface.co/docs/transformers/main_classes/pipelines" rel="nofollow"><code>pipelines</code></a> parameters in the <code>parameters</code> key. You can provide any of the supported <code>kwargs</code> from <code>pipelines</code> as <code>parameters</code>.',is,w,Qs="Tasks supported by the Inference Toolkit API include:",ps,f,As="<li><strong><code>text-classification</code></strong></li> <li><strong><code>sentiment-analysis</code></strong></li> <li><strong><code>token-classification</code></strong></li> <li><strong><code>feature-extraction</code></strong></li> <li><strong><code>fill-mask</code></strong></li> <li><strong><code>summarization</code></strong></li> <li><strong><code>translation_xx_to_yy</code></strong></li> <li><strong><code>text2text-generation</code></strong></li> <li><strong><code>text-generation</code></strong></li> <li><strong><code>audio-classificatin</code></strong></li> <li><strong><code>automatic-speech-recognition</code></strong></li> <li><strong><code>conversational</code></strong></li> <li><strong><code>image-classification</code></strong></li> <li><strong><code>image-segmentation</code></strong></li> <li><strong><code>object-detection</code></strong></li> <li><strong><code>table-question-answering</code></strong></li> <li><strong><code>zero-shot-classification</code></strong></li> <li><strong><code>zero-shot-image-classification</code></strong></li>",os,g,Ys="See the following request examples for some of the tasks:",cs,U,Fs="<strong><code>text-classification</code></strong>",us,$,Ms,b,Ls="<strong><code>sentiment-analysis</code></strong>",rs,B,js,q,zs="<strong><code>token-classification</code></strong>",Ts,v,ds,k,Rs="<strong><code>question-answering</code></strong>",hs,E,ms,X,Ps="<strong><code>zero-shot-classification</code></strong>",Js,W,ys,H,Ds="<strong><code>table-question-answering</code></strong>",Is,C,ws,Z,Os="<strong><code>parameterized-request</code></strong>",fs,G,gs,N,Us,_,Ks="The Inference Toolkit implements various additional environment variables to simplify deployment. A complete list of Hugging Face specific environment variables is shown below:",$s,V,st="<strong><code>HF_TASK</code></strong>",bs,S,tt='<code>HF_TASK</code> defines the task for the 🤗 Transformers pipeline used . See <a href="https://huggingface.co/docs/transformers/main_classes/pipelines" rel="nofollow">here</a> for a complete list of tasks.',Bs,x,qs,Q,lt="<strong><code>HF_MODEL_ID</code></strong>",vs,A,nt='<code>HF_MODEL_ID</code> defines the model ID which is automatically loaded from <a href="https://huggingface.co/models" rel="nofollow">hf.co/models</a> when creating a SageMaker endpoint. All of the 🤗 Hub’s 10,000+ models are available through this environment variable.',ks,Y,Es,F,et="<strong><code>HF_MODEL_REVISION</code></strong>",Xs,L,at="<code>HF_MODEL_REVISION</code> is an extension to <code>HF_MODEL_ID</code> and allows you to define or pin a model revision to make sure you always load the same model on your SageMaker endpoint.",Ws,z,Hs,R,it="<strong><code>HF_API_TOKEN</code></strong>",Cs,P,pt='<code>HF_API_TOKEN</code> defines your Hugging Face authorization token. The <code>HF_API_TOKEN</code> is used as a HTTP bearer authorization for remote files like private models. You can find your token under <a href="https://huggingface.co/settings/tokens" rel="nofollow">Settings</a> of your Hugging Face account.',Zs,D,Gs,O,Ns,ss,_s;return m=new mt({props:{containerStyle:"float: right; margin-left: 10px; display: inline-flex; position: relative; z-index: 10;"}}),J=new Vs({props:{title:"Inference Toolkit API",local:"inference-toolkit-api",headingTag:"h1"}}),y=new Vs({props:{title:"Supported tasks",local:"supported-tasks",headingTag:"h2"}}),$=new d({props:{code:"JTdCJTBBJTIwJTIwJTIyaW5wdXRzJTIyJTNBJTIwJTIyVGhpcyUyMHNvdW5kJTIwdHJhY2slMjB3YXMlMjBiZWF1dGlmdWwhJTIwSXQlMjBwYWludHMlMjB0aGUlMjBzZW5lcnklMjBpbiUyMHlvdXIlMjBtaW5kJTIwc28lMjB3ZWxsJTIwSSUyMHdvdWxkJTIwcmVjb21tZW5kJTIwaXQlMEElMjAlMjBldmVuJTIwdG8lMjBwZW9wbGUlMjB3aG8lMjBoYXRlJTIwdmlkLiUyMGdhbWUlMjBtdXNpYyElMjIlMEElN0Q=",highlighted:`<span class="hljs-punctuation">{</span>
  <span class="hljs-attr">&quot;inputs&quot;</span><span class="hljs-punctuation">:</span> <span class="hljs-string">&quot;This sound track was beautiful! It paints the senery in your mind so well I would recommend it
  even to people who hate vid. game music!&quot;</span>
<span class="hljs-punctuation">}</span>`,wrap:!1}}),B=new d({props:{code:"JTdCJTBBJTIwJTIwJTIyaW5wdXRzJTIyJTNBJTIwJTIyRG9uJ3QlMjB3YXN0ZSUyMHlvdXIlMjB0aW1lLiUyMCUyMFdlJTIwaGFkJTIwdHdvJTIwZGlmZmVyZW50JTIwcGVvcGxlJTIwY29tZSUyMHRvJTIwb3VyJTIwaG91c2UlMjB0byUyMGdpdmUlMjB1cyUyMGVzdGltYXRlcyUyMGZvciUwQWElMjBkZWNrJTIwKG9uZSUyMG9mJTIwdGhlbSUyMHRoZSUyME9XTkVSKS4lMjAlMjBCb3RoJTIwdGltZXMlMkMlMjB3ZSUyMG5ldmVyJTIwaGVhcmQlMjBmcm9tJTIwdGhlbS4lMjAlMjBOb3QlMjBhJTIwY2FsbCUyQyUyMG5vdCUyMHRoZSUyMGVzdGltYXRlJTJDJTIwbm90aGluZy4lMjIlMEElN0Q=",highlighted:`<span class="hljs-punctuation">{</span>
  <span class="hljs-attr">&quot;inputs&quot;</span><span class="hljs-punctuation">:</span> <span class="hljs-string">&quot;Don&#x27;t waste your time.  We had two different people come to our house to give us estimates for
a deck (one of them the OWNER).  Both times, we never heard from them.  Not a call, not the estimate, nothing.&quot;</span>
<span class="hljs-punctuation">}</span>`,wrap:!1}}),v=new d({props:{code:"JTdCJTBBJTIwJTIwJTIyaW5wdXRzJTIyJTNBJTIwJTIyTXklMjBuYW1lJTIwaXMlMjBTeWx2YWluJTIwYW5kJTIwSSUyMHdvcmslMjBhdCUyMEh1Z2dpbmclMjBGYWNlJTIwaW4lMjBCcm9va2x5bi4lMjIlMEElN0Q=",highlighted:`<span class="hljs-punctuation">{</span>
  <span class="hljs-attr">&quot;inputs&quot;</span><span class="hljs-punctuation">:</span> <span class="hljs-string">&quot;My name is Sylvain and I work at Hugging Face in Brooklyn.&quot;</span>
<span class="hljs-punctuation">}</span>`,wrap:!1}}),E=new d({props:{code:"JTdCJTBBJTIwJTIwJTIyaW5wdXRzJTIyJTNBJTIwJTdCJTBBJTIwJTIwJTIwJTIwJTIycXVlc3Rpb24lMjIlM0ElMjAlMjJXaGF0JTIwaXMlMjB1c2VkJTIwZm9yJTIwaW5mZXJlbmNlJTNGJTIyJTJDJTBBJTIwJTIwJTIwJTIwJTIyY29udGV4dCUyMiUzQSUyMCUyMk15JTIwTmFtZSUyMGlzJTIwUGhpbGlwcCUyMGFuZCUyMEklMjBsaXZlJTIwaW4lMjBOdXJlbWJlcmcuJTIwVGhpcyUyMG1vZGVsJTIwaXMlMjB1c2VkJTIwd2l0aCUyMHNhZ2VtYWtlciUyMGZvciUyMGluZmVyZW5jZS4lMjIlMEElMjAlMjAlN0QlMEElN0Q=",highlighted:`<span class="hljs-punctuation">{</span>
  <span class="hljs-attr">&quot;inputs&quot;</span><span class="hljs-punctuation">:</span> <span class="hljs-punctuation">{</span>
    <span class="hljs-attr">&quot;question&quot;</span><span class="hljs-punctuation">:</span> <span class="hljs-string">&quot;What is used for inference?&quot;</span><span class="hljs-punctuation">,</span>
    <span class="hljs-attr">&quot;context&quot;</span><span class="hljs-punctuation">:</span> <span class="hljs-string">&quot;My Name is Philipp and I live in Nuremberg. This model is used with sagemaker for inference.&quot;</span>
  <span class="hljs-punctuation">}</span>
<span class="hljs-punctuation">}</span>`,wrap:!1}}),W=new d({props:{code:"JTdCJTBBJTIwJTIwJTIyaW5wdXRzJTIyJTNBJTIwJTIySGklMkMlMjBJJTIwcmVjZW50bHklMjBib3VnaHQlMjBhJTIwZGV2aWNlJTIwZnJvbSUyMHlvdXIlMjBjb21wYW55JTIwYnV0JTIwaXQlMjBpcyUyMG5vdCUyMHdvcmtpbmclMjBhcyUyMGFkdmVydGlzZWQlMjBhbmQlMjBJJTIwd291bGQlMjBsaWtlJTIwdG8lMjBnZXQlMjByZWltYnVyc2VkISUyMiUyQyUwQSUyMCUyMCUyMnBhcmFtZXRlcnMlMjIlM0ElMjAlN0IlMEElMjAlMjAlMjAlMjAlMjJjYW5kaWRhdGVfbGFiZWxzJTIyJTNBJTIwJTVCJTIycmVmdW5kJTIyJTJDJTIwJTIybGVnYWwlMjIlMkMlMjAlMjJmYXElMjIlNUQlMEElMjAlMjAlN0QlMEElN0Q=",highlighted:`<span class="hljs-punctuation">{</span>
  <span class="hljs-attr">&quot;inputs&quot;</span><span class="hljs-punctuation">:</span> <span class="hljs-string">&quot;Hi, I recently bought a device from your company but it is not working as advertised and I would like to get reimbursed!&quot;</span><span class="hljs-punctuation">,</span>
  <span class="hljs-attr">&quot;parameters&quot;</span><span class="hljs-punctuation">:</span> <span class="hljs-punctuation">{</span>
    <span class="hljs-attr">&quot;candidate_labels&quot;</span><span class="hljs-punctuation">:</span> <span class="hljs-punctuation">[</span><span class="hljs-string">&quot;refund&quot;</span><span class="hljs-punctuation">,</span> <span class="hljs-string">&quot;legal&quot;</span><span class="hljs-punctuation">,</span> <span class="hljs-string">&quot;faq&quot;</span><span class="hljs-punctuation">]</span>
  <span class="hljs-punctuation">}</span>
<span class="hljs-punctuation">}</span>`,wrap:!1}}),C=new d({props:{code:"JTdCJTBBJTIwJTIwJTIyaW5wdXRzJTIyJTNBJTIwJTdCJTBBJTIwJTIwJTIwJTIwJTIycXVlcnklMjIlM0ElMjAlMjJIb3clMjBtYW55JTIwc3RhcnMlMjBkb2VzJTIwdGhlJTIwdHJhbnNmb3JtZXJzJTIwcmVwb3NpdG9yeSUyMGhhdmUlM0YlMjIlMkMlMEElMjAlMjAlMjAlMjAlMjJ0YWJsZSUyMiUzQSUyMCU3QiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMlJlcG9zaXRvcnklMjIlM0ElMjAlNUIlMjJUcmFuc2Zvcm1lcnMlMjIlMkMlMjAlMjJEYXRhc2V0cyUyMiUyQyUyMCUyMlRva2VuaXplcnMlMjIlNUQlMkMlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjJTdGFycyUyMiUzQSUyMCU1QiUyMjM2NTQyJTIyJTJDJTIwJTIyNDUxMiUyMiUyQyUyMCUyMjM5MzQlMjIlNUQlMkMlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjJDb250cmlidXRvcnMlMjIlM0ElMjAlNUIlMjI2NTElMjIlMkMlMjAlMjI3NyUyMiUyQyUyMCUyMjM0JTIyJTVEJTJDJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIyUHJvZ3JhbW1pbmclMjBsYW5ndWFnZSUyMiUzQSUyMCU1QiUyMlB5dGhvbiUyMiUyQyUyMCUyMlB5dGhvbiUyMiUyQyUyMCUyMlJ1c3QlMkMlMjBQeXRob24lMjBhbmQlMjBOb2RlSlMlMjIlNUQlMEElMjAlMjAlMjAlMjAlN0QlMEElMjAlMjAlN0QlMEElN0Q=",highlighted:`<span class="hljs-punctuation">{</span>
  <span class="hljs-attr">&quot;inputs&quot;</span><span class="hljs-punctuation">:</span> <span class="hljs-punctuation">{</span>
    <span class="hljs-attr">&quot;query&quot;</span><span class="hljs-punctuation">:</span> <span class="hljs-string">&quot;How many stars does the transformers repository have?&quot;</span><span class="hljs-punctuation">,</span>
    <span class="hljs-attr">&quot;table&quot;</span><span class="hljs-punctuation">:</span> <span class="hljs-punctuation">{</span>
      <span class="hljs-attr">&quot;Repository&quot;</span><span class="hljs-punctuation">:</span> <span class="hljs-punctuation">[</span><span class="hljs-string">&quot;Transformers&quot;</span><span class="hljs-punctuation">,</span> <span class="hljs-string">&quot;Datasets&quot;</span><span class="hljs-punctuation">,</span> <span class="hljs-string">&quot;Tokenizers&quot;</span><span class="hljs-punctuation">]</span><span class="hljs-punctuation">,</span>
      <span class="hljs-attr">&quot;Stars&quot;</span><span class="hljs-punctuation">:</span> <span class="hljs-punctuation">[</span><span class="hljs-string">&quot;36542&quot;</span><span class="hljs-punctuation">,</span> <span class="hljs-string">&quot;4512&quot;</span><span class="hljs-punctuation">,</span> <span class="hljs-string">&quot;3934&quot;</span><span class="hljs-punctuation">]</span><span class="hljs-punctuation">,</span>
      <span class="hljs-attr">&quot;Contributors&quot;</span><span class="hljs-punctuation">:</span> <span class="hljs-punctuation">[</span><span class="hljs-string">&quot;651&quot;</span><span class="hljs-punctuation">,</span> <span class="hljs-string">&quot;77&quot;</span><span class="hljs-punctuation">,</span> <span class="hljs-string">&quot;34&quot;</span><span class="hljs-punctuation">]</span><span class="hljs-punctuation">,</span>
      <span class="hljs-attr">&quot;Programming language&quot;</span><span class="hljs-punctuation">:</span> <span class="hljs-punctuation">[</span><span class="hljs-string">&quot;Python&quot;</span><span class="hljs-punctuation">,</span> <span class="hljs-string">&quot;Python&quot;</span><span class="hljs-punctuation">,</span> <span class="hljs-string">&quot;Rust, Python and NodeJS&quot;</span><span class="hljs-punctuation">]</span>
    <span class="hljs-punctuation">}</span>
  <span class="hljs-punctuation">}</span>
<span class="hljs-punctuation">}</span>`,wrap:!1}}),G=new d({props:{code:"JTdCJTBBJTIwJTIwJTIyaW5wdXRzJTIyJTNBJTIwJTIySHVnZ2luZyUyMEZhY2UlMkMlMjB0aGUlMjB3aW5uZXIlMjBvZiUyMFZlbnR1cmVCZWF0JUUyJTgwJTk5cyUyMElubm92YXRpb24lMjBpbiUyME5hdHVyYWwlMjBMYW5ndWFnZSUyMFByb2Nlc3MlMkZVbmRlcnN0YW5kaW5nJTIwQXdhcmQlMjBmb3IlMjAyMDIxJTJDJTIwaXMlMjBsb29raW5nJTIwdG8lMjBsZXZlbCUyMHRoZSUyMHBsYXlpbmclMjBmaWVsZC4lMjBUaGUlMjB0ZWFtJTJDJTIwbGF1bmNoZWQlMjBieSUyMENsJUMzJUE5bWVudCUyMERlbGFuZ3VlJTIwYW5kJTIwSnVsaWVuJTIwQ2hhdW1vbmQlMjBpbiUyMDIwMTYlMkMlMjB3YXMlMjByZWNvZ25pemVkJTIwZm9yJTIwaXRzJTIwd29yayUyMGluJTIwZGVtb2NyYXRpemluZyUyME5MUCUyQyUyMHRoZSUyMGdsb2JhbCUyMG1hcmtldCUyMHZhbHVlJTIwZm9yJTIwd2hpY2glMjBpcyUyMGV4cGVjdGVkJTIwdG8lMjBoaXQlMjAlMjQzNS4xJTIwYmlsbGlvbiUyMGJ5JTIwMjAyNi4lMjBUaGlzJTIwd2VlayUyQyUyMEdvb2dsZSVFMiU4MCU5OXMlMjBmb3JtZXIlMjBoZWFkJTIwb2YlMjBFdGhpY2FsJTIwQUklMjBNYXJnYXJldCUyME1pdGNoZWxsJTIwam9pbmVkJTIwdGhlJTIwdGVhbS4lMjIlMkMlMEElMjAlMjAlMjJwYXJhbWV0ZXJzJTIyJTNBJTIwJTdCJTBBJTIwJTIwJTIwJTIwJTIycmVwZXRpdGlvbl9wZW5hbHR5JTIyJTNBJTIwNC4wJTJDJTBBJTIwJTIwJTIwJTIwJTIybGVuZ3RoX3BlbmFsdHklMjIlM0ElMjAxLjUlMEElMjAlMjAlN0QlMEElN0Q=",highlighted:`<span class="hljs-punctuation">{</span>
  <span class="hljs-attr">&quot;inputs&quot;</span><span class="hljs-punctuation">:</span> <span class="hljs-string">&quot;Hugging Face, the winner of VentureBeat’s Innovation in Natural Language Process/Understanding Award for 2021, is looking to level the playing field. The team, launched by Clément Delangue and Julien Chaumond in 2016, was recognized for its work in democratizing NLP, the global market value for which is expected to hit $35.1 billion by 2026. This week, Google’s former head of Ethical AI Margaret Mitchell joined the team.&quot;</span><span class="hljs-punctuation">,</span>
  <span class="hljs-attr">&quot;parameters&quot;</span><span class="hljs-punctuation">:</span> <span class="hljs-punctuation">{</span>
    <span class="hljs-attr">&quot;repetition_penalty&quot;</span><span class="hljs-punctuation">:</span> <span class="hljs-number">4.0</span><span class="hljs-punctuation">,</span>
    <span class="hljs-attr">&quot;length_penalty&quot;</span><span class="hljs-punctuation">:</span> <span class="hljs-number">1.5</span>
  <span class="hljs-punctuation">}</span>
<span class="hljs-punctuation">}</span>`,wrap:!1}}),N=new Vs({props:{title:"Environment variables",local:"environment-variables",headingTag:"h2"}}),x=new d({props:{code:"SEZfVEFTSyUzRCUyMnF1ZXN0aW9uLWFuc3dlcmluZyUyMg==",highlighted:'HF_TASK=<span class="hljs-string">&quot;question-answering&quot;</span>',wrap:!1}}),Y=new d({props:{code:"SEZfTU9ERUxfSUQlM0QlMjJkaXN0aWxiZXJ0LWJhc2UtdW5jYXNlZC1maW5ldHVuZWQtc3N0LTItZW5nbGlzaCUyMg==",highlighted:'HF_MODEL_ID=<span class="hljs-string">&quot;distilbert-base-uncased-finetuned-sst-2-english&quot;</span>',wrap:!1}}),z=new d({props:{code:"SEZfTU9ERUxfUkVWSVNJT04lM0QlMjIwM2I0ZDE5NmMxOWQwYTczYzdlMDMyMjY4NGU5N2RiMWVjMzk3NjEzJTIy",highlighted:'HF_MODEL_REVISION=<span class="hljs-string">&quot;03b4d196c19d0a73c7e0322684e97db1ec397613&quot;</span>',wrap:!1}}),D=new d({props:{code:"SEZfQVBJX1RPS0VOJTNEJTIyYXBpX1hYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYJTIy",highlighted:'HF_API_TOKEN=<span class="hljs-string">&quot;api_XXXXXXXXXXXXXXXXXXXXXXXXXXXXX&quot;</span>',wrap:!1}}),O=new Jt({props:{source:"https://github.com/huggingface/hub-docs/blob/main/docs/sagemaker/source/reference/inference-toolkit.md"}}),{c(){h=i("meta"),ts=e(),K=i("p"),ls=e(),c(m.$$.fragment),ns=e(),c(J.$$.fragment),es=e(),c(y.$$.fragment),as=e(),I=i("p"),I.innerHTML=xs,is=e(),w=i("p"),w.textContent=Qs,ps=e(),f=i("ul"),f.innerHTML=As,os=e(),g=i("p"),g.textContent=Ys,cs=e(),U=i("p"),U.innerHTML=Fs,us=e(),c($.$$.fragment),Ms=e(),b=i("p"),b.innerHTML=Ls,rs=e(),c(B.$$.fragment),js=e(),q=i("p"),q.innerHTML=zs,Ts=e(),c(v.$$.fragment),ds=e(),k=i("p"),k.innerHTML=Rs,hs=e(),c(E.$$.fragment),ms=e(),X=i("p"),X.innerHTML=Ps,Js=e(),c(W.$$.fragment),ys=e(),H=i("p"),H.innerHTML=Ds,Is=e(),c(C.$$.fragment),ws=e(),Z=i("p"),Z.innerHTML=Os,fs=e(),c(G.$$.fragment),gs=e(),c(N.$$.fragment),Us=e(),_=i("p"),_.textContent=Ks,$s=e(),V=i("p"),V.innerHTML=st,bs=e(),S=i("p"),S.innerHTML=tt,Bs=e(),c(x.$$.fragment),qs=e(),Q=i("p"),Q.innerHTML=lt,vs=e(),A=i("p"),A.innerHTML=nt,ks=e(),c(Y.$$.fragment),Es=e(),F=i("p"),F.innerHTML=et,Xs=e(),L=i("p"),L.innerHTML=at,Ws=e(),c(z.$$.fragment),Hs=e(),R=i("p"),R.innerHTML=it,Cs=e(),P=i("p"),P.innerHTML=pt,Zs=e(),c(D.$$.fragment),Gs=e(),c(O.$$.fragment),Ns=e(),ss=i("p"),this.h()},l(s){const t=dt("svelte-u9bgzb",document.head);h=p(t,"META",{name:!0,content:!0}),t.forEach(l),ts=a(s),K=p(s,"P",{}),ot(K).forEach(l),ls=a(s),u(m.$$.fragment,s),ns=a(s),u(J.$$.fragment,s),es=a(s),u(y.$$.fragment,s),as=a(s),I=p(s,"P",{"data-svelte-h":!0}),o(I)!=="svelte-1cez5ze"&&(I.innerHTML=xs),is=a(s),w=p(s,"P",{"data-svelte-h":!0}),o(w)!=="svelte-14avis7"&&(w.textContent=Qs),ps=a(s),f=p(s,"UL",{"data-svelte-h":!0}),o(f)!=="svelte-1swzyw"&&(f.innerHTML=As),os=a(s),g=p(s,"P",{"data-svelte-h":!0}),o(g)!=="svelte-fqnqo8"&&(g.textContent=Ys),cs=a(s),U=p(s,"P",{"data-svelte-h":!0}),o(U)!=="svelte-zp6pme"&&(U.innerHTML=Fs),us=a(s),u($.$$.fragment,s),Ms=a(s),b=p(s,"P",{"data-svelte-h":!0}),o(b)!=="svelte-zfr1l6"&&(b.innerHTML=Ls),rs=a(s),u(B.$$.fragment,s),js=a(s),q=p(s,"P",{"data-svelte-h":!0}),o(q)!=="svelte-1a5sljg"&&(q.innerHTML=zs),Ts=a(s),u(v.$$.fragment,s),ds=a(s),k=p(s,"P",{"data-svelte-h":!0}),o(k)!=="svelte-7ht279"&&(k.innerHTML=Rs),hs=a(s),u(E.$$.fragment,s),ms=a(s),X=p(s,"P",{"data-svelte-h":!0}),o(X)!=="svelte-455rcs"&&(X.innerHTML=Ps),Js=a(s),u(W.$$.fragment,s),ys=a(s),H=p(s,"P",{"data-svelte-h":!0}),o(H)!=="svelte-w6paxw"&&(H.innerHTML=Ds),Is=a(s),u(C.$$.fragment,s),ws=a(s),Z=p(s,"P",{"data-svelte-h":!0}),o(Z)!=="svelte-17c454l"&&(Z.innerHTML=Os),fs=a(s),u(G.$$.fragment,s),gs=a(s),u(N.$$.fragment,s),Us=a(s),_=p(s,"P",{"data-svelte-h":!0}),o(_)!=="svelte-1hi83ly"&&(_.textContent=Ks),$s=a(s),V=p(s,"P",{"data-svelte-h":!0}),o(V)!=="svelte-op5ire"&&(V.innerHTML=st),bs=a(s),S=p(s,"P",{"data-svelte-h":!0}),o(S)!=="svelte-x44ycw"&&(S.innerHTML=tt),Bs=a(s),u(x.$$.fragment,s),qs=a(s),Q=p(s,"P",{"data-svelte-h":!0}),o(Q)!=="svelte-at3940"&&(Q.innerHTML=lt),vs=a(s),A=p(s,"P",{"data-svelte-h":!0}),o(A)!=="svelte-7pv5qy"&&(A.innerHTML=nt),ks=a(s),u(Y.$$.fragment,s),Es=a(s),F=p(s,"P",{"data-svelte-h":!0}),o(F)!=="svelte-1cqzoxg"&&(F.innerHTML=et),Xs=a(s),L=p(s,"P",{"data-svelte-h":!0}),o(L)!=="svelte-1xh4jnx"&&(L.innerHTML=at),Ws=a(s),u(z.$$.fragment,s),Hs=a(s),R=p(s,"P",{"data-svelte-h":!0}),o(R)!=="svelte-y1zqs5"&&(R.innerHTML=it),Cs=a(s),P=p(s,"P",{"data-svelte-h":!0}),o(P)!=="svelte-wfdtbd"&&(P.innerHTML=pt),Zs=a(s),u(D.$$.fragment,s),Gs=a(s),u(O.$$.fragment,s),Ns=a(s),ss=p(s,"P",{}),ot(ss).forEach(l),this.h()},h(){ct(h,"name","hf:doc:metadata"),ct(h,"content",It)},m(s,t){ht(document.head,h),n(s,ts,t),n(s,K,t),n(s,ls,t),M(m,s,t),n(s,ns,t),M(J,s,t),n(s,es,t),M(y,s,t),n(s,as,t),n(s,I,t),n(s,is,t),n(s,w,t),n(s,ps,t),n(s,f,t),n(s,os,t),n(s,g,t),n(s,cs,t),n(s,U,t),n(s,us,t),M($,s,t),n(s,Ms,t),n(s,b,t),n(s,rs,t),M(B,s,t),n(s,js,t),n(s,q,t),n(s,Ts,t),M(v,s,t),n(s,ds,t),n(s,k,t),n(s,hs,t),M(E,s,t),n(s,ms,t),n(s,X,t),n(s,Js,t),M(W,s,t),n(s,ys,t),n(s,H,t),n(s,Is,t),M(C,s,t),n(s,ws,t),n(s,Z,t),n(s,fs,t),M(G,s,t),n(s,gs,t),M(N,s,t),n(s,Us,t),n(s,_,t),n(s,$s,t),n(s,V,t),n(s,bs,t),n(s,S,t),n(s,Bs,t),M(x,s,t),n(s,qs,t),n(s,Q,t),n(s,vs,t),n(s,A,t),n(s,ks,t),M(Y,s,t),n(s,Es,t),n(s,F,t),n(s,Xs,t),n(s,L,t),n(s,Ws,t),M(z,s,t),n(s,Hs,t),n(s,R,t),n(s,Cs,t),n(s,P,t),n(s,Zs,t),M(D,s,t),n(s,Gs,t),M(O,s,t),n(s,Ns,t),n(s,ss,t),_s=!0},p:Mt,i(s){_s||(r(m.$$.fragment,s),r(J.$$.fragment,s),r(y.$$.fragment,s),r($.$$.fragment,s),r(B.$$.fragment,s),r(v.$$.fragment,s),r(E.$$.fragment,s),r(W.$$.fragment,s),r(C.$$.fragment,s),r(G.$$.fragment,s),r(N.$$.fragment,s),r(x.$$.fragment,s),r(Y.$$.fragment,s),r(z.$$.fragment,s),r(D.$$.fragment,s),r(O.$$.fragment,s),_s=!0)},o(s){j(m.$$.fragment,s),j(J.$$.fragment,s),j(y.$$.fragment,s),j($.$$.fragment,s),j(B.$$.fragment,s),j(v.$$.fragment,s),j(E.$$.fragment,s),j(W.$$.fragment,s),j(C.$$.fragment,s),j(G.$$.fragment,s),j(N.$$.fragment,s),j(x.$$.fragment,s),j(Y.$$.fragment,s),j(z.$$.fragment,s),j(D.$$.fragment,s),j(O.$$.fragment,s),_s=!1},d(s){s&&(l(ts),l(K),l(ls),l(ns),l(es),l(as),l(I),l(is),l(w),l(ps),l(f),l(os),l(g),l(cs),l(U),l(us),l(Ms),l(b),l(rs),l(js),l(q),l(Ts),l(ds),l(k),l(hs),l(ms),l(X),l(Js),l(ys),l(H),l(Is),l(ws),l(Z),l(fs),l(gs),l(Us),l(_),l($s),l(V),l(bs),l(S),l(Bs),l(qs),l(Q),l(vs),l(A),l(ks),l(Es),l(F),l(Xs),l(L),l(Ws),l(Hs),l(R),l(Cs),l(P),l(Zs),l(Gs),l(Ns),l(ss)),l(h),T(m,s),T(J,s),T(y,s),T($,s),T(B,s),T(v,s),T(E,s),T(W,s),T(C,s),T(G,s),T(N,s),T(x,s),T(Y,s),T(z,s),T(D,s),T(O,s)}}}const It='{"title":"Inference Toolkit API","local":"inference-toolkit-api","sections":[{"title":"Supported tasks","local":"supported-tasks","sections":[],"depth":2},{"title":"Environment variables","local":"environment-variables","sections":[],"depth":2}],"depth":1}';function wt(Ss){return rt(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class bt extends jt{constructor(h){super(),Tt(this,h,wt,yt,ut,{})}}export{bt as component};
