import{s as V,n as ee,o as te}from"../chunks/scheduler.37c15a92.js";import{S as ae,i as ne,g as l,s as i,r as z,A as ie,h as s,f as a,c as o,j as K,u as q,x as v,k as Q,y as oe,a as n,v as G,d as I,t as Y,w as B}from"../chunks/index.2bf4358c.js";import{Y as le}from"../chunks/Youtube.1e50a667.js";import{C as se}from"../chunks/CourseFloatingBanner.15ba07e6.js";import{H as re,E as me}from"../chunks/EditOnGithub.8916dc7c.js";function he(D){let r,_,y,x,m,P,h,T,u,O='The <a href="https://huggingface.co/" rel="nofollow">Hugging Face Hub</a> –- our main website –- is a central platform that enables anyone to discover, use, and contribute new state-of-the-art models and datasets. It hosts a wide variety of models, with more than 10,000 publicly available. We’ll focus on the models in this chapter, and take a look at the datasets in Chapter 5.',C,p,R='The models in the Hub are not limited to 🤗 Transformers or even NLP. There are models from <a href="https://github.com/flairNLP/flair" rel="nofollow">Flair</a> and <a href="https://github.com/allenai/allennlp" rel="nofollow">AllenNLP</a> for NLP, <a href="https://github.com/asteroid-team/asteroid" rel="nofollow">Asteroid</a> and <a href="https://github.com/pyannote/pyannote-audio" rel="nofollow">pyannote</a> for speech, and <a href="https://github.com/rwightman/pytorch-image-models" rel="nofollow">timm</a> for vision, to name a few.',L,f,U="Each of these models is hosted as a Git repository, which allows versioning and reproducibility. Sharing a model on the Hub means opening it up to the community and making it accessible to anyone looking to easily use it, in turn eliminating their need to train a model on their own and simplifying sharing and usage.",M,c,W="Additionally, sharing a model on the Hub automatically deploys a hosted Inference API for that model. Anyone in the community is free to test it out directly on the model’s page, with custom inputs and appropriate widgets.",E,g,X='The best part is that sharing and using any public model on the Hub is completely free! <a href="https://huggingface.co/pricing" rel="nofollow">Paid plans</a> also exist if you wish to share models privately.',A,d,Z="The video below shows how to navigate the Hub.",F,b,k,w,J='Having a huggingface.co account is required to follow along this part, as we’ll be creating and managing repositories on the Hugging Face Hub: <a href="https://huggingface.co/join" rel="nofollow">create an account</a>',N,$,S,H,j;return m=new re({props:{title:"The Hugging Face Hub",local:"the-hugging-face-hub",headingTag:"h1"}}),h=new se({props:{chapter:4,classNames:"absolute z-10 right-0 top-0"}}),b=new le({props:{id:"XvSGPZFEjDY"}}),$=new me({props:{source:"https://github.com/huggingface/course/blob/main/chapters/en/chapter4/1.mdx"}}),{c(){r=l("meta"),_=i(),y=l("p"),x=i(),z(m.$$.fragment),P=i(),z(h.$$.fragment),T=i(),u=l("p"),u.innerHTML=O,C=i(),p=l("p"),p.innerHTML=R,L=i(),f=l("p"),f.textContent=U,M=i(),c=l("p"),c.textContent=W,E=i(),g=l("p"),g.innerHTML=X,A=i(),d=l("p"),d.textContent=Z,F=i(),z(b.$$.fragment),k=i(),w=l("p"),w.innerHTML=J,N=i(),z($.$$.fragment),S=i(),H=l("p"),this.h()},l(e){const t=ie("svelte-u9bgzb",document.head);r=s(t,"META",{name:!0,content:!0}),t.forEach(a),_=o(e),y=s(e,"P",{}),K(y).forEach(a),x=o(e),q(m.$$.fragment,e),P=o(e),q(h.$$.fragment,e),T=o(e),u=s(e,"P",{"data-svelte-h":!0}),v(u)!=="svelte-cm9y97"&&(u.innerHTML=O),C=o(e),p=s(e,"P",{"data-svelte-h":!0}),v(p)!=="svelte-g5vlrf"&&(p.innerHTML=R),L=o(e),f=s(e,"P",{"data-svelte-h":!0}),v(f)!=="svelte-xb7epb"&&(f.textContent=U),M=o(e),c=s(e,"P",{"data-svelte-h":!0}),v(c)!=="svelte-60q9xs"&&(c.textContent=W),E=o(e),g=s(e,"P",{"data-svelte-h":!0}),v(g)!=="svelte-62jdx4"&&(g.innerHTML=X),A=o(e),d=s(e,"P",{"data-svelte-h":!0}),v(d)!=="svelte-1bky6bz"&&(d.textContent=Z),F=o(e),q(b.$$.fragment,e),k=o(e),w=s(e,"P",{"data-svelte-h":!0}),v(w)!=="svelte-8macze"&&(w.innerHTML=J),N=o(e),q($.$$.fragment,e),S=o(e),H=s(e,"P",{}),K(H).forEach(a),this.h()},h(){Q(r,"name","hf:doc:metadata"),Q(r,"content",ue)},m(e,t){oe(document.head,r),n(e,_,t),n(e,y,t),n(e,x,t),G(m,e,t),n(e,P,t),G(h,e,t),n(e,T,t),n(e,u,t),n(e,C,t),n(e,p,t),n(e,L,t),n(e,f,t),n(e,M,t),n(e,c,t),n(e,E,t),n(e,g,t),n(e,A,t),n(e,d,t),n(e,F,t),G(b,e,t),n(e,k,t),n(e,w,t),n(e,N,t),G($,e,t),n(e,S,t),n(e,H,t),j=!0},p:ee,i(e){j||(I(m.$$.fragment,e),I(h.$$.fragment,e),I(b.$$.fragment,e),I($.$$.fragment,e),j=!0)},o(e){Y(m.$$.fragment,e),Y(h.$$.fragment,e),Y(b.$$.fragment,e),Y($.$$.fragment,e),j=!1},d(e){e&&(a(_),a(y),a(x),a(P),a(T),a(u),a(C),a(p),a(L),a(f),a(M),a(c),a(E),a(g),a(A),a(d),a(F),a(k),a(w),a(N),a(S),a(H)),a(r),B(m,e),B(h,e),B(b,e),B($,e)}}}const ue='{"title":"The Hugging Face Hub","local":"the-hugging-face-hub","sections":[],"depth":1}';function pe(D){return te(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class we extends ae{constructor(r){super(),ne(this,r,pe,he,V,{})}}export{we as component};
