Buckets:
| import{s as en,n as tn,o as nn}from"../chunks/scheduler.2b22cead.js";import{S as ln,i as an,e as i,s as a,c as m,h as sn,a as o,d as n,b as s,f as Tt,g as r,j as p,k as Me,l as $,m as l,n as u,t as c,o as h,p as v}from"../chunks/index.1a0e8013.js";import{C as on,H as d}from"../chunks/Heading.c0d3f116.js";import{C as T}from"../chunks/CodeBlock.c8d73295.js";import{E as pn}from"../chunks/MermaidChart.svelte_svelte_type_style_lang.21bcf336.js";function mn(Ut){let w,$e,be,Te,U,Ue,J,Je,j,Jt="<strong>Part 5 of 5</strong> in the OpenEnv Getting Started Series",je,B,jt=`OpenEnv environments are designed to be shared. The <code>openenv</code> CLI provides first-class | |
| commands for publishing, forking, and contributing to environments hosted as | |
| <a href="https://huggingface.co/spaces" rel="nofollow">Hugging Face Spaces</a>.`,Be,W,Bt="Envs are deployed as Hugging Face Spaces which are; Git repositories, Docker images, Python packages, and Gradio apps",We,k,Wt="This guide covers three workflows:",ke,Z,kt="<li><strong>Push</strong> a new environment you built to the Hub.</li> <li><strong>Fork</strong> someone else’s environment to your Hugging Face account to make changes.</li> <li><strong>Download</strong> an environment, make changes, and open a Pull Request.</li>",Ze,C,Ce,I,Zt="Before you start, make sure you have:",Ie,x,Ct='<li>Python 3.11+ and <a href="https://github.com/astral-sh/uv" rel="nofollow"><code>uv</code></a> installed</li> <li>The OpenEnv CLI: <code>pip install openenv[cli]</code> (or install from source)</li> <li>A <a href="https://huggingface.co/join" rel="nofollow">Hugging Face account</a> with a <a href="https://huggingface.co/settings/tokens" rel="nofollow">write token</a></li>',xe,G,It="Authenticate with the Hub:",Ge,H,He,L,xt="The <code>openenv</code> CLI will also prompt you to log in automatically if you haven’t already.",Le,Y,Ye,S,Gt='Once you’ve <a href="environment-builder">built an environment</a>, publishing it to a Hugging Face Space is a single command.',Se,E,Ee,V,Ht=`That’s it. The CLI validates your environment, stages the files, adds the Hugging Face Space frontmatter, enables the web interface, and uploads everything. Your environment will be live at | |
| <code>https://huggingface.co/spaces/<your-username>/my_env</code>.`,Ve,M,Lt="<p>If you are getting errors on deployment, it is likely because the environment structure is not valid. Run <code>openenv validate --verbose</code> to see the errors. This checks for the required files (<code>openenv.yaml</code>, <code>pyproject.toml</code>, <code>server/app.py</code>) and validates the Dockerfile and entry points.</p>",Pe,P,Re,R,Yt=`Forking creates a copy of a Hugging Face Space under your own account. This is | |
| the fastest way to start experimenting with an existing environment.`,_e,_,Fe,F,St="This duplicates the Space to <code><your-username>/space-name</code> using the same name and config. To make changes, you can fork to a specific repo name, set environment variables and secrets, and request hardware.",Xe,X,Ne,N,Et="Once forked, you have a fully independent copy. You can:",Qe,Q,Vt="<li>Visit it at <code>https://huggingface.co/spaces/<your-username>/<space-name></code></li> <li>Clone it locally to make changes (see the next section)</li> <li>Push updates with <code>openenv push</code></li>",ze,z,qe,q,Pt=`The contribution workflow lets you improve an existing environment and submit | |
| your changes for review, just like a GitHub Pull Request but on the Hugging | |
| Face Hub.`,Oe,O,Ae,A,Rt="Hugging Face Spaces are Git repositories. Download the one you want to contribute to:",De,D,Ke,b,_t=`<p>If the Space is private and you have access, make sure you’re logged in with | |
| <code>hf auth login</code> first.</p>`,et,K,tt,ee,Ft="Edit the environment files as needed.",nt,f,de,Xt="You can test your changes locally before submitting:",Mt,te,bt,ye,Nt=`cd space-name | |
| uvicorn server.app:app —host 0.0.0.0 —port 8000`,gt,ne,$t,we,Qt=`openenv build | |
| openenv validate —verbose`,lt,le,at,ae,zt="From the cloned directory, use <code>openenv push</code> with the <code>--create-pr</code> flag:",st,se,it,ie,qt="This uploads your modified files and opens a Pull Request on the Hub. The environment owner can review your changes, leave comments, and merge them.",ot,g,Ot=`<p>When using <code>--create-pr</code>, the CLI uploads your changes to a new branch and | |
| opens a PR on the <strong>original</strong> Space. You do not need to create the Space | |
| yourself.</p>`,pt,oe,mt,pe,At=`If you prefer to develop against your own fork first, you can combine the fork | |
| and PR workflows:`,rt,me,ut,re,ct,ue,Dt=`Here’s a complete example: forking the Echo environment, adding a feature, and | |
| submitting a PR.`,ht,ce,vt,he,ft,ve,Kt='<li><a href="environment-builder">Build your own environment from scratch</a></li> <li><a href="../guides/customizing-web-ui">Customize the web UI</a></li> <li><a href="../environments">Browse available environments</a></li> <li><a href="../tutorials/openenv-tutorial">End-to-end tutorial</a></li>',dt,fe,yt,ge,wt;return U=new on({props:{containerStyle:"float: right; margin-left: 10px; display: inline-flex; position: relative; z-index: 10;"}}),J=new d({props:{title:"Contributing to Hugging Face",local:"contributing-to-hugging-face",headingTag:"h1"}}),C=new d({props:{title:"Prerequisites",local:"prerequisites",headingTag:"h2"}}),H=new T({props:{code:"aGYlMjBhdXRoJTIwbG9naW4=",highlighted:"hf auth login",lang:"bash",wrap:!1}}),Y=new d({props:{title:"1. Push a New Environment to the Hub",local:"1-push-a-new-environment-to-the-hub",headingTag:"h2"}}),E=new T({props:{code:"JTIzJTIwUHVzaCUyMHRoZSUyMGVudiUyMGF0JTIwJy4nJTIwdG8lMjB0aGUlMjBodWIlMjB3aXRoJTIwY29uZmlnJTIwaW4lMjBlbnYueWFtbCUwQW9wZW5lbnYlMjBwdXNoJTBBJTBBJTIzJTIwUHVzaCUyMHRoZSUyMGVudiUyMHRvJTIwYSUyMHNwZWNpZmljJTIwcmVwbyUwQW9wZW5lbnYlMjBwdXNoJTIwLS1yZXBvLWlkJTIwbXktb3JnJTJGbXktY3VzdG9tLWVudiUwQSUwQSUyMyUyMFB1c2glMjB0aGUlMjBlbnYlMjBhcyUyMHByaXZhdGUlMEFvcGVuZW52JTIwcHVzaCUyMC0tcHJpdmF0ZSUwQSUwQSUyMyUyMFB1c2glMjB0aGUlMjBlbnYlMjBhdCUyMCdwYXRoJTJGdG8lMkZteV9lbnYnJTIwdG8lMjB0aGUlMjBodWIlMjB3aXRoJTIwY29uZmlnJTIwaW4lMjBvcGVuZW52LnlhbWwlMEFvcGVuZW52JTIwcHVzaCUyMHBhdGglMkZ0byUyRm15X2Vudg==",highlighted:`<span class="hljs-comment"># Push the env at '.' to the hub with config in env.yaml</span> | |
| openenv push | |
| <span class="hljs-comment"># Push the env to a specific repo</span> | |
| openenv push --repo-id my-org/my-custom-env | |
| <span class="hljs-comment"># Push the env as private</span> | |
| openenv push --private | |
| <span class="hljs-comment"># Push the env at 'path/to/my_env' to the hub with config in openenv.yaml</span> | |
| openenv push path/to/my_env`,lang:"bash",wrap:!1}}),P=new d({props:{title:"2. Fork Someone Else’s Environment",local:"2-fork-someone-elses-environment",headingTag:"h2"}}),_=new T({props:{code:"JTIzJTIwRm9yayUyMHRoZSUyMG9wZW5lbnYlMkZ3b3JkbGUtZW52JTIwZW52aXJvbm1lbnQlMjB0byUyMHlvdXIlMjBhY2NvdW50JTBBb3BlbmVudiUyMGZvcmslMjBvd25lciUyRnNwYWNlLW5hbWU=",highlighted:`<span class="hljs-comment"># Fork the openenv/wordle-env environment to your account</span> | |
| openenv fork owner/space-name`,lang:"bash",wrap:!1}}),X=new T({props:{code:"JTIzJTIwRm9yayUyMHRvJTIwYSUyMHNwZWNpZmljJTIwcmVwbyUyMG5hbWUlMEFvcGVuZW52JTIwZm9yayUyMG9wZW5lbnYlMkZ3b3JkbGUtZW52JTIwLS1yZXBvLWlkJTIwbXktdXNlcm5hbWUlMkZteS13b3JkbGUlMEElMEElMjMlMjBGb3JrJTIwdGhlJTIwb3BlbmVudiUyRmNvZGluZy1lbnYlMjBlbnZpcm9ubWVudCUyMHRvJTIweW91ciUyMGFjY291bnQlMjB3aXRoJTIwZW52aXJvbm1lbnQlMjB2YXJpYWJsZXMlMjBhbmQlMjBzZWNyZXRzJTBBb3BlbmVudiUyMGZvcmslMjBvcGVuZW52JTJGY29kaW5nLWVudiUyMCU1QyUwQSUyMCUyMC0tc2V0LWVudiUyME1PREVMX0lEJTNEbWV0YS1sbGFtYSUyRkxsYW1hLTMtOEIlMjAlNUMlMEElMjAlMjAtLXNldC1zZWNyZXQlMjBIRl9UT0tFTiUzRGhmX3h4eHh4eHh4eHh4eHglMEElMEElMjMlMjBGb3JrJTIwdGhlJTIwb3BlbmVudiUyRmNvZGluZy1lbnYlMjBlbnZpcm9ubWVudCUyMHRvJTIweW91ciUyMGFjY291bnQlMjB3aXRoJTIwYSUyMEdQVSUwQW9wZW5lbnYlMjBmb3JrJTIwb3BlbmVudiUyRmNvZGluZy1lbnYlMjAtLWhhcmR3YXJlJTIwdDQtbWVkaXVt",highlighted:`<span class="hljs-comment"># Fork to a specific repo name</span> | |
| openenv fork openenv/wordle-env --repo-id my-username/my-wordle | |
| <span class="hljs-comment"># Fork the openenv/coding-env environment to your account with environment variables and secrets</span> | |
| openenv fork openenv/coding-env \\ | |
| --set-env MODEL_ID=meta-llama/Llama-3-8B \\ | |
| --set-secret HF_TOKEN=hf_xxxxxxxxxxxxx | |
| <span class="hljs-comment"># Fork the openenv/coding-env environment to your account with a GPU</span> | |
| openenv fork openenv/coding-env --hardware t4-medium`,lang:"bash",wrap:!1}}),z=new d({props:{title:"3. Pull, Modify, and Open a Pull Request",local:"3-pull-modify-and-open-a-pull-request",headingTag:"h2"}}),O=new d({props:{title:"3.1 Download the Space locally",local:"31-download-the-space-locally",headingTag:"h3"}}),D=new T({props:{code:"aGYlMjBkb3dubG9hZCUyMG93bmVyJTJGc3BhY2UtbmFtZSUyMC0tbG9jYWwtZGlyJTIwc3BhY2UtbmFtZSUyMC0tcmVwby10eXBlJTIwc3BhY2UlMEFjZCUyMHNwYWNlLW5hbWU=",highlighted:`hf download owner/space-name --local-dir space-name --repo-type space | |
| <span class="hljs-built_in">cd</span> space-name`,lang:"bash",wrap:!1}}),K=new d({props:{title:"3.2 Make your changes",local:"32-make-your-changes",headingTag:"h4"}}),te=new d({props:{title:"Run the server locally",local:"run-the-server-locally",headingTag:"h1"}}),ne=new d({props:{title:"Or build and run in Docker",local:"or-build-and-run-in-docker",headingTag:"h1"}}),le=new d({props:{title:"3.3 Push your changes as a Pull Request",local:"33-push-your-changes-as-a-pull-request",headingTag:"h4"}}),se=new T({props:{code:"b3BlbmVudiUyMHB1c2glMjAtLXJlcG8taWQlMjBvd25lciUyRnNwYWNlLW5hbWUlMjAtLWNyZWF0ZS1wcg==",highlighted:"openenv push --repo-id owner/space-name --create-pr",lang:"bash",wrap:!1}}),oe=new d({props:{title:"Alternative: Fork-then-PR workflow",local:"alternative-fork-then-pr-workflow",headingTag:"h3"}}),me=new T({props:{code:"JTIzJTIwMS4lMjBGb3JrJTIwdGhlJTIwZW52aXJvbm1lbnQlMjB0byUyMHlvdXIlMjBhY2NvdW50JTBBb3BlbmVudiUyMGZvcmslMjBvd25lciUyRnNwYWNlLW5hbWUlMjAtLXJlcG8taWQlMjBteS11c2VybmFtZSUyRnNwYWNlLW5hbWUlMEElMEElMjMlMjAyLiUyMERvd25sb2FkJTIwdGhlJTIwZm9ya2VkJTIwZW52aXJvbm1lbnQlMjB0byUyMHlvdXIlMjBsb2NhbCUyMGRpcmVjdG9yeSUwQWhmJTIwZG93bmxvYWQlMjBteS11c2VybmFtZSUyRnNwYWNlLW5hbWUlMjAtLWxvY2FsLWRpciUyMHNwYWNlLW5hbWUlMjAtLXJlcG8tdHlwZSUyMHNwYWNlJTBBY2QlMjBzcGFjZS1uYW1lJTBBJTBBJTIzJTIwMy4lMjBNYWtlJTIwYW5kJTIwdGVzdCUyMHlvdXIlMjBjaGFuZ2VzJTBBJTIzJTIwJTIwJTIwJTIwLi4uJTIwZWRpdCUyMGZpbGVzJTJDJTIwcnVuJTIwbG9jYWxseSUyQyUyMHZhbGlkYXRlJTIwLi4uJTBBJTBBJTIzJTIwNC4lMjBQdXNoJTIwdGhlJTIwY2hhbmdlcyUyMGJhY2slMjB0byUyMHlvdXIlMjBmb3JrJTBBb3BlbmVudiUyMHB1c2glMEElMEElMjMlMjA1LiUyMFN1Ym1pdCUyMGElMjBQUiUyMHRvJTIwdGhlJTIwb3JpZ2luYWwlMjBTcGFjZSUwQW9wZW5lbnYlMjBwdXNoJTIwLS1yZXBvLWlkJTIwb3duZXIlMkZzcGFjZS1uYW1lJTIwLS1jcmVhdGUtcHI=",highlighted:`<span class="hljs-comment"># 1. Fork the environment to your account</span> | |
| openenv fork owner/space-name --repo-id my-username/space-name | |
| <span class="hljs-comment"># 2. Download the forked environment to your local directory</span> | |
| hf download my-username/space-name --local-dir space-name --repo-type space | |
| <span class="hljs-built_in">cd</span> space-name | |
| <span class="hljs-comment"># 3. Make and test your changes</span> | |
| <span class="hljs-comment"># ... edit files, run locally, validate ...</span> | |
| <span class="hljs-comment"># 4. Push the changes back to your fork</span> | |
| openenv push | |
| <span class="hljs-comment"># 5. Submit a PR to the original Space</span> | |
| openenv push --repo-id owner/space-name --create-pr`,lang:"bash",wrap:!1}}),re=new d({props:{title:"End-to-End Example",local:"end-to-end-example",headingTag:"h2"}}),ce=new T({props:{code:"JTIzJTIwRm9yayUyMHRoZSUyMGVjaG8lMjBlbnZpcm9ubWVudCUwQW9wZW5lbnYlMjBmb3JrJTIwb3BlbmVudiUyRmVjaG8tZW52JTIwLS1yZXBvLWlkJTIwbXktdXNlcm5hbWUlMkZlY2hvLWVudi1pbXByb3ZlZCUwQSUwQSUyMyUyMENsb25lJTIweW91ciUyMGZvcmslMEFnaXQlMjBjbG9uZSUyMGh0dHBzJTNBJTJGJTJGaHVnZ2luZ2ZhY2UuY28lMkZzcGFjZXMlMkZteS11c2VybmFtZSUyRmVjaG8tZW52LWltcHJvdmVkJTBBY2QlMjBlY2hvLWVudi1pbXByb3ZlZCUwQSUwQSUyMyUyME1ha2UlMjBjaGFuZ2VzJTIwKGUuZy4lMkMlMjBhZGQlMjBhJTIwdGltZXN0YW1wJTIwdG8lMjBvYnNlcnZhdGlvbnMpJTBBJTIzJTIwLi4uJTIwZWRpdCUyMHNlcnZlciUyRmVjaG9fZW52aXJvbm1lbnQucHklMjAuLi4lMEElMEElMjMlMjBUZXN0JTIwbG9jYWxseSUwQW9wZW5lbnYlMjB2YWxpZGF0ZSUyMC0tdmVyYm9zZSUwQSUwQSUyMyUyMFB1c2glMjB5b3VyJTIwaW1wcm92ZW1lbnQlMjBhcyUyMGElMjBQUiUyMHRvJTIwdGhlJTIwb3JpZ2luYWwlMEFvcGVuZW52JTIwcHVzaCUyMC0tcmVwby1pZCUyMG9wZW5lbnYlMkZlY2hvLWVudiUyMC0tY3JlYXRlLXBy",highlighted:`<span class="hljs-comment"># Fork the echo environment</span> | |
| openenv fork openenv/echo-env --repo-id my-username/echo-env-improved | |
| <span class="hljs-comment"># Clone your fork</span> | |
| git <span class="hljs-built_in">clone</span> https://huggingface.co/spaces/my-username/echo-env-improved | |
| <span class="hljs-built_in">cd</span> echo-env-improved | |
| <span class="hljs-comment"># Make changes (e.g., add a timestamp to observations)</span> | |
| <span class="hljs-comment"># ... edit server/echo_environment.py ...</span> | |
| <span class="hljs-comment"># Test locally</span> | |
| openenv validate --verbose | |
| <span class="hljs-comment"># Push your improvement as a PR to the original</span> | |
| openenv push --repo-id openenv/echo-env --create-pr`,lang:"bash",wrap:!1}}),he=new d({props:{title:"Next Steps",local:"next-steps",headingTag:"h2"}}),fe=new pn({props:{source:"https://github.com/huggingface/openenv/blob/main/docs/source/getting_started/contributing-envs.md"}}),{c(){w=i("meta"),$e=a(),be=i("p"),Te=a(),m(U.$$.fragment),Ue=a(),m(J.$$.fragment),Je=a(),j=i("p"),j.innerHTML=Jt,je=a(),B=i("p"),B.innerHTML=jt,Be=a(),W=i("p"),W.textContent=Bt,We=a(),k=i("p"),k.textContent=Wt,ke=a(),Z=i("ol"),Z.innerHTML=kt,Ze=a(),m(C.$$.fragment),Ce=a(),I=i("p"),I.textContent=Zt,Ie=a(),x=i("ul"),x.innerHTML=Ct,xe=a(),G=i("p"),G.textContent=It,Ge=a(),m(H.$$.fragment),He=a(),L=i("p"),L.innerHTML=xt,Le=a(),m(Y.$$.fragment),Ye=a(),S=i("p"),S.innerHTML=Gt,Se=a(),m(E.$$.fragment),Ee=a(),V=i("p"),V.innerHTML=Ht,Ve=a(),M=i("blockquote"),M.innerHTML=Lt,Pe=a(),m(P.$$.fragment),Re=a(),R=i("p"),R.textContent=Yt,_e=a(),m(_.$$.fragment),Fe=a(),F=i("p"),F.innerHTML=St,Xe=a(),m(X.$$.fragment),Ne=a(),N=i("p"),N.textContent=Et,Qe=a(),Q=i("ul"),Q.innerHTML=Vt,ze=a(),m(z.$$.fragment),qe=a(),q=i("p"),q.textContent=Pt,Oe=a(),m(O.$$.fragment),Ae=a(),A=i("p"),A.textContent=Rt,De=a(),m(D.$$.fragment),Ke=a(),b=i("blockquote"),b.innerHTML=_t,et=a(),m(K.$$.fragment),tt=a(),ee=i("p"),ee.textContent=Ft,nt=a(),f=i("blockquote"),de=i("p"),de.textContent=Xt,Mt=a(),m(te.$$.fragment),bt=a(),ye=i("p"),ye.textContent=Nt,gt=a(),m(ne.$$.fragment),$t=a(),we=i("p"),we.textContent=Qt,lt=a(),m(le.$$.fragment),at=a(),ae=i("p"),ae.innerHTML=zt,st=a(),m(se.$$.fragment),it=a(),ie=i("p"),ie.textContent=qt,ot=a(),g=i("blockquote"),g.innerHTML=Ot,pt=a(),m(oe.$$.fragment),mt=a(),pe=i("p"),pe.textContent=At,rt=a(),m(me.$$.fragment),ut=a(),m(re.$$.fragment),ct=a(),ue=i("p"),ue.textContent=Dt,ht=a(),m(ce.$$.fragment),vt=a(),m(he.$$.fragment),ft=a(),ve=i("ul"),ve.innerHTML=Kt,dt=a(),m(fe.$$.fragment),yt=a(),ge=i("p"),this.h()},l(e){const t=sn("svelte-u9bgzb",document.head);w=o(t,"META",{name:!0,content:!0}),t.forEach(n),$e=s(e),be=o(e,"P",{}),Tt(be).forEach(n),Te=s(e),r(U.$$.fragment,e),Ue=s(e),r(J.$$.fragment,e),Je=s(e),j=o(e,"P",{"data-svelte-h":!0}),p(j)!=="svelte-cufn3k"&&(j.innerHTML=Jt),je=s(e),B=o(e,"P",{"data-svelte-h":!0}),p(B)!=="svelte-727mfh"&&(B.innerHTML=jt),Be=s(e),W=o(e,"P",{"data-svelte-h":!0}),p(W)!=="svelte-46njlj"&&(W.textContent=Bt),We=s(e),k=o(e,"P",{"data-svelte-h":!0}),p(k)!=="svelte-1qdmzk"&&(k.textContent=Wt),ke=s(e),Z=o(e,"OL",{"data-svelte-h":!0}),p(Z)!=="svelte-kvdpyg"&&(Z.innerHTML=kt),Ze=s(e),r(C.$$.fragment,e),Ce=s(e),I=o(e,"P",{"data-svelte-h":!0}),p(I)!=="svelte-hq8yjw"&&(I.textContent=Zt),Ie=s(e),x=o(e,"UL",{"data-svelte-h":!0}),p(x)!=="svelte-h06rij"&&(x.innerHTML=Ct),xe=s(e),G=o(e,"P",{"data-svelte-h":!0}),p(G)!=="svelte-19irold"&&(G.textContent=It),Ge=s(e),r(H.$$.fragment,e),He=s(e),L=o(e,"P",{"data-svelte-h":!0}),p(L)!=="svelte-shq93x"&&(L.innerHTML=xt),Le=s(e),r(Y.$$.fragment,e),Ye=s(e),S=o(e,"P",{"data-svelte-h":!0}),p(S)!=="svelte-1ega7v6"&&(S.innerHTML=Gt),Se=s(e),r(E.$$.fragment,e),Ee=s(e),V=o(e,"P",{"data-svelte-h":!0}),p(V)!=="svelte-1x8jo97"&&(V.innerHTML=Ht),Ve=s(e),M=o(e,"BLOCKQUOTE",{class:!0,"data-svelte-h":!0}),p(M)!=="svelte-hxcqz9"&&(M.innerHTML=Lt),Pe=s(e),r(P.$$.fragment,e),Re=s(e),R=o(e,"P",{"data-svelte-h":!0}),p(R)!=="svelte-13rih1g"&&(R.textContent=Yt),_e=s(e),r(_.$$.fragment,e),Fe=s(e),F=o(e,"P",{"data-svelte-h":!0}),p(F)!=="svelte-1rz7vtm"&&(F.innerHTML=St),Xe=s(e),r(X.$$.fragment,e),Ne=s(e),N=o(e,"P",{"data-svelte-h":!0}),p(N)!=="svelte-1t8q71a"&&(N.textContent=Et),Qe=s(e),Q=o(e,"UL",{"data-svelte-h":!0}),p(Q)!=="svelte-1d5fcmn"&&(Q.innerHTML=Vt),ze=s(e),r(z.$$.fragment,e),qe=s(e),q=o(e,"P",{"data-svelte-h":!0}),p(q)!=="svelte-v1d44b"&&(q.textContent=Pt),Oe=s(e),r(O.$$.fragment,e),Ae=s(e),A=o(e,"P",{"data-svelte-h":!0}),p(A)!=="svelte-mr6u0g"&&(A.textContent=Rt),De=s(e),r(D.$$.fragment,e),Ke=s(e),b=o(e,"BLOCKQUOTE",{class:!0,"data-svelte-h":!0}),p(b)!=="svelte-28oasi"&&(b.innerHTML=_t),et=s(e),r(K.$$.fragment,e),tt=s(e),ee=o(e,"P",{"data-svelte-h":!0}),p(ee)!=="svelte-fs38e6"&&(ee.textContent=Ft),nt=s(e),f=o(e,"BLOCKQUOTE",{class:!0});var y=Tt(f);de=o(y,"P",{"data-svelte-h":!0}),p(de)!=="svelte-1oz9gx8"&&(de.textContent=Xt),Mt=s(y),r(te.$$.fragment,y),bt=s(y),ye=o(y,"P",{"data-svelte-h":!0}),p(ye)!=="svelte-1n9io1"&&(ye.textContent=Nt),gt=s(y),r(ne.$$.fragment,y),$t=s(y),we=o(y,"P",{"data-svelte-h":!0}),p(we)!=="svelte-1s8djge"&&(we.textContent=Qt),y.forEach(n),lt=s(e),r(le.$$.fragment,e),at=s(e),ae=o(e,"P",{"data-svelte-h":!0}),p(ae)!=="svelte-ko0nun"&&(ae.innerHTML=zt),st=s(e),r(se.$$.fragment,e),it=s(e),ie=o(e,"P",{"data-svelte-h":!0}),p(ie)!=="svelte-1nbcuhy"&&(ie.textContent=qt),ot=s(e),g=o(e,"BLOCKQUOTE",{class:!0,"data-svelte-h":!0}),p(g)!=="svelte-1865s2u"&&(g.innerHTML=Ot),pt=s(e),r(oe.$$.fragment,e),mt=s(e),pe=o(e,"P",{"data-svelte-h":!0}),p(pe)!=="svelte-4ntkpe"&&(pe.textContent=At),rt=s(e),r(me.$$.fragment,e),ut=s(e),r(re.$$.fragment,e),ct=s(e),ue=o(e,"P",{"data-svelte-h":!0}),p(ue)!=="svelte-l1ut2f"&&(ue.textContent=Dt),ht=s(e),r(ce.$$.fragment,e),vt=s(e),r(he.$$.fragment,e),ft=s(e),ve=o(e,"UL",{"data-svelte-h":!0}),p(ve)!=="svelte-zjec7k"&&(ve.innerHTML=Kt),dt=s(e),r(fe.$$.fragment,e),yt=s(e),ge=o(e,"P",{}),Tt(ge).forEach(n),this.h()},h(){Me(w,"name","hf:doc:metadata"),Me(w,"content",rn),Me(M,"class","warning"),Me(b,"class","warning"),Me(f,"class","tip"),Me(g,"class","warning")},m(e,t){$(document.head,w),l(e,$e,t),l(e,be,t),l(e,Te,t),u(U,e,t),l(e,Ue,t),u(J,e,t),l(e,Je,t),l(e,j,t),l(e,je,t),l(e,B,t),l(e,Be,t),l(e,W,t),l(e,We,t),l(e,k,t),l(e,ke,t),l(e,Z,t),l(e,Ze,t),u(C,e,t),l(e,Ce,t),l(e,I,t),l(e,Ie,t),l(e,x,t),l(e,xe,t),l(e,G,t),l(e,Ge,t),u(H,e,t),l(e,He,t),l(e,L,t),l(e,Le,t),u(Y,e,t),l(e,Ye,t),l(e,S,t),l(e,Se,t),u(E,e,t),l(e,Ee,t),l(e,V,t),l(e,Ve,t),l(e,M,t),l(e,Pe,t),u(P,e,t),l(e,Re,t),l(e,R,t),l(e,_e,t),u(_,e,t),l(e,Fe,t),l(e,F,t),l(e,Xe,t),u(X,e,t),l(e,Ne,t),l(e,N,t),l(e,Qe,t),l(e,Q,t),l(e,ze,t),u(z,e,t),l(e,qe,t),l(e,q,t),l(e,Oe,t),u(O,e,t),l(e,Ae,t),l(e,A,t),l(e,De,t),u(D,e,t),l(e,Ke,t),l(e,b,t),l(e,et,t),u(K,e,t),l(e,tt,t),l(e,ee,t),l(e,nt,t),l(e,f,t),$(f,de),$(f,Mt),u(te,f,null),$(f,bt),$(f,ye),$(f,gt),u(ne,f,null),$(f,$t),$(f,we),l(e,lt,t),u(le,e,t),l(e,at,t),l(e,ae,t),l(e,st,t),u(se,e,t),l(e,it,t),l(e,ie,t),l(e,ot,t),l(e,g,t),l(e,pt,t),u(oe,e,t),l(e,mt,t),l(e,pe,t),l(e,rt,t),u(me,e,t),l(e,ut,t),u(re,e,t),l(e,ct,t),l(e,ue,t),l(e,ht,t),u(ce,e,t),l(e,vt,t),u(he,e,t),l(e,ft,t),l(e,ve,t),l(e,dt,t),u(fe,e,t),l(e,yt,t),l(e,ge,t),wt=!0},p:tn,i(e){wt||(c(U.$$.fragment,e),c(J.$$.fragment,e),c(C.$$.fragment,e),c(H.$$.fragment,e),c(Y.$$.fragment,e),c(E.$$.fragment,e),c(P.$$.fragment,e),c(_.$$.fragment,e),c(X.$$.fragment,e),c(z.$$.fragment,e),c(O.$$.fragment,e),c(D.$$.fragment,e),c(K.$$.fragment,e),c(te.$$.fragment,e),c(ne.$$.fragment,e),c(le.$$.fragment,e),c(se.$$.fragment,e),c(oe.$$.fragment,e),c(me.$$.fragment,e),c(re.$$.fragment,e),c(ce.$$.fragment,e),c(he.$$.fragment,e),c(fe.$$.fragment,e),wt=!0)},o(e){h(U.$$.fragment,e),h(J.$$.fragment,e),h(C.$$.fragment,e),h(H.$$.fragment,e),h(Y.$$.fragment,e),h(E.$$.fragment,e),h(P.$$.fragment,e),h(_.$$.fragment,e),h(X.$$.fragment,e),h(z.$$.fragment,e),h(O.$$.fragment,e),h(D.$$.fragment,e),h(K.$$.fragment,e),h(te.$$.fragment,e),h(ne.$$.fragment,e),h(le.$$.fragment,e),h(se.$$.fragment,e),h(oe.$$.fragment,e),h(me.$$.fragment,e),h(re.$$.fragment,e),h(ce.$$.fragment,e),h(he.$$.fragment,e),h(fe.$$.fragment,e),wt=!1},d(e){e&&(n($e),n(be),n(Te),n(Ue),n(Je),n(j),n(je),n(B),n(Be),n(W),n(We),n(k),n(ke),n(Z),n(Ze),n(Ce),n(I),n(Ie),n(x),n(xe),n(G),n(Ge),n(He),n(L),n(Le),n(Ye),n(S),n(Se),n(Ee),n(V),n(Ve),n(M),n(Pe),n(Re),n(R),n(_e),n(Fe),n(F),n(Xe),n(Ne),n(N),n(Qe),n(Q),n(ze),n(qe),n(q),n(Oe),n(Ae),n(A),n(De),n(Ke),n(b),n(et),n(tt),n(ee),n(nt),n(f),n(lt),n(at),n(ae),n(st),n(it),n(ie),n(ot),n(g),n(pt),n(mt),n(pe),n(rt),n(ut),n(ct),n(ue),n(ht),n(vt),n(ft),n(ve),n(dt),n(yt),n(ge)),n(w),v(U,e),v(J,e),v(C,e),v(H,e),v(Y,e),v(E,e),v(P,e),v(_,e),v(X,e),v(z,e),v(O,e),v(D,e),v(K,e),v(te),v(ne),v(le,e),v(se,e),v(oe,e),v(me,e),v(re,e),v(ce,e),v(he,e),v(fe,e)}}}const rn='{"title":"Contributing to Hugging Face","local":"contributing-to-hugging-face","sections":[{"title":"Prerequisites","local":"prerequisites","sections":[],"depth":2},{"title":"1. Push a New Environment to the Hub","local":"1-push-a-new-environment-to-the-hub","sections":[],"depth":2},{"title":"2. Fork Someone Else’s Environment","local":"2-fork-someone-elses-environment","sections":[],"depth":2},{"title":"3. Pull, Modify, and Open a Pull Request","local":"3-pull-modify-and-open-a-pull-request","sections":[{"title":"3.1 Download the Space locally","local":"31-download-the-space-locally","sections":[{"title":"3.2 Make your changes","local":"32-make-your-changes","sections":[],"depth":4}],"depth":3}],"depth":2}],"depth":1}';function un(Ut){return nn(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class yn extends ln{constructor(w){super(),an(this,w,un,mn,en,{})}}export{yn as component}; | |
Xet Storage Details
- Size:
- 22.1 kB
- Xet hash:
- 882f7db89d727c83d9fe91b076546e673d486957b62ccfb45fc2683d0c9cff9b
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.