Browse Source

Remove unneeded builder call

pull/1368/head
Roland Szabo 3 years ago
parent
commit
ce861b8eaf
1 changed files with 1 additions and 2 deletions
  1. 3
      backend/api/views/auto_labeling.py

3
backend/api/views/auto_labeling.py

@ -121,8 +121,7 @@ class AutoLabelingConfigParameterTest(APIView):
'You need to correctly specify the required fields: {}'.format(required_fields) 'You need to correctly specify the required fields: {}'.format(required_fields)
) )
try: try:
request = model.build()
response = request.send(text=sample_text)
response = model.send(text=sample_text)
return Response(response, status=status.HTTP_200_OK) return Response(response, status=status.HTTP_200_OK)
except requests.exceptions.ConnectionError: except requests.exceptions.ConnectionError:
raise URLConnectionError raise URLConnectionError

Loading…
Cancel
Save