Spaces:
Sleeping
Sleeping
Commit
·
b3de4b1
1
Parent(s):
45203dc
Update app.py
Browse files
app.py
CHANGED
@@ -1,11 +1,12 @@
|
|
|
|
1 |
import gradio as gr
|
2 |
import numpy as np
|
3 |
|
4 |
-
def
|
5 |
-
return
|
6 |
|
7 |
demo = gr.Interface(
|
8 |
-
|
9 |
gr.Image(sources=["webcam"], streaming=True),
|
10 |
"image",
|
11 |
live=True
|
|
|
1 |
+
# https://www.gradio.app/guides/reactive-interfaces
|
2 |
import gradio as gr
|
3 |
import numpy as np
|
4 |
|
5 |
+
def process_img(im):
|
6 |
+
return im
|
7 |
|
8 |
demo = gr.Interface(
|
9 |
+
process_img,
|
10 |
gr.Image(sources=["webcam"], streaming=True),
|
11 |
"image",
|
12 |
live=True
|