Soumen commited on
Commit
16e754f
·
1 Parent(s): f0ec4df

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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 = read_pdf(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":
 
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":