model card: weights are public, no token needed
Browse files
README.md
CHANGED
|
@@ -27,13 +27,13 @@ every release. The same weights serve Node, Python, and an HTTP endpoint through
|
|
| 27 |
|---|---|
|
| 28 |
| Python | `pip install sb-decision` · https://pypi.org/project/sb-decision/ |
|
| 29 |
| JavaScript, React, Node | `npm install sb-decision` · https://www.npmjs.com/package/sb-decision |
|
| 30 |
-
| Weights | this repository
|
| 31 |
| Author | https://huggingface.co/sarathi-balakrishnan |
|
| 32 |
|
| 33 |
```python
|
| 34 |
from sb_decision import SBDecision
|
| 35 |
|
| 36 |
-
m = SBDecision.load() # sarathi-balakrishnan/browser-decision-model-base
|
| 37 |
print(m.decide("Package arrived broken, second time this month. I want a manager.",
|
| 38 |
["refund: customer wants money back for a damaged, wrong, or missing item",
|
| 39 |
"replace: customer wants the product again",
|
|
@@ -44,7 +44,7 @@ print(m.decide("Package arrived broken, second time this month. I want a manager
|
|
| 44 |
```js
|
| 45 |
import { SBDecision } from "sb-decision";
|
| 46 |
|
| 47 |
-
const m = await SBDecision.load(
|
| 48 |
const r = await m.decide("Package arrived broken, second time this month. I want a manager.", [
|
| 49 |
"refund: customer wants money back for a damaged, wrong, or missing item",
|
| 50 |
"replace: customer wants the product again",
|
|
|
|
| 27 |
|---|---|
|
| 28 |
| Python | `pip install sb-decision` · https://pypi.org/project/sb-decision/ |
|
| 29 |
| JavaScript, React, Node | `npm install sb-decision` · https://www.npmjs.com/package/sb-decision |
|
| 30 |
+
| Weights | this repository, public: `SBDecision.load()` fetches them with no token |
|
| 31 |
| Author | https://huggingface.co/sarathi-balakrishnan |
|
| 32 |
|
| 33 |
```python
|
| 34 |
from sb_decision import SBDecision
|
| 35 |
|
| 36 |
+
m = SBDecision.load() # sarathi-balakrishnan/browser-decision-model-base, no token needed
|
| 37 |
print(m.decide("Package arrived broken, second time this month. I want a manager.",
|
| 38 |
["refund: customer wants money back for a damaged, wrong, or missing item",
|
| 39 |
"replace: customer wants the product again",
|
|
|
|
| 44 |
```js
|
| 45 |
import { SBDecision } from "sb-decision";
|
| 46 |
|
| 47 |
+
const m = await SBDecision.load(); // browser (cached after the first load) or Node, no token needed
|
| 48 |
const r = await m.decide("Package arrived broken, second time this month. I want a manager.", [
|
| 49 |
"refund: customer wants money back for a damaged, wrong, or missing item",
|
| 50 |
"replace: customer wants the product again",
|