Skip to content

AI (GPT) generated scripts inside a Docker container. Quick throw-away environments for working with ChatGPT generated code. A very simple boilerplate.

Notifications You must be signed in to change notification settings

chriscummings/CodePlayground-GPT

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CodePlayground-GPT

Generate scripts for any language with gpt and work with them inside the docker container.

Usage

  • Create a .env file (or rename .env.example to .env)
  • Add your OpenAI key. (Link to keys page)
  • Build the image.
    • docker build -t playground-gpt .
  • Run the container with a mounted volume.
    • docker run -it -v $(pwd):/code playground-gpt /bin/bash
  • Start generating code. It will be saved to the output directory.
    • python playground-gpt.py python3 "count to 10" ten.py
  • Run your output (may need clean up first).
    • python output/ten.py

How do I add dependencies?

Quick and dirty:

  • Just add via pip. pip install some-library

More long term:

  • Stop your running container.
  • Add to the requirements.txt file.
  • Rebuild your image and go from there.

About

AI (GPT) generated scripts inside a Docker container. Quick throw-away environments for working with ChatGPT generated code. A very simple boilerplate.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages