uploaded_file.decode('utf-8'), I encounter:
AttributeError: 'UploadedFile' object has no attribute 'decode'
The documentation example seems to suggest that one can call decode on an UploadedFile (API reference — Streamlit 0.74.1 documentation). Is that still the case? Or should one wrap it in a TextIOWrapper as suggested by the deprecation note (Version 0.64.0 • Deprecation warning for st.file_uploader decoding)?