Code Monkey home page Code Monkey logo

child-safety-system's Introduction

Online Child Safety

An application that detects and warns users against potential predators in online chatrooms


DOCS UI

Preview of the application

The purpose of our application was to build a bot (called SAF in the images shown below) which warns users against potential predators while engaging in conversations via (online) chatrooms. It is based on predictions made by the LSTM model trained on dangerous and relatively normal conversations.

Welcome Page

Welcome page

Potentially dangerous chats

dangerous chats dangerous chats

Normal chats

normal chats normal chats

Functionalities

  • Detects potential predators in online chatrooms.
  • Provides a chatting interface with the bot which generates responses and predicts whether they're dangerous or safe.
  • Displays warning messages when texts are perverted or suspicious.
  • User can also provide text inputs to the bot which will then detect how perverted they are.

Instructions to run

  • Dependencies:

    • Tensorflow
    • Keras
    • Numpy
    • Pandas
    • pickle
    • NLTK
    • Symspellpy
    • Streamlit
  • The Bot (application) has been built using Streamlit.

Future improvements

  • Model's responses are random and can instead be tailored to fit user's responses or questions.
  • The bot makes accurate predictions as to whether a conversation is dangerous or not, most of the time, but requires fine-tuning.
  • Each conversation between the bot and user lasts only for one iteration. This can be extended to include actual conversations.
  • This bot can be built as an extension instead of a stand-alone application and can be employed in actual online chatrooms.

Contributors

Naman Garg

Naman Garg

Pooja Ravi

Pooja Ravi

Breenda Das

Breenda Das

Sadhavi Thapa

Sadhavi Thapa

License

License

Made with ❤️ by DS Community SRM

child-safety-system's People

Contributors

01pooja10 avatar cipheraxat avatar imgbotapp avatar namangarg110 avatar sadhavithapa avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

child-safety-system's Issues

something happend with requeriments

root@machineteacheble-ubuntu-s-8vcpu-16gb-nyc1-01:~/Child-Safety-System# pip install -r requirements.txt

Collecting absl-py==0.11.0
  Using cached absl_py-0.11.0-py3-none-any.whl (127 kB)
Requirement already satisfied: altair==4.1.0 in /usr/local/lib/python3.8/dist-packages (from -r requirements.txt (line 2)) (4.1.0)
ERROR: Exception:
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 3103, in __init__
    super(Requirement, self).__init__(requirement_string)
  File "/usr/lib/python3/dist-packages/pkg_resources/_vendor/packaging/requirements.py", line 101, in __init__
    raise InvalidRequirement("Invalid URL given")
pkg_resources.extern.packaging.requirements.InvalidRequirement: Invalid URL given

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/pip/_internal/cli/base_command.py", line 186, in _main
    status = self.run(options, args)
  File "/usr/lib/python3/dist-packages/pip/_internal/commands/install.py", line 357, in run
    resolver.resolve(requirement_set)
  File "/usr/lib/python3/dist-packages/pip/_internal/legacy_resolve.py", line 177, in resolve
    discovered_reqs.extend(self._resolve_one(requirement_set, req))
  File "/usr/lib/python3/dist-packages/pip/_internal/legacy_resolve.py", line 333, in _resolve_one
    abstract_dist = self._get_abstract_dist_for(req_to_install)
  File "/usr/lib/python3/dist-packages/pip/_internal/legacy_resolve.py", line 270, in _get_abstract_dist_for
    skip_reason = self._check_skip_installed(req)
  File "/usr/lib/python3/dist-packages/pip/_internal/legacy_resolve.py", line 228, in _check_skip_installed
    req_to_install.check_if_exists(self.use_user_site)
  File "/usr/lib/python3/dist-packages/pip/_internal/req/req_install.py", line 443, in check_if_exists
    self.satisfied_by = pkg_resources.get_distribution(str(no_marker))
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 480, in get_distribution
    dist = Requirement.parse(dist)
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 3150, in parse
    req, = parse_requirements(s)
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 3096, in parse_requirements
    yield Requirement(line)
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 3105, in __init__
    raise RequirementParseError(str(e))
pkg_resources.RequirementParseError: Invalid URL given

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.