Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -79,19 +79,9 @@ def attend():
|
|
79 |
|
80 |
@app.route('/at')
|
81 |
def run_face_recognition():
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
if img_file_buffer is not None:
|
86 |
-
test_image = Image.open(img_file_buffer)
|
87 |
-
gr.image(test_image, use_column_width=True)
|
88 |
-
gr.write(type(test_image))
|
89 |
-
image = np.asarray(test_image)
|
90 |
-
gray = cv2.cvtColor(image,cv2.COLOR_BGR2GRAY)
|
91 |
-
|
92 |
-
gr.image(cv2.cvtColor(gray))
|
93 |
-
if bytes_data is None:
|
94 |
-
gr.stop()
|
95 |
|
96 |
|
97 |
|
|
|
79 |
|
80 |
@app.route('/at')
|
81 |
def run_face_recognition():
|
82 |
+
demo=gr.Image(source="webcam",streaming=True),live=True)
|
83 |
+
demo.laumch()
|
84 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
85 |
|
86 |
|
87 |
|