mhamza-007's picture
Adding application files
2c966e2

βœ… No Manual Download Needed

The model file (cvit2_deepfake_detection_ep_50.pth) is hosted on the Hugging Face Hub and is automatically downloaded when you run the code.

If you're running the project locally, make sure your environment has internet access. The model will be downloaded from:

πŸ‘‰ cvit2_deepfake_detection_ep_50.pth on Hugging Face

Once downloaded, it will be cached locally for future use.


Programmatic Model Download

To avoid manual downloads, the code uses the Hugging Face Hub API to download the model automatically:

from huggingface_hub import hf_hub_download

model_path = hf_hub_download(
    repo_id="mhamza-007/cvit_deepfake_detection",
    filename="cvit2_deepfake_detection_ep_50.pth"
)