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