Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -17,19 +17,15 @@
|
|
| 17 |
|
| 18 |
import gradio as gr
|
| 19 |
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
return [
|
| 23 |
-
|
| 24 |
-
# def detect_faces(image):
|
| 25 |
-
# # # Loading in yolov5s - you can switch to larger models such as yolov5m or yolov5l, or smaller such as yolov5n
|
| 26 |
-
# results = model(image)
|
| 27 |
-
# return results.render()[0]
|
| 28 |
|
| 29 |
demo = gr.Interface(
|
| 30 |
snap,
|
| 31 |
-
gr.Image(source="webcam", tool=None),
|
| 32 |
-
"image",
|
| 33 |
)
|
| 34 |
|
| 35 |
if __name__ == "__main__":
|
|
|
|
| 17 |
|
| 18 |
import gradio as gr
|
| 19 |
|
| 20 |
+
|
| 21 |
+
def snap(image, video):
|
| 22 |
+
return [image, video]
|
| 23 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
| 24 |
|
| 25 |
demo = gr.Interface(
|
| 26 |
snap,
|
| 27 |
+
[gr.Image(source="webcam", tool=None), gr.Video(source="webcam")],
|
| 28 |
+
["image", "video"],
|
| 29 |
)
|
| 30 |
|
| 31 |
if __name__ == "__main__":
|