luisotorres
commited on
Commit
•
5e2190f
1
Parent(s):
126e812
Update app.py
Browse files
app.py
CHANGED
@@ -17,6 +17,8 @@ if st.button("Summarize"):
|
|
17 |
# If the input box isn't empty, process the input and generate a summary
|
18 |
if input_text:
|
19 |
summary = summarizer(input_text, max_length=1024, min_length=0, do_sample=False)
|
|
|
|
|
20 |
st.subheader("Summary")
|
21 |
st.write(summary[0]["summary_text"])
|
22 |
else:
|
|
|
17 |
# If the input box isn't empty, process the input and generate a summary
|
18 |
if input_text:
|
19 |
summary = summarizer(input_text, max_length=1024, min_length=0, do_sample=False)
|
20 |
+
st.subheader("Original Text")
|
21 |
+
st.write(input_text)
|
22 |
st.subheader("Summary")
|
23 |
st.write(summary[0]["summary_text"])
|
24 |
else:
|