import{s as z,n as I,o as A}from"../chunks/scheduler.9cda857a.js";import{S as D,i as R,e as u,s as o,c as T,h as B,a as d,d as n,b as i,f as V,g as M,j as S,k as q,l as F,m as a,n as L,t as E,o as H,p as O}from"../chunks/index.003612b0.js";import{C as J}from"../chunks/CopyLLMTxtMenu.44d08a39.js";import{H as K,E as N}from"../chunks/MermaidChart.svelte_svelte_type_style_lang.e5cfda8c.js";function Q(j){let s,g,h,_,l,x,p,v,m,k="In order to use OpenCV in your Gradio or Python Spaces, you’ll need to make the Space install both the Python and Debian dependencies",y,r,G="This means adding <code>python3-opencv</code> to the <code>packages.txt</code> file, and adding <code>opencv-python</code> to the <code>requirements.txt</code> file. If those files don’t exist, you’ll need to create them.",b,c,U='To see an example, <a href="https://huggingface.co/spaces/templates/gradio_opencv/tree/main" rel="nofollow">see this Gradio project</a>.',C,f,P,$,w;return l=new J({props:{containerStyle:"float: right; margin-left: 10px; display: inline-flex; position: relative; z-index: 10;"}}),p=new K({props:{title:"Using OpenCV in Spaces",local:"using-opencv-in-spaces",headingTag:"h1"}}),f=new N({props:{source:"https://github.com/huggingface/hub-docs/blob/main/docs/hub/spaces-using-opencv.md"}}),{c(){s=u("meta"),g=o(),h=u("p"),_=o(),T(l.$$.fragment),x=o(),T(p.$$.fragment),v=o(),m=u("p"),m.textContent=k,y=o(),r=u("p"),r.innerHTML=G,b=o(),c=u("p"),c.innerHTML=U,C=o(),T(f.$$.fragment),P=o(),$=u("p"),this.h()},l(e){const t=B("svelte-u9bgzb",document.head);s=d(t,"META",{name:!0,content:!0}),t.forEach(n),g=i(e),h=d(e,"P",{}),V(h).forEach(n),_=i(e),M(l.$$.fragment,e),x=i(e),M(p.$$.fragment,e),v=i(e),m=d(e,"P",{"data-svelte-h":!0}),S(m)!=="svelte-ltwiua"&&(m.textContent=k),y=i(e),r=d(e,"P",{"data-svelte-h":!0}),S(r)!=="svelte-1p0gao4"&&(r.innerHTML=G),b=i(e),c=d(e,"P",{"data-svelte-h":!0}),S(c)!=="svelte-g8s62j"&&(c.innerHTML=U),C=i(e),M(f.$$.fragment,e),P=i(e),$=d(e,"P",{}),V($).forEach(n),this.h()},h(){q(s,"name","hf:doc:metadata"),q(s,"content",W)},m(e,t){F(document.head,s),a(e,g,t),a(e,h,t),a(e,_,t),L(l,e,t),a(e,x,t),L(p,e,t),a(e,v,t),a(e,m,t),a(e,y,t),a(e,r,t),a(e,b,t),a(e,c,t),a(e,C,t),L(f,e,t),a(e,P,t),a(e,$,t),w=!0},p:I,i(e){w||(E(l.$$.fragment,e),E(p.$$.fragment,e),E(f.$$.fragment,e),w=!0)},o(e){H(l.$$.fragment,e),H(p.$$.fragment,e),H(f.$$.fragment,e),w=!1},d(e){e&&(n(g),n(h),n(_),n(x),n(v),n(m),n(y),n(r),n(b),n(c),n(C),n(P),n($)),n(s),O(l,e),O(p,e),O(f,e)}}}const W='{"title":"Using OpenCV in Spaces","local":"using-opencv-in-spaces","sections":[],"depth":1}';function X(j){return A(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class ne extends D{constructor(s){super(),R(this,s,X,Q,z,{})}}export{ne as component};
