lampongyuen commited on
Commit
a81e21e
·
1 Parent(s): a81d640

Upload 3 files

Browse files
Files changed (3) hide show
  1. app.py +13 -0
  2. packages.txt +1 -0
  3. requirements.txt +2 -0
app.py ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+
3
+ def snap(image, video):
4
+ return [image, video]
5
+
6
+ demo = gr.Interface(
7
+ snap,
8
+ [gr.Image(sources=["webcam"]), gr.Video(sources=["webcam"])],
9
+ ["image", "video"],
10
+ )
11
+
12
+ if __name__ == "__main__":
13
+ demo.launch()
packages.txt ADDED
@@ -0,0 +1 @@
 
 
1
+ python3-opencv
requirements.txt ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ opencv-python
2
+ jinja2