awacke1 commited on
Commit
57b928a
·
verified ·
1 Parent(s): 5cb1e06

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -4
app.py CHANGED
@@ -31,9 +31,10 @@ def main():
31
 
32
  if 'last_captured' not in st.session_state:
33
  st.session_state['last_captured'] = time.time()
 
 
34
 
35
  while True:
36
- image = camera_input_live()
37
 
38
  if image is not None:
39
  st.image(image)
@@ -51,9 +52,6 @@ def main():
51
  st.sidebar.markdown("## Captured Images")
52
  st.sidebar.markdown(sidebar_html, unsafe_allow_html=True)
53
 
54
- # QR Code Detection (remains unchanged)
55
- # ...
56
-
57
  time.sleep(0.1) # Add a short delay to reduce CPU usage
58
 
59
  if __name__ == "__main__":
 
31
 
32
  if 'last_captured' not in st.session_state:
33
  st.session_state['last_captured'] = time.time()
34
+
35
+ image = camera_input_live()
36
 
37
  while True:
 
38
 
39
  if image is not None:
40
  st.image(image)
 
52
  st.sidebar.markdown("## Captured Images")
53
  st.sidebar.markdown(sidebar_html, unsafe_allow_html=True)
54
 
 
 
 
55
  time.sleep(0.1) # Add a short delay to reduce CPU usage
56
 
57
  if __name__ == "__main__":