Kushwanth Chowday Kandala commited on
Commit
abef2ac
1 Parent(s): a1f90e6

summarizer max length increase to 1024

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -94,7 +94,7 @@ def promt_engineer(text):
94
  prompt = prompt_template.format(text=text)
95
 
96
  # Generate the summary
97
- summary = summarizer(prompt, max_length=100, min_length=50)[0]["summary_text"]
98
 
99
  with st.sidebar:
100
  st.write(summary)
 
94
  prompt = prompt_template.format(text=text)
95
 
96
  # Generate the summary
97
+ summary = summarizer(prompt, max_length=1024, min_length=50)[0]["summary_text"]
98
 
99
  with st.sidebar:
100
  st.write(summary)