Spaces:
Runtime error
Runtime error
getvalue -> getvalue:
Browse files
app.py
CHANGED
@@ -34,7 +34,7 @@ with st.sidebar.form("file-uploader-form", clear_on_submit=True):
|
|
34 |
uploaded_file = st.file_uploader("Choose a file")
|
35 |
submitted = st.form_submit_button("Submit")
|
36 |
if uploaded_file is not None and submitted:
|
37 |
-
uploaded_image = Image.open(io.BytesIO(uploaded_file.
|
38 |
|
39 |
if uploaded_image is None and submitted:
|
40 |
st.write("Please select a file to upload")
|
|
|
34 |
uploaded_file = st.file_uploader("Choose a file")
|
35 |
submitted = st.form_submit_button("Submit")
|
36 |
if uploaded_file is not None and submitted:
|
37 |
+
uploaded_image = Image.open(io.BytesIO(uploaded_file.getvalue()))
|
38 |
|
39 |
if uploaded_image is None and submitted:
|
40 |
st.write("Please select a file to upload")
|