This repo contains everything you need to launch a ChatGPT integrated service that interacts with website code. Particularly, I am publishing this work so others create a ChatGPT-powered integration for Equalify.
To get started:
- Pull down repo.
- Search and replace "YOUR_API_KEY" with a ChatGPT and ScapingBee key.
- Update any prompts in
utils.py
undermessages
. - Run
python3 -m venv venv
- Run
source venv/bin/activate
- If you haven't already, install libraries,
pip install -r requirements.txt
- Run
python3 app.py
Check it out!
Sample request: curl -X POST -d "token=[YOUR_TOKEN]&url=https://htmlpreview.github.io/?https://raw.githubusercontent.com/bbertucc/equalify-a11yGPT-tests/main/1.1.1-fail.html" http://localhost:5000/api/start_session
You can get the YOUR_TOKEN by logging into the service.
The sample user is in utils.py
.
I hope this project inspires a service that can integrate with equalify.app. Ideally, this service would use ChatGPT to detect issues that services like axe cannot test.
If you successfully create that service, get in touch! I'm on TwXtter and can pinged on GitHub, @bbertucc.