Gapminder / gapminder-ai

0 stars 0 forks source link

Update helpers, add cli tool #16

Closed semio closed 1 year ago

semio commented 1 year ago

Changes:

cli usage:

$ python cli.py -h
usage: cli.py [-h] [-j JOBS] [-d] [-a] [-t TMP_DIR]

optional arguments:
  -h, --help            show this help message and exit
  -j JOBS, --jobs JOBS  Use how many cpu processes to run
  -d, --debug           Run in debug mode
  -a, --append          Append the session result to GSpreadsheet
  -t TMP_DIR, --tmp_dir TMP_DIR
                        Dir to store the cached session results (default to ./output)

NOTE: In my testing the maximum processes we can use without going over OpenAI's rate limit is -j 2

semio commented 1 year ago

ok! let's merge this for now and add click in next iteration