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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -123,17 +123,17 @@ def main():
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 ..")
137
  inputs = tokenizer.encode("summarize: " + text,
138
  return_tensors='pt',
139
  max_length=512,
 
123
  text = message
124
  # Summarization
125
  if st.checkbox("Mark here, Text Summarization 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("Mark here, Better Text Summarization for 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 ..")
137
  inputs = tokenizer.encode("summarize: " + text,
138
  return_tensors='pt',
139
  max_length=512,