Soumen commited on
Commit
6d5b302
1 Parent(s): 82d1709

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -96,7 +96,7 @@ def main():
96
  tet = read_pdf_with_pdfplumber(uploaded_photo)
97
  #tet = pytesseract.image_to_string(img, lang="ben") if st.checkbox("Mark to see Bangla Image's Text") else pytesseract.image_to_string(img)
98
  values = st.slider('Select a approximate number of lines to see and summarize',value=[0, len(tet)//(7*100)])
99
- #text = tet[values[0]*7*10:values[1]*7*10] if values[0]!=len(tet)//(7*10) else tet[len(tet)//(7*10):]
100
  #st.success(text)
101
  elif uploaded_photo:
102
  img = Image.open(uploaded_photo)
 
96
  tet = read_pdf_with_pdfplumber(uploaded_photo)
97
  #tet = pytesseract.image_to_string(img, lang="ben") if st.checkbox("Mark to see Bangla Image's Text") else pytesseract.image_to_string(img)
98
  values = st.slider('Select a approximate number of lines to see and summarize',value=[0, len(tet)//(7*100)])
99
+ text = tet[values[0]*7*10:values[1]*7*10] if values[0]!=len(tet)//(7*10) else tet[len(tet)//(7*100):]
100
  #st.success(text)
101
  elif uploaded_photo:
102
  img = Image.open(uploaded_photo)