Browse Source

Merge pull request #1368 from rolisz/master

Remove unneeded builder call
pull/1382/head v1.4.0
Hiroki Nakayama 3 years ago
committed by GitHub
parent
commit
7a87d7a36e
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
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)
)
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

Loading…
Cancel
Save