Soumen commited on
Commit
5b2927c
1 Parent(s): c42698d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
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("Show Text Summarization Genism for English and Bangla!"):
126
- st.subheader("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 T5 for English only!"):
133
- st.subheader("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 ..")
 
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 ..")