Skip to content

A simple Flask prototype that uses a fine-tuned GPT-2 model to humanize AI-generated text.

Notifications You must be signed in to change notification settings

snehasadap/prose-genie

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

58 Commits
 
 
 
 
 
 

Repository files navigation

prose-genie

Use this application as a basis for your writing content or to test out the unhinged nature of the GPT-2 language model. This project is built on Flask, a web framework that can be used to build web applications that utilize Python.

Demonstration

prosegeniedemo.mov

Getting Started

Installation Requirements

Installation Instructions

  1. Install PyTorch
    pip install torch
  2. Install Hugging Face Transformers
     pip install transformers
  3. Install Flask
     pip install Flask
  4. Install datasets for additional fine-tuning procedures
     pip install datasets

Usage

Once installation is complete, you may proceed to copy my code from newapp.py and essays.txt. I rendered the HTML script in Flask, so you won’t need an index.html file for this project.

You can run the app in development mode by pasting the following command in your terminal:

 python3 newapp.py

You should see your code running at http://127.0.0.1:5000/. Refresh the page to test a different prompt.

Now you can modify newapp.py. To view the modified changes, ctrl + s newapp.py, then refresh your browser. This will trigger the Flask debugger to restart.

Additional Notes

For better results, try structuring your prompt as a narrative rather than as a command. For example, instead of saying "Tell me about (topic)," you could start with "Today, I learned about (topic)."

About

A simple Flask prototype that uses a fine-tuned GPT-2 model to humanize AI-generated text.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages