https://github.com/mohammadshabazuddin/text-summarization-with-langchain
This Streamlit app allows users to upload long text files and summarize them using OpenAI's language models via LangChain. Users input their OpenAI API Key, and the app splits the text into smaller chunks to prevent token limits. Using a map-reduce chain approach, it summarizes each chunk and combines them into a concise summary.
https://github.com/mohammadshabazuddin/text-summarization-with-langchain
langchain llm openai python3 streamlit
Last synced: 2 months ago
JSON representation
This Streamlit app allows users to upload long text files and summarize them using OpenAI's language models via LangChain. Users input their OpenAI API Key, and the app splits the text into smaller chunks to prevent token limits. Using a map-reduce chain approach, it summarizes each chunk and combines them into a concise summary.
- Host: GitHub
- URL: https://github.com/mohammadshabazuddin/text-summarization-with-langchain
- Owner: MohammadShabazuddin
- Created: 2025-02-02T23:29:27.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-02-02T23:49:47.000Z (over 1 year ago)
- Last Synced: 2025-03-29T05:17:41.808Z (over 1 year ago)
- Topics: langchain, llm, openai, python3, streamlit
- Language: Python
- Homepage: https://text-summarization-with-split.streamlit.app/
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
### Text Summarization with Split
This project is a web app built with Streamlit and LangChain for summarizing long text files. Users upload a text file, input their OpenAI API Key, and the app splits the content into smaller chunks to prevent token limits. The app then uses LangChain to summarize the text using OpenAI's language models. It employs a map-reduce chain approach, summarizing each chunk and combining the results into a concise summary. The app ensures that files exceeding 20,000 words are flagged, offering a simple interface for users to summarize lengthy documents efficiently.
### How to run? Use python = 3.11
conda create -n llmapp python=3.11 -y
conda activate llmapp
pip install -r requirements.txt
streamlit run main.py
Live Website: https://text-summarization-with-split.streamlit.app/