Update app.py
Browse files
app.py
CHANGED
@@ -132,7 +132,7 @@ def main():
|
|
132 |
#image_result = open(uploaded_photo.name, 'wb') # creates a writable image and later we can write the decoded result
|
133 |
#image_result.write(file)
|
134 |
tet = read_pdf(uploaded_photo)
|
135 |
-
tet = pytesseract.image_to_string(img, lang="ben") if st.checkbox("Mark to see Bangla Image's Text") else pytesseract.image_to_string(img)
|
136 |
values = st.slider('Select a approximate number of words to summarize', 0, 1000, (100, 775))
|
137 |
text = tet[:values*5]
|
138 |
st.success(text)
|
|
|
132 |
#image_result = open(uploaded_photo.name, 'wb') # creates a writable image and later we can write the decoded result
|
133 |
#image_result.write(file)
|
134 |
tet = read_pdf(uploaded_photo)
|
135 |
+
#tet = pytesseract.image_to_string(img, lang="ben") if st.checkbox("Mark to see Bangla Image's Text") else pytesseract.image_to_string(img)
|
136 |
values = st.slider('Select a approximate number of words to summarize', 0, 1000, (100, 775))
|
137 |
text = tet[:values*5]
|
138 |
st.success(text)
|