richardorama
commited on
Commit
•
2c0ab44
1
Parent(s):
b4e2d85
Update app.py
Browse files
app.py
CHANGED
@@ -21,7 +21,7 @@ ARTICLE = st.sidebar.text_area('Enter Article', DEFAULT_ARTICLE, height=150)
|
|
21 |
|
22 |
# Define the summarization function
|
23 |
def summarize(txt):
|
24 |
-
st
|
25 |
st.write(txt[:100]) # Display the first 100 characters of the article
|
26 |
st.write('--------------------------------------------------------------')
|
27 |
summary = summarizer(txt, max_length=130, min_length=30, do_sample=False)
|
|
|
21 |
|
22 |
# Define the summarization function
|
23 |
def summarize(txt):
|
24 |
+
st.write('\n\n')
|
25 |
st.write(txt[:100]) # Display the first 100 characters of the article
|
26 |
st.write('--------------------------------------------------------------')
|
27 |
summary = summarizer(txt, max_length=130, min_length=30, do_sample=False)
|