Update infer.py
Browse files
infer.py
CHANGED
@@ -17,7 +17,7 @@ tokenizer = AutoTokenizer.from_pretrained('google/byt5-small')
|
|
17 |
|
18 |
sentence = "Kupil sem bicikel in mu zamenjal stol.".lower()
|
19 |
|
20 |
-
ort_session = onnxruntime.InferenceSession("
|
21 |
input_ids = [sentence]
|
22 |
input_encoding = tokenizer(
|
23 |
input_ids, padding='longest', max_length=512, truncation=True, return_tensors='pt',
|
|
|
17 |
|
18 |
sentence = "Kupil sem bicikel in mu zamenjal stol.".lower()
|
19 |
|
20 |
+
ort_session = onnxruntime.InferenceSession("g2p_norm_t5.onnx", providers=["CPUExecutionProvider"])
|
21 |
input_ids = [sentence]
|
22 |
input_encoding = tokenizer(
|
23 |
input_ids, padding='longest', max_length=512, truncation=True, return_tensors='pt',
|