Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
|
@@ -58,6 +58,6 @@ import onnxruntime as rt, numpy as np
|
|
| 58 |
|
| 59 |
sess = rt.InferenceSession("yesno_svm_cal_multilingual_0.9.0.onnx")
|
| 60 |
inp = np.array(["Yes, of course!"], dtype=object)
|
| 61 |
-
label, probs = sess.run(None, {
|
| 62 |
print(label[0]) # yes
|
| 63 |
```
|
|
|
|
| 58 |
|
| 59 |
sess = rt.InferenceSession("yesno_svm_cal_multilingual_0.9.0.onnx")
|
| 60 |
inp = np.array(["Yes, of course!"], dtype=object)
|
| 61 |
+
label, probs = sess.run(None, {"input": inp})
|
| 62 |
print(label[0]) # yes
|
| 63 |
```
|