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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -20,19 +20,19 @@ bytes_data=None
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():
 
20
 
21
  app = Flask(__name__)
22
 
23
+ flag1 = True
24
 
25
  @app.route('/at')
26
  def testme():
27
  # return "i am in testme"
28
+ while flag1 is True:
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
+ flag1 = False
36
  st.stop()
37
 
38
  # def attend():