Soumen commited on
Commit
ea8c799
·
1 Parent(s): 06b5ba0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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)