From 141ceb401ec9110213aa59609f32000f916f9267 Mon Sep 17 00:00:00 2001 From: Daggx Date: Mon, 16 Dec 2024 16:13:24 +0100 Subject: [PATCH] [Fix] signature sightengine --- edenai_apis/apis/sightengine/sightengine_api.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/edenai_apis/apis/sightengine/sightengine_api.py b/edenai_apis/apis/sightengine/sightengine_api.py index 0df59dd9..45f7d904 100644 --- a/edenai_apis/apis/sightengine/sightengine_api.py +++ b/edenai_apis/apis/sightengine/sightengine_api.py @@ -44,7 +44,7 @@ def __init__(self, api_keys: Optional[Dict[str, Any]] = None): self.webhook_url = f"https://webhook.site/{self.webhook_token}" def image__deepfake_detection( - self, file: Optional[str] = None, file_url: Optional[str] = None + self, file: str, file_url: str = "" ) -> ResponseType[ImageDeepfakeDetectionDataclass]: if not file_url and not file: raise ProviderException("file or file_url required") @@ -94,7 +94,7 @@ def image__deepfake_detection( ) def video__deepfake_detection_async__launch_job( - self, file: Optional[str] = None, file_url: Optional[str] = None + self, file: str, file_url: str = "" ) -> AsyncLaunchJobResponseType: if not file_url and not file: raise ProviderException("file or file_url required")