hardik90 commited on
Commit
d82099c
·
verified ·
1 Parent(s): 953f6d8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -13,7 +13,7 @@ article = st.text_area("Enter the article:", "", height=300)
13
  if st.button("Generate Summary"):
14
  if article:
15
  # Generate summary using the summarizer pipeline
16
- summary_result = summarizer(article, max_length=130, min_length="30", do_sample=False)
17
 
18
  # Extract the summary text
19
  summary_text = summary_result[0]['summary_text']
 
13
  if st.button("Generate Summary"):
14
  if article:
15
  # Generate summary using the summarizer pipeline
16
+ summary_result = summarizer(article, max_length=130, min_length=30, do_sample=False)
17
 
18
  # Extract the summary text
19
  summary_text = summary_result[0]['summary_text']