import{s as Q,n as W,o as X}from"../chunks/scheduler.b108d059.js";import{S as Y,i as Z,g as o,s as l,r as F,A as ee,h as s,f as a,c as i,j as J,u as O,x as _,k as D,y as te,a as n,v as I,d as q,t as B,w as N}from"../chunks/index.008de539.js";import{H as K,E as ae}from"../chunks/index.9dd2deb3.js";function ne(S){let r,w,v,$,u,H,d,U='通过<code>huggingface_hub</code> 库，您可以与面向机器学习开发者和协作者的平台 <a href="https://huggingface.co/" rel="nofollow">Hugging Face Hub</a>进行交互，找到适用于您所在项目的预训练模型和数据集，体验在平台托管的数百个机器学习应用，还可以创建或分享自己的模型和数据集并于社区共享。以上所有都可以用Python在<code>huggingface_hub</code> 库中轻松实现。',y,f,j='阅读<a href="%E5%BF%AB%E9%80%9F%E5%85%A5%E9%97%A8%E6%8C%87%E5%8D%97">快速入门指南</a>以开始使用huggingface_hub库。您将学习如何从Hub下载文件,创建存储库以及将文件上传到Hub。继续阅读以了解更多关于如何在🤗Hub上管理您的存储库,如何参与讨论或者甚至如何访问推理API的信息。',T,g,G='<div class="w-full flex flex-col space-y-4 md:space-y-0 md:grid md:grid-cols-2 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="./guides/overview"><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">操作指南</div> <p class="text-gray-700">实用指南可帮助您实现特定目标。查看这些指南，了解如何使用 huggingface_hub 解决实际问题。</p></a> <a class="!no-underline border dark:border-gray-700 p-5 rounded-lg shadow hover:shadow-lg" href="./package_reference/overview"><div class="w-full text-center bg-gradient-to-br from-purple-400 to-purple-500 rounded-lg py-1.5 font-semibold mb-5 text-white text-lg leading-relaxed">参考</div> <p class="text-gray-700">huggingface_hub 类和方法的详尽技术描述。</p></a> <a class="!no-underline border dark:border-gray-700 p-5 rounded-lg shadow hover:shadow-lg" href="./concepts/git_vs_http"><div class="w-full text-center bg-gradient-to-br from-pink-400 to-pink-500 rounded-lg py-1.5 font-semibold mb-5 text-white text-lg leading-relaxed">概念指南</div> <p class="text-gray-700">更好地理解 huggingface_hub 哲学的高级概念。</p></a></div>',M,h,R='通过 <code>huggingface_hub</code>库，您可以与面向机器学习开发者和协作者的平台 <a href="https://huggingface.co/" rel="nofollow">Hugging Face Hub</a>进行交互，找到适用于您所在项目的预训练模型和数据集，体验在平台托管的数百个机器学习应用，还可以创建或分享自己的模型和数据集并于社区共享。以上所有都可以用Python在 <code>huggingface_hub</code>库中轻松实现。',P,c,E,m,z='所有对 huggingface_hub 的贡献都受到欢迎和同等重视！🤗 除了在代码中添加或修复现有问题外，您还可以通过确保其准确且最新来帮助改进文档，在问题上帮助回答问题，并请求您认为可以改进库的新功能。请查看<a href="https://github.com/huggingface/huggingface_hub/blob/main/CONTRIBUTING.md" rel="nofollow">贡献指南</a> 了解有关如何提交新问题或功能请求、如何提交拉取请求以及如何测试您的贡献以确保一切正常运行的更多信息。',L,p,V='当然，贡献者也应该尊重我们的<a href="https://github.com/huggingface/huggingface_hub/blob/main/CODE_OF_CONDUCT.md" rel="nofollow">行为准则</a>，以便为每个人创建一个包容和欢迎的协作空间。',C,b,k,x,A;return u=new K({props:{title:"🤗 Hub 客户端库",local:"-hub-客户端库",headingTag:"h1"}}),c=new K({props:{title:"贡献",local:"贡献",headingTag:"h2"}}),b=new ae({props:{source:"https://github.com/huggingface/huggingface_hub/blob/main/docs/source/cn/index.md"}}),{c(){r=o("meta"),w=l(),v=o("p"),$=l(),F(u.$$.fragment),H=l(),d=o("p"),d.innerHTML=U,y=l(),f=o("p"),f.innerHTML=j,T=l(),g=o("div"),g.innerHTML=G,M=l(),h=o("p"),h.innerHTML=R,P=l(),F(c.$$.fragment),E=l(),m=o("p"),m.innerHTML=z,L=l(),p=o("p"),p.innerHTML=V,C=l(),F(b.$$.fragment),k=l(),x=o("p"),this.h()},l(e){const t=ee("svelte-u9bgzb",document.head);r=s(t,"META",{name:!0,content:!0}),t.forEach(a),w=i(e),v=s(e,"P",{}),J(v).forEach(a),$=i(e),O(u.$$.fragment,e),H=i(e),d=s(e,"P",{"data-svelte-h":!0}),_(d)!=="svelte-u801ii"&&(d.innerHTML=U),y=i(e),f=s(e,"P",{"data-svelte-h":!0}),_(f)!=="svelte-ym3vq"&&(f.innerHTML=j),T=i(e),g=s(e,"DIV",{class:!0,"data-svelte-h":!0}),_(g)!=="svelte-bajq6v"&&(g.innerHTML=G),M=i(e),h=s(e,"P",{"data-svelte-h":!0}),_(h)!=="svelte-7hr5im"&&(h.innerHTML=R),P=i(e),O(c.$$.fragment,e),E=i(e),m=s(e,"P",{"data-svelte-h":!0}),_(m)!=="svelte-1v5miwo"&&(m.innerHTML=z),L=i(e),p=s(e,"P",{"data-svelte-h":!0}),_(p)!=="svelte-s9hgtv"&&(p.innerHTML=V),C=i(e),O(b.$$.fragment,e),k=i(e),x=s(e,"P",{}),J(x).forEach(a),this.h()},h(){D(r,"name","hf:doc:metadata"),D(r,"content",le),D(g,"class","mt-10")},m(e,t){te(document.head,r),n(e,w,t),n(e,v,t),n(e,$,t),I(u,e,t),n(e,H,t),n(e,d,t),n(e,y,t),n(e,f,t),n(e,T,t),n(e,g,t),n(e,M,t),n(e,h,t),n(e,P,t),I(c,e,t),n(e,E,t),n(e,m,t),n(e,L,t),n(e,p,t),n(e,C,t),I(b,e,t),n(e,k,t),n(e,x,t),A=!0},p:W,i(e){A||(q(u.$$.fragment,e),q(c.$$.fragment,e),q(b.$$.fragment,e),A=!0)},o(e){B(u.$$.fragment,e),B(c.$$.fragment,e),B(b.$$.fragment,e),A=!1},d(e){e&&(a(w),a(v),a($),a(H),a(d),a(y),a(f),a(T),a(g),a(M),a(h),a(P),a(E),a(m),a(L),a(p),a(C),a(k),a(x)),a(r),N(u,e),N(c,e),N(b,e)}}}const le='{"title":"🤗 Hub 客户端库","local":"-hub-客户端库","sections":[{"title":"贡献","local":"贡献","sections":[],"depth":2}],"depth":1}';function ie(S){return X(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class ge extends Y{constructor(r){super(),Z(this,r,ie,ne,Q,{})}}export{ge as component};
