|
|
--- |
|
|
title: Human vs AI Text Detector |
|
|
emoji: π |
|
|
colorFrom: purple |
|
|
colorTo: blue |
|
|
sdk: gradio |
|
|
sdk_version: 4.44.0 |
|
|
app_file: app.py |
|
|
pinned: false |
|
|
license: apache-2.0 |
|
|
tags: |
|
|
- text-classification |
|
|
- human-ai-text-attribution |
|
|
- african-languages |
|
|
- multilingual |
|
|
- hata |
|
|
--- |
|
|
|
|
|
# π Human vs AI Text Detector |
|
|
|
|
|
Detect whether text is human-written or AI-generated across multiple African languages! |
|
|
|
|
|
## π Features |
|
|
|
|
|
- **Multilingual Support**: Works with English, Yoruba, Hausa, Igbo, Swahili, Amharic, and Nigerian Pidgin |
|
|
- **High Accuracy**: 100% accuracy on validation set |
|
|
- **Fair & Unbiased**: Explicitly trained with fairness constraints across all languages |
|
|
- **Easy to Use**: Simple interface for single text or batch processing |
|
|
|
|
|
## π― How to Use |
|
|
|
|
|
1. **Single Text**: Paste your text in the input box and click "Classify Text" |
|
|
2. **Batch Processing**: Upload a `.txt` file with one text per line for batch classification |
|
|
3. **Examples**: Try the pre-loaded examples in different languages |
|
|
|
|
|
## π¬ Model Details |
|
|
|
|
|
- **Base Model**: AfroXLMR-base |
|
|
- **Parameters**: ~270M |
|
|
- **Training**: Fine-tuned on PhD HATA African Dataset |
|
|
- **Fairness**: EOD = 0.0, AAOD = 0.0 (perfect fairness) |
|
|
|
|
|
## π Performance |
|
|
|
|
|
| Metric | Score | |
|
|
|--------|-------| |
|
|
| Accuracy | 100% | |
|
|
| F1 Score | 100% | |
|
|
| Precision | 100% | |
|
|
| Recall | 100% | |
|
|
|
|
|
## β οΈ Limitations |
|
|
|
|
|
- Optimized for African languages in training set |
|
|
- Performance may vary on newer AI generation systems |
|
|
- Should be used as part of a broader content verification system |
|
|
|
|
|
## π Links |
|
|
|
|
|
- [Model Repository](https://huggingface.co/msmaje/phdhatamodel) |
|
|
- [Training Visualizations](https://huggingface.co/msmaje/phdhatamodel/tree/main/visualizations) |
|
|
- [Dataset](https://huggingface.co/datasets/msmaje/phd-hata-african-dataset) |
|
|
|
|
|
## π Citation |
|
|
|
|
|
```bibtex |
|
|
@misc{msmaje2025hata, |
|
|
author = {Maje, M.S.}, |
|
|
title = {AfroXLMR for Human-AI Text Attribution}, |
|
|
year = {2025}, |
|
|
publisher = {HuggingFace}, |
|
|
url = {https://huggingface.co/msmaje/phdhatamodel} |
|
|
} |
|
|
``` |
|
|
|
|
|
## π§ Contact |
|
|
|
|
|
For questions or feedback, please open an issue in the model repository. |