This repository contains the code for the Scoial computing course project. This project focuses on creating a browser extension which will filter NSFW and profane content from the webpages using deep learning.
Demo Video Link
- Neel Trivedi
- Anchit Gupta
- Kunal Vaswani
To know more about NSFW Image classfier, go here.
To know more about Profanity detector, go here.
There are two extensions:
- NSFW images filter
- Profanity text filter
This filter will blur all the NSFW images from the webpages. To use this filter with your own browser, enable Developer Mode in Chrome's extensions window and then click on Load Unpacked and then select this folder.
To use your own pretrained models, change the model.json
and .bin files here
To use the profanity filter you will have to deploy a simple flask server either locally or on a remote server.
To run the flask server go to, extension/profane_extension/server
and execute,
> python3 app.py
Once the server is running replace the url of the server in background.js and then just like the NSFW filter load this package to chrome browser.
Since chrome doesn't allow communicating with insecure(http) server, the flask server must be running on HTTPS. for this you can either use nginx or ngrok. We used ngrok
Without Extension | |
With Extension |