mjohanes commited on
Commit
08a6710
·
1 Parent(s): 52e1198
Files changed (1) hide show
  1. app.py +3 -0
app.py CHANGED
@@ -93,6 +93,9 @@ canvas = st.empty()
93
  # picture = Image.new(mode="RGB", size=(512, 512), color=(153, 153, 255))
94
  # Capture image from camera and process it
95
 
 
 
 
96
 
97
  if "img" not in st.session_state:
98
  picture = st.camera_input("Take a picture")
 
93
  # picture = Image.new(mode="RGB", size=(512, 512), color=(153, 153, 255))
94
  # Capture image from camera and process it
95
 
96
+ enable = st.checkbox("Enable camera")
97
+ picture = st.camera_input("Take a picture", disabled=not enable)
98
+
99
 
100
  if "img" not in st.session_state:
101
  picture = st.camera_input("Take a picture")