update order
Browse files
app.py
CHANGED
@@ -16,9 +16,9 @@ if __name__ == "__main__":
|
|
16 |
# init model
|
17 |
model = Summarizer()
|
18 |
summarize = st.button("Summarize")
|
19 |
-
with st.expander("See the input text"):
|
20 |
-
st.write(inp_text)
|
21 |
if summarize:
|
|
|
|
|
22 |
st.subheader("Summarized text")
|
23 |
summarized_text = model(inp_text, num_sentences=5)
|
24 |
st.info(summarized_text)
|
|
|
16 |
# init model
|
17 |
model = Summarizer()
|
18 |
summarize = st.button("Summarize")
|
|
|
|
|
19 |
if summarize:
|
20 |
+
with st.expander("View input text"):
|
21 |
+
st.write(inp_text)
|
22 |
st.subheader("Summarized text")
|
23 |
summarized_text = model(inp_text, num_sentences=5)
|
24 |
st.info(summarized_text)
|