Update app.py
Browse files
app.py
CHANGED
|
@@ -132,8 +132,8 @@ def main():
|
|
| 132 |
img = img.save("img.png")
|
| 133 |
img = cv2.imread("img.png")
|
| 134 |
st.text("Select the summarization type:")
|
| 135 |
-
c4, c5 = st.columns([2,2])
|
| 136 |
st.success(text)
|
|
|
|
| 137 |
if c4.button("BENGALI"):
|
| 138 |
text = pytesseract.image_to_string(img, lang="ben")
|
| 139 |
st.subheader("সারাংশ/সারমর্ম")
|
|
@@ -149,8 +149,8 @@ def main():
|
|
| 149 |
img = cv2.imread("img.png")
|
| 150 |
#text = pytesseract.image_to_string(img) if st.checkbox("Bangla") else pytesseract.image_to_string(img, lang="ben")
|
| 151 |
st.text("Select the summarization type:")
|
| 152 |
-
c6, c7 = st.columns([2,3])
|
| 153 |
st.image(camera_photo, caption='Uploaded Image', use_column_width=True)
|
|
|
|
| 154 |
if c6.button("Bangla"):
|
| 155 |
text = pytesseract.image_to_string(img, lang="ben")
|
| 156 |
st.subheader("সারাংশ/সারমর্ম")
|
|
@@ -162,7 +162,7 @@ def main():
|
|
| 162 |
else:
|
| 163 |
text=None
|
| 164 |
text = message
|
| 165 |
-
c8, c9 = st.columns([
|
| 166 |
if c8.button("Bangla"):
|
| 167 |
bansum(text)
|
| 168 |
if c9.button("English"):
|
|
|
|
| 132 |
img = img.save("img.png")
|
| 133 |
img = cv2.imread("img.png")
|
| 134 |
st.text("Select the summarization type:")
|
|
|
|
| 135 |
st.success(text)
|
| 136 |
+
c4, c5 = st.columns([1,4])
|
| 137 |
if c4.button("BENGALI"):
|
| 138 |
text = pytesseract.image_to_string(img, lang="ben")
|
| 139 |
st.subheader("সারাংশ/সারমর্ম")
|
|
|
|
| 149 |
img = cv2.imread("img.png")
|
| 150 |
#text = pytesseract.image_to_string(img) if st.checkbox("Bangla") else pytesseract.image_to_string(img, lang="ben")
|
| 151 |
st.text("Select the summarization type:")
|
|
|
|
| 152 |
st.image(camera_photo, caption='Uploaded Image', use_column_width=True)
|
| 153 |
+
c6, c7 = st.columns([1,4])
|
| 154 |
if c6.button("Bangla"):
|
| 155 |
text = pytesseract.image_to_string(img, lang="ben")
|
| 156 |
st.subheader("সারাংশ/সারমর্ম")
|
|
|
|
| 162 |
else:
|
| 163 |
text=None
|
| 164 |
text = message
|
| 165 |
+
c8, c9 = st.columns([1,4])
|
| 166 |
if c8.button("Bangla"):
|
| 167 |
bansum(text)
|
| 168 |
if c9.button("English"):
|