diff --git a/bothub/api/v2/zeroshot/permissions.py b/bothub/api/v2/zeroshot/permissions.py index be4e9097..718708a5 100644 --- a/bothub/api/v2/zeroshot/permissions.py +++ b/bothub/api/v2/zeroshot/permissions.py @@ -18,5 +18,3 @@ def has_permission(self, request, view): else: return False - def has_object_permission(self, request, view, obj): - return self.has_object_permission(request, view, obj) diff --git a/bothub/api/v2/zeroshot/views.py b/bothub/api/v2/zeroshot/views.py index 7a8a5572..0da595ac 100644 --- a/bothub/api/v2/zeroshot/views.py +++ b/bothub/api/v2/zeroshot/views.py @@ -17,7 +17,7 @@ from bothub.api.v2.zeroshot.permissions import ZeroshotTokenPermission -logger = logging.getLogger(__name__) +logger = logging.getLogger("bohtub") class ZeroShotOptionsTextAPIView(APIView): @@ -76,7 +76,7 @@ def get(self, request): class ZeroShotFastPredictAPIView(APIView): - # permission_classes = [ZeroshotTokenPermission] + permission_classes = [ZeroshotTokenPermission] def post(self, request): logger.info(f"request data: {request.META}")