Spaces:
Running
Running
File size: 615 Bytes
a710492 37ac053 a710492 f47a6db a710492 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
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)
|