Giter Site home page Giter Site logo

jaydeepjethwa / detox Goto Github PK

View Code? Open in Web Editor NEW
23.0 1.0 4.0 10.92 MB

A web-app to identify toxic comments in a youtube channel and delete them.

License: MIT License

Python 2.79% Jupyter Notebook 95.98% CSS 0.44% HTML 0.79%
bert fastapi google-oauth2 natural-language-processing pytorch toxic-comment-classification youtube-data-api-v3 huggingface-transformers end-to-end-machine-learning machine-learning

detox's Introduction

Hi ๐Ÿ‘‹, I'm Jaydeep Jethwa

Python & Machine Learning Developer

I am Computer Engineering Undergrad student ๐Ÿ‘จโ€๐Ÿ’ป. My primary interest lies in developing end-to-end solutions, solving real world problems, with the power of technology. As a student, I have taken many courses, developed projects and learning new skills. And, I'm looking forward to put those skills and knowledge to good use.

Cool Stuff About Me:

  • ๐ŸŒฑ Iโ€™m currently learning Backend Development and Deep Learning.
  • ๐Ÿ‘ฏ Iโ€™m looking to collaborate on projects involving Machine Learning and Deep Learning applications.
  • ๐Ÿ’ฌ Ask me about Machine Learning, Deep Learning, Backend Development and Gaming ๐ŸŽฎ.
  • ๐Ÿ“ซ How to reach me: [email protected]
  • ๐ŸŽฎ You'll find me playing games and reading blogs about innovative technology ๐Ÿ’ป.

Programming Languages & Tools Preference

C++ Python HTML5 CSS3 MySQL NumPy Pandas scikit-learn PyTorch FastAPI Jupyter Notebook Visual Studio Code Git GitHub Notion


Find me on the web ๐Ÿ™‹โ€โ™‚๏ธ


GitHub Streak


Thank you for visiting ๐Ÿ˜„

Visitor Count

โญ๏ธ From Jaydeep

detox's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

detox's Issues

path error - toxic_model.pth

Hello,

I am trying to run your web app and I keep getting errors. As I couldn't figure it out by myself I decided to ask you.

I have downloaded the pretrained models and set their path. And I got a error of toxic_model.pth file is missing under fine_tuned folder.

FileNotFoundError: [Errno 2] No such file or directory: 'machine_learning/model_hub/fine_tuned/toxic_model.pth'

I tried adding a blank file with toxic_model.pth but it still gives this error.

EOFError: Ran out of input

Please guide me with what data is missing from toxic_model.pth and ho to proceed further

I am attaching both errors.

ERROR with toxic_model.pth

(venv) PS D:\DeTox-main\DeTox-main\app> uvicorn main:app --reload
INFO:     Will watch for changes in these directories: ['D:\\DeTox-main\\DeTox-main\\app']
INFO:     Uvicorn running on http://127.0.0.1:8000 (Press CTRL+C to quit)
INFO:     Started reloader process [8104] using StatReload
  File "D:\DeTox-main\venv\lib\site-packages\starlette\routing.py", line 530, in __aenter__
    await self._router.startup()
  File "D:\DeTox-main\venv\lib\site-packages\starlette\routing.py", line 614, in startup
    handler()
  File "D:\DeTox-main\DeTox-main\app\.\main.py", line 30, in startup_event
    load_model()
  File "D:\DeTox-main\DeTox-main\app\.\machine_learning\make_predictions.py", line 23, in load_model
    model.load_state_dict(torch.load(fine_tuned_path, map_location=device))
  File "D:\DeTox-main\venv\lib\site-packages\torch\serialization.py", line 791, in load
    with _open_file_like(f, 'rb') as opened_file:
  File "D:\DeTox-main\venv\lib\site-packages\torch\serialization.py", line 271, in _open_file_like
    return _open_file(name_or_buffer, mode)
  File "D:\DeTox-main\venv\lib\site-packages\torch\serialization.py", line 252, in __init__
    super().__init__(open(name, mode))
FileNotFoundError: [Errno 2] No such file or directory: 'machine_learning/model_hub/fine_tuned/toxic_model.pth'

ERROR:    Application startup failed. Exiting.

ERROR without toxic_model.pth

(venv) PS D:\DeTox-main\DeTox-main\app> uvicorn main:app --reload
INFO:     Will watch for changes in these directories: ['D:\\DeTox-main\\DeTox-main\\app']
INFO:     Uvicorn running on http://127.0.0.1:8000 (Press CTRL+C to quit)
INFO:     Started reloader process [12256] using StatReload
INFO:     Started server process [15368]
INFO:     Waiting for application startup.
ERROR:    Traceback (most recent call last):
  File "D:\DeTox-main\venv\lib\site-packages\starlette\routing.py", line 635, in lifespan
    async with self.lifespan_context(app):
  File "D:\DeTox-main\venv\lib\site-packages\starlette\routing.py", line 530, in __aenter__
    await self._router.startup()
  File "D:\DeTox-main\venv\lib\site-packages\starlette\routing.py", line 614, in startup
    handler()
  File "D:\DeTox-main\DeTox-main\app\.\main.py", line 30, in startup_event
    load_model()
  File "D:\DeTox-main\DeTox-main\app\.\machine_learning\make_predictions.py", line 23, in load_model
    model.load_state_dict(torch.load(fine_tuned_path, map_location=device))
  File "D:\DeTox-main\venv\lib\site-packages\torch\serialization.py", line 815, in load
    return _legacy_load(opened_file, map_location, pickle_module, **pickle_load_args)
  File "D:\DeTox-main\venv\lib\site-packages\torch\serialization.py", line 1033, in _legacy_load
    magic_number = pickle_module.load(f, **pickle_load_args)
EOFError: Ran out of input

ERROR:    Application startup failed. Exiting.

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.