Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -14,7 +14,7 @@ pylab.rcParams['figure.figsize'] = (10.0, 8.0) # this controls figure size in th
|
|
14 |
|
15 |
import io
|
16 |
import streamlit as st
|
17 |
-
|
18 |
|
19 |
##################################################3
|
20 |
|
@@ -23,6 +23,14 @@ app = Flask(__name__)
|
|
23 |
|
24 |
|
25 |
@app.route('/at')
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
26 |
def attend():
|
27 |
# Face recognition variables
|
28 |
known_faces_names = ["Sarwan Sir", "Vikas","Lalit","Jasmeen","Anita Ma'am"]
|
|
|
14 |
|
15 |
import io
|
16 |
import streamlit as st
|
17 |
+
bytes_data=None
|
18 |
|
19 |
##################################################3
|
20 |
|
|
|
23 |
|
24 |
|
25 |
@app.route('/at')
|
26 |
+
def testme():
|
27 |
+
img_file_buffer=st.camera_input("Take a picture")
|
28 |
+
if img_file_buffer is not None:
|
29 |
+
test_image = Image.open(img_file_buffer)
|
30 |
+
st.image(test_image, use_column_width=True)
|
31 |
+
if bytes_data is None:
|
32 |
+
st.stop()
|
33 |
+
|
34 |
def attend():
|
35 |
# Face recognition variables
|
36 |
known_faces_names = ["Sarwan Sir", "Vikas","Lalit","Jasmeen","Anita Ma'am"]
|