python3 -m venv venv
source venv/bin/activatepip install -r requirements.txtCopy the .env.example file to '.env' as
follows:
cd tests
cp .env.example .envEdit 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.pyYou obviously need to edit the payload within the script to achieve the desired results.