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