How can I create AI content Detector

I want to create an AI content detector in Python.

I have explored several different approaches to achieve this goal. First, I experimented with using Perplexity and Burstiness measures. Additionally, I have also tried models provided by OpenAI and the RoBERTa model to see how well they perform in detecting AI-generated content.