Spaces:
Runtime error
Runtime error
Download apps/summarizeApp.py from segestic/ArticlePara: direct link, hf CLI and curl.
- Browser
- Download file 374 Bytes
-
https://huggingface.co/spaces/segestic/ArticlePara/resolve/main/apps/summarizeApp.py
- Command line
-
hf download hf://spaces/segestic/ArticlePara/apps/summarizeApp.py
-
curl -L -o summarizeApp.py https://huggingface.co/spaces/segestic/ArticlePara/resolve/main/apps/summarizeApp.py
374 Bytes
| import streamlit as st | |
| from summarizer import run_summarization | |
| def app(): | |
| st.title('Summarizer') | |
| st.write('Please provide the text to be summarized') | |
| user_input = st.text_area('Enter text','') | |
| if st.button('Summarize'): | |
| output1 = run_summarization(str(user_input))#,minLength,maxLength) | |
| st.write("Text Summary: ") | |
| st.write(output1) | |