Run this model with HF Jobs

Run thegoatcc/classpulse-edge on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.

Paste one of these prompts into your coding agent:

Fine-tune on my dataset

Use HF Jobs to fine-tune https://huggingface.co/thegoatcc/classpulse-edge. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.

Run batch inference

Use HF Jobs to run batch inference with https://huggingface.co/thegoatcc/classpulse-edge on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
classpulse-edge / enroll.py
thegoatcc's picture
Upload ClassPulse Edge codebase, Dockerfile, and model weights
af70f62 verified
Raw History Blame Contribute Delete
1.01 kB
from __future__ import annotations
import argparse
from core.config_manager import ConfigManager
from core.enrollment_service import EnrollmentService
from storage.database import DatabaseRepository
def main() -> None:
parser = argparse.ArgumentParser(description="Enroll student face profiles into ClassPulse Edge SQLite DB.")
parser.add_argument("--backend", default="mock", choices=["mock", "insightface", "hailo"])
parser.add_argument("--course", default=None, help="Optional course_code to enroll all students into")
args = parser.parse_args()
cfg = ConfigManager("config.yaml")
db = DatabaseRepository(cfg.get_path("database"))
svc = EnrollmentService(db=db, enrollment_dir=cfg.get_path("enrollment_dir"), backend=args.backend)
stats = svc.enroll_from_directory(default_course_code=args.course)
print(f"Enrollment complete: {stats['students']} student(s), {stats['profiles']} face profile(s) saved.")
if __name__ == "__main__":
main()