sarathi-balakrishnan commited on
Commit
2d41cf4
·
verified ·
1 Parent(s): 796c33b

model card: weights are public, no token needed

Browse files
Files changed (1) hide show
  1. README.md +3 -3
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; private preview, needs a Hugging Face token with access |
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({ token: HF_TOKEN }); // browser (cached after the first load) or Node
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",