Skip to content

detrin/llm-pdf-summarization

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

llm-pdf-summarization

Using LLM to summarize PDF.

Try out the Web demo, integrated into Huggingface Spaces 🤗 using Gradio.

How does it work?

This app uses langchain and GPT-4o-mini in the background.

graph LR
    A[📄 Upload Document] --> B[✂️ Split into Chunks]
    B --> C[🤖 Send to LLM]
    C --> D[📝 Generate Summary]
Loading

Usage

Local

uv venv --python=3.12
source .venv/bin/activate
uv pip install -r requirements.txt
python app.py

Now you can visit http://0.0.0.0:3000 and enjoy the app.

Docker

docker build -t pdf-summarizer-app .
docker run -p 3000:3000 --name pdf-summarizer -e OPENAI_API_KEY=your_openai_api_key_here pdf-summarizer-app

Now you can enjoy the app on http://localhost:3000.

To remove the image

docker rm pdf-summarizer

About

Using LLM to summarize PDF.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published