Update app.py
Browse files
app.py
CHANGED
@@ -122,15 +122,15 @@ def main():
|
|
122 |
#img = cv2.imread("scholarly_text.jpg")
|
123 |
text = message
|
124 |
# Summarization
|
125 |
-
if st.checkbox("
|
126 |
-
st.
|
127 |
#message = st.text_area("Enter the Text","Type please ..")
|
128 |
st.text("Using Gensim Summarizer ..")
|
129 |
#st.success(mess)
|
130 |
summary_result = summarize(text)
|
131 |
st.success(summary_result)
|
132 |
-
elif st.checkbox("Show Text Summarization
|
133 |
-
st.
|
134 |
tokenizer = AutoTokenizer.from_pretrained('t5-base')
|
135 |
model = AutoModelWithLMHead.from_pretrained('t5-base', return_dict=True)
|
136 |
st.text("Using Google T5 Transformer ..")
|
|
|
122 |
#img = cv2.imread("scholarly_text.jpg")
|
123 |
text = message
|
124 |
# Summarization
|
125 |
+
if st.checkbox("Mark here, Text Summarization for English and Bangla!"):
|
126 |
+
st.title("Summarize Your Text for English and Bangla Texts!")
|
127 |
#message = st.text_area("Enter the Text","Type please ..")
|
128 |
st.text("Using Gensim Summarizer ..")
|
129 |
#st.success(mess)
|
130 |
summary_result = summarize(text)
|
131 |
st.success(summary_result)
|
132 |
+
elif st.checkbox("Show Text Summarization for better English only!"):
|
133 |
+
st.title("Summarize Your Text for English only!")
|
134 |
tokenizer = AutoTokenizer.from_pretrained('t5-base')
|
135 |
model = AutoModelWithLMHead.from_pretrained('t5-base', return_dict=True)
|
136 |
st.text("Using Google T5 Transformer ..")
|