Spaces:
Runtime error
Runtime error
add input text seeing func
Browse files
app.py
CHANGED
@@ -16,6 +16,8 @@ if __name__ == "__main__":
|
|
16 |
# init model
|
17 |
model = Summarizer()
|
18 |
summarize = st.button("Summarize")
|
|
|
|
|
19 |
if summarize:
|
20 |
st.subheader("Summarized text")
|
21 |
summarized_text = model(inp_text, num_sentences=5)
|
|
|
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)
|