import streamlit as st import pytesseract from io import StringIO from PIL import Image uploaded_file = st.file_uploader("Choose a file") if uploaded_file is not None: image = Image.open(uploaded_file) st.image(image, caption='Sunrise by the mountains') extractedInformation = pytesseract.image_to_string(image) st.write(extractedInformation)