Skip to content

A demo client for OpenAI Text Classifier to detect if your text is generated by AI.

License

Notifications You must be signed in to change notification settings

renyilin/OpenAI-Text-Classifier-Client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OpenAPI Text Classifier Client

This is a Python client for the OpenAI Text Classifier. Here is a live demo.

Here's an example of how to use it:

  1. You can get an OpenAI API key here.
  2. Set the environment variable OPENAI_API_KEY to your OpenAI API key.
  3. Run the following code:
    api_key = os.getenv('OPENAI_API_KEY')
    classifier = OpenAiTextClassifier(api_key)
    score, category = classifier.detect(YOUR_TEXT)

About

A demo client for OpenAI Text Classifier to detect if your text is generated by AI.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages