File size: 312 Bytes
32398f2
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
from inference import predict_label

def predict(image_path: str) -> str:
    """

    Predict if the image is real or Deep-Fake.



    Args:

        image_path (str): Absolute or relative path to the image file.



    Returns:

        str: "ai" or "real".

    """
    return predict_label(image_path)