https://github.com/pollinations/pollinator
Dockerized pollinator for ec2
https://github.com/pollinations/pollinator
Last synced: 8 months ago
JSON representation
Dockerized pollinator for ec2
- Host: GitHub
- URL: https://github.com/pollinations/pollinator
- Owner: pollinations
- Created: 2022-06-01T18:53:12.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2023-02-06T15:04:25.000Z (over 3 years ago)
- Last Synced: 2025-09-06T20:52:34.871Z (8 months ago)
- Language: Python
- Size: 166 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# pollinator
Get tasks from supabase, then run a cog model to finish the task.
# Run locally
Install package:
```sh
# Install dependencies
pip install -e ".[test]"
# Install pre-commit hooks
brew install pre-commit
pre-commit install -t pre-commit
```
Set the supabase API key in your `.env`. Then
```
python pollinator/main.py
```
Or build an run the image:
```
docker build -t pollinator .
docker run --env-file .env pollinator
```
# Tests
1. Build the test model: `cd test-cog-model && cog build -t no-gpu-test-image`
2. Run the tests: `pytest test`