from optimum.intel.openvino import OVModelForSequenceClassification
from transformers import AutoTokenizer, pipeline
# model_id should be set to either a local directory or a model available on the HuggingFace hub.
model_id = "helenai/philschmid-roberta-large-sst2-ov"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = OVModelForSequenceClassification.from_pretrained(model_id)
pipe = pipeline("text-classification", model=model, tokenizer=tokenizer)
result = pipe("I like you. I love you")
print(result)
Runs of helenai philschmid-roberta-large-sst2-ov on huggingface.co
11
Total runs
0
24-hour runs
0
3-day runs
-2
7-day runs
4
30-day runs
More Information About philschmid-roberta-large-sst2-ov huggingface.co Model
philschmid-roberta-large-sst2-ov huggingface.co
philschmid-roberta-large-sst2-ov huggingface.co is an AI model on huggingface.co that provides philschmid-roberta-large-sst2-ov's model effect (), which can be used instantly with this helenai philschmid-roberta-large-sst2-ov model. huggingface.co supports a free trial of the philschmid-roberta-large-sst2-ov model, and also provides paid use of the philschmid-roberta-large-sst2-ov. Support call philschmid-roberta-large-sst2-ov model through api, including Node.js, Python, http.
philschmid-roberta-large-sst2-ov huggingface.co is an online trial and call api platform, which integrates philschmid-roberta-large-sst2-ov's modeling effects, including api services, and provides a free online trial of philschmid-roberta-large-sst2-ov, you can try philschmid-roberta-large-sst2-ov online for free by clicking the link below.
helenai philschmid-roberta-large-sst2-ov online free url in huggingface.co:
philschmid-roberta-large-sst2-ov is an open source model from GitHub that offers a free installation service, and any user can find philschmid-roberta-large-sst2-ov on GitHub to install. At the same time, huggingface.co provides the effect of philschmid-roberta-large-sst2-ov install, users can directly use philschmid-roberta-large-sst2-ov installed effect in huggingface.co for debugging and trial. It also supports api for free installation.
philschmid-roberta-large-sst2-ov install url in huggingface.co: