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