Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -39,7 +39,7 @@ if st.button("Generate Summary"):
|
|
| 39 |
|
| 40 |
if input_text:
|
| 41 |
# Generate the summary
|
| 42 |
-
summary = summarizer(input_text, do_sample=False)
|
| 43 |
|
| 44 |
# Display the summary
|
| 45 |
st.subheader("Generated Summary")
|
|
|
|
| 39 |
|
| 40 |
if input_text:
|
| 41 |
# Generate the summary
|
| 42 |
+
summary = summarizer(input_text, max_length=350, min_length=30, do_sample=False)
|
| 43 |
|
| 44 |
# Display the summary
|
| 45 |
st.subheader("Generated Summary")
|