ChandraP12330 commited on
Commit
8d1fd64
·
1 Parent(s): 9fa95b5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -5,7 +5,7 @@ st.title("TLDR-izer")
5
  article = st.text_area('Text to be summarized:', height=200)
6
 
7
  if st.button("Do the Magic!"):
8
- summarizer = pipeline("summarization")
9
  output= summarizer(article, min_length = 200 , max_length=250)
10
  st.write(output[0]['summary_text'])
11
 
 
5
  article = st.text_area('Text to be summarized:', height=200)
6
 
7
  if st.button("Do the Magic!"):
8
+ summarizer = pipeline("summarization", model="facebook/bart-large-cnn")
9
  output= summarizer(article, min_length = 200 , max_length=250)
10
  st.write(output[0]['summary_text'])
11