Download api/controllers/console/datasets/hit_testing.py from Underground-Digital/Workflow-Engine: direct link, hf CLI and curl.
- Browser
- Download file 757 Bytes
-
https://huggingface.co/spaces/Underground-Digital/Workflow-Engine/resolve/main/api/controllers/console/datasets/hit_testing.py
- Command line
-
hf download hf://spaces/Underground-Digital/Workflow-Engine/api/controllers/console/datasets/hit_testing.py
-
curl -L -o hit_testing.py https://huggingface.co/spaces/Underground-Digital/Workflow-Engine/resolve/main/api/controllers/console/datasets/hit_testing.py
757 Bytes
| from flask_restful import Resource | |
| from controllers.console import api | |
| from controllers.console.datasets.hit_testing_base import DatasetsHitTestingBase | |
| from controllers.console.wraps import account_initialization_required, setup_required | |
| from libs.login import login_required | |
| class HitTestingApi(Resource, DatasetsHitTestingBase): | |
| def post(self, dataset_id): | |
| dataset_id_str = str(dataset_id) | |
| dataset = self.get_and_validate_dataset(dataset_id_str) | |
| args = self.parse_args() | |
| self.hit_testing_args_check(args) | |
| return self.perform_hit_testing(dataset, args) | |
| api.add_resource(HitTestingApi, "/datasets/<uuid:dataset_id>/hit-testing") | |