import{s as U,y as V,n as F,o as J}from"../chunks/scheduler.d6170356.js";import{S as K,i as Q,g as h,s as r,r as H,A as W,h as g,f as a,c as n,j as q,u as k,x as B,k as G,y as X,a as o,v as L,d as D,t as z,w as A}from"../chunks/index.fcd4cc08.js";import{H as O,E as Z}from"../chunks/EditOnGithub.da2b595c.js";function ee(Y){let i,_,$,y,l,v,c,b,p,j='You can duplicate a Space by clicking the three dots at the top right and selecting <strong>Duplicate this Space</strong>. Learn more about it <a href="./spaces-overview#duplicating-a-space">here</a>.',S,m,x,u,I="New! You can now create a Gradio demo directly from most model pages, using the “Deploy -> Spaces” button.",C,s,N,M,f,R='As another example of how to create a Space from a set of models, the <a href="https://huggingface.co/spaces/farukozderim/Model-Comparator-Space-Builder" rel="nofollow">Model Comparator Space Builder</a> from <a href="https://huggingface.co/farukozderim" rel="nofollow">@farukozderim</a> can be used to create a Space directly from any model hosted on the Hub.',P,d,E,w,T;return l=new O({props:{title:"More ways to create Spaces",local:"more-ways-to-create-spaces",headingTag:"h1"}}),c=new O({props:{title:"Duplicating a Space",local:"duplicating-a-space",headingTag:"h2"}}),m=new O({props:{title:"Creating a Space from a model",local:"creating-a-space-from-a-model",headingTag:"h2"}}),d=new Z({props:{source:"https://github.com/huggingface/hub-docs/blob/main/docs/hub/spaces-more-ways-to-create.md"}}),{c(){i=h("meta"),_=r(),$=h("p"),y=r(),H(l.$$.fragment),v=r(),H(c.$$.fragment),b=r(),p=h("p"),p.innerHTML=j,S=r(),H(m.$$.fragment),x=r(),u=h("p"),u.textContent=I,C=r(),s=h("video"),M=r(),f=h("p"),f.innerHTML=R,P=r(),H(d.$$.fragment),E=r(),w=h("p"),this.h()},l(e){const t=W("svelte-u9bgzb",document.head);i=g(t,"META",{name:!0,content:!0}),t.forEach(a),_=n(e),$=g(e,"P",{}),q($).forEach(a),y=n(e),k(l.$$.fragment,e),v=n(e),k(c.$$.fragment,e),b=n(e),p=g(e,"P",{"data-svelte-h":!0}),B(p)!=="svelte-1lcbkwl"&&(p.innerHTML=j),S=n(e),k(m.$$.fragment,e),x=n(e),u=g(e,"P",{"data-svelte-h":!0}),B(u)!=="svelte-cwhyt"&&(u.textContent=I),C=n(e),s=g(e,"VIDEO",{src:!0}),q(s).forEach(a),M=n(e),f=g(e,"P",{"data-svelte-h":!0}),B(f)!=="svelte-wr94fd"&&(f.innerHTML=R),P=n(e),k(d.$$.fragment,e),E=n(e),w=g(e,"P",{}),q(w).forEach(a),this.h()},h(){G(i,"name","hf:doc:metadata"),G(i,"content",te),V(s.src,N="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/model-page-deploy-to-spaces.mp4")||G(s,"src",N),s.controls=!0,s.autoplay=!0,s.muted=!0,s.loop=!0},m(e,t){X(document.head,i),o(e,_,t),o(e,$,t),o(e,y,t),L(l,e,t),o(e,v,t),L(c,e,t),o(e,b,t),o(e,p,t),o(e,S,t),L(m,e,t),o(e,x,t),o(e,u,t),o(e,C,t),o(e,s,t),o(e,M,t),o(e,f,t),o(e,P,t),L(d,e,t),o(e,E,t),o(e,w,t),T=!0},p:F,i(e){T||(D(l.$$.fragment,e),D(c.$$.fragment,e),D(m.$$.fragment,e),D(d.$$.fragment,e),T=!0)},o(e){z(l.$$.fragment,e),z(c.$$.fragment,e),z(m.$$.fragment,e),z(d.$$.fragment,e),T=!1},d(e){e&&(a(_),a($),a(y),a(v),a(b),a(p),a(S),a(x),a(u),a(C),a(s),a(M),a(f),a(P),a(E),a(w)),a(i),A(l,e),A(c,e),A(m,e),A(d,e)}}}const te='{"title":"More ways to create Spaces","local":"more-ways-to-create-spaces","sections":[{"title":"Duplicating a Space","local":"duplicating-a-space","sections":[],"depth":2},{"title":"Creating a Space from a model","local":"creating-a-space-from-a-model","sections":[],"depth":2}],"depth":1}';function ae(Y){return J(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class ne extends K{constructor(i){super(),Q(this,i,ae,ee,U,{})}}export{ne as component};
