push app
Browse files
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")
|