import{S as at,i as et,s as st,e as o,k as _,w as z,t as M,M as lt,c as i,d as a,m as U,a as u,x as B,h as $,b as l,G as e,g as h,y as D,L as nt,q as Q,o as W,B as L,v as rt}from"../chunks/vendor-hf-doc-builder.js";import{I as ot}from"../chunks/IconCopyLink-hf-doc-builder.js";import{C as tt}from"../chunks/CodeBlock-hf-doc-builder.js";function it(Y){let n,b,r,p,g,f,Z,S,A,k,c,P,y,R,T,E,d,C,m,G,v,H,q,x,w,j;return f=new ot({}),d=new tt({props:{code:"bnBtJTIwaSUyMCU0MHhlbm92YSUyRnRyYW5zZm9ybWVycw==",highlighted:"npm i @xenova/transformers"}}),w=new tt({props:{code:"JTNDc2NyaXB0JTIwdHlwZSUzRCUyMm1vZHVsZSUyMiUzRSUwQSUyMCUyMCUyMCUyMGltcG9ydCUyMCU3QiUyMHBpcGVsaW5lJTIwJTdEJTIwZnJvbSUyMCdodHRwcyUzQSUyRiUyRmNkbi5qc2RlbGl2ci5uZXQlMkZucG0lMkYlNDB4ZW5vdmElMkZ0cmFuc2Zvcm1lcnMlNDAyLjUuNCclM0IlMEElM0MlMkZzY3JpcHQlM0U=",highlighted:`<span class="hljs-tag">&lt;<span class="hljs-name">script</span> <span class="hljs-attr">type</span>=<span class="hljs-string">&quot;module&quot;</span>&gt;</span><span class="language-javascript">
    <span class="hljs-keyword">import</span> { pipeline } <span class="hljs-keyword">from</span> <span class="hljs-string">&#x27;https://cdn.jsdelivr.net/npm/@xenova/transformers@2.5.4&#x27;</span>;
</span><span class="hljs-tag">&lt;/<span class="hljs-name">script</span>&gt;</span>`}}),{c(){n=o("meta"),b=_(),r=o("h1"),p=o("a"),g=o("span"),z(f.$$.fragment),Z=_(),S=o("span"),A=M("Installation"),k=_(),c=o("p"),P=M("To install via "),y=o("a"),R=M("NPM"),T=M(", run:"),E=_(),z(d.$$.fragment),C=_(),m=o("p"),G=M("Alternatively, you can use it in vanilla JS, without any bundler, by using a CDN or static hosting. For example, using "),v=o("a"),H=M("ES Modules"),q=M(", you can import the library with:"),x=_(),z(w.$$.fragment),this.h()},l(t){const s=lt('[data-svelte="svelte-1phssyn"]',document.head);n=i(s,"META",{name:!0,content:!0}),s.forEach(a),b=U(t),r=i(t,"H1",{class:!0});var N=u(r);p=i(N,"A",{id:!0,class:!0,href:!0});var F=u(p);g=i(F,"SPAN",{});var V=u(g);B(f.$$.fragment,V),V.forEach(a),F.forEach(a),Z=U(N),S=i(N,"SPAN",{});var X=u(S);A=$(X,"Installation"),X.forEach(a),N.forEach(a),k=U(t),c=i(t,"P",{});var J=u(c);P=$(J,"To install via "),y=i(J,"A",{href:!0,rel:!0});var O=u(y);R=$(O,"NPM"),O.forEach(a),T=$(J,", run:"),J.forEach(a),E=U(t),B(d.$$.fragment,t),C=U(t),m=i(t,"P",{});var I=u(m);G=$(I,"Alternatively, you can use it in vanilla JS, without any bundler, by using a CDN or static hosting. For example, using "),v=i(I,"A",{href:!0,rel:!0});var K=u(v);H=$(K,"ES Modules"),K.forEach(a),q=$(I,", you can import the library with:"),I.forEach(a),x=U(t),B(w.$$.fragment,t),this.h()},h(){l(n,"name","hf:doc:metadata"),l(n,"content",JSON.stringify(pt)),l(p,"id","installation"),l(p,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),l(p,"href","#installation"),l(r,"class","relative group"),l(y,"href","https://www.npmjs.com/package/@xenova/transformers"),l(y,"rel","nofollow"),l(v,"href","https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Modules"),l(v,"rel","nofollow")},m(t,s){e(document.head,n),h(t,b,s),h(t,r,s),e(r,p),e(p,g),D(f,g,null),e(r,Z),e(r,S),e(S,A),h(t,k,s),h(t,c,s),e(c,P),e(c,y),e(y,R),e(c,T),h(t,E,s),D(d,t,s),h(t,C,s),h(t,m,s),e(m,G),e(m,v),e(v,H),e(m,q),h(t,x,s),D(w,t,s),j=!0},p:nt,i(t){j||(Q(f.$$.fragment,t),Q(d.$$.fragment,t),Q(w.$$.fragment,t),j=!0)},o(t){W(f.$$.fragment,t),W(d.$$.fragment,t),W(w.$$.fragment,t),j=!1},d(t){a(n),t&&a(b),t&&a(r),L(f),t&&a(k),t&&a(c),t&&a(E),L(d,t),t&&a(C),t&&a(m),t&&a(x),L(w,t)}}}const pt={local:"installation",title:"Installation"};function ct(Y){return rt(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class ft extends at{constructor(n){super();et(this,n,ct,it,st,{})}}export{ft as default,pt as metadata};
