BurhanUlTayyab/GPTZero
Acerca de
Una implementación de código abierto de GPTZero
Otros proyectosCrecimiento de estrellas medido
- in 24h
- 0
- in 7 days
- +2
- in 15 days
- +2
- in 1 month
- Recopilando historial
Cambios netos en períodos que se solapan, no totales diarios. Los datos no disponibles se dejan en blanco. Las estrellas indican interés, no calidad.
README.md
OriginalCheck out our new project: Faz, a safety layer between AI agents and databases: https://github.com/fazhq/faz
GPTZero
GPTZero is an AI model with some mathematical formulation to determine if a particular text fed to it is written by AI or a human being.
The motivation for it
Recently, GPTZero gotten a lot of hype/traction from media to be able to determine whether a set of sentences are generated from ChatGPT. It was indeed a great initative for Education Institutes. However, the implementation is closed-source. We tried to construct identical solutioning and voila!! :tada: our implementation gets the exact same results mostly lol. :joy: :joy: :joy:
Implementation video
Installation
pip install -r requirements.txt
Usage
Using Python function
python3 infer.py
example
from model import GPT2PPL
model = GPT2PPL()
sentence = "your text here"
model(sentence)
Using Python input
python3 local_infer.py
example
Please enter your sentence: (Press Enter twice to start processing)
Hello World.
My name is mike.
(empty line)
Note
Our implementation produces 100% same results as gptzero.me. We've compared extensively on a large corpus of text to compare our values with them, and surprisingly got the same results.
Acknowledgement
This repository is built based on the hugging face https://huggingface.co/docs/transformers/perplexity
Liu, Yinhan, et al. "Roberta: A robustly optimized bert pretraining approach." arXiv preprint arXiv:1907.11692 (2019).
Explorar proyectos relacionados
Cargando…
