|
import streamlit as st |
|
from utilitis import Draw,Add_Results |
|
from PIL import Image |
|
|
|
st.title("Bienvenue à Textra Web App") |
|
st.markdown("### Drag and Drop votre facture ici:") |
|
st.write("(PNG, JPG, JPEG)") |
|
uploaded_file = st.file_uploader("Ou selectioner une image:", 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.image(image, caption="Uploaded Image", use_column_width=True) |
|
st.sidebar.title('Results') |
|
st.sidebar.table(Results) |
|
Add_Results(Results) |
|
|
|
|
|
|