Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -156,7 +156,7 @@ with st.form("api_form"):
|
|
| 156 |
uploaded_file = st.file_uploader("Choose a file")
|
| 157 |
if uploaded_file is not None:
|
| 158 |
# To read file as bytes:
|
| 159 |
-
|
| 160 |
#st.write(bytes_data)
|
| 161 |
st.image(uploaded_file)
|
| 162 |
|
|
|
|
| 156 |
uploaded_file = st.file_uploader("Choose a file")
|
| 157 |
if uploaded_file is not None:
|
| 158 |
# To read file as bytes:
|
| 159 |
+
bytes_data = uploaded_file.getvalue()
|
| 160 |
#st.write(bytes_data)
|
| 161 |
st.image(uploaded_file)
|
| 162 |
|