import{s as I,n as O,o as V}from"../chunks/scheduler.d6170356.js";import{S as B,i as J,g as h,s as o,r as L,A as K,h as d,f as n,c as i,j as G,u as P,x as H,k as S,y as N,a as s,v as E,d as M,t as A,w as R}from"../chunks/index.fcd4cc08.js";import{H as Y,E as Q}from"../chunks/index.9f2da87a.js";function W(U){let a,k,f,w,l,_,c,j=`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,r,q='<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"/>',b,u,y,m,z="Some Spaces will require you to login to Hugging Face’s Docker registry. To do so, you’ll need to provide:",x,g,F='<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,p,C,$,D;return l=new Y({props:{title:"Run with Docker",local:"run-with-docker",headingTag:"h1"}}),u=new Y({props:{title:"Login to the Docker registry",local:"login-to-the-docker-registry",headingTag:"h2"}}),p=new Q({props:{source:"https://github.com/huggingface/hub-docs/blob/main/docs/hub/spaces-run-with-docker.md"}}),{c(){a=h("meta"),k=o(),f=h("p"),w=o(),L(l.$$.fragment),_=o(),c=h("p"),c.textContent=j,v=o(),r=h("div"),r.innerHTML=q,b=o(),L(u.$$.fragment),y=o(),m=h("p"),m.textContent=z,x=o(),g=h("ul"),g.innerHTML=F,T=o(),L(p.$$.fragment),C=o(),$=h("p"),this.h()},l(e){const t=K("svelte-u9bgzb",document.head);a=d(t,"META",{name:!0,content:!0}),t.forEach(n),k=i(e),f=d(e,"P",{}),G(f).forEach(n),w=i(e),P(l.$$.fragment,e),_=i(e),c=d(e,"P",{"data-svelte-h":!0}),H(c)!=="svelte-19ginw8"&&(c.textContent=j),v=i(e),r=d(e,"DIV",{class:!0,"data-svelte-h":!0}),H(r)!=="svelte-s664rz"&&(r.innerHTML=q),b=i(e),P(u.$$.fragment,e),y=i(e),m=d(e,"P",{"data-svelte-h":!0}),H(m)!=="svelte-1otk72h"&&(m.textContent=z),x=i(e),g=d(e,"UL",{"data-svelte-h":!0}),H(g)!=="svelte-nmt6fv"&&(g.innerHTML=F),T=i(e),P(p.$$.fragment,e),C=i(e),$=d(e,"P",{}),G($).forEach(n),this.h()},h(){S(a,"name","hf:doc:metadata"),S(a,"content",X),S(r,"class","flex justify-center")},m(e,t){N(document.head,a),s(e,k,t),s(e,f,t),s(e,w,t),E(l,e,t),s(e,_,t),s(e,c,t),s(e,v,t),s(e,r,t),s(e,b,t),E(u,e,t),s(e,y,t),s(e,m,t),s(e,x,t),s(e,g,t),s(e,T,t),E(p,e,t),s(e,C,t),s(e,$,t),D=!0},p:O,i(e){D||(M(l.$$.fragment,e),M(u.$$.fragment,e),M(p.$$.fragment,e),D=!0)},o(e){A(l.$$.fragment,e),A(u.$$.fragment,e),A(p.$$.fragment,e),D=!1},d(e){e&&(n(k),n(f),n(w),n(_),n(c),n(v),n(r),n(b),n(y),n(m),n(x),n(g),n(T),n(C),n($)),n(a),R(l,e),R(u,e),R(p,e)}}}const X='{"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 Z(U){return V(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class se extends B{constructor(a){super(),J(this,a,Z,W,I,{})}}export{se as component};
