import{s as D,n as F,o as L}from"../chunks/scheduler.6062bdaf.js";import{S as R,i as W,g as u,s,r as C,A as j,h as m,f as o,c as g,j as P,u as S,x as I,k as H,y as q,a,v as M,d as E,t as T,w as A}from"../chunks/index.4bca734e.js";import{H as z,E as J}from"../chunks/getInferenceSnippets.b564dd8b.js";function U(k){let r,f,c,b,n,p,i,_=`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:`,w,d,$=`<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>`,x,l,y,h,v;return n=new z({props:{title:"How-to guides",local:"how-to-guides",headingTag:"h1"}}),l=new J({props:{source:"https://github.com/huggingface/huggingface_hub/blob/main/docs/source/en/guides/overview.md"}}),{c(){r=u("meta"),f=s(),c=u("p"),b=s(),C(n.$$.fragment),p=s(),i=u("p"),i.textContent=_,w=s(),d=u("div"),d.innerHTML=$,x=s(),C(l.$$.fragment),y=s(),h=u("p"),this.h()},l(e){const t=j("svelte-u9bgzb",document.head);r=m(t,"META",{name:!0,content:!0}),t.forEach(o),f=g(e),c=m(e,"P",{}),P(c).forEach(o),b=g(e),S(n.$$.fragment,e),p=g(e),i=m(e,"P",{"data-svelte-h":!0}),I(i)!=="svelte-iku20g"&&(i.textContent=_),w=g(e),d=m(e,"DIV",{class:!0,"data-svelte-h":!0}),I(d)!=="svelte-lzya67"&&(d.innerHTML=$),x=g(e),S(l.$$.fragment,e),y=g(e),h=m(e,"P",{}),P(h).forEach(o),this.h()},h(){H(r,"name","hf:doc:metadata"),H(r,"content",G),H(d,"class","mt-10")},m(e,t){q(document.head,r),a(e,f,t),a(e,c,t),a(e,b,t),M(n,e,t),a(e,p,t),a(e,i,t),a(e,w,t),a(e,d,t),a(e,x,t),M(l,e,t),a(e,y,t),a(e,h,t),v=!0},p:F,i(e){v||(E(n.$$.fragment,e),E(l.$$.fragment,e),v=!0)},o(e){T(n.$$.fragment,e),T(l.$$.fragment,e),v=!1},d(e){e&&(o(f),o(c),o(b),o(p),o(i),o(w),o(d),o(x),o(y),o(h)),o(r),A(n,e),A(l,e)}}}const G='{"title":"How-to guides","local":"how-to-guides","sections":[],"depth":1}';function O(k){return L(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class N extends R{constructor(r){super(),W(this,r,O,U,D,{})}}export{N as component};
