From 3f70561ba4306005b620abbef518469e212d1ed7 Mon Sep 17 00:00:00 2001 From: Ben Auffarth <10786684+benman1@users.noreply.github.com> Date: Thu, 24 Aug 2023 12:06:04 +0100 Subject: [PATCH] comment on API access and virtualenv this should be a bit clearer now --- README.md | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index f3175bd..579b972 100644 --- a/README.md +++ b/README.md @@ -16,10 +16,16 @@ $ cd autopack-demo $ poetry install ``` -### Execute the main.py script +### Set up API acesss for GPT models +Set up you OpenAI API token as the OPENAI_API_KEY environment variable like this: +```bash +export OPENAI_API_KEY=xxxxxxxxxxxxx +``` +### Run the demo +You can execute the main.py script from the poetry virtual environment like this: ```bash -$ python main.py +$ poetry run python demo/main.py ``` ### It will prompt you for what you want to do @@ -129,4 +135,4 @@ $ cat my_computer.txt OS Name: Darwin OS Version: 22.5.0 Disk Usage: 60.0% -``` \ No newline at end of file +```