label-studio-ml-backend
label-studio-ml-backend copied to clipboard
examples sklearn_text_classifier model.py get project_id error
label-studio-ml-backend examples sklearn_text_classifier model.py function fit(self, event, data, **kwargs): The error in obtaining the variable 'project_id' at line 165 :
× project_id = data['annotation']['project'] │ ╰─> should be change to : project_id = data['project']['id']
I have put up a pull request that I believe should fix this at https://github.com/HumanSignal/label-studio-ml-backend/pull/790