abidlabs HF Staff commited on
Commit
5751d6d
·
verified ·
1 Parent(s): 9f01794

Upload folder using huggingface_hub

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