Update app.py
Browse files
app.py
CHANGED
|
@@ -46,6 +46,7 @@ with tab1:
|
|
| 46 |
img = Image.open(BytesIO(response.content))
|
| 47 |
st.image(input_image) #display image
|
| 48 |
img.load()
|
|
|
|
| 49 |
|
| 50 |
with st.spinner("π OCR in process."):
|
| 51 |
result = reader.readtext(np.array(img))
|
|
@@ -67,6 +68,7 @@ with tab2:
|
|
| 67 |
if uploaded_file is not None:
|
| 68 |
img = Image.open(uploaded_file)
|
| 69 |
img.load()
|
|
|
|
| 70 |
|
| 71 |
with st.spinner("π OCR in process."):
|
| 72 |
result = reader.readtext(np.array(img))
|
|
|
|
| 46 |
img = Image.open(BytesIO(response.content))
|
| 47 |
st.image(input_image) #display image
|
| 48 |
img.load()
|
| 49 |
+
st.image(img) #display image
|
| 50 |
|
| 51 |
with st.spinner("π OCR in process."):
|
| 52 |
result = reader.readtext(np.array(img))
|
|
|
|
| 68 |
if uploaded_file is not None:
|
| 69 |
img = Image.open(uploaded_file)
|
| 70 |
img.load()
|
| 71 |
+
st.image(img) #display image
|
| 72 |
|
| 73 |
with st.spinner("π OCR in process."):
|
| 74 |
result = reader.readtext(np.array(img))
|