Spaces:
Running
Running
greencatted
commited on
Commit
•
aa652b2
1
Parent(s):
6d601f6
Camera input
Browse files
app.py
CHANGED
@@ -1,4 +1,7 @@
|
|
1 |
import streamlit as st
|
2 |
|
3 |
-
|
4 |
-
st.
|
|
|
|
|
|
|
|
1 |
import streamlit as st
|
2 |
|
3 |
+
enable = st.checkbox("Enable camera")
|
4 |
+
picture = st.camera_input("Take a picture", disabled=not enable)
|
5 |
+
|
6 |
+
if picture:
|
7 |
+
st.image(picture)
|