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