import{s as Ge,n as Ve,o as Xe}from"../chunks/scheduler.d6170356.js";import{S as Ke,i as Qe,g as i,s,r as Fe,A as et,h as n,f as o,c as l,j as Ie,u as Je,x as a,k as Re,y as tt,a as r,v as Be,d as Ze,t as Ne,w as Ye}from"../chunks/index.fcd4cc08.js";import{C as ot}from"../chunks/CodeBlock.7b16bdef.js";import{H as rt}from"../chunks/Heading.8660bd0e.js";function st(he){let c,D,E,U,d,F,p,ge="Spaces are configured through the <code>YAML</code> block at the top of the <strong>README.md</strong> file at the root of the repository. All the accepted parameters are listed below.",I,u,be=`<strong><code>title</code></strong> : <em>string</em><br/>
Display title for the Space.`,J,m,ve=`<strong><code>emoji</code></strong> : <em>string</em><br/>
Space emoji (emoji-only character allowed).`,R,f,ye=`<strong><code>colorFrom</code></strong> : <em>string</em><br/>
Color for Thumbnail gradient (red, yellow, green, blue, indigo, purple, pink, gray).`,B,h,Te=`<strong><code>colorTo</code></strong> : <em>string</em><br/>
Color for Thumbnail gradient (red, yellow, green, blue, indigo, purple, pink, gray).`,Z,g,Me=`<strong><code>sdk</code></strong> : <em>string</em><br/>
Can be either <code>gradio</code>, <code>streamlit</code>, <code>docker</code>, or <code>static</code>.`,N,b,He=`<strong><code>python_version</code></strong>: <em>string</em><br/>
Any valid Python <code>3.x</code> or <code>3.x.x</code> version.<br/>
Defaults to <code>3.10</code>.`,Y,v,_e=`<strong><code>sdk_version</code></strong> : <em>string</em><br/>
Specify the version of the selected SDK (Streamlit or Gradio).<br/>
All versions of Gradio are supported.<br/>
All versions of Streamlit from <code>0.79.0</code> are supported.`,G,y,Le=`<strong><code>suggested_hardware</code></strong> : <em>string</em><br/>
Specify the suggested <a href="https://huggingface.co/docs/hub/spaces-gpus" rel="nofollow">hardware</a> on which this Space must be run.<br/>
Useful for Spaces that are meant to be duplicated by other users.<br/>
Setting this value will not automatically assign an hardware to this Space.<br/>
Value must be a valid hardware flavor (e.g. <code>&quot;cpu-upgrade&quot;</code>, <code>&quot;t4-small&quot;</code>, <code>&quot;t4-medium&quot;</code>, <code>&quot;a10g-small&quot;</code>, <code>&quot;a10g-large&quot;</code>, <code>&quot;a10g-largex2&quot;</code>, <code>&quot;a10g-largex4&quot;</code> or <code>&quot;a100-large&quot;</code>).`,V,T,we=`<strong><code>suggested_storage</code></strong> : <em>string</em><br/>
Specify the suggested <a href="https://huggingface.co/docs/hub/spaces-storage" rel="nofollow">permanent storage</a> on which this Space must be run.<br/>
Useful for Spaces that are meant to be duplicated by other users.<br/>
Setting this value will not automatically assign a permanent storage to this Space.<br/>
Value must be one of <code>&quot;small&quot;</code>, <code>&quot;medium&quot;</code> or <code>&quot;large&quot;</code>.`,X,M,Se=`<strong><code>app_file</code></strong> : <em>string</em><br/>
Path to your main application file (which contains either <code>gradio</code> or <code>streamlit</code> Python code, or <code>static</code> html code).<br/>
Path is relative to the root of the repository.`,K,H,Pe=`<strong><code>app_port</code></strong> : <em>int</em><br/>
Port on which your application is running. Used only if <code>sdk</code> is <code>docker</code>. Default port is <code>7860</code>.`,Q,_,xe=`<strong><code>base_path</code></strong>: <em>string</em>
For non-static Spaces, initial url to render. Needs to start with <code>/</code>. For static Spaces, use <code>app_file</code> instead.`,ee,L,Ce=`<strong><code>fullWidth</code></strong>: <em>boolean</em><br/>
Whether your Space is rendered inside a full-width (when <code>true</code>) or fixed-width column (ie. “container” CSS) inside the iframe.
Defaults to false in <code>gradio</code>, and to true for other sdks.`,te,w,qe=`<strong><code>models</code></strong> : <em>List[string]</em><br/>
HF model IDs (like <code>gpt2</code> or <code>deepset/roberta-base-squad2</code>) used in the Space.<br/>
Will be parsed automatically from your code if not specified here.`,oe,S,ke=`<strong><code>datasets</code></strong> : <em>List[string]</em><br/>
HF dataset IDs (like <code>common_voice</code> or <code>oscar-corpus/OSCAR-2109</code>) used in the Space.<br/>
Will be parsed automatically from your code if not specified here.`,re,P,We=`<strong><code>tags</code></strong> : <em>List[string]</em><br/>
List of terms that describe your Space task or scope.`,se,x,je=`<strong><code>pinned</code></strong> : <em>boolean</em><br/>
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.`,le,C,Ae=`<strong><code>hf_oauth</code></strong> : <em>boolean</em><br/>
Whether a connected OAuth app is associated to this Space. See <a href="https://huggingface.co/docs/hub/spaces-oauth" rel="nofollow">Adding a Sign-In with HF button to your Space</a> for more details.`,ie,q,$e=`<strong><code>hf_oauth_redirect_path</code></strong> : <em>string</em><br/>
Authorized relative redirect path of the connected OAuth app. <code>/login/callback</code> and <code>/auth/callback</code> are authorized by default and do not need this parameter. See <a href="https://huggingface.co/docs/hub/spaces-oauth" rel="nofollow">Adding a Sign-In with HF button to your space</a> for more details.`,ne,k,ze=`<strong><code>hf_oauth_scopes</code></strong> : <em>List[string]</em>
Authorized scopes of the connected OAuth app. <code>openid</code> and <code>profile</code> are authorized by default and do not need this parameter. See <a href="https://huggingface.co/docs/hub/spaces-oauth" rel="nofollow">Adding a Sign-In with HF button to your space</a> for more details.`,ae,W,Ee=`<strong><code>disable_embedding</code></strong> : <em>boolean</em><br/>
Whether the Space iframe can be embedded in other websites.
Defaults to false, i.e. Spaces <em>can</em> be embedded.`,ce,j,Oe=`<strong><code>startup_duration_timeout</code></strong>: <em>string</em><br/>
Set a custom startup duration timeout for your Space. This is the maximum time your Space is allowed to start before it times out and is flagged as unhealthy.
Defaults to 30 minutes, but any valid duration (like <code>1h</code>, <code>30m</code>) is acceptable.`,de,A,De=`<strong><code>custom_headers</code></strong> : <em>Dict[string, string]</em><br/>
Set custom HTTP headers that will be added to all HTTP responses when serving your Space.<br/>
For now, only the <a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Cross-Origin-Embedder-Policy" rel="nofollow">cross-origin-embedder-policy</a> (COEP), <a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Cross-Origin-Opener-Policy" rel="nofollow">cross-origin-opener-policy</a> (COOP), and <a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Cross-Origin-Resource-Policy" rel="nofollow">cross-origin-resource-policy</a> (CORP) headers are allowed. These headers can be used to set up a cross-origin isolated environment and enable powerful features like <code>SharedArrayBuffer</code>, for example:`,pe,$,ue,z,Ue="<em>Note:</em> all headers and values must be lowercase.",me,O,fe;return d=new rt({props:{title:"Spaces Configuration Reference",local:"spaces-configuration-reference",headingTag:"h1"}}),$=new ot({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>`,wrap:!1}}),{c(){c=i("meta"),D=s(),E=i("p"),U=s(),Fe(d.$$.fragment),F=s(),p=i("p"),p.innerHTML=ge,I=s(),u=i("p"),u.innerHTML=be,J=s(),m=i("p"),m.innerHTML=ve,R=s(),f=i("p"),f.innerHTML=ye,B=s(),h=i("p"),h.innerHTML=Te,Z=s(),g=i("p"),g.innerHTML=Me,N=s(),b=i("p"),b.innerHTML=He,Y=s(),v=i("p"),v.innerHTML=_e,G=s(),y=i("p"),y.innerHTML=Le,V=s(),T=i("p"),T.innerHTML=we,X=s(),M=i("p"),M.innerHTML=Se,K=s(),H=i("p"),H.innerHTML=Pe,Q=s(),_=i("p"),_.innerHTML=xe,ee=s(),L=i("p"),L.innerHTML=Ce,te=s(),w=i("p"),w.innerHTML=qe,oe=s(),S=i("p"),S.innerHTML=ke,re=s(),P=i("p"),P.innerHTML=We,se=s(),x=i("p"),x.innerHTML=je,le=s(),C=i("p"),C.innerHTML=Ae,ie=s(),q=i("p"),q.innerHTML=$e,ne=s(),k=i("p"),k.innerHTML=ze,ae=s(),W=i("p"),W.innerHTML=Ee,ce=s(),j=i("p"),j.innerHTML=Oe,de=s(),A=i("p"),A.innerHTML=De,pe=s(),Fe($.$$.fragment),ue=s(),z=i("p"),z.innerHTML=Ue,me=s(),O=i("p"),this.h()},l(e){const t=et("svelte-u9bgzb",document.head);c=n(t,"META",{name:!0,content:!0}),t.forEach(o),D=l(e),E=n(e,"P",{}),Ie(E).forEach(o),U=l(e),Je(d.$$.fragment,e),F=l(e),p=n(e,"P",{"data-svelte-h":!0}),a(p)!=="svelte-1rus8o"&&(p.innerHTML=ge),I=l(e),u=n(e,"P",{"data-svelte-h":!0}),a(u)!=="svelte-1o8zbi0"&&(u.innerHTML=be),J=l(e),m=n(e,"P",{"data-svelte-h":!0}),a(m)!=="svelte-1f0ocfz"&&(m.innerHTML=ve),R=l(e),f=n(e,"P",{"data-svelte-h":!0}),a(f)!=="svelte-qbm1rz"&&(f.innerHTML=ye),B=l(e),h=n(e,"P",{"data-svelte-h":!0}),a(h)!=="svelte-1u1c3la"&&(h.innerHTML=Te),Z=l(e),g=n(e,"P",{"data-svelte-h":!0}),a(g)!=="svelte-vqx1dg"&&(g.innerHTML=Me),N=l(e),b=n(e,"P",{"data-svelte-h":!0}),a(b)!=="svelte-1djpop4"&&(b.innerHTML=He),Y=l(e),v=n(e,"P",{"data-svelte-h":!0}),a(v)!=="svelte-1q9ujtb"&&(v.innerHTML=_e),G=l(e),y=n(e,"P",{"data-svelte-h":!0}),a(y)!=="svelte-1jo11dr"&&(y.innerHTML=Le),V=l(e),T=n(e,"P",{"data-svelte-h":!0}),a(T)!=="svelte-1wd1r0k"&&(T.innerHTML=we),X=l(e),M=n(e,"P",{"data-svelte-h":!0}),a(M)!=="svelte-10ue70i"&&(M.innerHTML=Se),K=l(e),H=n(e,"P",{"data-svelte-h":!0}),a(H)!=="svelte-np4by"&&(H.innerHTML=Pe),Q=l(e),_=n(e,"P",{"data-svelte-h":!0}),a(_)!=="svelte-a0961b"&&(_.innerHTML=xe),ee=l(e),L=n(e,"P",{"data-svelte-h":!0}),a(L)!=="svelte-10nikp5"&&(L.innerHTML=Ce),te=l(e),w=n(e,"P",{"data-svelte-h":!0}),a(w)!=="svelte-s0reay"&&(w.innerHTML=qe),oe=l(e),S=n(e,"P",{"data-svelte-h":!0}),a(S)!=="svelte-1sc6yo3"&&(S.innerHTML=ke),re=l(e),P=n(e,"P",{"data-svelte-h":!0}),a(P)!=="svelte-1gxsj06"&&(P.innerHTML=We),se=l(e),x=n(e,"P",{"data-svelte-h":!0}),a(x)!=="svelte-n0xeyu"&&(x.innerHTML=je),le=l(e),C=n(e,"P",{"data-svelte-h":!0}),a(C)!=="svelte-8e9il"&&(C.innerHTML=Ae),ie=l(e),q=n(e,"P",{"data-svelte-h":!0}),a(q)!=="svelte-1fx319r"&&(q.innerHTML=$e),ne=l(e),k=n(e,"P",{"data-svelte-h":!0}),a(k)!=="svelte-1yczw3v"&&(k.innerHTML=ze),ae=l(e),W=n(e,"P",{"data-svelte-h":!0}),a(W)!=="svelte-1vor0c2"&&(W.innerHTML=Ee),ce=l(e),j=n(e,"P",{"data-svelte-h":!0}),a(j)!=="svelte-107lckq"&&(j.innerHTML=Oe),de=l(e),A=n(e,"P",{"data-svelte-h":!0}),a(A)!=="svelte-1vtuad"&&(A.innerHTML=De),pe=l(e),Je($.$$.fragment,e),ue=l(e),z=n(e,"P",{"data-svelte-h":!0}),a(z)!=="svelte-1athwnk"&&(z.innerHTML=Ue),me=l(e),O=n(e,"P",{}),Ie(O).forEach(o),this.h()},h(){Re(c,"name","hf:doc:metadata"),Re(c,"content",lt)},m(e,t){tt(document.head,c),r(e,D,t),r(e,E,t),r(e,U,t),Be(d,e,t),r(e,F,t),r(e,p,t),r(e,I,t),r(e,u,t),r(e,J,t),r(e,m,t),r(e,R,t),r(e,f,t),r(e,B,t),r(e,h,t),r(e,Z,t),r(e,g,t),r(e,N,t),r(e,b,t),r(e,Y,t),r(e,v,t),r(e,G,t),r(e,y,t),r(e,V,t),r(e,T,t),r(e,X,t),r(e,M,t),r(e,K,t),r(e,H,t),r(e,Q,t),r(e,_,t),r(e,ee,t),r(e,L,t),r(e,te,t),r(e,w,t),r(e,oe,t),r(e,S,t),r(e,re,t),r(e,P,t),r(e,se,t),r(e,x,t),r(e,le,t),r(e,C,t),r(e,ie,t),r(e,q,t),r(e,ne,t),r(e,k,t),r(e,ae,t),r(e,W,t),r(e,ce,t),r(e,j,t),r(e,de,t),r(e,A,t),r(e,pe,t),Be($,e,t),r(e,ue,t),r(e,z,t),r(e,me,t),r(e,O,t),fe=!0},p:Ve,i(e){fe||(Ze(d.$$.fragment,e),Ze($.$$.fragment,e),fe=!0)},o(e){Ne(d.$$.fragment,e),Ne($.$$.fragment,e),fe=!1},d(e){e&&(o(D),o(E),o(U),o(F),o(p),o(I),o(u),o(J),o(m),o(R),o(f),o(B),o(h),o(Z),o(g),o(N),o(b),o(Y),o(v),o(G),o(y),o(V),o(T),o(X),o(M),o(K),o(H),o(Q),o(_),o(ee),o(L),o(te),o(w),o(oe),o(S),o(re),o(P),o(se),o(x),o(le),o(C),o(ie),o(q),o(ne),o(k),o(ae),o(W),o(ce),o(j),o(de),o(A),o(pe),o(ue),o(z),o(me),o(O)),o(c),Ye(d,e),Ye($,e)}}}const lt='{"title":"Spaces Configuration Reference","local":"spaces-configuration-reference","sections":[],"depth":1}';function it(he){return Xe(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class pt extends Ke{constructor(c){super(),Qe(this,c,it,st,Ge,{})}}export{pt as component};
