From 8b5f2539eba3fc67db27e1bdd2ffb71695aff64c Mon Sep 17 00:00:00 2001 From: Dazed Date: Sun, 23 Apr 2023 11:51:22 -0500 Subject: [PATCH] build: Add a requirements.txt for easier setup --- .gitignore | 1 + README.md | 12 ++++++++---- requirements.txt | 6 ++++++ 3 files changed, 15 insertions(+), 4 deletions(-) create mode 100644 requirements.txt diff --git a/.gitignore b/.gitignore index d21b608..fea31c2 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,6 @@ .env *.json *.txt +!requirements.txt *.csv __pycache__ \ No newline at end of file diff --git a/README.md b/README.md index 22ad706..a3e6508 100644 --- a/README.md +++ b/README.md @@ -14,10 +14,14 @@ RPGMaker VX ACE (Mostly, still a WIP) * Python3: https://www.python.org/downloads/ ## Setup: -1. Add your API key and Organization Key to a .env file. An example can be found in the repo. -2. Add a prompt.txt file using prompt.example as a template. (See ChatGPT Prompt Section) -2. Untranslated JSON files go in `/files`. Anything translated will end up in `/translated` -3. Run the script either with VSCode or by running .\main.py in a CLI. +1. `cd` to the project folder and install the dependencies. + +`pip install -r requirements.txt` + +2. Add your API key and Organization Key to a .env file. An example can be found in the repo. +3. Add a prompt.txt file using prompt.example as a template. (See ChatGPT Prompt Section) +4. Untranslated JSON files go in `/files`. Anything translated will end up in `/translated` +5. Run `main.py` script either with VSCode or by running `.\main.py` in a CLI. ## ChatGPT Prompt: diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..ff0d84a --- /dev/null +++ b/requirements.txt @@ -0,0 +1,6 @@ +colorama==0.4.6 +openai==0.27.4 +python-dotenv==1.0.0 +retry==0.9.2 +tiktoken==0.3.3 +tqdm==4.65.0