Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/dataprofessor/langchain-text-summarization

Text Summarization App built using Langchain and Streamlit
https://github.com/dataprofessor/langchain-text-summarization

langchain langchain-python large-language-models llm streamlit

Last synced: 7 days ago
JSON representation

Text Summarization App built using Langchain and Streamlit

Awesome Lists containing this project

README

        

# 🦜🔗 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 its `split_text()` method
- Document is generated via `Document()
- Text summarization is achieved using `load_summarize_chain()` by applying the `run()` method on the input `docs`.

## Demo App

[![Streamlit App](https://static.streamlit.io/badges/streamlit_badge_black_white.svg)](https://langchain-text-summarization.streamlit.app/)

## Get an OpenAI API key

You can get your own OpenAI API key by following the following instructions:
1. Go to https://platform.openai.com/account/api-keys.
2. Click on the `+ Create new secret key` button.
3. Next, enter an identifier name (optional) and click on the `Create secret key` button.