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