Vikas01 commited on
Commit
290eb90
·
1 Parent(s): aac095e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -7
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
- img_file_buffer=st.camera_input("Take a picture")
29
- if img_file_buffer is not None:
30
- test_image = Image.open(img_file_buffer)
31
- st.image(test_image, use_column_width=True)
32
- if bytes_data is None:
33
- st.stop()
 
 
 
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