From Scratch
, then enter the App Name and select your workspace.
OAuth & Permissions
tab from the left sidebar and go to the scopes
section. Add the following scopes under User Token Scopes
:
Install to Workspace
button under OAuth Tokens for Your Workspace
section in the same page and install the app in your slack workspace.
User OAuth Token
, save that token as you will need to configure it as SLACK_USER_TOKEN
for this demo.
api
folder and set your HUGGINGFACE_ACCESS_TOKEN
and SLACK_USER_TOKEN
in .env.example
file. Then rename the .env.example
file to .env
.
Mixtral
model from Hugging Face. However, if you prefer to use OpenAI model, then set OPENAI_API_KEY
instead of HUGGINGFACE_ACCESS_TOKEN
along with SLACK_USER_TOKEN
in .env
file, and update the code in api/utils/app.py
file to use OpenAI model instead of Hugging Face model.