Card: snippet output shown as an example
Browse files
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
|
| 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:
|