|
@ -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 |
|
|