Skip to content

mandieq/openai-example-tt

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OpenAI Project - The Teenager Translator

Do you sometimes wish the teenagers you interact with could be more polite and give you more than one word answers? Use this translator to give you a warm and fuzzy feeling whenever you interact with a teenager's messages.

Here's a screenshot showing sample output using perhaps as input:

screenshot

Potential wider application

Although this is a light hearted application, a more business oriented application might be able to allow customer service staff to generate replies to customers messages via an input of only a few words.

Background

This repository is based upon the example pet name generator app used in the OpenAI API quickstart tutorial. It uses the Flask web framework. Follow the instructions below to get set up.

Setup

  1. If you don’t have Python installed, install it from here

  2. Clone this repository

  3. Navigate into the project directory

    $ cd openai-example-tt
  4. Create a new virtual environment

    $ python -m venv venv
    $ . venv/bin/activate
  5. Install the requirements

    $ pip install -r requirements.txt
  6. Make a copy of the example environment variables file

    $ cp .env.example .env
  7. Add your API key to the newly created .env file

  8. Run the app

    $ flask run

You should now be able to access the app at http:https://localhost:5000!

Attributions

Angry icons created by Fathema Khanom - Flaticon

About

Python example app from the OpenAI API quickstart tutorial

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages

  • CSS 39.5%
  • Python 39.1%
  • HTML 19.8%
  • Shell 1.6%