Spaces:
Runtime error
Runtime error
Kushwanth Chowday Kandala
commited on
Commit
•
abef2ac
1
Parent(s):
a1f90e6
summarizer max length increase to 1024
Browse files
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=
|
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)
|