import{s as F,n as R,o as W}from"../chunks/scheduler.0cf4ef2e.js";import{S as j,i as q,e as m,s as g,c as k,h as A,a as f,d as o,b as c,f as z,g as _,j as D,k as C,l as J,m as a,n as P,t as M,o as S,p as I}from"../chunks/index.abc433bf.js";import{C as U}from"../chunks/CopyLLMTxtMenu.efc6b005.js";import{H as G,E as O}from"../chunks/MermaidChart.svelte_svelte_type_style_lang.86d448e2.js";function V(T){let r,p,h,b,n,w,i,x,l,E=`In this section, you will find practical guides to help you achieve a specific goal.
Take a look at these guides to learn how to use huggingface_hub to solve real-world problems:`,y,d,L=`<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="./repository"><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">Repository
      </div><p class="text-gray-700">How to create a repository on the Hub? How to configure it? How to interact with it?</p></a> <a class="!no-underline border dark:border-gray-700 p-5 rounded-lg shadow hover:shadow-lg" href="./download"><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">Download files
      </div><p class="text-gray-700">How do I download a file from the Hub? How do I download a repository?</p></a> <a class="!no-underline border dark:border-gray-700 p-5 rounded-lg shadow hover:shadow-lg" href="./upload"><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">Upload files
      </div><p class="text-gray-700">How to upload a file or a folder? How to make changes to an existing repository on the Hub?</p></a> <a class="!no-underline border dark:border-gray-700 p-5 rounded-lg shadow hover:shadow-lg" href="./search"><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">Search
      </div><p class="text-gray-700">How to efficiently search through the 200k+ public models, datasets and spaces?</p></a> <a class="!no-underline border dark:border-gray-700 p-5 rounded-lg shadow hover:shadow-lg" href="./hf_file_system"><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">HfFileSystem
      </div><p class="text-gray-700">How to interact with the Hub through a convenient interface that mimics Python&#39;s file interface?</p></a> <a class="!no-underline border dark:border-gray-700 p-5 rounded-lg shadow hover:shadow-lg" href="./inference"><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">Inference
      </div><p class="text-gray-700">How to make predictions using Hugging Face Inference Providers?</p></a> <a class="!no-underline border dark:border-gray-700 p-5 rounded-lg shadow hover:shadow-lg" href="./community"><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">Community Tab
      </div><p class="text-gray-700">How to interact with the Community tab (Discussions and Pull Requests)?</p></a> <a class="!no-underline border dark:border-gray-700 p-5 rounded-lg shadow hover:shadow-lg" href="./collections"><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">Collections
      </div><p class="text-gray-700">How to programmatically build collections?</p></a> <a class="!no-underline border dark:border-gray-700 p-5 rounded-lg shadow hover:shadow-lg" href="./manage-cache"><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">Cache
      </div><p class="text-gray-700">How does the cache-system work? How to benefit from it?</p></a> <a class="!no-underline border dark:border-gray-700 p-5 rounded-lg shadow hover:shadow-lg" href="./model-cards"><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">Model Cards
      </div><p class="text-gray-700">How to create and share Model Cards?</p></a> <a class="!no-underline border dark:border-gray-700 p-5 rounded-lg shadow hover:shadow-lg" href="./manage-spaces"><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">Manage your Space
      </div><p class="text-gray-700">How to manage your Space hardware and configuration?</p></a> <a class="!no-underline border dark:border-gray-700 p-5 rounded-lg shadow hover:shadow-lg" href="./integrations"><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">Integrate a library
      </div><p class="text-gray-700">What does it mean to integrate a library with the Hub? And how to do it?</p></a> <a class="!no-underline border dark:border-gray-700 p-5 rounded-lg shadow hover:shadow-lg" href="./webhooks_server"><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">Webhooks server
      </div><p class="text-gray-700">How to create a server to receive Webhooks and deploy it as a Space?</p></a> <a class="!no-underline border dark:border-gray-700 p-5 rounded-lg shadow hover:shadow-lg" href="./jobs"><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">Jobs
      </div><p class="text-gray-700">How to run and manage compute Jobs on Hugging Face infrastructure and select the hardware?</p></a></div>`,v,s,H,u,$;return n=new U({props:{containerStyle:"float: right; margin-left: 10px; display: inline-flex; position: relative; z-index: 10;"}}),i=new G({props:{title:"How-to guides",local:"how-to-guides",headingTag:"h1"}}),s=new O({props:{source:"https://github.com/huggingface/huggingface_hub/blob/main/docs/source/en/guides/overview.md"}}),{c(){r=m("meta"),p=g(),h=m("p"),b=g(),k(n.$$.fragment),w=g(),k(i.$$.fragment),x=g(),l=m("p"),l.textContent=E,y=g(),d=m("div"),d.innerHTML=L,v=g(),k(s.$$.fragment),H=g(),u=m("p"),this.h()},l(e){const t=A("svelte-u9bgzb",document.head);r=f(t,"META",{name:!0,content:!0}),t.forEach(o),p=c(e),h=f(e,"P",{}),z(h).forEach(o),b=c(e),_(n.$$.fragment,e),w=c(e),_(i.$$.fragment,e),x=c(e),l=f(e,"P",{"data-svelte-h":!0}),D(l)!=="svelte-iku20g"&&(l.textContent=E),y=c(e),d=f(e,"DIV",{class:!0,"data-svelte-h":!0}),D(d)!=="svelte-lzya67"&&(d.innerHTML=L),v=c(e),_(s.$$.fragment,e),H=c(e),u=f(e,"P",{}),z(u).forEach(o),this.h()},h(){C(r,"name","hf:doc:metadata"),C(r,"content",B),C(d,"class","mt-10")},m(e,t){J(document.head,r),a(e,p,t),a(e,h,t),a(e,b,t),P(n,e,t),a(e,w,t),P(i,e,t),a(e,x,t),a(e,l,t),a(e,y,t),a(e,d,t),a(e,v,t),P(s,e,t),a(e,H,t),a(e,u,t),$=!0},p:R,i(e){$||(M(n.$$.fragment,e),M(i.$$.fragment,e),M(s.$$.fragment,e),$=!0)},o(e){S(n.$$.fragment,e),S(i.$$.fragment,e),S(s.$$.fragment,e),$=!1},d(e){e&&(o(p),o(h),o(b),o(w),o(x),o(l),o(y),o(d),o(v),o(H),o(u)),o(r),I(n,e),I(i,e),I(s,e)}}}const B='{"title":"How-to guides","local":"how-to-guides","sections":[],"depth":1}';function K(T){return W(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class Z extends j{constructor(r){super(),q(this,r,K,V,F,{})}}export{Z as component};
