build: Add a requirements.txt for easier setup

This commit is contained in:
Dazed 2023-04-23 11:51:22 -05:00
parent 1265cfc270
commit 8b5f2539eb
3 changed files with 15 additions and 4 deletions

1
.gitignore vendored
View file

@ -1,5 +1,6 @@
.env
*.json
*.txt
!requirements.txt
*.csv
__pycache__

View file

@ -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:

6
requirements.txt Normal file
View file

@ -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