Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -1,6 +1,10 @@
|
|
1 |
import streamlit as st
|
2 |
|
3 |
-
|
4 |
|
5 |
-
if
|
6 |
-
|
|
|
|
|
|
|
|
|
|
1 |
import streamlit as st
|
2 |
|
3 |
+
img_file_buffer = st.camera_input("Take a picture")
|
4 |
|
5 |
+
if img_file_buffer is not None:
|
6 |
+
# To read image file buffer as bytes:
|
7 |
+
bytes_data = img_file_buffer.getvalue()
|
8 |
+
# Check the type of bytes_data:
|
9 |
+
# Should output: <class 'bytes'>
|
10 |
+
st.write(type(bytes_data))
|