Commit
·
c3581fb
1
Parent(s):
a81e21e
Update app.py
Browse files
app.py
CHANGED
@@ -1,12 +1,12 @@
|
|
1 |
import gradio as gr
|
2 |
|
3 |
-
def snap(
|
4 |
-
return [
|
5 |
|
6 |
demo = gr.Interface(
|
7 |
snap,
|
8 |
-
[gr.
|
9 |
-
["
|
10 |
)
|
11 |
|
12 |
if __name__ == "__main__":
|
|
|
1 |
import gradio as gr
|
2 |
|
3 |
+
def snap(video):
|
4 |
+
return [video]
|
5 |
|
6 |
demo = gr.Interface(
|
7 |
snap,
|
8 |
+
[gr.Video(sources=["webcam"])],
|
9 |
+
["video"],
|
10 |
)
|
11 |
|
12 |
if __name__ == "__main__":
|