This is a monorepo containing all the code for a browser extension to generate summaries of any article with the click of a button.
Quick Note: This is a continuation of sagarreddypatil/summarizer-extension. The older repository is kept frozen as it was used for a Hackathon submission.
This project was made as a part of HackJPS. Here is the DevPost page for the project.
And here's a quick demo:
In order to try out this extension, first clone this repository.
Making sure you have the latest Node.js version available, run the following commands:
cd chrome-extension
npm install
npm run build
. This should generate a newbuild
folder in thechrome-extension
directory.- Next, open
chrome://extensions
in your browser and click the "Load Unpacked" button. You may need to toggle developer mode on the top right of the page.
- When your file browser opens, select the new
build
folder that was created. You should now see our extension in the list.
- And the extension should be installed! To try it out, just press the extension icon on a news article. A summary should load within a few seconds.
- Make sure you have Docker installed.
- Clone the repository
cd nlp-flask-app
docker-compose -f docker-compose.dev.yml up && docker-compose -f docker-compose.dev.yml up
- Change line 13 in
./chrome-extension/src/js/popup/utils.js
to use the local server. The URL inside fetch should be changed to something likehttp://localhost:5000/summarize
if you are running the chrome extension and the backend on the same server.- Do note that the docker image takes a significant amount of time to build as it has to download a large model.
- The frontend will need to be rebuilt after changing the server address.
- To use the backend again without rebuilding, just run
docker-compose -f docker-compose.dev.yml up
- If you want to run the container headless, run
docker-compose -f docker-compose.dev.yml up -d