Skip to content

armgit / laya

Public Imported from GitHub
0

Non-autoregressive System 1 decision engine. Typed choice, score and yes/no decisions over any text in a single forward pass, in 100+ languages, with a router that picks the right checkpoint per request.

style(rust): rustfmt laya_shortlist_tests.rs

kevin-gatimud29bd1c08928
diff --git a/laya-rust/tests/laya_shortlist_tests.rs b/laya-rust/tests/laya_shortlist_tests.rs
index 1649e9e4..7da6ed08 100644
--- a/laya-rust/tests/laya_shortlist_tests.rs
+++ b/laya-rust/tests/laya_shortlist_tests.rs
@@ -285,14 +285,9 @@ fn scores_are_clipped_to_the_documented_range() {
.with("intent", Question::choice("Pick one", criteria).unwrap())
.unwrap();
- let result = LayaShortlist::predict(
- &FirstLabelPredictor,
- json!("pick me"),
- &questions,
- embed,
- 2,
- )
- .unwrap();
+ let result =
+ LayaShortlist::predict(&FirstLabelPredictor, json!("pick me"), &questions, embed, 2)
+ .unwrap();
let scores = result.shortlist().unwrap()["intent"]
.scores
.as_ref()