Instructions to use colinryan/hf-deepmoji with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use colinryan/hf-deepmoji with Transformers:
# Load model directly from transformers import AutoTokenizer, DistilBertForMultilabelSequenceClassification tokenizer = AutoTokenizer.from_pretrained("colinryan/hf-deepmoji") model = DistilBertForMultilabelSequenceClassification.from_pretrained("colinryan/hf-deepmoji", device_map="auto") - Notebooks
- Google Colab
- Kaggle
| """ Module import helper. | |
| Modifies PATH in order to allow us to import the torchmoji directory. | |
| """ | |
| import sys | |
| from os.path import abspath, dirname | |
| sys.path.insert(0, dirname(dirname(abspath(__file__)))) | |