/ml-slack-bots

Primary LanguagePythonMIT LicenseMIT

ML Slack Bots

Examples of Slack Bots that runs ML tasks via Replicate, Hugging Face and OpenAI.

Screenshot of slack bot

Supported models:

Deploy this to your Slack workplace

Setup AWS Lambda

  • 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

Setup Slack App

  • 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

Scopes