Views
No views yet
🔒 Built for schools, counselors, and parents who care about privacy, safety, and emotional insight — without surveillance.
happy, sad, anxious, angry, lonely, scared, confused)growth, fixed, resilient, helpless, optimistic, pessimistic)1from onnxruntime import InferenceSession
2import json
3
4# Load
5session = InferenceSession("mindspark-1.0.onnx")
6with open("label_maps.json") as f:
7 label_maps = json.load(f)
8
9# Tokenize input (use BERT tokenizer with max_length=128, padding, truncation)
10# Then run:
11emotion_logits, mindset_logits, risk_logits = session.run(
12 None,
13 {"input_ids": input_ids, "attention_mask": attention_mask}
14)