Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -29,8 +29,8 @@ def paint(frame: np.ndarray) -> np.ndarray:
|
|
29 |
|
30 |
demo = gr.Interface(
|
31 |
fn=paint,
|
32 |
-
inputs=gr.
|
33 |
-
outputs=gr.
|
34 |
live=True,
|
35 |
title="🖌️ Virtual Painter",
|
36 |
description="Move your index finger in front of the camera to draw!"
|
|
|
29 |
|
30 |
demo = gr.Interface(
|
31 |
fn=paint,
|
32 |
+
inputs=gr.Camera(type="numpy", streaming=True),
|
33 |
+
outputs=gr.Image(type="numpy"),
|
34 |
live=True,
|
35 |
title="🖌️ Virtual Painter",
|
36 |
description="Move your index finger in front of the camera to draw!"
|