import{s as He,n as Le,o as ke}from"../chunks/scheduler.d6170356.js";import{S as Ae,i as Pe,g as o,s,r as P,A as Ue,h as n,f as i,c as a,j as Ce,u as U,x as r,k as me,y as Ee,a as l,v as E,d as V,t as j,w as G}from"../chunks/index.fcd4cc08.js";import{C as Ve}from"../chunks/CodeBlock.db16bf50.js";import{H as N,E as je}from"../chunks/index.c1f68a2b.js";function Ge(ue){let d,Z,F,q,c,z,p,ce="<code>asteroid</code> is a Pytorch toolkit for audio source separation. It enables fast experimentation on common datasets with support for a large range of datasets and recipes to reproduce papers.",O,f,S,h,pe='You can find <code>asteroid</code> models by filtering at the left of the <a href="https://huggingface.co/models?filter=asteroid" rel="nofollow">models page</a>.',X,g,fe="All models on the Hub come up with the following features:",Y,b,he="<li>An automatically generated model card with a description, training configuration, metrics, and more.</li> <li>Metadata tags that help for discoverability and contain information such as licenses and datasets.</li> <li>An interactive widget you can use to play out with the model directly in the browser.</li> <li>An Inference API that allows to make inference requests.</li>",Q,m,ge='<img class="block dark:hidden" src="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/libraries-transformers_widget.png"/> <img class="hidden dark:block" src="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/libraries-transformers_widget-dark.png"/>',B,$,D,v,be='For a full guide on loading pre-trained models, we recommend checking out the <a href="https://github.com/asteroid-team/asteroid/blob/master/docs/source/readmes/pretrained_models.md" rel="nofollow">official guide</a>.',R,y,$e="All model classes (<code>BaseModel</code>, <code>ConvTasNet</code>, etc) have a <code>from_pretrained</code> method that allows to load models from the Hub.",W,w,J,_,ve="If you want to see how to load a specific model, you can click <code>Use in Adapter Transformers</code> and you will be given a working snippet that you can load it!",K,u,ye='<img class="block dark:hidden" src="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/libraries-transformers_snippet.png"/> <img class="hidden dark:block" src="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/libraries-transformers_snippet-dark.png"/>',ee,x,te,T,we='At the moment there is no automatic method to upload your models to the Hub, but the process to upload them is documented in the <a href="https://github.com/asteroid-team/asteroid/blob/master/docs/source/readmes/pretrained_models.md#share-your-models" rel="nofollow">official guide</a>.',ie,M,_e="All the recipes create all the needed files to upload a model to the Hub. The process usually involves the following steps:",le,C,xe="<li>Create and clone a model repository.</li> <li>Moving files from the recipe output to the repository (model card, model filte, TensorBoard traces).</li> <li>Push the files (<code>git add</code> + <code>git commit</code> + <code>git push</code>).</li>",se,H,Te="Once you do this, you can try out your model directly in the browser and share it with the rest of the community.",ae,L,oe,k,Me='<li>Asteroid <a href="https://asteroid-team.github.io/" rel="nofollow">website</a>.</li> <li>Asteroid <a href="https://github.com/asteroid-team/asteroid" rel="nofollow">library</a>.</li> <li>Integration <a href="https://github.com/asteroid-team/asteroid/blob/master/docs/source/readmes/pretrained_models.md" rel="nofollow">docs</a>.</li>',ne,A,re,I,de;return c=new N({props:{title:"Using Asteroid at Hugging Face",local:"using-asteroid-at-hugging-face",headingTag:"h1"}}),f=new N({props:{title:"Exploring Asteroid in the Hub",local:"exploring-asteroid-in-the-hub",headingTag:"h2"}}),$=new N({props:{title:"Using existing models",local:"using-existing-models",headingTag:"h2"}}),w=new Ve({props:{code:"ZnJvbSUyMGFzdGVyb2lkLm1vZGVscyUyMGltcG9ydCUyMENvbnZUYXNOZXQlMEFtb2RlbCUyMCUzRCUyMENvbnZUYXNOZXQuZnJvbV9wcmV0cmFpbmVkKCdtcGFyaWVudGUlMkZDb252VGFzTmV0X1dIQU1fc2VwY2xlYW4nKQ==",highlighted:`<span class="hljs-keyword">from</span> asteroid.models <span class="hljs-keyword">import</span> ConvTasNet
model = ConvTasNet.from_pretrained(<span class="hljs-string">&#x27;mpariente/ConvTasNet_WHAM_sepclean&#x27;</span>)`,wrap:!1}}),x=new N({props:{title:"Sharing your models",local:"sharing-your-models",headingTag:"h2"}}),L=new N({props:{title:"Additional resources",local:"additional-resources",headingTag:"h2"}}),A=new je({props:{source:"https://github.com/huggingface/hub-docs/blob/main/docs/hub/asteroid.md"}}),{c(){d=o("meta"),Z=s(),F=o("p"),q=s(),P(c.$$.fragment),z=s(),p=o("p"),p.innerHTML=ce,O=s(),P(f.$$.fragment),S=s(),h=o("p"),h.innerHTML=pe,X=s(),g=o("p"),g.textContent=fe,Y=s(),b=o("ol"),b.innerHTML=he,Q=s(),m=o("div"),m.innerHTML=ge,B=s(),P($.$$.fragment),D=s(),v=o("p"),v.innerHTML=be,R=s(),y=o("p"),y.innerHTML=$e,W=s(),P(w.$$.fragment),J=s(),_=o("p"),_.innerHTML=ve,K=s(),u=o("div"),u.innerHTML=ye,ee=s(),P(x.$$.fragment),te=s(),T=o("p"),T.innerHTML=we,ie=s(),M=o("p"),M.textContent=_e,le=s(),C=o("ol"),C.innerHTML=xe,se=s(),H=o("p"),H.textContent=Te,ae=s(),P(L.$$.fragment),oe=s(),k=o("ul"),k.innerHTML=Me,ne=s(),P(A.$$.fragment),re=s(),I=o("p"),this.h()},l(e){const t=Ue("svelte-u9bgzb",document.head);d=n(t,"META",{name:!0,content:!0}),t.forEach(i),Z=a(e),F=n(e,"P",{}),Ce(F).forEach(i),q=a(e),U(c.$$.fragment,e),z=a(e),p=n(e,"P",{"data-svelte-h":!0}),r(p)!=="svelte-1qjlbp6"&&(p.innerHTML=ce),O=a(e),U(f.$$.fragment,e),S=a(e),h=n(e,"P",{"data-svelte-h":!0}),r(h)!=="svelte-1ub76b"&&(h.innerHTML=pe),X=a(e),g=n(e,"P",{"data-svelte-h":!0}),r(g)!=="svelte-t2majo"&&(g.textContent=fe),Y=a(e),b=n(e,"OL",{"data-svelte-h":!0}),r(b)!=="svelte-rcdzi9"&&(b.innerHTML=he),Q=a(e),m=n(e,"DIV",{class:!0,"data-svelte-h":!0}),r(m)!=="svelte-435q1z"&&(m.innerHTML=ge),B=a(e),U($.$$.fragment,e),D=a(e),v=n(e,"P",{"data-svelte-h":!0}),r(v)!=="svelte-ofs9i1"&&(v.innerHTML=be),R=a(e),y=n(e,"P",{"data-svelte-h":!0}),r(y)!=="svelte-1nqrvc0"&&(y.innerHTML=$e),W=a(e),U(w.$$.fragment,e),J=a(e),_=n(e,"P",{"data-svelte-h":!0}),r(_)!=="svelte-1tjoh4p"&&(_.innerHTML=ve),K=a(e),u=n(e,"DIV",{class:!0,"data-svelte-h":!0}),r(u)!=="svelte-125odup"&&(u.innerHTML=ye),ee=a(e),U(x.$$.fragment,e),te=a(e),T=n(e,"P",{"data-svelte-h":!0}),r(T)!=="svelte-mr4xsw"&&(T.innerHTML=we),ie=a(e),M=n(e,"P",{"data-svelte-h":!0}),r(M)!=="svelte-1y63q62"&&(M.textContent=_e),le=a(e),C=n(e,"OL",{"data-svelte-h":!0}),r(C)!=="svelte-equ67y"&&(C.innerHTML=xe),se=a(e),H=n(e,"P",{"data-svelte-h":!0}),r(H)!=="svelte-14zae00"&&(H.textContent=Te),ae=a(e),U(L.$$.fragment,e),oe=a(e),k=n(e,"UL",{"data-svelte-h":!0}),r(k)!=="svelte-sfho8j"&&(k.innerHTML=Me),ne=a(e),U(A.$$.fragment,e),re=a(e),I=n(e,"P",{}),Ce(I).forEach(i),this.h()},h(){me(d,"name","hf:doc:metadata"),me(d,"content",Fe),me(m,"class","flex justify-center"),me(u,"class","flex justify-center")},m(e,t){Ee(document.head,d),l(e,Z,t),l(e,F,t),l(e,q,t),E(c,e,t),l(e,z,t),l(e,p,t),l(e,O,t),E(f,e,t),l(e,S,t),l(e,h,t),l(e,X,t),l(e,g,t),l(e,Y,t),l(e,b,t),l(e,Q,t),l(e,m,t),l(e,B,t),E($,e,t),l(e,D,t),l(e,v,t),l(e,R,t),l(e,y,t),l(e,W,t),E(w,e,t),l(e,J,t),l(e,_,t),l(e,K,t),l(e,u,t),l(e,ee,t),E(x,e,t),l(e,te,t),l(e,T,t),l(e,ie,t),l(e,M,t),l(e,le,t),l(e,C,t),l(e,se,t),l(e,H,t),l(e,ae,t),E(L,e,t),l(e,oe,t),l(e,k,t),l(e,ne,t),E(A,e,t),l(e,re,t),l(e,I,t),de=!0},p:Le,i(e){de||(V(c.$$.fragment,e),V(f.$$.fragment,e),V($.$$.fragment,e),V(w.$$.fragment,e),V(x.$$.fragment,e),V(L.$$.fragment,e),V(A.$$.fragment,e),de=!0)},o(e){j(c.$$.fragment,e),j(f.$$.fragment,e),j($.$$.fragment,e),j(w.$$.fragment,e),j(x.$$.fragment,e),j(L.$$.fragment,e),j(A.$$.fragment,e),de=!1},d(e){e&&(i(Z),i(F),i(q),i(z),i(p),i(O),i(S),i(h),i(X),i(g),i(Y),i(b),i(Q),i(m),i(B),i(D),i(v),i(R),i(y),i(W),i(J),i(_),i(K),i(u),i(ee),i(te),i(T),i(ie),i(M),i(le),i(C),i(se),i(H),i(ae),i(oe),i(k),i(ne),i(re),i(I)),i(d),G(c,e),G(f,e),G($,e),G(w,e),G(x,e),G(L,e),G(A,e)}}}const Fe='{"title":"Using Asteroid at Hugging Face","local":"using-asteroid-at-hugging-face","sections":[{"title":"Exploring Asteroid in the Hub","local":"exploring-asteroid-in-the-hub","sections":[],"depth":2},{"title":"Using existing models","local":"using-existing-models","sections":[],"depth":2},{"title":"Sharing your models","local":"sharing-your-models","sections":[],"depth":2},{"title":"Additional resources","local":"additional-resources","sections":[],"depth":2}],"depth":1}';function Ie(ue){return ke(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class Oe extends Ae{constructor(d){super(),Pe(this,d,Ie,Ge,He,{})}}export{Oe as component};
