import{s as Q,n as D,o as V}from"../chunks/scheduler.ddeee2a5.js";import{S as F,i as Z,e as u,s as r,c as b,h as U,a as x,d as a,b as n,f as R,g as w,j as O,k as L,l as B,m as o,n as v,t as y,o as k,p as $}from"../chunks/index.10b70568.js";import{C as J}from"../chunks/CopyLLMTxtMenu.68696f97.js";import{H as j,E as K}from"../chunks/MermaidChart.svelte_svelte_type_style_lang.d66d689f.js";function N(z){let i,T,h,_,l,C,g,S,c,A,d,G=`<div class="w-full flex flex-col space-y-4 md:space-y-0 md:grid md:grid-cols-3 md:gap-y-4 md:gap-x-5"><a class="!no-underline border dark:border-gray-700 p-5 rounded-lg shadow hover:shadow-lg" href="./chat-completion"><div class="w-full text-center bg-gradient-to-br from-indigo-400 to-indigo-500 rounded-lg py-1.5 font-semibold mb-5 text-white text-lg leading-relaxed">Chat Completion
      </div><p class="text-gray-700">Generate a response given a list of messages in a conversational context.</p></a> <a class="!no-underline border dark:border-gray-700 p-5 rounded-lg shadow hover:shadow-lg" href="./feature-extraction"><div class="w-full text-center bg-gradient-to-br from-indigo-400 to-indigo-500 rounded-lg py-1.5 font-semibold mb-5 text-white text-lg leading-relaxed">Feature Extraction
      </div><p class="text-gray-700">Converting a text into a vector often called &quot;embedding&quot;.</p></a> <a class="!no-underline border dark:border-gray-700 p-5 rounded-lg shadow hover:shadow-lg" href="./text-to-image"><div class="w-full text-center bg-gradient-to-br from-indigo-400 to-indigo-500 rounded-lg py-1.5 font-semibold mb-5 text-white text-lg leading-relaxed">Text to Image
      </div><p class="text-gray-700">Generate an image based on a given text prompt.</p></a> <a class="!no-underline border dark:border-gray-700 p-5 rounded-lg shadow hover:shadow-lg" href="./text-to-video"><div class="w-full text-center bg-gradient-to-br from-indigo-400 to-indigo-500 rounded-lg py-1.5 font-semibold mb-5 text-white text-lg leading-relaxed">Text to Video
      </div><p class="text-gray-700">Generate an video based on a given text prompt.</p></a></div>`,I,m,M,s,H=`<div class="w-full flex flex-col space-y-4 md:space-y-0 md:grid md:grid-cols-3 md:gap-y-4 md:gap-x-5"><a class="!no-underline border dark:border-gray-700 p-5 rounded-lg shadow hover:shadow-lg" href="./audio-classification"><div class="w-full text-center bg-gradient-to-br from-indigo-400 to-indigo-500 rounded-lg py-1.5 font-semibold mb-5 text-white text-lg leading-relaxed">Audio Classification
      </div><p class="text-gray-700">Audio classification is the task of assigning a label or class to a given audio.</p></a> <a class="!no-underline border dark:border-gray-700 p-5 rounded-lg shadow hover:shadow-lg" href="./automatic-speech-recognition"><div class="w-full text-center bg-gradient-to-br from-indigo-400 to-indigo-500 rounded-lg py-1.5 font-semibold mb-5 text-white text-lg leading-relaxed">Automatic Speech Recognition
      </div><p class="text-gray-700">Automatic Speech Recognition (ASR), also known as Speech to Text (STT), is the task of transcribing a given audio to text.</p></a> <a class="!no-underline border dark:border-gray-700 p-5 rounded-lg shadow hover:shadow-lg" href="./fill-mask"><div class="w-full text-center bg-gradient-to-br from-indigo-400 to-indigo-500 rounded-lg py-1.5 font-semibold mb-5 text-white text-lg leading-relaxed">Fill Mask
      </div><p class="text-gray-700">Mask filling is the task of predicting the right word (token to be precise) in the middle of a sequence.</p></a> <a class="!no-underline border dark:border-gray-700 p-5 rounded-lg shadow hover:shadow-lg" href="./image-classification"><div class="w-full text-center bg-gradient-to-br from-indigo-400 to-indigo-500 rounded-lg py-1.5 font-semibold mb-5 text-white text-lg leading-relaxed">Image Classification
      </div><p class="text-gray-700">Image classification is the task of assigning a label or class to an entire image. Images are expected to have only one class for each image.</p></a> <a class="!no-underline border dark:border-gray-700 p-5 rounded-lg shadow hover:shadow-lg" href="./image-segmentation"><div class="w-full text-center bg-gradient-to-br from-indigo-400 to-indigo-500 rounded-lg py-1.5 font-semibold mb-5 text-white text-lg leading-relaxed">Image Segmentation
      </div><p class="text-gray-700">Image Segmentation divides an image into segments where each pixel in the image is mapped to an object.</p></a> <a class="!no-underline border dark:border-gray-700 p-5 rounded-lg shadow hover:shadow-lg" href="./image-to-image"><div class="w-full text-center bg-gradient-to-br from-indigo-400 to-indigo-500 rounded-lg py-1.5 font-semibold mb-5 text-white text-lg leading-relaxed">Image to Image
      </div><p class="text-gray-700">Image-to-image is the task of transforming a source image to match the characteristics of a target image or a target image domain.</p></a> <a class="!no-underline border dark:border-gray-700 p-5 rounded-lg shadow hover:shadow-lg" href="./object-detection"><div class="w-full text-center bg-gradient-to-br from-indigo-400 to-indigo-500 rounded-lg py-1.5 font-semibold mb-5 text-white text-lg leading-relaxed">Object Detection
      </div><p class="text-gray-700">Object Detection models allow users to identify objects of certain defined classes.</p></a> <a class="!no-underline border dark:border-gray-700 p-5 rounded-lg shadow hover:shadow-lg" href="./question-answering"><div class="w-full text-center bg-gradient-to-br from-indigo-400 to-indigo-500 rounded-lg py-1.5 font-semibold mb-5 text-white text-lg leading-relaxed">Question Answering
      </div><p class="text-gray-700">Question Answering models can retrieve the answer to a question from a given text, which is useful for searching for an answer in a document.</p></a> <a class="!no-underline border dark:border-gray-700 p-5 rounded-lg shadow hover:shadow-lg" href="./summarization"><div class="w-full text-center bg-gradient-to-br from-indigo-400 to-indigo-500 rounded-lg py-1.5 font-semibold mb-5 text-white text-lg leading-relaxed">Summarization
      </div><p class="text-gray-700">Summarization is the task of producing a shorter version of a document while preserving its important information.</p></a> <a class="!no-underline border dark:border-gray-700 p-5 rounded-lg shadow hover:shadow-lg" href="./table-question-answering"><div class="w-full text-center bg-gradient-to-br from-indigo-400 to-indigo-500 rounded-lg py-1.5 font-semibold mb-5 text-white text-lg leading-relaxed">Table Question Answering
      </div><p class="text-gray-700">Table Question Answering (Table QA) is the answering a question about an information on a given table.</p></a> <a class="!no-underline border dark:border-gray-700 p-5 rounded-lg shadow hover:shadow-lg" href="./text-classification"><div class="w-full text-center bg-gradient-to-br from-indigo-400 to-indigo-500 rounded-lg py-1.5 font-semibold mb-5 text-white text-lg leading-relaxed">Text Classification
      </div><p class="text-gray-700">Text Classification is the task of assigning a label or class to a given text.</p></a> <a class="!no-underline border dark:border-gray-700 p-5 rounded-lg shadow hover:shadow-lg" href="./text-generation"><div class="w-full text-center bg-gradient-to-br from-indigo-400 to-indigo-500 rounded-lg py-1.5 font-semibold mb-5 text-white text-lg leading-relaxed">Text Generation
      </div><p class="text-gray-700">Generate text based on a prompt.</p></a> <a class="!no-underline border dark:border-gray-700 p-5 rounded-lg shadow hover:shadow-lg" href="./token-classification"><div class="w-full text-center bg-gradient-to-br from-indigo-400 to-indigo-500 rounded-lg py-1.5 font-semibold mb-5 text-white text-lg leading-relaxed">Token Classification
      </div><p class="text-gray-700">Token classification is a task in which a label is assigned to some tokens in a text.</p></a> <a class="!no-underline border dark:border-gray-700 p-5 rounded-lg shadow hover:shadow-lg" href="./translation"><div class="w-full text-center bg-gradient-to-br from-indigo-400 to-indigo-500 rounded-lg py-1.5 font-semibold mb-5 text-white text-lg leading-relaxed">Translation
      </div><p class="text-gray-700">Translation is the task of converting text from one language to another.</p></a> <a class="!no-underline border dark:border-gray-700 p-5 rounded-lg shadow hover:shadow-lg" href="./zero-shot-classification"><div class="w-full text-center bg-gradient-to-br from-indigo-400 to-indigo-500 rounded-lg py-1.5 font-semibold mb-5 text-white text-lg leading-relaxed">Zero Shot Classification
      </div><p class="text-gray-700">Zero shot classification is the task to classify text without specific training for the task.</p></a></div>`,P,f,q,p,E;return l=new J({props:{containerStyle:"float: right; margin-left: 10px; display: inline-flex; position: relative; z-index: 10;"}}),g=new j({props:{title:"API Reference",local:"api-reference",headingTag:"h1"}}),c=new j({props:{title:"Popular tasks",local:"popular-tasks",headingTag:"h2"}}),m=new j({props:{title:"Other tasks",local:"other-tasks",headingTag:"h2"}}),f=new K({props:{source:"https://github.com/huggingface/hub-docs/blob/main/docs/inference-providers/tasks/index.md"}}),{c(){i=u("meta"),T=r(),h=u("p"),_=r(),b(l.$$.fragment),C=r(),b(g.$$.fragment),S=r(),b(c.$$.fragment),A=r(),d=u("div"),d.innerHTML=G,I=r(),b(m.$$.fragment),M=r(),s=u("div"),s.innerHTML=H,P=r(),b(f.$$.fragment),q=r(),p=u("p"),this.h()},l(e){const t=U("svelte-u9bgzb",document.head);i=x(t,"META",{name:!0,content:!0}),t.forEach(a),T=n(e),h=x(e,"P",{}),R(h).forEach(a),_=n(e),w(l.$$.fragment,e),C=n(e),w(g.$$.fragment,e),S=n(e),w(c.$$.fragment,e),A=n(e),d=x(e,"DIV",{class:!0,"data-svelte-h":!0}),O(d)!=="svelte-ogc1br"&&(d.innerHTML=G),I=n(e),w(m.$$.fragment,e),M=n(e),s=x(e,"DIV",{class:!0,"data-svelte-h":!0}),O(s)!=="svelte-1goliir"&&(s.innerHTML=H),P=n(e),w(f.$$.fragment,e),q=n(e),p=x(e,"P",{}),R(p).forEach(a),this.h()},h(){L(i,"name","hf:doc:metadata"),L(i,"content",W),L(d,"class","mt-10"),L(s,"class","mt-10")},m(e,t){B(document.head,i),o(e,T,t),o(e,h,t),o(e,_,t),v(l,e,t),o(e,C,t),v(g,e,t),o(e,S,t),v(c,e,t),o(e,A,t),o(e,d,t),o(e,I,t),v(m,e,t),o(e,M,t),o(e,s,t),o(e,P,t),v(f,e,t),o(e,q,t),o(e,p,t),E=!0},p:D,i(e){E||(y(l.$$.fragment,e),y(g.$$.fragment,e),y(c.$$.fragment,e),y(m.$$.fragment,e),y(f.$$.fragment,e),E=!0)},o(e){k(l.$$.fragment,e),k(g.$$.fragment,e),k(c.$$.fragment,e),k(m.$$.fragment,e),k(f.$$.fragment,e),E=!1},d(e){e&&(a(T),a(h),a(_),a(C),a(S),a(A),a(d),a(I),a(M),a(s),a(P),a(q),a(p)),a(i),$(l,e),$(g,e),$(c,e),$(m,e),$(f,e)}}}const W='{"title":"API Reference","local":"api-reference","sections":[{"title":"Popular tasks","local":"popular-tasks","sections":[],"depth":2},{"title":"Other tasks","local":"other-tasks","sections":[],"depth":2}],"depth":1}';function X(z){return V(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class oe extends F{constructor(i){super(),Z(this,i,X,N,Q,{})}}export{oe as component};
