Update app.py
Browse files
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 |
-
|
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)
|