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()
Downloads last month

-

Downloads are not tracked for this model. How to track
Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support

Space using aadhi3/RoBert_Model 1