import{s as V,n as q,o as A}from"../chunks/scheduler.d6170356.js";import{S as I,i as z,g as d,s as r,r as H,A as D,h as u,f as n,c as m,j as M,u as L,x as w,k as O,y as R,a,v as j,d as k,t as G,w as U}from"../chunks/index.fcd4cc08.js";import{H as B,E as F}from"../chunks/getInferenceSnippets.0f6acb26.js";function J(C){let s,g,f,_,o,$,i,S="In order to use OpenCV in your Gradio or Streamlit Spaces, you’ll need to make the Space install both the Python and Debian dependencies",v,l,T="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.",x,p,E='To see an example, <a href="https://huggingface.co/spaces/templates/gradio_opencv/tree/main" rel="nofollow">see this Gradio project</a>.',b,c,y,h,P;return o=new B({props:{title:"Using OpenCV in Spaces",local:"using-opencv-in-spaces",headingTag:"h1"}}),c=new F({props:{source:"https://github.com/huggingface/hub-docs/blob/main/docs/hub/spaces-using-opencv.md"}}),{c(){s=d("meta"),g=r(),f=d("p"),_=r(),H(o.$$.fragment),$=r(),i=d("p"),i.textContent=S,v=r(),l=d("p"),l.innerHTML=T,x=r(),p=d("p"),p.innerHTML=E,b=r(),H(c.$$.fragment),y=r(),h=d("p"),this.h()},l(e){const t=D("svelte-u9bgzb",document.head);s=u(t,"META",{name:!0,content:!0}),t.forEach(n),g=m(e),f=u(e,"P",{}),M(f).forEach(n),_=m(e),L(o.$$.fragment,e),$=m(e),i=u(e,"P",{"data-svelte-h":!0}),w(i)!=="svelte-7nv7w1"&&(i.textContent=S),v=m(e),l=u(e,"P",{"data-svelte-h":!0}),w(l)!=="svelte-1p0gao4"&&(l.innerHTML=T),x=m(e),p=u(e,"P",{"data-svelte-h":!0}),w(p)!=="svelte-g8s62j"&&(p.innerHTML=E),b=m(e),L(c.$$.fragment,e),y=m(e),h=u(e,"P",{}),M(h).forEach(n),this.h()},h(){O(s,"name","hf:doc:metadata"),O(s,"content",K)},m(e,t){R(document.head,s),a(e,g,t),a(e,f,t),a(e,_,t),j(o,e,t),a(e,$,t),a(e,i,t),a(e,v,t),a(e,l,t),a(e,x,t),a(e,p,t),a(e,b,t),j(c,e,t),a(e,y,t),a(e,h,t),P=!0},p:q,i(e){P||(k(o.$$.fragment,e),k(c.$$.fragment,e),P=!0)},o(e){G(o.$$.fragment,e),G(c.$$.fragment,e),P=!1},d(e){e&&(n(g),n(f),n(_),n($),n(i),n(v),n(l),n(x),n(p),n(b),n(y),n(h)),n(s),U(o,e),U(c,e)}}}const K='{"title":"Using OpenCV in Spaces","local":"using-opencv-in-spaces","sections":[],"depth":1}';function N(C){return A(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class Y extends I{constructor(s){super(),z(this,s,N,J,V,{})}}export{Y as component};
