Examples of Slack Bots that runs ML tasks via Replicate, Hugging Face and OpenAI.
Supported models:
- Rename example.env to .env and fill it with your own API keys.
- Run make_package.sh and upload .zip to lambda function.
- Upload it to AWS Lambda
- Enable
Function URL
in your lambda configuration
- Create a new Slack App
- In Features/OAuth & Permissions, enable Scopes following:
app_mentions:read
chat:write
commands
files:write
- In Features/Event Subscriptions, add your lambda endpoint URL to the
Request URL
- Add Slack Commands
- /ml_dalle_mega
- /ml_dalle_mini
- /ml_latent_diffusion
- /ml_cogview2
- /ml_erlich_logo
- /ml_davinci
- /ml_stable_diffusion