Skip to content

Commit

Permalink
[Fix] Deepfake detection signature tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Daggx committed Dec 16, 2024
1 parent 2d1da56 commit a4052a3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion edenai_apis/features/image/image_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,9 @@
from edenai_apis.features.image.landmark_detection.landmark_detection_dataclass import (
LandmarkDetectionDataClass,
)
from edenai_apis.features.image.deepfake_detection.deepfake_detection_dataclass import (
DeepfakeDetectionDataClass,
)
from edenai_apis.features.image.logo_detection.logo_detection_dataclass import (
LogoDetectionDataClass,
)
Expand Down Expand Up @@ -181,7 +184,7 @@ def image__landmark_detection(
@abstractmethod
def image__deepfake_detection(
self, file: str, file_url: str = ""
) -> ResponseType[LandmarkDetectionDataClass]:
) -> ResponseType[DeepfakeDetectionDataClass]:
"""
Detect altered images via inconsistencies.
(eg: popular tourist spots like Eiffel Tower)
Expand Down
5 changes: 4 additions & 1 deletion edenai_apis/features/video/video_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@
TextDetectionAsyncDataClass,
QuestionAnswerDataClass,
)
from edenai_apis.features.video.deepfake_detection_async.deepfake_detection_async_dataclass import (
DeepfakeDetectionAsyncDataClass,
)
from edenai_apis.utils.types import AsyncBaseResponseType, AsyncLaunchJobResponseType


Expand Down Expand Up @@ -55,7 +58,7 @@ def video__deepfake_detection_async__launch_job(
@abstractmethod
def video__deepfake_detection_async__get_job_result(
self, provider_job_id: str
) -> AsyncBaseResponseType[ExplicitContentDetectionAsyncDataClass]:
) -> AsyncBaseResponseType[DeepfakeDetectionAsyncDataClass]:
"""Get the result of an asynchronous job by its ID
Args:
- provider_job_id (str): id of async job
Expand Down

0 comments on commit a4052a3

Please sign in to comment.