Update app.py
Browse files
app.py
CHANGED
@@ -122,7 +122,7 @@ def main():
|
|
122 |
if st.session_state["photo"]=="done" or message:
|
123 |
#text=""
|
124 |
if uploaded_photo.type=='application/pdf':
|
125 |
-
text =
|
126 |
#text = pytesseract.image_to_string(img, lang="ben") if st.checkbox("Mark to see Bangla Image's Text") else pytesseract.image_to_string(img)
|
127 |
st.success(text)
|
128 |
elif uploaded_photo.type != "application/image":
|
|
|
122 |
if st.session_state["photo"]=="done" or message:
|
123 |
#text=""
|
124 |
if uploaded_photo.type=='application/pdf':
|
125 |
+
text = read_pdf(uploaded_photo)
|
126 |
#text = pytesseract.image_to_string(img, lang="ben") if st.checkbox("Mark to see Bangla Image's Text") else pytesseract.image_to_string(img)
|
127 |
st.success(text)
|
128 |
elif uploaded_photo.type != "application/image":
|