Git Product home page Git Product logo

suwaidaslam / ai_generated_text_checker_app Goto Github PK

View Code? Open in Web Editor NEW
24.0 3.0 12.0 263 KB

This app Classifies the text generated by AI tools like chatGPT. Roberta-base-openai-detector Model has been used from hugging face to detect ai generated texts.

License: MIT License

Python 85.38% Procfile 0.28% CSS 14.34%
ai-text dash nlp nlp-machine-learning python roberta roberta-model text-classification

ai_generated_text_checker_app's Introduction

AI Generated Text Checker App

This app Classifies the text generated by AI tools like chatGPT. Fake refers to the text generated by an AI and Real refers to the text written by a human. And The ui has been implemented using the dash python library. Roberta-base-openai-detector Model has been used from hugging face to detect ai generated texts.

forthebadge pythonbadge

Demo

Demo_.mp4

Technology Stack

  1. Python
  2. Plotly Dash
  3. Pandas
  4. Plotly

How to Run

To see the project working, just clone the repository and install all required libraries within requirements.txt file and replace the roberta-base-openai-detector directory with the following after unziping it: https://drive.google.com/file/d/16Be7V62ew3PVf5pbxNOr_uLB1CTGpYg-/view?usp=sharing and run the project :)

  • Clone the repository
  • Setup Virtual environment
$ python3 -m venv env
  • Activate the virtual environment
$ source env/Source/activate
  • Install dependencies using
$ pip install -r requirements.txt
  • Run index.py file

Contact

For any feedback or queries, please reach out to me at [email protected] or My Linkedin @suwaidaslam.

ai_generated_text_checker_app's People

Contributors

suwaidaslam avatar

Stargazers

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

Watchers

 avatar  avatar  avatar

ai_generated_text_checker_app's Issues

Not start

None of PyTorch, TensorFlow >= 2.0, or Flax have been found. Models won't be available and only tokenizers, configuration and file/data utilities can be used.
Traceback (most recent call last):
File "/home/kali/Desktop/AI_Generated_Text_Checker_App/index.py", line 16, in
AppCallback(app)
File "/home/kali/Desktop/AI_Generated_Text_Checker_App/AppCallback.py", line 51, in init
tokenizer = AutoTokenizer.from_pretrained(full_path, local_files_only=True)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/kali/Desktop/AI_Generated_Text_Checker_App/env/lib/python3.11/site-packages/transformers/models/auto/tokenization_auto.py", line 659, in from_pretrained
return tokenizer_class_fast.from_pretrained(pretrained_model_name_or_path, *inputs, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/kali/Desktop/AI_Generated_Text_Checker_App/env/lib/python3.11/site-packages/transformers/tokenization_utils_base.py", line 1801, in from_pretrained
return cls._from_pretrained(
^^^^^^^^^^^^^^^^^^^^^
File "/home/kali/Desktop/AI_Generated_Text_Checker_App/env/lib/python3.11/site-packages/transformers/tokenization_utils_base.py", line 1831, in _from_pretrained
slow_tokenizer = (cls.slow_tokenizer_class)._from_pretrained(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/kali/Desktop/AI_Generated_Text_Checker_App/env/lib/python3.11/site-packages/transformers/tokenization_utils_base.py", line 1956, in _from_pretrained
tokenizer = cls(*init_inputs, **init_kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/kali/Desktop/AI_Generated_Text_Checker_App/env/lib/python3.11/site-packages/transformers/models/roberta/tokenization_roberta.py", line 226, in init
with open(vocab_file, encoding="utf-8") as vocab_handle:
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: expected str, bytes or os.PathLike object, not NoneType

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.