Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -84,14 +84,12 @@ def run_face_recognition():
|
|
84 |
if img_file_buffer is not None:
|
85 |
# To read image file buffer as bytes:
|
86 |
bytes_data = img_file_buffer.getvalue()
|
87 |
-
|
88 |
-
|
89 |
-
st.
|
90 |
-
|
91 |
# Call the function to run face recognition
|
92 |
|
93 |
-
return
|
94 |
-
# return redirect(url_for('show_table'))
|
95 |
|
96 |
@app.route('/table')
|
97 |
def show_table():
|
|
|
84 |
if img_file_buffer is not None:
|
85 |
# To read image file buffer as bytes:
|
86 |
bytes_data = img_file_buffer.getvalue()
|
87 |
+
cv2_img = cv2.imdecode(np.frombuffer(bytes_data, np.uint8), cv2.IMREAD_COLOR)
|
88 |
+
st.write(type(cv2_img))
|
89 |
+
st.image(cv2_img)
|
|
|
90 |
# Call the function to run face recognition
|
91 |
|
92 |
+
return redirect(url_for('show_table'))
|
|
|
93 |
|
94 |
@app.route('/table')
|
95 |
def show_table():
|