Ank-Cha / CheckGPT

Open soured alternative of Gpt Zero pro

Home Page:https://huggingface.co/spaces/ankush29/CheckGPT

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CheckGPT πŸ€–πŸ“

CheckGPT is an AI-powered text analysis tool that predicts if the text is generated by AI like ChatGPT. It evaluates perplexity and burstiness scores of the GPT model, providing valuable insights for investigating the origin of text content. πŸ’‘

This project is a fun hobby and WIP project, aimed at creating an open-source version of webapps like GPTZero Pro, a popular closed-source website. I think open-sourced AI text detection tools can be useful to ensure academic integrity in schools, where it's essential to verify that students are independently crafting their essays and answers for their personal growth, the transparency offered by open-source software enhances the trust and credibility of the evaluation process.

It uses GPT-2 model with an additional linear layer at the end to get the probability distribution of generating the current token sequence, which are used to estimate the perplexity and burstiness scores to classify the document.

Features πŸš€

  • βœ… Evaluate the perplexity and burstiness scores of text generated by AI.
  • βœ… Predict the label for text content: 'AI', 'Human + AI', 'Human'.
  • βœ… Predicts the percentage of text content written by AI
  • βœ… Supports PDF and Word documents for text analysis.
  • βœ… Download the analysis results as a CSV file for further exploration.

App Screenshot

App Screenshot

Getting Started 🏁

To start using CheckGPT, follow these simple steps:

  1. Visit the hosted app on Hugging Face Spaces:
  2. Upload your PDF or Word documents.
  3. Click the "Start Checking" button to analyze the text content.
  4. Explore the results, including the predicted AI percentage, perplexity score, burstiness, and predicted output.
  5. Download the analysis results as a CSV file for further analysis.

Faster Performance ⚑️

Hugging Face hosted app is slow! If you want to experience much faster performance, deploy CheckGPT on your local device using the following steps:

  1. Clone this CheckGPT repository from GitHub: git clone https://github.com/Ank-Cha/CheckGPT.git and navigate to the project directory using the command: cd CheckGPT.
  2. Install the required dependencies by running pip3 install -r requirements.txt.
  3. Run the CheckGPT app using the command streamlit run app.py.

Optimization for MacBook Apple Silicon and CUDA supported Devices

For MacBook Apple Silicon devices, optimize the performance even further by changing the device from "cpu" to "mps" in app.py.

For other cuda supported devices, you can try changing the device to "cuda" for enhanced performance.

in app.py

# device = "mps"  # For MacBook Apple Silicon
# device = "cuda"  # For other cuda supported devices

Acknowledgments and Credits πŸ™

CheckGPT is built using the incredible Hugging Face Resources and Transformers library, which provides state-of-the-art natural language processing capabilities. Also checkout [this] repo which helped me to make this project.

Contributing πŸ‘₯

Contributions are always welcome! If you have any ideas, improvements, or bug fixes, please open an issue or submit a pull request. Let's make CheckGPT even more amazing together!

If you find CheckGPT intriguing and valuable, I kindly request you to show your support by giving the repository a ⭐️ on GitHub. Your appreciation means a lot and encourages me to keep improving and enhancing this project. Thank you in advance for your support! 🌟

About the Developer πŸ€“

CheckGPT is developed by Ankush Chaudhari. Feel free to connect with me on LinkedIn to stay updated with the latest developments.

Disclaimer ⚠️

Please note that the results generated by CheckGPT are based on an AI model and may not be 100% accurate. It is still a work in progress project. It is advisable to use these results for investigation purposes and exercise caution when making decisions based on the analysis. The code for this project is released under the MIT License, which means you are free to use it as you see fit. However, please note that there is no warranty or guarantee provided with the code, and the developers/contributors are not liable for any issues or consequences arising from its use.


About

Open soured alternative of Gpt Zero pro

https://huggingface.co/spaces/ankush29/CheckGPT


Languages

Language:Python 100.0%