labelbox-python
labelbox-python copied to clipboard
[PLT-1347] Vb/request labelin service
Description
Provides an sdk method to request labeling service. This will match the UI transition when all project prerequisites are completed.
For sdk, we have built a new api on the backend to verify the project and transition labeling service to Requested
Sample code - live chat model evaluation project
client.create_model_evaluation_project(...)
project.connect_ontology(chat_evaluation_ontology)
project.upsert_instructions(...)
# if not live MOE, also need to add a batch of data rows
# Only for live MOE
project.add_model_config(...)
project.set_project_model_setup_complete()
labeling_service = project.request_labeling_service()
labeling_service.request()
assert project.get_labeling_service_status() == LabelingServiceStatus.Requested
NOTE
All integration tests for the new api ValidateAndRequestProjectBoostWorkforcePyApi will fail till we merge and deploy the api to stage (tonight or tomorrow)
Type of change
Please delete options that are not relevant.
- [ ] Bug fix (non-breaking change which fixes an issue)
- [x] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
- [ ] Document change (fix typo or modifying any markdown files, code comments or anything in the examples folder only)
All Submissions
- [x] Have you followed the guidelines in our Contributing document?
- [x] Have you provided a description?
- [x] Are your changes properly formatted?
New Feature Submissions
- [ ] Does your submission pass tests?
- [x] Have you added thorough tests for your new feature?
- [ ] Have you commented your code, particularly in hard-to-understand areas?
- [x] Have you added a Docstring?
Changes to Core Features
- [x] Have you written new tests for your core changes, as applicable?
- [x] Have you successfully run tests with your changes locally?
- [ ] Have you updated any code comments, as applicable?