Soumen commited on
Commit
82d1709
1 Parent(s): 569e992

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -95,9 +95,9 @@ def main():
95
  #image_result.write(file)
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*10)])
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)
103
  img = img.save("img.png")
 
95
  #image_result.write(file)
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)
103
  img = img.save("img.png")