Spaces:
Runtime error
Runtime error
File size: 372 Bytes
9df8256 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
from transformers import VideoMAEForVideoClassification, VideoMAEImageProcessor
from huggingface_hub import login
import os
login(os.getenv("HF_TOKEN"))
model_name = "OPear/videomae-large-finetuned-UCF-Crime"
# Load processor and model
processor = VideoMAEImageProcessor.from_pretrained(model_name)
model = VideoMAEForVideoClassification.from_pretrained(model_name)
|