Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -79,18 +79,15 @@ def attend():
|
|
79 |
|
80 |
@app.route('/at')
|
81 |
def hi():
|
82 |
-
def
|
83 |
-
|
84 |
-
print(np.shape(img))
|
85 |
-
return img
|
86 |
demo = gr.Interface(
|
87 |
-
|
88 |
#gr.Image(source="webcam", streaming=True, flip=True),
|
89 |
-
gr.Image(source="webcam", streaming=True),
|
90 |
-
"image"
|
91 |
-
live=True
|
92 |
)
|
93 |
-
|
94 |
demo.launch()
|
95 |
|
96 |
|
|
|
79 |
|
80 |
@app.route('/at')
|
81 |
def hi():
|
82 |
+
def snap(image):
|
83 |
+
return image
|
|
|
|
|
84 |
demo = gr.Interface(
|
85 |
+
snap,
|
86 |
#gr.Image(source="webcam", streaming=True, flip=True),
|
87 |
+
[gr.Image(source="webcam", streaming=True,tool=None),
|
88 |
+
["image"]
|
|
|
89 |
)
|
90 |
+
if __name__ == "__main__":
|
91 |
demo.launch()
|
92 |
|
93 |
|