commit files to HF hub
Browse files- README.md +1 -1
- inference.py +1 -1
README.md
CHANGED
@@ -19,7 +19,7 @@ model_id = "helenai/papluca-xlm-roberta-base-language-detection-ov"
|
|
19 |
tokenizer = AutoTokenizer.from_pretrained(model_id)
|
20 |
model = OVModelForSequenceClassification.from_pretrained(model_id)
|
21 |
pipe = pipeline("text-classification", model=model, tokenizer=tokenizer)
|
22 |
-
result = pipe(hello world)
|
23 |
print(result)
|
24 |
```
|
25 |
|
|
|
19 |
tokenizer = AutoTokenizer.from_pretrained(model_id)
|
20 |
model = OVModelForSequenceClassification.from_pretrained(model_id)
|
21 |
pipe = pipeline("text-classification", model=model, tokenizer=tokenizer)
|
22 |
+
result = pipe("hello world")
|
23 |
print(result)
|
24 |
```
|
25 |
|
inference.py
CHANGED
@@ -6,5 +6,5 @@ model_id = "helenai/papluca-xlm-roberta-base-language-detection-ov"
|
|
6 |
tokenizer = AutoTokenizer.from_pretrained(model_id)
|
7 |
model = OVModelForSequenceClassification.from_pretrained(model_id)
|
8 |
pipe = pipeline("text-classification", model=model, tokenizer=tokenizer)
|
9 |
-
result = pipe(hello world)
|
10 |
print(result)
|
|
|
6 |
tokenizer = AutoTokenizer.from_pretrained(model_id)
|
7 |
model = OVModelForSequenceClassification.from_pretrained(model_id)
|
8 |
pipe = pipeline("text-classification", model=model, tokenizer=tokenizer)
|
9 |
+
result = pipe("hello world")
|
10 |
print(result)
|