From ce861b8eaf287e3f52f1088d6806182aeb12ec80 Mon Sep 17 00:00:00 2001 From: Roland Szabo Date: Fri, 14 May 2021 14:53:13 +0300 Subject: [PATCH] Remove unneeded builder call --- backend/api/views/auto_labeling.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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