Update app.py
Browse files
app.py
CHANGED
|
@@ -130,8 +130,8 @@ def main():
|
|
| 130 |
#image_result.write(file)
|
| 131 |
tet = read_pdf(uploaded_photo)
|
| 132 |
#tet = pytesseract.image_to_string(img, lang="ben") if st.checkbox("Mark to see Bangla Image's Text") else pytesseract.image_to_string(img)
|
| 133 |
-
values = st.slider('Select a approximate number of
|
| 134 |
-
text = tet[values[0]*
|
| 135 |
st.success(text)
|
| 136 |
|
| 137 |
elif uploaded_photo.type != "application/image":
|
|
|
|
| 130 |
#image_result.write(file)
|
| 131 |
tet = read_pdf(uploaded_photo)
|
| 132 |
#tet = pytesseract.image_to_string(img, lang="ben") if st.checkbox("Mark to see Bangla Image's Text") else pytesseract.image_to_string(img)
|
| 133 |
+
values = st.slider('Select a approximate number of lines to see and summarize',value=[0, len(tet)//(7*10)])
|
| 134 |
+
text = tet[values[0]*7*10:values[1]*7*10] if values[0]!=len(tet)//(7*10) else tet[len(tet)//(7*10):]
|
| 135 |
st.success(text)
|
| 136 |
|
| 137 |
elif uploaded_photo.type != "application/image":
|