diff --git a/backend/api/views/auto_labeling.py b/backend/api/views/auto_labeling.py index 46b5cb7d..32025ab1 100644 --- a/backend/api/views/auto_labeling.py +++ b/backend/api/views/auto_labeling.py @@ -121,8 +121,7 @@ class AutoLabelingConfigParameterTest(APIView): 'You need to correctly specify the required fields: {}'.format(required_fields) ) try: - request = model.build() - response = request.send(text=sample_text) + response = model.send(text=sample_text) return Response(response, status=status.HTTP_200_OK) except requests.exceptions.ConnectionError: raise URLConnectionError