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