https://github.com/humancompatibleai/ranking-challenge-perspective
Prosocial Ranking Challenge Perspective Ranker
https://github.com/humancompatibleai/ranking-challenge-perspective
Last synced: 11 months ago
JSON representation
Prosocial Ranking Challenge Perspective Ranker
- Host: GitHub
- URL: https://github.com/humancompatibleai/ranking-challenge-perspective
- Owner: HumanCompatibleAI
- License: mit
- Created: 2024-06-26T20:57:50.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-11-26T02:47:31.000Z (over 1 year ago)
- Last Synced: 2025-05-30T03:40:14.560Z (about 1 year ago)
- Language: Jupyter Notebook
- Size: 573 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Prosocial Ranking Challenge Perspective Ranker
To install deps:
```bash
poetry install
```
To start in dev:
```bash
poetry run uvicorn perspective_ranker:app --reload
```
To test:
```bash
poetry run pytest
```
To build and deploy:
- commit changes to rc-release branch
- then run
```
docker buildx bake --set '*.platform=linux/amd64' -f docker-compose.yml --no-cache --load
cd ../ranking-challenge-submission
poetry run python push_to_ecr.py --team perspective
```
- manual "update service" on prod-prc-perspective-app-service in AWS
- PERSPECTIVE_API_KEY and PERSPECTIVE_HOST need to be set in ECS task definition
## API Key
You'll need a Perspective API key, which should be in the `PERSPECTIVE_API_KEY` environment variable. You can put it in `.env` for local use.