Skip to content

Latest commit

 

History

History
39 lines (29 loc) · 890 Bytes

local.md

File metadata and controls

39 lines (29 loc) · 890 Bytes

Local Testing

Create and activate Python venv

python3 -m venv venv
source venv/bin/activate

Install Requirements

pip install -r requirements.txt

Remove credentials from .env

If you have added your RUNPOD_API_KEY and RUNPOD_ENDPOINT_ID to the .env file within this directory, you should first comment them out before attempting to test locally. If the .env file exists and the values are provided, the tests will attempt to send the requests to your RunPod endpoint instead of running locally.

Run test scripts

Once the venv is created and activated, the requirements installed, and the credentials removed from the .env file, you can change directory to the tests directory and run a script, for example:

cd tests
python txt2img.py

You obviously need to edit the payload within the script to achieve the desired results.