README: use HF repo id
Browse files
README.md
CHANGED
|
@@ -30,7 +30,7 @@ snippet across **107 languages**.
|
|
| 30 |
import torch
|
| 31 |
from transformers import AutoModelForSequenceClassification, AutoTokenizer
|
| 32 |
|
| 33 |
-
model_id = "programming-language-identification-100plus"
|
| 34 |
tokenizer = AutoTokenizer.from_pretrained(model_id)
|
| 35 |
model = AutoModelForSequenceClassification.from_pretrained(
|
| 36 |
model_id,
|
|
@@ -67,7 +67,7 @@ pulling PyTorch — handy for non-Python consumers and edge deployments.
|
|
| 67 |
from optimum.onnxruntime import ORTModelForSequenceClassification
|
| 68 |
from transformers import AutoTokenizer
|
| 69 |
|
| 70 |
-
model_id = "programming-language-identification-100plus"
|
| 71 |
tokenizer = AutoTokenizer.from_pretrained(model_id)
|
| 72 |
ort_model = ORTModelForSequenceClassification.from_pretrained(
|
| 73 |
model_id, subfolder="onnx"
|
|
|
|
| 30 |
import torch
|
| 31 |
from transformers import AutoModelForSequenceClassification, AutoTokenizer
|
| 32 |
|
| 33 |
+
model_id = "FrameByFrame/programming-language-identification-100plus"
|
| 34 |
tokenizer = AutoTokenizer.from_pretrained(model_id)
|
| 35 |
model = AutoModelForSequenceClassification.from_pretrained(
|
| 36 |
model_id,
|
|
|
|
| 67 |
from optimum.onnxruntime import ORTModelForSequenceClassification
|
| 68 |
from transformers import AutoTokenizer
|
| 69 |
|
| 70 |
+
model_id = "FrameByFrame/programming-language-identification-100plus"
|
| 71 |
tokenizer = AutoTokenizer.from_pretrained(model_id)
|
| 72 |
ort_model = ORTModelForSequenceClassification.from_pretrained(
|
| 73 |
model_id, subfolder="onnx"
|