neel1998 / NSFW-and-Profanity-filter

Code Repository for Social Computing Project

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

NSFW and Profanity filter

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

Team

  • Neel Trivedi
  • Anchit Gupta
  • Kunal Vaswani

Training and Deep learning

NSFW classifier

To know more about NSFW Image classfier, go here.

Profanity Detector

To know more about Profanity detector, go here.


Browser Extension

There are two extensions:

  1. NSFW images filter
  2. Profanity text filter

NSFW images 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

Profanity Filter:

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

Results

Without Extension
With Extension

About

Code Repository for Social Computing Project


Languages

Language:Jupyter Notebook 88.1%Language:Python 9.0%Language:JavaScript 2.1%Language:HTML 0.8%