import{s as Y,n as G,o as I}from"../chunks/scheduler.d6170356.js";import{S as V,i as B,g,s as i,r as A,A as J,h as d,f as n,c as r,j as E,u as R,x as D,k as H,y as K,a,v as U,d as j,t as q,w as z}from"../chunks/index.fcd4cc08.js";import{H as F}from"../chunks/Heading.8660bd0e.js";function N(L){let o,k,h,w,l,_,c,P=`You can use Docker to run most Spaces locally.
To view instructions to download and run Spaces’ Docker images, click on the “Run with Docker” button on the top-right corner of your Space page:`,v,s,S='<img class="block dark:hidden" src="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/spaces-run-with-docker.png"/> <img class="hidden dark:block" src="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/spaces-run-with-docker-dark.png"/>',$,u,y,m,b="Some Spaces will require you to login to Hugging Face’s Docker registry. To do so, you’ll need to provide:",x,p,M='<li>Your Hugging Face username as <code>username</code></li> <li>A User Access Token as <code>password</code>. Generate one <a href="https://huggingface.co/settings/tokens" rel="nofollow">here</a>.</li>',T,f,C;return l=new F({props:{title:"Run with Docker",local:"run-with-docker",headingTag:"h1"}}),u=new F({props:{title:"Login to the Docker registry",local:"login-to-the-docker-registry",headingTag:"h2"}}),{c(){o=g("meta"),k=i(),h=g("p"),w=i(),A(l.$$.fragment),_=i(),c=g("p"),c.textContent=P,v=i(),s=g("div"),s.innerHTML=S,$=i(),A(u.$$.fragment),y=i(),m=g("p"),m.textContent=b,x=i(),p=g("ul"),p.innerHTML=M,T=i(),f=g("p"),this.h()},l(e){const t=J("svelte-u9bgzb",document.head);o=d(t,"META",{name:!0,content:!0}),t.forEach(n),k=r(e),h=d(e,"P",{}),E(h).forEach(n),w=r(e),R(l.$$.fragment,e),_=r(e),c=d(e,"P",{"data-svelte-h":!0}),D(c)!=="svelte-19ginw8"&&(c.textContent=P),v=r(e),s=d(e,"DIV",{class:!0,"data-svelte-h":!0}),D(s)!=="svelte-s664rz"&&(s.innerHTML=S),$=r(e),R(u.$$.fragment,e),y=r(e),m=d(e,"P",{"data-svelte-h":!0}),D(m)!=="svelte-1otk72h"&&(m.textContent=b),x=r(e),p=d(e,"UL",{"data-svelte-h":!0}),D(p)!=="svelte-nmt6fv"&&(p.innerHTML=M),T=r(e),f=d(e,"P",{}),E(f).forEach(n),this.h()},h(){H(o,"name","hf:doc:metadata"),H(o,"content",O),H(s,"class","flex justify-center")},m(e,t){K(document.head,o),a(e,k,t),a(e,h,t),a(e,w,t),U(l,e,t),a(e,_,t),a(e,c,t),a(e,v,t),a(e,s,t),a(e,$,t),U(u,e,t),a(e,y,t),a(e,m,t),a(e,x,t),a(e,p,t),a(e,T,t),a(e,f,t),C=!0},p:G,i(e){C||(j(l.$$.fragment,e),j(u.$$.fragment,e),C=!0)},o(e){q(l.$$.fragment,e),q(u.$$.fragment,e),C=!1},d(e){e&&(n(k),n(h),n(w),n(_),n(c),n(v),n(s),n($),n(y),n(m),n(x),n(p),n(T),n(f)),n(o),z(l,e),z(u,e)}}}const O='{"title":"Run with Docker","local":"run-with-docker","sections":[{"title":"Login to the Docker registry","local":"login-to-the-docker-registry","sections":[],"depth":2}],"depth":1}';function Q(L){return I(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class ee extends V{constructor(o){super(),B(this,o,Q,N,Y,{})}}export{ee as component};
