import{s as G,n as M,o as j}from"../chunks/scheduler.d6170356.js";import{S as z,i as C,g as f,s as p,r as T,A as F,h as m,f as t,c as r,j as D,u as P,x as S,k as E,y as O,a as s,v as A,d as H,t as L,w as q}from"../chunks/index.fcd4cc08.js";import{H as I,E as J}from"../chunks/getInferenceSnippets.0f6acb26.js";function U(y){let o,u,g,d,l,_,n,$='We gathered some example demos in the <a href="https://huggingface.co/SpacesExamples" rel="nofollow">Spaces Examples</a> organization. Please check them out!',k,i,v='<li>Dummy FastAPI app: <a href="https://huggingface.co/spaces/DockerTemplates/fastapi_dummy" rel="nofollow">https://huggingface.co/spaces/DockerTemplates/fastapi_dummy</a></li> <li>FastAPI app serving a static site and using <code>transformers</code>: <a href="https://huggingface.co/spaces/DockerTemplates/fastapi_t5" rel="nofollow">https://huggingface.co/spaces/DockerTemplates/fastapi_t5</a></li> <li>Phoenix app for <a href="https://huggingface.co/spaces/DockerTemplates/single_file_phx_bumblebee_ml" rel="nofollow">https://huggingface.co/spaces/DockerTemplates/single_file_phx_bumblebee_ml</a></li> <li>HTTP endpoint in Go with query parameters <a href="https://huggingface.co/spaces/XciD/test-docker-go?q=Adrien" rel="nofollow">https://huggingface.co/spaces/XciD/test-docker-go?q=Adrien</a></li> <li>Shiny app written in Python <a href="https://huggingface.co/spaces/elonmuskceo/shiny-orbit-simulation" rel="nofollow">https://huggingface.co/spaces/elonmuskceo/shiny-orbit-simulation</a></li> <li>Genie.jl app in Julia <a href="https://huggingface.co/spaces/nooji/GenieOnHuggingFaceSpaces" rel="nofollow">https://huggingface.co/spaces/nooji/GenieOnHuggingFaceSpaces</a></li> <li>Argilla app for data labelling and curation: <a href="https://huggingface.co/spaces/argilla/live-demo" rel="nofollow">https://huggingface.co/spaces/argilla/live-demo</a> and <a href="./spaces-sdks-docker-argilla">write-up about hosting Argilla on Spaces</a> by <a href="https://huggingface.co/dvilasuero" rel="nofollow">@dvilasuero</a> 🎉</li> <li>JupyterLab and VSCode: <a href="https://huggingface.co/spaces/DockerTemplates/docker-examples" rel="nofollow">https://huggingface.co/spaces/DockerTemplates/docker-examples</a> by <a href="https://twitter.com/camenduru" rel="nofollow">@camenduru</a> and <a href="https://hf.co/nateraw" rel="nofollow">@nateraw</a>.</li> <li>Zeno app for interactive model evaluation: <a href="https://huggingface.co/spaces/zeno-ml/diffusiondb" rel="nofollow">https://huggingface.co/spaces/zeno-ml/diffusiondb</a> and <a href="https://zenoml.com/docs/deployment#hugging-face-spaces" rel="nofollow">instructions for setup</a></li> <li>Gradio App: <a href="https://huggingface.co/spaces/sayakpaul/demo-docker-gradio" rel="nofollow">https://huggingface.co/spaces/sayakpaul/demo-docker-gradio</a></li>',w,c,b,h,x;return l=new I({props:{title:"Docker Spaces Examples",local:"docker-spaces-examples",headingTag:"h1"}}),c=new J({props:{source:"https://github.com/huggingface/hub-docs/blob/main/docs/hub/spaces-sdks-docker-examples.md"}}),{c(){o=f("meta"),u=p(),g=f("p"),d=p(),T(l.$$.fragment),_=p(),n=f("p"),n.innerHTML=$,k=p(),i=f("ul"),i.innerHTML=v,w=p(),T(c.$$.fragment),b=p(),h=f("p"),this.h()},l(e){const a=F("svelte-u9bgzb",document.head);o=m(a,"META",{name:!0,content:!0}),a.forEach(t),u=r(e),g=m(e,"P",{}),D(g).forEach(t),d=r(e),P(l.$$.fragment,e),_=r(e),n=m(e,"P",{"data-svelte-h":!0}),S(n)!=="svelte-j1vqhl"&&(n.innerHTML=$),k=r(e),i=m(e,"UL",{"data-svelte-h":!0}),S(i)!=="svelte-1rkcsrq"&&(i.innerHTML=v),w=r(e),P(c.$$.fragment,e),b=r(e),h=m(e,"P",{}),D(h).forEach(t),this.h()},h(){E(o,"name","hf:doc:metadata"),E(o,"content",X)},m(e,a){O(document.head,o),s(e,u,a),s(e,g,a),s(e,d,a),A(l,e,a),s(e,_,a),s(e,n,a),s(e,k,a),s(e,i,a),s(e,w,a),A(c,e,a),s(e,b,a),s(e,h,a),x=!0},p:M,i(e){x||(H(l.$$.fragment,e),H(c.$$.fragment,e),x=!0)},o(e){L(l.$$.fragment,e),L(c.$$.fragment,e),x=!1},d(e){e&&(t(u),t(g),t(d),t(_),t(n),t(k),t(i),t(w),t(b),t(h)),t(o),q(l,e),q(c,e)}}}const X='{"title":"Docker Spaces Examples","local":"docker-spaces-examples","sections":[],"depth":1}';function R(y){return j(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class B extends z{constructor(o){super(),C(this,o,R,U,G,{})}}export{B as component};
