Skip to content

A React app that uses OpenAI's Generative Pre-trained Transformer 3 (GPT-3) autoregressive deep learning language model to generate human-like text.

Notifications You must be signed in to change notification settings

ash1eygrace/ai-content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ai-content

Purpose of this App πŸ€–

To generate website, product copy, and brianstorm ideas with OpenAI's Generative Pre-trained Transformer 3 (GPT-3) an autoregressive language model that uses deep learning to produce human-like text.

theme croped

Getting Started πŸ› οΈ:

Tools Used:

Development:

This repository is set up to run on a VPS with an express backend, to run it locally do the following:

  1. Fork and clone this repo
  2. In Terminal open the directory ai-content
  3. Check that Node.js is installed via Terminal by typing node -v if you don’t see a version Install Node.js
  4. In the ai-content directory type npm install to install any missing dependences.
  5. cd into the ai-content/api directory and type npm install to install any missing dependences.
  6. Obtain your OpenAI API key via Log In > Personal > API keys > Create and Copy your Secret Key.
  7. In the ai-content/api directory add a .env file with an API key variable and the port for the backend:
   API_KEY=abc123yourapikey
   PORT=6001
  1. In Terminal cd into the ai-content/api directory and npm start
  2. finally, in Terminal cd in the ai-content directory and npm start

Structure:

ai-content
β”œβ”€β”€ api
β”‚   β”œβ”€β”€ node_modules
β”‚   β”œβ”€β”€ .env // Your API key goes here
β”‚   β”œβ”€β”€ index.js
β”‚   β”œβ”€β”€ package-lock.json
β”‚   └── package.json
β”œβ”€β”€ node_modules
β”œβ”€β”€ public
β”‚   β”œβ”€β”€ _redirects
β”‚   β”œβ”€β”€ favicon.ico
β”‚   β”œβ”€β”€ index.html
β”‚   └── manifest.json
β”œβ”€β”€ src
β”‚   β”œβ”€β”€ assets
β”‚   β”‚   └── images
β”‚   β”‚       └── logo.png
β”‚   β”œβ”€β”€ components
β”‚   β”‚   β”œβ”€β”€ api
β”‚   β”‚   β”‚   └── OpenAIAPI.js
β”‚   β”‚   β”œβ”€β”€ common
β”‚   β”‚   β”‚   β”œβ”€β”€ CopyToClipboard.js
β”‚   β”‚   β”‚   β”œβ”€β”€ LoadingSpinner.js
β”‚   β”‚   β”‚   β”œβ”€β”€ ThemeContext.js
β”‚   β”‚   β”‚   β”œβ”€β”€ ThemeToggle.js
β”‚   β”‚   β”‚   β”œβ”€β”€ LoadingSpinner.js
β”‚   β”‚   β”‚   └── Navigation.js
β”‚   β”‚   β”œβ”€β”€ generators
β”‚   β”‚   β”‚   β”œβ”€β”€ Generator.js
β”‚   β”‚   β”‚   β”œβ”€β”€ GeneratorCard.js 
β”‚   β”‚   β”‚   └── Generators.js
β”‚   β”‚   └── pages
β”‚   β”‚       └── Home.js
β”‚   β”œβ”€β”€ data
β”‚   β”‚   └── generatorList.js
β”‚   β”œβ”€β”€ hooks
β”‚   β”‚   └── useTypingEffect.js
β”‚   β”œβ”€β”€ App.css
β”‚   β”œβ”€β”€ App.js
β”‚   β”œβ”€β”€ index.css
β”‚   └── index.js
β”œβ”€β”€ .gitignore
β”œβ”€β”€ package.json
└── README.md

Current app features ✨

  • Navigation
  • Theme toggle for dark and light modes
  • Blog Post Ideas Generator
  • Product Description Generator
  • Company Bio Generator
  • SEO Blog Intro Paragraph Generator
  • LinkedIn Job Description Generator
  • TL;DR Text SummarizerGenerator
overview-of-app.1.1.mov

Examples:

Themes ✨

  • The app features two themes: a dark theme and a light theme for your preference.
  • Switching between themes is easy - just click the toggle button in the navigation bar. The moon ☽ icon indicates the dark theme, while the sun β˜€οΈ icon represents the light theme.
  • Your chosen theme will be saved in local storage, so you won't have to select it again as you navigate around the app.
Theme.toggle.1.mov

Generators β™Ί

  • The app dynamically displays each generator from an array of data via routes, making it easy to add new generators in one data file.
  • Each generator prompts the user for input via a form, based on the generator.
  • When the user submits their prompt, their prompt is concatenated with a predefined context string for the generator that's defined in the data to produce the best response from GPT.
  • While waiting for a response, state changes to show a Loading spinner, and the card header title indicates that the app is thinking.
  • Once OpenAI sends a response, state changes to show a new card header title, the body of the response from OpenAI, and a copy to clipboard button for easy copying.
  • The copy to clipboard button changes to a "copied" state and back to the clipboard copy button after a few seconds, making it easy to copy the response multiple times if necessary.

Product Description Generator πŸ›’

Product.Description.mov

Company Bio Generator πŸ›’

Company.Bio.mov

About

A React app that uses OpenAI's Generative Pre-trained Transformer 3 (GPT-3) autoregressive deep learning language model to generate human-like text.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages