👋 Welcome to GPTInspector, a simple tool to detect whether the text is written by a human 🧑 or generated by AI 🤖. This project uses the powerful ChatGPT Detector RoBERTa model from Hugging Face, integrated through API calls and built with JavaScript, EJS, and Node.js.
- 🌍 Detect AI-Generated Text: Quickly analyze if a text was produced by a human or AI.
- 📡 Hugging Face API: Leverages Hugging Face's state-of-the-art ChatGPT Detector.
- 💻 User-friendly Interface: Powered by EJS templating engine for dynamic and responsive UI.
- ⚡️ Fast and Efficient: Lightning-fast detection process with a simple API call.
- 📝 Submit Text: Enter a piece of text you want to analyze.
- 🔍 Detection: The text is sent to the Hugging Face model through an API call.
- 🧑🤝🧑 Results: The app tells you if the text is AI-generated or human-written based on model predictions.
- JavaScript: Core programming language for the application.
- Node.js: Backend server runtime.
- EJS: Templating engine for dynamic rendering.
- Express.js: Web framework for Node.js.
- Hugging Face API: AI model integration.
-
Clone the repository:
git clone https://github.com/rafay99-epic/GPTInspector.git cd GPTInspector
-
Install dependencies:
npm install
-
Create your API key from Hugging Face and add it to your environment variables:
export HUGGINGFACE_API_KEY=your_api_key_here
-
Run the app:
npm start
-
Visit the app in your browser at:
http://localhost:1313
Make sure to configure your Hugging Face API key in the environment. You can set this up in a .env
file:
HUGGINGFACE_API_KEY=your_api_key_here
📦 GPTInspector
├── 📁 public # Static files (CSS, images)
├── 📁 views # EJS templates for the frontend
├── 📄 app.js # Main Node.js application
├── 📄 package.json # Project dependencies
├── 📄 .env # Environment variables
└── 📄 README.md # Project documentation
Feel free to submit issues or pull requests. Let's make this project even better! 🎉
This project is licensed under the MIT License - see the LICENSE file for details.
Inspired by the need for better understanding of AI-generated content in the growing world of NLP and generative AI. Special thanks to Hugging Face for their incredible models!
If you have any questions or feedback, feel free to reach out:
- GitHub: rafay99-epic
- Email: 99marafay@gmail.com
- Website: rafay99.com
Enjoy using GPTInspector! 😊