Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -20,17 +20,20 @@ bytes_data=None
|
|
20 |
|
21 |
app = Flask(__name__)
|
22 |
|
23 |
-
|
24 |
|
25 |
@app.route('/at')
|
26 |
def testme():
|
27 |
# return "i am in testme"
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
|
|
|
|
|
|
34 |
|
35 |
# def attend():
|
36 |
# # Face recognition variables
|
|
|
20 |
|
21 |
app = Flask(__name__)
|
22 |
|
23 |
+
flag = True
|
24 |
|
25 |
@app.route('/at')
|
26 |
def testme():
|
27 |
# return "i am in testme"
|
28 |
+
while flag :
|
29 |
+
|
30 |
+
img_file_buffer=st.camera_input("Take a picture")
|
31 |
+
if img_file_buffer is not None:
|
32 |
+
test_image = Image.open(img_file_buffer)
|
33 |
+
st.image(test_image, use_column_width=True)
|
34 |
+
if bytes_data is None:
|
35 |
+
flag = False
|
36 |
+
st.stop()
|
37 |
|
38 |
# def attend():
|
39 |
# # Face recognition variables
|