import{s as Z,n as ee,o as te}from"../chunks/scheduler.7da89386.js";import{S as oe,i as ne,g as s,s as i,r as x,A as ie,h as g,f as o,c,j as B,u as q,x as O,k as V,y as w,a as n,v as I,d as y,t as T,w as D}from"../chunks/index.20910acc.js";import{D as Y}from"../chunks/Docstring.46cd0798.js";import{H as F}from"../chunks/Heading.4cf72777.js";function ce(G){let l,H,$,L,d,P,u,J="Hub에서 Space를 관리하는 메소드에 대한 자세한 설명은 <code>HfApi</code> 페이지를 확인하세요.",E,m,K="<li>컬렉션 내용 가져오기: <code>get_collection()</code></li> <li>새로운 컬렉션 생성: <code>create_collection()</code></li> <li>컬렉션 업데이트: <code>update_collection_metadata()</code></li> <li>컬렉션 삭제: <code>delete_collection()</code></li> <li>컬렉션에 항목 추가: <code>add_collection_item()</code></li> <li>컬렉션의 항목 업데이트: <code>update_collection_item()</code></li> <li>컬렉션에서 항목 제거: <code>delete_collection_item()</code></li>",j,h,k,a,p,z,b,Q="Contains information about a Collection on the Hub.",M,f,S,r,_,W,C,X="Contains information about an item of a Collection (model, dataset, Space or paper).",U,v,A;return d=new F({props:{title:"컬렉션 관리",local:"managing-collections",headingTag:"h1"}}),h=new F({props:{title:"Collection",local:"huggingface_hub.Collection ][ huggingface_hub.Collection",headingTag:"h3"}}),p=new Y({props:{name:"class huggingface_hub.Collection",anchor:"huggingface_hub.Collection",parameters:[{name:"**kwargs",val:""}],parametersDescription:[{anchor:"huggingface_hub.Collection.slug",description:`<strong>slug</strong> (<code>str</code>) &#x2014;
Slug of the collection. E.g. <code>&quot;TheBloke/recent-models-64f9a55bb3115b4f513ec026&quot;</code>.`,name:"slug"},{anchor:"huggingface_hub.Collection.title",description:`<strong>title</strong> (<code>str</code>) &#x2014;
Title of the collection. E.g. <code>&quot;Recent models&quot;</code>.`,name:"title"},{anchor:"huggingface_hub.Collection.owner",description:`<strong>owner</strong> (<code>str</code>) &#x2014;
Owner of the collection. E.g. <code>&quot;TheBloke&quot;</code>.`,name:"owner"},{anchor:"huggingface_hub.Collection.items",description:`<strong>items</strong> (<code>List[CollectionItem]</code>) &#x2014;
List of items in the collection.`,name:"items"},{anchor:"huggingface_hub.Collection.last_updated",description:`<strong>last_updated</strong> (<code>datetime</code>) &#x2014;
Date of the last update of the collection.`,name:"last_updated"},{anchor:"huggingface_hub.Collection.position",description:`<strong>position</strong> (<code>int</code>) &#x2014;
Position of the collection in the list of collections of the owner.`,name:"position"},{anchor:"huggingface_hub.Collection.private",description:`<strong>private</strong> (<code>bool</code>) &#x2014;
Whether the collection is private or not.`,name:"private"},{anchor:"huggingface_hub.Collection.theme",description:`<strong>theme</strong> (<code>str</code>) &#x2014;
Theme of the collection. E.g. <code>&quot;green&quot;</code>.`,name:"theme"},{anchor:"huggingface_hub.Collection.upvotes",description:`<strong>upvotes</strong> (<code>int</code>) &#x2014;
Number of upvotes of the collection.`,name:"upvotes"},{anchor:"huggingface_hub.Collection.description",description:`<strong>description</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Description of the collection, as plain text.`,name:"description"},{anchor:"huggingface_hub.Collection.url",description:`<strong>url</strong> (<code>str</code>) &#x2014;
(property) URL of the collection on the Hub.`,name:"url"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/hf_api.py#L1021"}}),f=new F({props:{title:"CollectionItem",local:"huggingface_hub.CollectionItem ][ huggingface_hub.CollectionItem",headingTag:"h3"}}),_=new Y({props:{name:"class huggingface_hub.CollectionItem",anchor:"huggingface_hub.CollectionItem",parameters:[{name:"_id",val:": str"},{name:"id",val:": str"},{name:"type",val:": CollectionItemType_T"},{name:"position",val:": int"},{name:"note",val:": Optional[Dict] = None"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"huggingface_hub.CollectionItem.item_object_id",description:`<strong>item_object_id</strong> (<code>str</code>) &#x2014;
Unique ID of the item in the collection.`,name:"item_object_id"},{anchor:"huggingface_hub.CollectionItem.item_id",description:`<strong>item_id</strong> (<code>str</code>) &#x2014;
ID of the underlying object on the Hub. Can be either a repo_id or a paper id
e.g. <code>&quot;jbilcke-hf/ai-comic-factory&quot;</code>, <code>&quot;2307.09288&quot;</code>.`,name:"item_id"},{anchor:"huggingface_hub.CollectionItem.item_type",description:`<strong>item_type</strong> (<code>str</code>) &#x2014;
Type of the underlying object. Can be one of <code>&quot;model&quot;</code>, <code>&quot;dataset&quot;</code>, <code>&quot;space&quot;</code> or <code>&quot;paper&quot;</code>.`,name:"item_type"},{anchor:"huggingface_hub.CollectionItem.position",description:`<strong>position</strong> (<code>int</code>) &#x2014;
Position of the item in the collection.`,name:"position"},{anchor:"huggingface_hub.CollectionItem.note",description:`<strong>note</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Note associated with the item, as plain text.`,name:"note"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/hf_api.py#L986"}}),{c(){l=s("meta"),H=i(),$=s("p"),L=i(),x(d.$$.fragment),P=i(),u=s("p"),u.innerHTML=J,E=i(),m=s("ul"),m.innerHTML=K,j=i(),x(h.$$.fragment),k=i(),a=s("div"),x(p.$$.fragment),z=i(),b=s("p"),b.textContent=Q,M=i(),x(f.$$.fragment),S=i(),r=s("div"),x(_.$$.fragment),W=i(),C=s("p"),C.textContent=X,U=i(),v=s("p"),this.h()},l(e){const t=ie("svelte-u9bgzb",document.head);l=g(t,"META",{name:!0,content:!0}),t.forEach(o),H=c(e),$=g(e,"P",{}),B($).forEach(o),L=c(e),q(d.$$.fragment,e),P=c(e),u=g(e,"P",{"data-svelte-h":!0}),O(u)!=="svelte-17lwwke"&&(u.innerHTML=J),E=c(e),m=g(e,"UL",{"data-svelte-h":!0}),O(m)!=="svelte-f10vme"&&(m.innerHTML=K),j=c(e),q(h.$$.fragment,e),k=c(e),a=g(e,"DIV",{class:!0});var N=B(a);q(p.$$.fragment,N),z=c(N),b=g(N,"P",{"data-svelte-h":!0}),O(b)!=="svelte-182nhcq"&&(b.textContent=Q),N.forEach(o),M=c(e),q(f.$$.fragment,e),S=c(e),r=g(e,"DIV",{class:!0});var R=B(r);q(_.$$.fragment,R),W=c(R),C=g(R,"P",{"data-svelte-h":!0}),O(C)!=="svelte-11ei059"&&(C.textContent=X),R.forEach(o),U=c(e),v=g(e,"P",{}),B(v).forEach(o),this.h()},h(){V(l,"name","hf:doc:metadata"),V(l,"content",le),V(a,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),V(r,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8")},m(e,t){w(document.head,l),n(e,H,t),n(e,$,t),n(e,L,t),I(d,e,t),n(e,P,t),n(e,u,t),n(e,E,t),n(e,m,t),n(e,j,t),I(h,e,t),n(e,k,t),n(e,a,t),I(p,a,null),w(a,z),w(a,b),n(e,M,t),I(f,e,t),n(e,S,t),n(e,r,t),I(_,r,null),w(r,W),w(r,C),n(e,U,t),n(e,v,t),A=!0},p:ee,i(e){A||(y(d.$$.fragment,e),y(h.$$.fragment,e),y(p.$$.fragment,e),y(f.$$.fragment,e),y(_.$$.fragment,e),A=!0)},o(e){T(d.$$.fragment,e),T(h.$$.fragment,e),T(p.$$.fragment,e),T(f.$$.fragment,e),T(_.$$.fragment,e),A=!1},d(e){e&&(o(H),o($),o(L),o(P),o(u),o(E),o(m),o(j),o(k),o(a),o(M),o(S),o(r),o(U),o(v)),o(l),D(d,e),D(h,e),D(p),D(f,e),D(_)}}}const le='{"title":"컬렉션 관리","local":"managing-collections","sections":[{"title":"Collection","local":"huggingface_hub.Collection ][ huggingface_hub.Collection","sections":[],"depth":3},{"title":"CollectionItem","local":"huggingface_hub.CollectionItem ][ huggingface_hub.CollectionItem","sections":[],"depth":3}],"depth":1}';function ae(G){return te(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class ue extends oe{constructor(l){super(),ne(this,l,ae,ce,Z,{})}}export{ue as component};
