our stack:

zenml integration install label_studioThere is a known issue with Label Studio installations via zenml integration install.... You might find that the Label Studio installation breaks the ZenML CLI. In this case, please run pip install 'pydantic<1.11,>=1.9.0' to fix the issue or message us on Slack if you need more help with this. We are working on a more definitive fix.

Before registering a label_studio flavor stack component as part of your stack, you'll need to have registered a cloud artifact store. (See the docs on how to register and set up a cloud artifact store.)

Be sure to register a secret for whichever artifact store you choose, and then you should make sure to pass the name of that secret into the artifact store as the --authentication_secret as described in this guide, for example in the case of AWS.

You will next need to obtain your Label Studio API key. This will give you access to the web annotation interface. (The following steps apply to a local instance of Label Studio, but feel free to obtain your API key directly from your deployed instance if that's what you are using.)

# choose a username and password for your label-studio account

label-studio reset_password --username <USERNAME> --password <PASSWORD>

# start a local label-studio instance

label-studio start -p 8093

Then visit http://localhost:8093/ to log in, and then visit http://localhost:8093/user/account and get your Label Studio API key (from the upper right-hand corner). You will need it for the next step. Keep the Label Studio server running, because the ZenML Label Studio annotator will use it as the backend.

At this point you should register the API key under a custom secret name, making sure to replace the two parts in <> with whatever you choose:

zenml secret create label_studio_secrets --api_key="<your_label_studio_api_key>"

Then register your annotator with ZenML:

zenml annotator register label_studio --flavor label_studio --api_key={{label_studio_secrets.api_key}}