-
Run the following command to install the dependencies:
pip install -r requirements.txt
-
Copy
.env.example
to.env
-
Add your
OPENAI_API_KEY
andPROMPTLAYER_API_KEY
.
-
Navigate to the
src
folder:cd src
-
Run the project:
python3 main.py
-
All the sessions are saved in the
inputs
folder, structured and named with their tag. -
Copy the desired session to
subgoals_actions.py
-
Run the main.py:
python3 main.py
-
It will reproduce the result and the output can be found in your Promptlayer Dashboard.
The images required for the GenderMag sessions are saved in the html/images
folder. These images must be public so that the LLM can access them.
You can make the repository public while running the sessions. While making your repository public temporarily can be a quick solution, it poses security risks.
- Copy all the image files to a permanent hosting location (e.g., another public GitHub repository only with those images or a different hosting service).
- Update the
BASE_IMAGE_PATH
variable inconstant.py
to reflect the new image folder link.
Result XL - https://docs.google.com/spreadsheets/d/1hRoyaPaoqoCaH0JDBWv00CCwxAmU-pmOJyZKkSEU210/edit?gid=0#gid=0