RoBert Emotion Classifier
PyTorch model trained for emotion classification on XYZ dataset.
Saved format: state_dict.
π§ How to Load the Model
from huggingface_hub import hf_hub_download
import torch
from BertEmotionClassifier import BertEmotionClassifier
model_path = hf_hub_download(repo_id="aadhi3/RoBert_Model", filename="model.pth")
model = BertEmotionClassifier(num_labels=5)
model.load_state_dict(torch.load(model_path, map_location="cpu"))
model.eval()
Inference Providers
NEW
This model isn't deployed by any Inference Provider.
π
Ask for provider support