GithubHelp home page GithubHelp logo

sweetpopcornsimon / gpt-zero Goto Github PK

View Code? Open in Web Editor NEW

This project forked from alex-steiner-dev/gpt-zero

0.0 0.0 0.0 64 KB

A recreation of the website gptzero.me which utilizes the OpenAI GPT-2 model to determine whether a piece of text was written by a human or a machine.

Shell 0.35% Python 63.26% CSS 9.67% HTML 24.17% Dockerfile 2.55%

gpt-zero's Introduction

GPT-Zero

A recreation of the website gptzero.me which utilizes the OpenAI GPT-2 model to determine whether a piece of text was written by a human or a machine. This program allows you to input a piece of text and it will output a score indicating the likelihood that the text was written by a human.

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

Prerequisites

  • Python 3.6 or higher
  • The OpenAI library
  • NLPT (Natural Language Toolkit)
  • Flask (Web framework)

Installing

To install the necessary libraries, run the following command in your terminal:

pip install openai nltk flask

This command will install the OpenAI library, NLTK, and Flask. The OpenAI library is used to access the GPT-2 model and perform the text generation and scoring. NLTK is used for natural language processing tasks such as tokenization and stemming. Flask is used to create the web interface for the program.

Running the program

To run the program, simply type the following command in your terminal:

./run.sh

This will start the local server and the program can be accessed in your web browser at http://localhost:8080/

You can input a text in the text area and click on "Submit" button. The program will use the GPT-2 model to generate a similar text and compare the input text with the generated text, based on this it will output a score indicating the likelihood that the text was written by a human.

Built With

  • Python - Programming language
  • OpenAI - AI library
  • NLTK - Natural Language Toolkit
  • Flask - Web framework

Author

Acknowledgments

Additionally, please note that to run this model you need to have credentials to access OpenAI's GPT2 model. You can find more information on how to acquire credentials on the OpenAI website.

gpt-zero's People

Contributors

alexsteiner30 avatar sweetpopcornsimon avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.