File size: 250 Bytes
050cc37
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
from transformers import pipeline

# Public, stable image classifier (generic). You can swap to a deepfake-specific model later.
image_model = pipeline(
    task="image-classification",
    model="google/vit-base-patch16-224",
    device=-1  # CPU
)