zamborg commited on
Commit
712349e
1 Parent(s): a4c3b59

getvalue -> getvalue:

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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.get_values()))
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")