/text-summary

Article summarization service

Primary LanguagePythonMIT LicenseMIT

Tests

Article summarization service

This is an educational project made to play a bit with FastAPI and other stuff.

Scraps an article from a web page and generates a short summary. Uses FastAPI as a backend and Newspaper3k for scraping and NLP.

Example usage

Run the containers:

docker-compose up -d 

Init DB:

docker-compose exec web aerich upgrade

Ask the service to generate a summary for some page:

curl -X POST -d '{"url": "https://docs.python.org/3/tutorial/appetite.html"}' http://localhost:8080/summaries/

See the summary:

curl -X GET http://localhost:8080/summaries/1/

Read the documentation on http://localhost:8080/docs for other actions.