import{s as O,y as R,n as U,o as V}from"../chunks/scheduler.d6170356.js";import{S as F,i as J,g as d,s as r,r as T,A as K,h,f as a,c as l,j as H,u as E,x as L,k,y as Q,a as o,v as D,d as z,t as A,w as q}from"../chunks/index.fcd4cc08.js";import{H as B}from"../chunks/Heading.8660bd0e.js";function W(Y){let n,_,g,w,i,v,c,y,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 [here]](./spaces-overview#duplicating-a-space).",S,m,x,u,G="New! You can now create a Gradio demo directly from most model pages, using the “Deploy -> Spaces” button.",C,s,I,M,f,N='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,$,b;return i=new B({props:{title:"More ways to create Spaces",local:"more-ways-to-create-spaces",headingTag:"h1"}}),c=new B({props:{title:"Duplicating a Space",local:"duplicating-a-space",headingTag:"h2"}}),m=new B({props:{title:"Creating a Space from a model",local:"creating-a-space-from-a-model",headingTag:"h2"}}),{c(){n=d("meta"),_=r(),g=d("p"),w=r(),T(i.$$.fragment),v=r(),T(c.$$.fragment),y=r(),p=d("p"),p.innerHTML=j,S=r(),T(m.$$.fragment),x=r(),u=d("p"),u.textContent=G,C=r(),s=d("video"),M=r(),f=d("p"),f.innerHTML=N,P=r(),$=d("p"),this.h()},l(e){const t=K("svelte-u9bgzb",document.head);n=h(t,"META",{name:!0,content:!0}),t.forEach(a),_=l(e),g=h(e,"P",{}),H(g).forEach(a),w=l(e),E(i.$$.fragment,e),v=l(e),E(c.$$.fragment,e),y=l(e),p=h(e,"P",{"data-svelte-h":!0}),L(p)!=="svelte-1wu3hv4"&&(p.innerHTML=j),S=l(e),E(m.$$.fragment,e),x=l(e),u=h(e,"P",{"data-svelte-h":!0}),L(u)!=="svelte-cwhyt"&&(u.textContent=G),C=l(e),s=h(e,"VIDEO",{src:!0}),H(s).forEach(a),M=l(e),f=h(e,"P",{"data-svelte-h":!0}),L(f)!=="svelte-wr94fd"&&(f.innerHTML=N),P=l(e),$=h(e,"P",{}),H($).forEach(a),this.h()},h(){k(n,"name","hf:doc:metadata"),k(n,"content",X),R(s.src,I="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/model-page-deploy-to-spaces.mp4")||k(s,"src",I),s.controls=!0,s.autoplay=!0,s.muted=!0,s.loop=!0},m(e,t){Q(document.head,n),o(e,_,t),o(e,g,t),o(e,w,t),D(i,e,t),o(e,v,t),D(c,e,t),o(e,y,t),o(e,p,t),o(e,S,t),D(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),o(e,$,t),b=!0},p:U,i(e){b||(z(i.$$.fragment,e),z(c.$$.fragment,e),z(m.$$.fragment,e),b=!0)},o(e){A(i.$$.fragment,e),A(c.$$.fragment,e),A(m.$$.fragment,e),b=!1},d(e){e&&(a(_),a(g),a(w),a(v),a(y),a(p),a(S),a(x),a(u),a(C),a(s),a(M),a(f),a(P),a($)),a(n),q(i,e),q(c,e),q(m,e)}}}const X='{"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 Z(Y){return V(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class oe extends F{constructor(n){super(),J(this,n,Z,W,O,{})}}export{oe as component};
