ericmey commited on
Commit
123dcda
·
verified ·
1 Parent(s): 3257ea1

Card: snippet output shown as an example

Browse files
Files changed (1) hide show
  1. README.md +1 -1
README.md CHANGED
@@ -46,7 +46,7 @@ router = pipeline("text-classification", model="ericmey/five-lane-router-modernb
46
  router.tokenizer.truncation_side = "left" # keep the END of long conversations
47
 
48
  scores = router("user: can you draw me a lighthouse at dusk?", truncation=True, max_length=512)[0] # all five lanes, best first
49
- print(scores[0]["label"], scores[0]["score"]) # image 1.0
50
  ```
51
 
52
  **Input format matters.** The model was trained on the last up-to-8 conversation turns, one per line, formatted `role: text` for `user` and `assistant` turns only, with the request being routed on the last line:
 
46
  router.tokenizer.truncation_side = "left" # keep the END of long conversations
47
 
48
  scores = router("user: can you draw me a lighthouse at dusk?", truncation=True, max_length=512)[0] # all five lanes, best first
49
+ print(scores[0]["label"], scores[0]["score"]) # e.g. image 0.99...
50
  ```
51
 
52
  **Input format matters.** The model was trained on the last up-to-8 conversation turns, one per line, formatted `role: text` for `user` and `assistant` turns only, with the request being routed on the last line: