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