Spaces:
Runtime error
Runtime error
Load openvino model without exporting it
Browse files
app.py
CHANGED
@@ -7,9 +7,7 @@ model_id = "juliensimon/xlm-v-base-language-id"
|
|
7 |
|
8 |
p = pipeline("text-classification", model=model_id)
|
9 |
|
10 |
-
ov_model = OVModelForSequenceClassification.from_pretrained(
|
11 |
-
model_id, from_transformers=True
|
12 |
-
)
|
13 |
tokenizer = AutoTokenizer.from_pretrained(model_id)
|
14 |
|
15 |
ov_p = pipeline("text-classification", model=ov_model, tokenizer=tokenizer)
|
|
|
7 |
|
8 |
p = pipeline("text-classification", model=model_id)
|
9 |
|
10 |
+
ov_model = OVModelForSequenceClassification.from_pretrained(model_id)
|
|
|
|
|
11 |
tokenizer = AutoTokenizer.from_pretrained(model_id)
|
12 |
|
13 |
ov_p = pipeline("text-classification", model=ov_model, tokenizer=tokenizer)
|