Skip to content
This repository was archived by the owner on Feb 11, 2025. It is now read-only.

Containing code examples and resources for developers who want to build powerful AI applications using OpenAI's platform. Get started quickly with our step-by-step guide and code snippets, covering everything from setup to implementation

License

Notifications You must be signed in to change notification settings

upa-io/openai-app-builder-pyhton

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OpenAI API Quickstart - Python example app

This is an example pet name generator app used in the OpenAI API quickstart tutorial. It uses the Flask web framework. Check out the tutorial or 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-quickstart-python
  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://localhost:5000!

About

Containing code examples and resources for developers who want to build powerful AI applications using OpenAI's platform. Get started quickly with our step-by-step guide and code snippets, covering everything from setup to implementation

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •