Spaces:
Runtime error
Runtime error
jvpr
commited on
Commit
·
5c0b534
1
Parent(s):
101ec6b
web cam test
Browse files- app.py +15 -0
- requirements.txt +1 -0
app.py
ADDED
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import gradio as gr
|
2 |
+
|
3 |
+
|
4 |
+
def snap(image, video):
|
5 |
+
return [image, video]
|
6 |
+
|
7 |
+
|
8 |
+
demo = gr.Interface(
|
9 |
+
snap,
|
10 |
+
[gr.Image(source="webcam", tool=None), gr.Video(source="webcam")],
|
11 |
+
["image", "video"],
|
12 |
+
)
|
13 |
+
|
14 |
+
if __name__ == "__main__":
|
15 |
+
demo.launch()
|
requirements.txt
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
gradio
|