langchain-text-summarization
langchain-text-summarization copied to clipboard
Text Summarization App built using Langchain and Streamlit
🦜🔗 Langchain - Text Summarization App
Text Summarization App built using Langchain and Streamlit
Overview of the App
- Accepts a paragraph of text as the input text (to be summarized) using Streamlit's
st.text_input() - Text is split into chunks via
CharacterTextSplitter()along with itssplit_text()method - Document is generated via `Document()
- Text summarization is achieved using
load_summarize_chain()by applying therun()method on the inputdocs.
Demo App
Get an OpenAI API key
You can get your own OpenAI API key by following the following instructions:
- Go to https://platform.openai.com/account/api-keys.
- Click on the
+ Create new secret keybutton. - Next, enter an identifier name (optional) and click on the
Create secret keybutton.