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At,Bt,ya,Oa,Tt,Da,Ca,Ra,Mt,wa,Pa,Nt,ka,Aa,Ba,Ta,_o,H,Gt,xt,Ma,Na,Ft,Ga,xa,Fa,vo,q,Wt,Lt,Wa,La,It,Ia,$a,Ha,bo,G,$t,Ht,qa,Ua,qt,ja,za,Z,Va,Ka,go,O,Ut,jt,Ya,Ja,zt,Qa,Xa,Vt,Za,es,Kt,ts,os,ee,rs,ls,So,A,Yt,Jt,as,ss,Qt,ns,cs,ds,Xt,is,fs,yo;return J=new Sc({}),{c(){j=l("meta"),Zt=p(),z=l("h1"),K=l("a"),de=l("span"),hc(J.$$.fragment),Do=p(),ie=l("span"),Co=t("Spaces Configuration Reference"),eo=p(),F=l("p"),Ro=t("Spaces are configured through the "),fe=l("code"),wo=t("YAML"),Po=t(" block at the top of the "),he=l("strong"),ko=t("README.md"),Ao=t(" file at the root of the repository. All the accepted parameters are listed below."),to=p(),W=l("p"),pe=l("strong"),ue=l("code"),Bo=t("title"),To=t(" : "),Ee=l("em"),Mo=t("string"),No=l("br"),Go=t(`
Display title for the Space.`),oo=p(),L=l("p"),me=l("strong"),_e=l("code"),xo=t("emoji"),Fo=t(" : "),ve=l("em"),Wo=t("string"),Lo=l("br"),Io=t(`
Space emoji (emoji-only character allowed).`),ro=p(),I=l("p"),be=l("strong"),ge=l("code"),$o=t("colorFrom"),Ho=t(" : "),Se=l("em"),qo=t("string"),Uo=l("br"),jo=t(`
Color for Thumbnail gradient (red, yellow, green, blue, indigo, purple, pink, gray).`),lo=p(),$=l("p"),ye=l("strong"),Oe=l("code"),zo=t("colorTo"),Vo=t(" : "),De=l("em"),Ko=t("string"),Yo=l("br"),Jo=t(`
Color for Thumbnail gradient (red, yellow, green, blue, indigo, purple, pink, gray).`),ao=p(),m=l("p"),Ce=l("strong"),Re=l("code"),Qo=t("sdk"),Xo=t(" : "),we=l("em"),Zo=t("string"),er=l("br"),tr=t(`
Can be either `),Pe=l("code"),or=t("gradio"),rr=t(", "),ke=l("code"),lr=t("streamlit"),ar=t(", "),Ae=l("code"),sr=t("docker"),nr=t(", or "),Be=l("code"),cr=t("static"),dr=t("."),so=p(),_=l("p"),Te=l("strong"),Me=l("code"),ir=t("python_version"),fr=t(": "),Ne=l("em"),hr=t("string"),pr=l("br"),ur=t(`
Any valid Python `),Ge=l("code"),Er=t("3.x"),mr=t(" or "),xe=l("code"),_r=t("3.x.x"),vr=t(" version."),br=l("br"),gr=t(`
Defaults to `),Fe=l("code"),Sr=t("3.10"),yr=t("."),no=p(),b=l("p"),We=l("strong"),Le=l("code"),Or=t("sdk_version"),Dr=t(" : "),Ie=l("em"),Cr=t("string"),Rr=l("br"),wr=t(`
Specify the version of the selected SDK (Streamlit or Gradio).`),Pr=l("br"),kr=t(`
All versions of Gradio are supported.`),Ar=l("br"),Br=t(`
All versions of Streamlit from `),$e=l("code"),Tr=t("0.79.0"),Mr=t(" are supported."),co=p(),i=l("p"),He=l("strong"),qe=l("code"),Nr=t("suggested_hardware"),Gr=t(" : "),Ue=l("em"),xr=t("string"),Fr=l("br"),Wr=t(`
Specify the suggested `),Q=l("a"),Lr=t("hardware"),Ir=t(" on which this Space must be run."),$r=l("br"),Hr=t(`
Useful for Spaces that are meant to be duplicated by other users.`),qr=l("br"),Ur=t(`
Setting this value will not automatically assign an hardware to this Space.`),jr=l("br"),zr=t(`
Value must be a valid hardware flavor (e.g. `),je=l("code"),Vr=t('"cpu-upgrade"'),Kr=t(", "),ze=l("code"),Yr=t('"t4-small"'),Jr=t(", "),Ve=l("code"),Qr=t('"t4-medium"'),Xr=t(", "),Ke=l("code"),Zr=t('"a10g-small"'),el=t(", "),Ye=l("code"),tl=t('"a10g-large"'),ol=t(" or "),Je=l("code"),rl=t('"a100-large"'),ll=t(")."),io=p(),h=l("p"),Qe=l("strong"),Xe=l("code"),al=t("suggested_storage"),sl=t(" : "),Ze=l("em"),nl=t("string"),cl=l("br"),dl=t(`
Specify the suggested `),X=l("a"),il=t("permanent storage"),fl=t(" on which this Space must be run."),hl=l("br"),pl=t(`
Useful for Spaces that are meant to be duplicated by other users.`),ul=l("br"),El=t(`
Setting this value will not automatically assign a permanent storage to this Space.`),ml=l("br"),_l=t(`
Value must be one of `),et=l("code"),vl=t('"small"'),bl=t(", "),tt=l("code"),gl=t('"medium"'),Sl=t(" or "),ot=l("code"),yl=t('"large"'),Ol=t("."),fo=p(),v=l("p"),rt=l("strong"),lt=l("code"),Dl=t("app_file"),Cl=t(" : "),at=l("em"),Rl=t("string"),wl=l("br"),Pl=t(`
Path to your main application file (which contains either `),st=l("code"),kl=t("gradio"),Al=t(" or "),nt=l("code"),Bl=t("streamlit"),Tl=t(" Python code, or "),ct=l("code"),Ml=t("static"),Nl=t(" html code)."),Gl=l("br"),xl=t(`
Path is relative to the root of the repository.`),ho=p(),g=l("p"),dt=l("strong"),it=l("code"),Fl=t("app_port"),Wl=t(" : "),ft=l("em"),Ll=t("int"),Il=l("br"),$l=t(`
Port on which your application is running. Used only if `),ht=l("code"),Hl=t("sdk"),ql=t(" is "),pt=l("code"),Ul=t("docker"),jl=t(". Default port is "),ut=l("code"),zl=t("7860"),Vl=t("."),po=p(),k=l("p"),Et=l("strong"),mt=l("code"),Kl=t("base_path"),Yl=t(": "),_t=l("em"),Jl=t("string"),Ql=t(`
For non-static Spaces, initial url to render. Needs to start with `),vt=l("code"),Xl=t("/"),Zl=t(". For static Spaces, use "),bt=l("code"),ea=t("app_file"),ta=t(" instead."),uo=p(),D=l("p"),gt=l("strong"),St=l("code"),oa=t("fullWidth"),ra=t(": "),yt=l("em"),la=t("boolean"),aa=l("br"),sa=t(`
Whether your Space is rendered inside a full-width (when `),Ot=l("code"),na=t("true"),ca=t(`) or fixed-width column (ie. \u201Ccontainer\u201D CSS) inside the iframe.
Defaults to false in `),Dt=l("code"),da=t("gradio"),ia=t(", and to true for other sdks."),Eo=p(),S=l("p"),Ct=l("strong"),Rt=l("code"),fa=t("models"),ha=t(" : "),wt=l("em"),pa=t("List[string]"),ua=l("br"),Ea=t(`
HF model IDs (like `),Pt=l("code"),ma=t("gpt2"),_a=t(" or "),kt=l("code"),va=t("deepset/roberta-base-squad2"),ba=t(") used in the Space."),ga=l("br"),Sa=t(`
Will be parsed automatically from your code if not specified here.`),mo=p(),y=l("p"),At=l("strong"),Bt=l("code"),ya=t("datasets"),Oa=t(" : "),Tt=l("em"),Da=t("List[string]"),Ca=l("br"),Ra=t(`
HF dataset IDs (like `),Mt=l("code"),wa=t("common_voice"),Pa=t(" or "),Nt=l("code"),ka=t("oscar-corpus/OSCAR-2109"),Aa=t(") used in the Space."),Ba=l("br"),Ta=t(`
Will be parsed automatically from your code if not specified here.`),_o=p(),H=l("p"),Gt=l("strong"),xt=l("code"),Ma=t("tags"),Na=t(" : "),Ft=l("em"),Ga=t("List[string]"),xa=l("br"),Fa=t(`
List of terms that describe your Space task or scope.`),vo=p(),q=l("p"),Wt=l("strong"),Lt=l("code"),Wa=t("pinned"),La=t(" : "),It=l("em"),Ia=t("boolean"),$a=l("br"),Ha=t(`
Whether the Space stays on top of your profile. Can be useful if you have a lot of Spaces so you and others can quickly see your best Space.`),bo=p(),G=l("p"),$t=l("strong"),Ht=l("code"),qa=t("hf_oauth"),Ua=t(" : "),qt=l("em"),ja=t("boolean"),za=t(`
Whether a connected OAuth app is associated to this Space. See `),Z=l("a"),Va=t("Adding a Sign-In with HF button to your Space"),Ka=t(" for more details."),go=p(),O=l("p"),Ut=l("strong"),jt=l("code"),Ya=t("hf_oauth_redirect_path"),Ja=t(" : "),zt=l("em"),Qa=t("string"),Xa=t(`
Authorized relative redirect path of the connected OAuth app. `),Vt=l("code"),Za=t("/login/callback"),es=t(" and "),Kt=l("code"),ts=t("/auth/callback"),os=t(" are authorized by default and do not need this parameter. See "),ee=l("a"),rs=t("Adding a Sign-In with HF button to your space"),ls=t(" for more details."),So=p(),A=l("p"),Yt=l("strong"),Jt=l("code"),as=t("disable_embedding"),ss=t(" : "),Qt=l("em"),ns=t("boolean"),cs=l("br"),ds=t(`
Whether the Space iframe can be embedded in other websites.
Defaults to false, i.e. Spaces `),Xt=l("em"),is=t("can"),fs=t(" be embedded."),this.h()},l(s){const c=pc('[data-svelte="svelte-1phssyn"]',document.head);j=a(c,"META",{name:!0,content:!0}),c.forEach(r),Zt=u(s),z=a(s,"H1",{class:!0});var Oo=n(z);K=a(Oo,"A",{id:!0,class:!0,href:!0});var ps=n(K);de=a(ps,"SPAN",{});var us=n(de);uc(J.$$.fragment,us),us.forEach(r),ps.forEach(r),Do=u(Oo),ie=a(Oo,"SPAN",{});var Es=n(ie);Co=o(Es,"Spaces Configuration Reference"),Es.forEach(r),Oo.forEach(r),eo=u(s),F=a(s,"P",{});var oe=n(F);Ro=o(oe,"Spaces are configured through the "),fe=a(oe,"CODE",{});var ms=n(fe);wo=o(ms,"YAML"),ms.forEach(r),Po=o(oe," block at the top of the "),he=a(oe,"STRONG",{});var _s=n(he);ko=o(_s,"README.md"),_s.forEach(r),Ao=o(oe," file at the root of the repository. All the accepted parameters are listed below."),oe.forEach(r),to=u(s),W=a(s,"P",{});var re=n(W);pe=a(re,"STRONG",{});var vs=n(pe);ue=a(vs,"CODE",{});var bs=n(ue);Bo=o(bs,"title"),bs.forEach(r),vs.forEach(r),To=o(re," : "),Ee=a(re,"EM",{});var gs=n(Ee);Mo=o(gs,"string"),gs.forEach(r),No=a(re,"BR",{}),Go=o(re,`
Display title for the Space.`),re.forEach(r),oo=u(s),L=a(s,"P",{});var le=n(L);me=a(le,"STRONG",{});var Ss=n(me);_e=a(Ss,"CODE",{});var ys=n(_e);xo=o(ys,"emoji"),ys.forEach(r),Ss.forEach(r),Fo=o(le," : "),ve=a(le,"EM",{});var Os=n(ve);Wo=o(Os,"string"),Os.forEach(r),Lo=a(le,"BR",{}),Io=o(le,`
Space emoji (emoji-only character allowed).`),le.forEach(r),ro=u(s),I=a(s,"P",{});var ae=n(I);be=a(ae,"STRONG",{});var Ds=n(be);ge=a(Ds,"CODE",{});var Cs=n(ge);$o=o(Cs,"colorFrom"),Cs.forEach(r),Ds.forEach(r),Ho=o(ae," : "),Se=a(ae,"EM",{});var Rs=n(Se);qo=o(Rs,"string"),Rs.forEach(r),Uo=a(ae,"BR",{}),jo=o(ae,`
Color for Thumbnail gradient (red, yellow, green, blue, indigo, purple, pink, gray).`),ae.forEach(r),lo=u(s),$=a(s,"P",{});var se=n($);ye=a(se,"STRONG",{});var ws=n(ye);Oe=a(ws,"CODE",{});var Ps=n(Oe);zo=o(Ps,"colorTo"),Ps.forEach(r),ws.forEach(r),Vo=o(se," : "),De=a(se,"EM",{});var ks=n(De);Ko=o(ks,"string"),ks.forEach(r),Yo=a(se,"BR",{}),Jo=o(se,`
Color for Thumbnail gradient (red, yellow, green, blue, indigo, purple, pink, gray).`),se.forEach(r),ao=u(s),m=a(s,"P",{});var C=n(m);Ce=a(C,"STRONG",{});var As=n(Ce);Re=a(As,"CODE",{});var Bs=n(Re);Qo=o(Bs,"sdk"),Bs.forEach(r),As.forEach(r),Xo=o(C," : "),we=a(C,"EM",{});var Ts=n(we);Zo=o(Ts,"string"),Ts.forEach(r),er=a(C,"BR",{}),tr=o(C,`
Can be either `),Pe=a(C,"CODE",{});var Ms=n(Pe);or=o(Ms,"gradio"),Ms.forEach(r),rr=o(C,", "),ke=a(C,"CODE",{});var Ns=n(ke);lr=o(Ns,"streamlit"),Ns.forEach(r),ar=o(C,", "),Ae=a(C,"CODE",{});var Gs=n(Ae);sr=o(Gs,"docker"),Gs.forEach(r),nr=o(C,", or "),Be=a(C,"CODE",{});var xs=n(Be);cr=o(xs,"static"),xs.forEach(r),dr=o(C,"."),C.forEach(r),so=u(s),_=a(s,"P",{});var R=n(_);Te=a(R,"STRONG",{});var Fs=n(Te);Me=a(Fs,"CODE",{});var Ws=n(Me);ir=o(Ws,"python_version"),Ws.forEach(r),Fs.forEach(r),fr=o(R,": "),Ne=a(R,"EM",{});var Ls=n(Ne);hr=o(Ls,"string"),Ls.forEach(r),pr=a(R,"BR",{}),ur=o(R,`
Any valid Python `),Ge=a(R,"CODE",{});var Is=n(Ge);Er=o(Is,"3.x"),Is.forEach(r),mr=o(R," or "),xe=a(R,"CODE",{});var $s=n(xe);_r=o($s,"3.x.x"),$s.forEach(r),vr=o(R," version."),br=a(R,"BR",{}),gr=o(R,`
Defaults to `),Fe=a(R,"CODE",{});var Hs=n(Fe);Sr=o(Hs,"3.10"),Hs.forEach(r),yr=o(R,"."),R.forEach(r),no=u(s),b=a(s,"P",{});var B=n(b);We=a(B,"STRONG",{});var qs=n(We);Le=a(qs,"CODE",{});var Us=n(Le);Or=o(Us,"sdk_version"),Us.forEach(r),qs.forEach(r),Dr=o(B," : "),Ie=a(B,"EM",{});var js=n(Ie);Cr=o(js,"string"),js.forEach(r),Rr=a(B,"BR",{}),wr=o(B,`
Specify the version of the selected SDK (Streamlit or Gradio).`),Pr=a(B,"BR",{}),kr=o(B,`
All versions of Gradio are supported.`),Ar=a(B,"BR",{}),Br=o(B,`
All versions of Streamlit from `),$e=a(B,"CODE",{});var zs=n($e);Tr=o(zs,"0.79.0"),zs.forEach(r),Mr=o(B," are supported."),B.forEach(r),co=u(s),i=a(s,"P",{});var f=n(i);He=a(f,"STRONG",{});var Vs=n(He);qe=a(Vs,"CODE",{});var Ks=n(qe);Nr=o(Ks,"suggested_hardware"),Ks.forEach(r),Vs.forEach(r),Gr=o(f," : "),Ue=a(f,"EM",{});var Ys=n(Ue);xr=o(Ys,"string"),Ys.forEach(r),Fr=a(f,"BR",{}),Wr=o(f,`
Specify the suggested `),Q=a(f,"A",{href:!0,rel:!0});var Js=n(Q);Lr=o(Js,"hardware"),Js.forEach(r),Ir=o(f," on which this Space must be run."),$r=a(f,"BR",{}),Hr=o(f,`
Useful for Spaces that are meant to be duplicated by other users.`),qr=a(f,"BR",{}),Ur=o(f,`
Setting this value will not automatically assign an hardware to this Space.`),jr=a(f,"BR",{}),zr=o(f,`
Value must be a valid hardware flavor (e.g. `),je=a(f,"CODE",{});var Qs=n(je);Vr=o(Qs,'"cpu-upgrade"'),Qs.forEach(r),Kr=o(f,", "),ze=a(f,"CODE",{});var Xs=n(ze);Yr=o(Xs,'"t4-small"'),Xs.forEach(r),Jr=o(f,", "),Ve=a(f,"CODE",{});var Zs=n(Ve);Qr=o(Zs,'"t4-medium"'),Zs.forEach(r),Xr=o(f,", "),Ke=a(f,"CODE",{});var en=n(Ke);Zr=o(en,'"a10g-small"'),en.forEach(r),el=o(f,", "),Ye=a(f,"CODE",{});var tn=n(Ye);tl=o(tn,'"a10g-large"'),tn.forEach(r),ol=o(f," or "),Je=a(f,"CODE",{});var on=n(Je);rl=o(on,'"a100-large"'),on.forEach(r),ll=o(f,")."),f.forEach(r),io=u(s),h=a(s,"P",{});var E=n(h);Qe=a(E,"STRONG",{});var rn=n(Qe);Xe=a(rn,"CODE",{});var ln=n(Xe);al=o(ln,"suggested_storage"),ln.forEach(r),rn.forEach(r),sl=o(E," : "),Ze=a(E,"EM",{});var an=n(Ze);nl=o(an,"string"),an.forEach(r),cl=a(E,"BR",{}),dl=o(E,`
Specify the suggested `),X=a(E,"A",{href:!0,rel:!0});var sn=n(X);il=o(sn,"permanent storage"),sn.forEach(r),fl=o(E," on which this Space must be run."),hl=a(E,"BR",{}),pl=o(E,`
Useful for Spaces that are meant to be duplicated by other users.`),ul=a(E,"BR",{}),El=o(E,`
Setting this value will not automatically assign a permanent storage to this Space.`),ml=a(E,"BR",{}),_l=o(E,`
Value must be one of `),et=a(E,"CODE",{});var nn=n(et);vl=o(nn,'"small"'),nn.forEach(r),bl=o(E,", "),tt=a(E,"CODE",{});var cn=n(tt);gl=o(cn,'"medium"'),cn.forEach(r),Sl=o(E," or "),ot=a(E,"CODE",{});var dn=n(ot);yl=o(dn,'"large"'),dn.forEach(r),Ol=o(E,"."),E.forEach(r),fo=u(s),v=a(s,"P",{});var w=n(v);rt=a(w,"STRONG",{});var fn=n(rt);lt=a(fn,"CODE",{});var hn=n(lt);Dl=o(hn,"app_file"),hn.forEach(r),fn.forEach(r),Cl=o(w," : "),at=a(w,"EM",{});var pn=n(at);Rl=o(pn,"string"),pn.forEach(r),wl=a(w,"BR",{}),Pl=o(w,`
Path to your main application file (which contains either `),st=a(w,"CODE",{});var un=n(st);kl=o(un,"gradio"),un.forEach(r),Al=o(w," or "),nt=a(w,"CODE",{});var En=n(nt);Bl=o(En,"streamlit"),En.forEach(r),Tl=o(w," Python code, or "),ct=a(w,"CODE",{});var mn=n(ct);Ml=o(mn,"static"),mn.forEach(r),Nl=o(w," html code)."),Gl=a(w,"BR",{}),xl=o(w,`
Path is relative to the root of the repository.`),w.forEach(r),ho=u(s),g=a(s,"P",{});var T=n(g);dt=a(T,"STRONG",{});var _n=n(dt);it=a(_n,"CODE",{});var vn=n(it);Fl=o(vn,"app_port"),vn.forEach(r),_n.forEach(r),Wl=o(T," : "),ft=a(T,"EM",{});var bn=n(ft);Ll=o(bn,"int"),bn.forEach(r),Il=a(T,"BR",{}),$l=o(T,`
Port on which your application is running. Used only if `),ht=a(T,"CODE",{});var gn=n(ht);Hl=o(gn,"sdk"),gn.forEach(r),ql=o(T," is "),pt=a(T,"CODE",{});var Sn=n(pt);Ul=o(Sn,"docker"),Sn.forEach(r),jl=o(T,". Default port is "),ut=a(T,"CODE",{});var yn=n(ut);zl=o(yn,"7860"),yn.forEach(r),Vl=o(T,"."),T.forEach(r),po=u(s),k=a(s,"P",{});var V=n(k);Et=a(V,"STRONG",{});var On=n(Et);mt=a(On,"CODE",{});var Dn=n(mt);Kl=o(Dn,"base_path"),Dn.forEach(r),On.forEach(r),Yl=o(V,": "),_t=a(V,"EM",{});var Cn=n(_t);Jl=o(Cn,"string"),Cn.forEach(r),Ql=o(V,`
For non-static Spaces, initial url to render. Needs to start with `),vt=a(V,"CODE",{});var Rn=n(vt);Xl=o(Rn,"/"),Rn.forEach(r),Zl=o(V,". For static Spaces, use "),bt=a(V,"CODE",{});var wn=n(bt);ea=o(wn,"app_file"),wn.forEach(r),ta=o(V," instead."),V.forEach(r),uo=u(s),D=a(s,"P",{});var U=n(D);gt=a(U,"STRONG",{});var Pn=n(gt);St=a(Pn,"CODE",{});var kn=n(St);oa=o(kn,"fullWidth"),kn.forEach(r),Pn.forEach(r),ra=o(U,": "),yt=a(U,"EM",{});var An=n(yt);la=o(An,"boolean"),An.forEach(r),aa=a(U,"BR",{}),sa=o(U,`
Whether your Space is rendered inside a full-width (when `),Ot=a(U,"CODE",{});var Bn=n(Ot);na=o(Bn,"true"),Bn.forEach(r),ca=o(U,`) or fixed-width column (ie. \u201Ccontainer\u201D CSS) inside the iframe.
Defaults to false in `),Dt=a(U,"CODE",{});var Tn=n(Dt);da=o(Tn,"gradio"),Tn.forEach(r),ia=o(U,", and to true for other sdks."),U.forEach(r),Eo=u(s),S=a(s,"P",{});var M=n(S);Ct=a(M,"STRONG",{});var Mn=n(Ct);Rt=a(Mn,"CODE",{});var Nn=n(Rt);fa=o(Nn,"models"),Nn.forEach(r),Mn.forEach(r),ha=o(M," : "),wt=a(M,"EM",{});var Gn=n(wt);pa=o(Gn,"List[string]"),Gn.forEach(r),ua=a(M,"BR",{}),Ea=o(M,`
HF model IDs (like `),Pt=a(M,"CODE",{});var xn=n(Pt);ma=o(xn,"gpt2"),xn.forEach(r),_a=o(M," or "),kt=a(M,"CODE",{});var Fn=n(kt);va=o(Fn,"deepset/roberta-base-squad2"),Fn.forEach(r),ba=o(M,") used in the Space."),ga=a(M,"BR",{}),Sa=o(M,`
Will be parsed automatically from your code if not specified here.`),M.forEach(r),mo=u(s),y=a(s,"P",{});var N=n(y);At=a(N,"STRONG",{});var Wn=n(At);Bt=a(Wn,"CODE",{});var Ln=n(Bt);ya=o(Ln,"datasets"),Ln.forEach(r),Wn.forEach(r),Oa=o(N," : "),Tt=a(N,"EM",{});var In=n(Tt);Da=o(In,"List[string]"),In.forEach(r),Ca=a(N,"BR",{}),Ra=o(N,`
HF dataset IDs (like `),Mt=a(N,"CODE",{});var $n=n(Mt);wa=o($n,"common_voice"),$n.forEach(r),Pa=o(N," or "),Nt=a(N,"CODE",{});var Hn=n(Nt);ka=o(Hn,"oscar-corpus/OSCAR-2109"),Hn.forEach(r),Aa=o(N,") used in the Space."),Ba=a(N,"BR",{}),Ta=o(N,`
Will be parsed automatically from your code if not specified here.`),N.forEach(r),_o=u(s),H=a(s,"P",{});var ne=n(H);Gt=a(ne,"STRONG",{});var qn=n(Gt);xt=a(qn,"CODE",{});var Un=n(xt);Ma=o(Un,"tags"),Un.forEach(r),qn.forEach(r),Na=o(ne," : "),Ft=a(ne,"EM",{});var jn=n(Ft);Ga=o(jn,"List[string]"),jn.forEach(r),xa=a(ne,"BR",{}),Fa=o(ne,`
List of terms that describe your Space task or scope.`),ne.forEach(r),vo=u(s),q=a(s,"P",{});var ce=n(q);Wt=a(ce,"STRONG",{});var zn=n(Wt);Lt=a(zn,"CODE",{});var Vn=n(Lt);Wa=o(Vn,"pinned"),Vn.forEach(r),zn.forEach(r),La=o(ce," : "),It=a(ce,"EM",{});var Kn=n(It);Ia=o(Kn,"boolean"),Kn.forEach(r),$a=a(ce,"BR",{}),Ha=o(ce,`
Whether the Space stays on top of your profile. Can be useful if you have a lot of Spaces so you and others can quickly see your best Space.`),ce.forEach(r),bo=u(s),G=a(s,"P",{});var te=n(G);$t=a(te,"STRONG",{});var Yn=n($t);Ht=a(Yn,"CODE",{});var Jn=n(Ht);qa=o(Jn,"hf_oauth"),Jn.forEach(r),Yn.forEach(r),Ua=o(te," : "),qt=a(te,"EM",{});var Qn=n(qt);ja=o(Qn,"boolean"),Qn.forEach(r),za=o(te,`
Whether a connected OAuth app is associated to this Space. See `),Z=a(te,"A",{href:!0,rel:!0});var Xn=n(Z);Va=o(Xn,"Adding a Sign-In with HF button to your Space"),Xn.forEach(r),Ka=o(te," for more details."),te.forEach(r),go=u(s),O=a(s,"P",{});var x=n(O);Ut=a(x,"STRONG",{});var Zn=n(Ut);jt=a(Zn,"CODE",{});var ec=n(jt);Ya=o(ec,"hf_oauth_redirect_path"),ec.forEach(r),Zn.forEach(r),Ja=o(x," : "),zt=a(x,"EM",{});var tc=n(zt);Qa=o(tc,"string"),tc.forEach(r),Xa=o(x,`
Authorized relative redirect path of the connected OAuth app. `),Vt=a(x,"CODE",{});var oc=n(Vt);Za=o(oc,"/login/callback"),oc.forEach(r),es=o(x," and "),Kt=a(x,"CODE",{});var rc=n(Kt);ts=o(rc,"/auth/callback"),rc.forEach(r),os=o(x," are authorized by default and do not need this parameter. See "),ee=a(x,"A",{href:!0,rel:!0});var lc=n(ee);rs=o(lc,"Adding a Sign-In with HF button to your space"),lc.forEach(r),ls=o(x," for more details."),x.forEach(r),So=u(s),A=a(s,"P",{});var Y=n(A);Yt=a(Y,"STRONG",{});var ac=n(Yt);Jt=a(ac,"CODE",{});var sc=n(Jt);as=o(sc,"disable_embedding"),sc.forEach(r),ac.forEach(r),ss=o(Y," : "),Qt=a(Y,"EM",{});var nc=n(Qt);ns=o(nc,"boolean"),nc.forEach(r),cs=a(Y,"BR",{}),ds=o(Y,`
Whether the Space iframe can be embedded in other websites.
Defaults to false, i.e. Spaces `),Xt=a(Y,"EM",{});var cc=n(Xt);is=o(cc,"can"),cc.forEach(r),fs=o(Y," be embedded."),Y.forEach(r),this.h()},h(){P(j,"name","hf:doc:metadata"),P(j,"content",JSON.stringify(Oc)),P(K,"id","spaces-configuration-reference"),P(K,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),P(K,"href","#spaces-configuration-reference"),P(z,"class","relative group"),P(Q,"href","https://huggingface.co/docs/hub/spaces-gpus"),P(Q,"rel","nofollow"),P(X,"href","https://huggingface.co/docs/hub/spaces-storage"),P(X,"rel","nofollow"),P(Z,"href","https://huggingface.co/docs/hub/spaces-oauth"),P(Z,"rel","nofollow"),P(ee,"href","https://huggingface.co/docs/hub/spaces-oauth"),P(ee,"rel","nofollow")},m(s,c){e(document.head,j),d(s,Zt,c),d(s,z,c),e(z,K),e(K,de),Ec(J,de,null),e(z,Do),e(z,ie),e(ie,Co),d(s,eo,c),d(s,F,c),e(F,Ro),e(F,fe),e(fe,wo),e(F,Po),e(F,he),e(he,ko),e(F,Ao),d(s,to,c),d(s,W,c),e(W,pe),e(pe,ue),e(ue,Bo),e(W,To),e(W,Ee),e(Ee,Mo),e(W,No),e(W,Go),d(s,oo,c),d(s,L,c),e(L,me),e(me,_e),e(_e,xo),e(L,Fo),e(L,ve),e(ve,Wo),e(L,Lo),e(L,Io),d(s,ro,c),d(s,I,c),e(I,be),e(be,ge),e(ge,$o),e(I,Ho),e(I,Se),e(Se,qo),e(I,Uo),e(I,jo),d(s,lo,c),d(s,$,c),e($,ye),e(ye,Oe),e(Oe,zo),e($,Vo),e($,De),e(De,Ko),e($,Yo),e($,Jo),d(s,ao,c),d(s,m,c),e(m,Ce),e(Ce,Re),e(Re,Qo),e(m,Xo),e(m,we),e(we,Zo),e(m,er),e(m,tr),e(m,Pe),e(Pe,or),e(m,rr),e(m,ke),e(ke,lr),e(m,ar),e(m,Ae),e(Ae,sr),e(m,nr),e(m,Be),e(Be,cr),e(m,dr),d(s,so,c),d(s,_,c),e(_,Te),e(Te,Me),e(Me,ir),e(_,fr),e(_,Ne),e(Ne,hr),e(_,pr),e(_,ur),e(_,Ge),e(Ge,Er),e(_,mr),e(_,xe),e(xe,_r),e(_,vr),e(_,br),e(_,gr),e(_,Fe),e(Fe,Sr),e(_,yr),d(s,no,c),d(s,b,c),e(b,We),e(We,Le),e(Le,Or),e(b,Dr),e(b,Ie),e(Ie,Cr),e(b,Rr),e(b,wr),e(b,Pr),e(b,kr),e(b,Ar),e(b,Br),e(b,$e),e($e,Tr),e(b,Mr),d(s,co,c),d(s,i,c),e(i,He),e(He,qe),e(qe,Nr),e(i,Gr),e(i,Ue),e(Ue,xr),e(i,Fr),e(i,Wr),e(i,Q),e(Q,Lr),e(i,Ir),e(i,$r),e(i,Hr),e(i,qr),e(i,Ur),e(i,jr),e(i,zr),e(i,je),e(je,Vr),e(i,Kr),e(i,ze),e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,At),e(At,Bt),e(Bt,ya),e(y,Oa),e(y,Tt),e(Tt,Da),e(y,Ca),e(y,Ra),e(y,Mt),e(Mt,wa),e(y,Pa),e(y,Nt),e(Nt,ka),e(y,Aa),e(y,Ba),e(y,Ta),d(s,_o,c),d(s,H,c),e(H,Gt),e(Gt,xt),e(xt,Ma),e(H,Na),e(H,Ft),e(Ft,Ga),e(H,xa),e(H,Fa),d(s,vo,c),d(s,q,c),e(q,Wt),e(Wt,Lt),e(Lt,Wa),e(q,La),e(q,It),e(It,Ia),e(q,$a),e(q,Ha),d(s,bo,c),d(s,G,c),e(G,$t),e($t,Ht),e(Ht,qa),e(G,Ua),e(G,qt),e(qt,ja),e(G,za),e(G,Z),e(Z,Va),e(G,Ka),d(s,go,c),d(s,O,c),e(O,Ut),e(Ut,jt),e(jt,Ya),e(O,Ja),e(O,zt),e(zt,Qa),e(O,Xa),e(O,Vt),e(Vt,Za),e(O,es),e(O,Kt),e(Kt,ts),e(O,os),e(O,ee),e(ee,rs),e(O,ls),d(s,So,c),d(s,A,c),e(A,Yt),e(Yt,Jt),e(Jt,as),e(A,ss),e(A,Qt),e(Qt,ns),e(A,cs),e(A,ds),e(A,Xt),e(Xt,is),e(A,fs),yo=!0},p:mc,i(s){yo||(_c(J.$$.fragment,s),yo=!0)},o(s){vc(J.$$.fragment,s),yo=!1},d(s){r(j),s&&r(Zt),s&&r(z),bc(J),s&&r(eo),s&&r(F),s&&r(to),s&&r(W),s&&r(oo),s&&r(L),s&&r(ro),s&&r(I),s&&r(lo),s&&r($),s&&r(ao),s&&r(m),s&&r(so),s&&r(_),s&&r(no),s&&r(b),s&&r(co),s&&r(i),s&&r(io),s&&r(h),s&&r(fo),s&&r(v),s&&r(ho),s&&r(g),s&&r(po),s&&r(k),s&&r(uo),s&&r(D),s&&r(Eo),s&&r(S),s&&r(mo),s&&r(y),s&&r(_o),s&&r(H),s&&r(vo),s&&r(q),s&&r(bo),s&&r(G),s&&r(go),s&&r(O),s&&r(So),s&&r(A)}}}const Oc={local:"spaces-configuration-reference",title:"Spaces Configuration Reference"};function Dc(hs){return gc(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class wc extends dc{constructor(j){super();ic(this,j,Dc,yc,fc,{})}}export{wc as default,Oc as metadata};
