/python2natural

WebApp to convert Python code to natural language using OpenAI GPT-3

Primary LanguageHTML

App: python2natural

  • Insert code
  • GPT-3 analyzes the code and returns human readable text

Docker Deployment

  1. Get OpenAI API Key here
  2. Build Container:
docker build -t python2natural .
  1. Run Container:
docker run -d --name python2natural -p 1337:1337 --env OPENAI_ORG="<YOUR ORG_ID HERE>" --env OPENAI_KEY="<YOUR API KEY HERE>" python2natural
  1. App is running and can be accessed via Web Browser on http://localhost:1337

Local Deployment

  1. Install flask + openai
pip install openai flask
  1. Navigate to app/ and run flask run or python app.py
  2. App is running and can be accessed via Web Browser on http://localhost:1337