import streamlit as st from utilitis import Draw,Add_Results from PIL import Image st.title("Welcome to Textra WebApp") st.markdown("### Drag and Drop Images Here:") st.write("(PNG, JPG, JPEG)") uploaded_file = st.file_uploader("Or select a file:", type=["png", "jpg", "jpeg"], accept_multiple_files=False) if uploaded_file is not None: image = Image.open(uploaded_file) image = image.convert("RGB") image,Results = Draw(image) #st.write("Predicted Text:",type(image)) st.image(image, caption="Uploaded Image", use_column_width=True) st.sidebar.title('Results') Add_Results(Results)