Spaces:
Sleeping
Sleeping
Update app.py
Browse files89 unmodified lines9091929394959689 unmodified linesif run_webcam:camera = cv2.VideoCapture(0)st.session_state['run'] = Trueif 'run' in st.session_state and st.session_state['run']:while True:89 unmodified lines9091929394959697989989 unmodified linesif run_webcam:camera = cv2.VideoCapture(0)if not camera.isOpened():st.error("Could not open webcam. Please check if it is connected and try again.")else:st.session_state['run'] = Trueif 'run' in st.session_state and st.session_state['run']:while True:
app.py+4-1