Soumen commited on
Commit
5167da5
·
1 Parent(s): fb120e2

Update app.py

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