import{s as nt,n as it,o as pt}from"../chunks/scheduler.d6170356.js";import{S as ot,i as rt,g as p,s as l,r as $,A as ct,h as o,f as e,c as n,j as at,u as T,x as w,k as B,y as Mt,a,v as D,d as E,t as b,w as v}from"../chunks/index.fcd4cc08.js";import{C as lt}from"../chunks/CodeBlock.db16bf50.js";import{H as V,E as mt}from"../chunks/index.57043804.js";function ht(W){let r,Q,H,k,M,J,m,P='<strong>Model Card Components</strong> are special elements that you can inject directly into your Model Card markdown to display powerful custom components in your model page. These components are authored by us, feel free to share ideas about new Model Card component in <a href="https://huggingface.co/spaces/huggingface/HuggingDiscussions/discussions/17" rel="nofollow">this discussion</a>.',x,h,A,d,X="The <code>&lt;Gallery /&gt;</code> component can be used in your model card to showcase your generated images and videos.",G,g,_,u,q='<li>Update your Model Card <a href="/docs/hub/models-widgets-examples#text-to-image">widget metadata</a> to add the media you want to showcase.</li>',S,y,L,c,K="<li>Add the <code>&lt;Gallery /&gt;</code> component to your card. The widget metadata will be used by the <code>&lt;Gallery /&gt;</code> component to display the media with each associated prompt.</li>",I,j,N,i,tt='<img class="block dark:hidden" src="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/models-gallery.png"/> <img class="hidden dark:block" src="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/models-gallery-dark.png"/>',Z,f,st='See result <a href="https://huggingface.co/alvdansen/littletinies#little-tinies" rel="nofollow">here</a>.',z,U,et="<p>Hint: Support of Card Components through the GUI editor coming soon…</p>",F,C,Y,R,O;return M=new V({props:{title:"Model Card components",local:"model-card-components",headingTag:"h1"}}),h=new V({props:{title:"The Gallery component",local:"the-gallery-component",headingTag:"h2"}}),g=new V({props:{title:"How to use it?",local:"how-to-use-it",headingTag:"h3"}}),y=new lt({props:{code:"d2lkZ2V0JTNBJTBBJTIwJTIwLSUyMHRleHQlM0ElMjBhJTIwZ2lybCUyMHdhbmRlcmluZyUyMHRocm91Z2glMjB0aGUlMjBmb3Jlc3QlMEElMjAlMjAlMjAlMjBvdXRwdXQlM0ElMEElMjAlMjAlMjAlMjAlMjAlMjB1cmwlM0ElMjBpbWFnZXMlMkY2Q0QwM0MxMDFCN0Y2NTQ1RUI2MEU5RjQ4RDYwQjhCM0MyRDMxRDQyRDIwRjhCN0I5QjE0OUREMEM2NDZDMEMyLmpwZWclMEElMjAlMjAtJTIwdGV4dCUzQSUyMGElMjB0aW55JTIwd2l0Y2glMjBjaGlsZCUwQSUyMCUyMCUyMCUyMG91dHB1dCUzQSUwQSUyMCUyMCUyMCUyMCUyMCUyMHVybCUzQSUyMGltYWdlcyUyRjdCNDgyRTFGREIzOURBNUExMDJCOUNEMDQxRjRBMjkwMkE4Mzk1QjM4MzUxMDVDNzM2QzVBRDlDMUQ5MDUxNTcuanBlZyUwQSUyMCUyMC0lMjB0ZXh0JTNBJTIwYW4lMjBhcnRpc3QlMjBsZWFuaW5nJTIwb3ZlciUyMHRvJTIwZHJhdyUyMHNvbWV0aGluZyUwQSUyMCUyMCUyMCUyMG91dHB1dCUzQSUwQSUyMCUyMCUyMCUyMCUyMCUyMHVybCUzQSUyMGltYWdlcyUyRjdDQ0VBMTFGMUI3NEM4RDg5OTJDNDdDMUM1REVBOUJENkY3NTk0MEIzODBFOUU2RUM3RDAxRDg1ODYzQUY3MTguanBlZw==",highlighted:`<span class="hljs-attr">widget:</span>
  <span class="hljs-bullet">-</span> <span class="hljs-attr">text:</span> <span class="hljs-string">a</span> <span class="hljs-string">girl</span> <span class="hljs-string">wandering</span> <span class="hljs-string">through</span> <span class="hljs-string">the</span> <span class="hljs-string">forest</span>
    <span class="hljs-attr">output:</span>
      <span class="hljs-attr">url:</span> <span class="hljs-string">images/6CD03C101B7F6545EB60E9F48D60B8B3C2D31D42D20F8B7B9B149DD0C646C0C2.jpeg</span>
  <span class="hljs-bullet">-</span> <span class="hljs-attr">text:</span> <span class="hljs-string">a</span> <span class="hljs-string">tiny</span> <span class="hljs-string">witch</span> <span class="hljs-string">child</span>
    <span class="hljs-attr">output:</span>
      <span class="hljs-attr">url:</span> <span class="hljs-string">images/7B482E1FDB39DA5A102B9CD041F4A2902A8395B3835105C736C5AD9C1D905157.jpeg</span>
  <span class="hljs-bullet">-</span> <span class="hljs-attr">text:</span> <span class="hljs-string">an</span> <span class="hljs-string">artist</span> <span class="hljs-string">leaning</span> <span class="hljs-string">over</span> <span class="hljs-string">to</span> <span class="hljs-string">draw</span> <span class="hljs-string">something</span>
    <span class="hljs-attr">output:</span>
      <span class="hljs-attr">url:</span> <span class="hljs-string">images/7CCEA11F1B74C8D8992C47C1C5DEA9BD6F75940B380E9E6EC7D01D85863AF718.jpeg</span>`,wrap:!1}}),j=new lt({props:{code:"JTBBJTNDR2FsbGVyeSUyMCUyRiUzRSUwQSUwQSUyMyUyMyUyME1vZGVsJTIwZGVzY3JpcHRpb24lMEElMEFBJTIwdmVyeSUyMGNsYXNzaWMlMjBoYW5kJTIwZHJhd24lMjBjYXJ0b29uJTIwc3R5bGUuJTBB",highlighted:`
<span class="language-xml"><span class="hljs-tag">&lt;<span class="hljs-name">Gallery</span> /&gt;</span></span>

<span class="hljs-section">## Model description</span>

A very classic hand drawn cartoon style.
`,wrap:!1}}),C=new mt({props:{source:"https://github.com/huggingface/hub-docs/blob/main/docs/hub/model-cards-components.md"}}),{c(){r=p("meta"),Q=l(),H=p("p"),k=l(),$(M.$$.fragment),J=l(),m=p("p"),m.innerHTML=P,x=l(),$(h.$$.fragment),A=l(),d=p("p"),d.innerHTML=X,G=l(),$(g.$$.fragment),_=l(),u=p("ol"),u.innerHTML=q,S=l(),$(y.$$.fragment),L=l(),c=p("ol"),c.innerHTML=K,I=l(),$(j.$$.fragment),N=l(),i=p("a"),i.innerHTML=tt,Z=l(),f=p("p"),f.innerHTML=st,z=l(),U=p("blockquote"),U.innerHTML=et,F=l(),$(C.$$.fragment),Y=l(),R=p("p"),this.h()},l(t){const s=ct("svelte-u9bgzb",document.head);r=o(s,"META",{name:!0,content:!0}),s.forEach(e),Q=n(t),H=o(t,"P",{}),at(H).forEach(e),k=n(t),T(M.$$.fragment,t),J=n(t),m=o(t,"P",{"data-svelte-h":!0}),w(m)!=="svelte-h2nkcr"&&(m.innerHTML=P),x=n(t),T(h.$$.fragment,t),A=n(t),d=o(t,"P",{"data-svelte-h":!0}),w(d)!=="svelte-gu3ewl"&&(d.innerHTML=X),G=n(t),T(g.$$.fragment,t),_=n(t),u=o(t,"OL",{"data-svelte-h":!0}),w(u)!=="svelte-1bv1i6r"&&(u.innerHTML=q),S=n(t),T(y.$$.fragment,t),L=n(t),c=o(t,"OL",{start:!0,"data-svelte-h":!0}),w(c)!=="svelte-1vk7k8r"&&(c.innerHTML=K),I=n(t),T(j.$$.fragment,t),N=n(t),i=o(t,"A",{class:!0,href:!0,target:!0,"data-svelte-h":!0}),w(i)!=="svelte-vlaok7"&&(i.innerHTML=tt),Z=n(t),f=o(t,"P",{"data-svelte-h":!0}),w(f)!=="svelte-1k4fevk"&&(f.innerHTML=st),z=n(t),U=o(t,"BLOCKQUOTE",{"data-svelte-h":!0}),w(U)!=="svelte-tmvbpg"&&(U.innerHTML=et),F=n(t),T(C.$$.fragment,t),Y=n(t),R=o(t,"P",{}),at(R).forEach(e),this.h()},h(){B(r,"name","hf:doc:metadata"),B(r,"content",dt),B(c,"start","2"),B(i,"class","flex justify-center"),B(i,"href","https://huggingface.co/alvdansen/littletinies#little-tinies"),B(i,"target","_blank")},m(t,s){Mt(document.head,r),a(t,Q,s),a(t,H,s),a(t,k,s),D(M,t,s),a(t,J,s),a(t,m,s),a(t,x,s),D(h,t,s),a(t,A,s),a(t,d,s),a(t,G,s),D(g,t,s),a(t,_,s),a(t,u,s),a(t,S,s),D(y,t,s),a(t,L,s),a(t,c,s),a(t,I,s),D(j,t,s),a(t,N,s),a(t,i,s),a(t,Z,s),a(t,f,s),a(t,z,s),a(t,U,s),a(t,F,s),D(C,t,s),a(t,Y,s),a(t,R,s),O=!0},p:it,i(t){O||(E(M.$$.fragment,t),E(h.$$.fragment,t),E(g.$$.fragment,t),E(y.$$.fragment,t),E(j.$$.fragment,t),E(C.$$.fragment,t),O=!0)},o(t){b(M.$$.fragment,t),b(h.$$.fragment,t),b(g.$$.fragment,t),b(y.$$.fragment,t),b(j.$$.fragment,t),b(C.$$.fragment,t),O=!1},d(t){t&&(e(Q),e(H),e(k),e(J),e(m),e(x),e(A),e(d),e(G),e(_),e(u),e(S),e(L),e(c),e(I),e(N),e(i),e(Z),e(f),e(z),e(U),e(F),e(Y),e(R)),e(r),v(M,t),v(h,t),v(g,t),v(y,t),v(j,t),v(C,t)}}}const dt='{"title":"Model Card components","local":"model-card-components","sections":[{"title":"The Gallery component","local":"the-gallery-component","sections":[{"title":"How to use it?","local":"how-to-use-it","sections":[],"depth":3}],"depth":2}],"depth":1}';function gt(W){return pt(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class Ut extends ot{constructor(r){super(),rt(this,r,gt,ht,nt,{})}}export{Ut as component};
