But when I remove that "labels" key from the return statement the annotations are shown on server http://localhost:8080/ but all dependencies are in same color(light green).
My command was "python -m prodigy custom-dep data test.jsonl -F dependency.py". I am using windows 10.
custom-dep was recipe. data was dataset. test.jsonl is source but it is not used. However I have provided information required. dependency.py is the name of python file in which recipe was written.
Hi! If you want to return "labels" to annotate by your custom recipe, those should go in the "config" dictionary returned by the recipe, not in the main components dictionary. This is also why you see the error message here.
Here's an example of a recipe returning a config with labels: