python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt
Copy the .env.example
file to '.env' as
follows:
cd tests
cp .env.example .env
Edit the .env file and add your RunPod API key to
RUNPOD_API_KEY
and your endpoint ID to
RUNPOD_ENDPOINT_ID
. Without these credentials,
the tests will attempt to run locally instead of
on RunPod.
Once the venv is created and activated, the requirements installed, and the credentials added to the .env file, you can run a script, for example:
python txt2img.py
You obviously need to edit the payload within the script to achieve the desired results.