Spaces:
Runtime error
Runtime error
Commit
·
0fab17f
1
Parent(s):
94b29b4
Update app.py
Browse files
app.py
CHANGED
@@ -12,7 +12,8 @@ uploaded_file = st.file_uploader("Upload Files",type=['png','jpeg'])
|
|
12 |
if uploaded_file is not None:
|
13 |
file_details = {"FileName":uploaded_file.name,"FileType":uploaded_file.type,"FileSize":uploaded_file.size}
|
14 |
st.write(file_details)
|
15 |
-
|
|
|
16 |
reader = easyocr.Reader(['en'])
|
17 |
bound = reader.readtext(img)
|
18 |
st.write(str(bound))
|
|
|
12 |
if uploaded_file is not None:
|
13 |
file_details = {"FileName":uploaded_file.name,"FileType":uploaded_file.type,"FileSize":uploaded_file.size}
|
14 |
st.write(file_details)
|
15 |
+
img = load_image(uploaded_file)
|
16 |
+
st.image(img,width=250)
|
17 |
reader = easyocr.Reader(['en'])
|
18 |
bound = reader.readtext(img)
|
19 |
st.write(str(bound))
|