mirror of
https://github.com/tcsenpai/easy-web-summarizer.git
synced 2025-06-06 18:45:21 +00:00
54 lines
1.5 KiB
Markdown
54 lines
1.5 KiB
Markdown
# Easy Webpage Summarizer
|
|
|
|
A Python script designed to summarize webpages from specified URLs using the LangChain framework and the ChatOllama model. It leverages advanced language models to generate detailed summaries, making it an invaluable tool for quickly understanding the content of web-based documents.
|
|
|
|
## Requirements
|
|
|
|
[ollama](https://ollama.com/) must be installed and served
|
|
|
|
```bash
|
|
ollama run llama2
|
|
```
|
|
|
|
```bash
|
|
pip install -r requirements.txt
|
|
```
|
|
|
|
## Features
|
|
|
|
- Summarization of webpages directly from URLs.
|
|
- Integration with LangChain and ChatOllama for state-of-the-art summarization.
|
|
- Command-line interface for easy use and integration into workflows.
|
|
|
|
## Usage
|
|
|
|
To use the webpage summarizer, run the script from the command line, providing the URL of the document you wish to summarize:
|
|
|
|
```bash
|
|
python summarizer.py -u "http://example.com/document"
|
|
```
|
|
|
|
Replace `http://example.com/document` with the actual URL of the document you want to summarize.
|
|
|
|
### Web UI
|
|
|
|
To use the webpage summarizer in you web browser, you can also try gradio app.
|
|
|
|
```bash
|
|
python webui.py
|
|
```
|
|
|
|

|
|
|
|
## Development
|
|
|
|
To contribute to the development of this script, clone the repository, make your changes, and submit a pull request. We welcome contributions that improve the script's functionality or extend its capabilities.
|
|
|
|
- [ ] Summarizer youtube
|
|
- [ ] Dockerize project
|
|
- [ ] Serve on web
|
|
|
|
## License
|
|
|
|
This script is released under the MIT License. See the LICENSE file in the repository for full details.
|