from transformers import AutoModel
model = AutoModel.from_pretrained("cnmoro/domain-labeler-enpt", trust_remote_code=True)
# Single prediction (Portuguese)
model.predict("O Google Chrome é um navegador web")
# → ["computer_science_and_technology"]# Single prediction (English)
model.predict("Edward Gein was an American murderer")
# → ["history"]# Batch
texts = [
"O universo é vasto e cheio de estrelas",
"This is a movie review of a great film",
]
model.predict(texts)
# → ["astronomy", "movie"]# With probabilities
model.predict_proba("A história do Brasil")
# → [{"history": 0.93, "movie": 0.04, "geography": 0.01}]
domain-labeler-enpt huggingface.co is an AI model on huggingface.co that provides domain-labeler-enpt's model effect (), which can be used instantly with this cnmoro domain-labeler-enpt model. huggingface.co supports a free trial of the domain-labeler-enpt model, and also provides paid use of the domain-labeler-enpt. Support call domain-labeler-enpt model through api, including Node.js, Python, http.
domain-labeler-enpt huggingface.co is an online trial and call api platform, which integrates domain-labeler-enpt's modeling effects, including api services, and provides a free online trial of domain-labeler-enpt, you can try domain-labeler-enpt online for free by clicking the link below.
cnmoro domain-labeler-enpt online free url in huggingface.co:
domain-labeler-enpt is an open source model from GitHub that offers a free installation service, and any user can find domain-labeler-enpt on GitHub to install. At the same time, huggingface.co provides the effect of domain-labeler-enpt install, users can directly use domain-labeler-enpt installed effect in huggingface.co for debugging and trial. It also supports api for free installation.
domain-labeler-enpt install url in huggingface.co: