import{s as O,n as K,o as tt}from"../chunks/scheduler.d6170356.js";import{S as et,i as st,g as p,s as a,r as k,A as lt,h as i,f as s,c as n,j as z,u as G,x as T,k as V,y as at,a as l,v as W,d as q,t as A,w as S}from"../chunks/index.fcd4cc08.js";import{C as F}from"../chunks/CodeBlock.7b16bdef.js";import{H as D}from"../chunks/Heading.8660bd0e.js";function nt(L){let o,y,w,b,c,B,m,X='<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>.',I,u,$,d,Y="Add the <code>&lt;Gallery /&gt;</code> component to your text-to-image model card to showcase your images generation.",v,M,R="For example,",E,h,U,r,N='<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"/>',C,g,P='The <code>&lt;Gallery/&gt;</code> component will use your Model Card <a href="/docs/hub/models-widgets-examples#text-to-image">widget metadata</a> to display the images with each associated prompt.',x,f,H,j,Q="<p>Hint: Support of Card Components through the GUI editor coming soon…</p>",_,J,Z;return c=new D({props:{title:"Model Card components",local:"model-card-components",headingTag:"h1"}}),u=new D({props:{title:"The Gallery component",local:"the-gallery-component",headingTag:"h2"}}),h=new F({props:{code:"JTBBJTNDR2FsbGVyeSUyMCUyRiUzRSUwQSUwQSUyMyUyMyUyME1vZGVsJTIwZGVzY3JpcHRpb24lMEElMEFUaW50aW5JQSUyMGlzJTIwZmluZS10dW5lZCUyMHZlcnNpb24lMjBvZiUyMFN0YWJsZS1EaWZmdXNpb24teGwlMjB0cmFpbmVkJTIwb24lMjAxMjUlMjBjb21pY3MlMjBwYW5lbHMlMjBmcm9tJTIwVGludGluJTIwYWxidW0uJTIwJTBB",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>

TintinIA is fine-tuned version of Stable-Diffusion-xl trained on 125 comics panels from Tintin album. 
`,wrap:!1}}),f=new F({props:{code:"d2lkZ2V0JTNBJTBBLSUyMHRleHQlM0ElMjAlMjJkcmF3aW5nJTIwb2YlMjB0aW50aW4lMjBpbiUyMGElMjBzaG9wJTIyJTBBJTIwJTIwb3V0cHV0JTNBJTBBJTIwJTIwJTIwJTIwdXJsJTNBJTIwJTIyaW1hZ2VzJTJGc2hvcC5wbmclMjIlMEEtJTIwdGV4dCUzQSUyMCUyMmRyYXdpbmclMjBvZiUyMHRpbnRpbiUyMHdhdGNoaW5nJTIwcnVnYnklMjIlMEElMjAlMjBvdXRwdXQlM0ElMEElMjAlMjAlMjAlMjB1cmwlM0ElMjAlMjJpbWFnZXMlMkZydWdieS5wbmclMjIlMEElMjAlMjBwYXJhbWV0ZXJzJTNBJTBBJTIwJTIwJTIwJTIwbmVnYXRpdmVfcHJvbXB0JTNBJTIwJTIyYmx1cnJ5JTIyJTBBLSUyMHRleHQlM0ElMjAlMjJ0aW50aW4lMjB3b3JraW5nJTIwYXQlMjB0aGUlMjBvZmZpY2UlMjIlMEElMjAlMjBvdXRwdXQlM0ElMEElMjAlMjAlMjAlMjB1cmwlM0ElMjAlMjJpbWFnZXMlMkZvZmZpY2UucG5nJTIy",highlighted:`<span class="hljs-attr">widget:</span>
<span class="hljs-bullet">-</span> <span class="hljs-attr">text:</span> <span class="hljs-string">&quot;drawing of tintin in a shop&quot;</span>
  <span class="hljs-attr">output:</span>
    <span class="hljs-attr">url:</span> <span class="hljs-string">&quot;images/shop.png&quot;</span>
<span class="hljs-bullet">-</span> <span class="hljs-attr">text:</span> <span class="hljs-string">&quot;drawing of tintin watching rugby&quot;</span>
  <span class="hljs-attr">output:</span>
    <span class="hljs-attr">url:</span> <span class="hljs-string">&quot;images/rugby.png&quot;</span>
  <span class="hljs-attr">parameters:</span>
    <span class="hljs-attr">negative_prompt:</span> <span class="hljs-string">&quot;blurry&quot;</span>
<span class="hljs-bullet">-</span> <span class="hljs-attr">text:</span> <span class="hljs-string">&quot;tintin working at the office&quot;</span>
  <span class="hljs-attr">output:</span>
    <span class="hljs-attr">url:</span> <span class="hljs-string">&quot;images/office.png&quot;</span>`,wrap:!1}}),{c(){o=p("meta"),y=a(),w=p("p"),b=a(),k(c.$$.fragment),B=a(),m=p("p"),m.innerHTML=X,I=a(),k(u.$$.fragment),$=a(),d=p("p"),d.innerHTML=Y,v=a(),M=p("p"),M.textContent=R,E=a(),k(h.$$.fragment),U=a(),r=p("div"),r.innerHTML=N,C=a(),g=p("p"),g.innerHTML=P,x=a(),k(f.$$.fragment),H=a(),j=p("blockquote"),j.innerHTML=Q,_=a(),J=p("p"),this.h()},l(t){const e=lt("svelte-u9bgzb",document.head);o=i(e,"META",{name:!0,content:!0}),e.forEach(s),y=n(t),w=i(t,"P",{}),z(w).forEach(s),b=n(t),G(c.$$.fragment,t),B=n(t),m=i(t,"P",{"data-svelte-h":!0}),T(m)!=="svelte-h2nkcr"&&(m.innerHTML=X),I=n(t),G(u.$$.fragment,t),$=n(t),d=i(t,"P",{"data-svelte-h":!0}),T(d)!=="svelte-90h7l5"&&(d.innerHTML=Y),v=n(t),M=i(t,"P",{"data-svelte-h":!0}),T(M)!=="svelte-1fsq83t"&&(M.textContent=R),E=n(t),G(h.$$.fragment,t),U=n(t),r=i(t,"DIV",{class:!0,"data-svelte-h":!0}),T(r)!=="svelte-185eq7n"&&(r.innerHTML=N),C=n(t),g=i(t,"P",{"data-svelte-h":!0}),T(g)!=="svelte-zmo7um"&&(g.innerHTML=P),x=n(t),G(f.$$.fragment,t),H=n(t),j=i(t,"BLOCKQUOTE",{"data-svelte-h":!0}),T(j)!=="svelte-tmvbpg"&&(j.innerHTML=Q),_=n(t),J=i(t,"P",{}),z(J).forEach(s),this.h()},h(){V(o,"name","hf:doc:metadata"),V(o,"content",ot),V(r,"class","flex justify-center")},m(t,e){at(document.head,o),l(t,y,e),l(t,w,e),l(t,b,e),W(c,t,e),l(t,B,e),l(t,m,e),l(t,I,e),W(u,t,e),l(t,$,e),l(t,d,e),l(t,v,e),l(t,M,e),l(t,E,e),W(h,t,e),l(t,U,e),l(t,r,e),l(t,C,e),l(t,g,e),l(t,x,e),W(f,t,e),l(t,H,e),l(t,j,e),l(t,_,e),l(t,J,e),Z=!0},p:K,i(t){Z||(q(c.$$.fragment,t),q(u.$$.fragment,t),q(h.$$.fragment,t),q(f.$$.fragment,t),Z=!0)},o(t){A(c.$$.fragment,t),A(u.$$.fragment,t),A(h.$$.fragment,t),A(f.$$.fragment,t),Z=!1},d(t){t&&(s(y),s(w),s(b),s(B),s(m),s(I),s($),s(d),s(v),s(M),s(E),s(U),s(r),s(C),s(g),s(x),s(H),s(j),s(_),s(J)),s(o),S(c,t),S(u,t),S(h,t),S(f,t)}}}const ot='{"title":"Model Card components","local":"model-card-components","sections":[{"title":"The Gallery component","local":"the-gallery-component","sections":[],"depth":2}],"depth":1}';function pt(L){return tt(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class ut extends et{constructor(o){super(),st(this,o,pt,nt,O,{})}}export{ut as component};
