We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 873ca9b commit 36a094aCopy full SHA for 36a094a
pgml-extension/src/bindings/transformers.rs
@@ -56,7 +56,7 @@ pub fn transform(
56
serde_json::from_str(&results).unwrap()
57
}
58
59
-pub fn embed(transformer: &str, inputs: Vec<&str>, kwargs: &serde_json::Value) -> Vec<Vec<f32>> {
+pub fn embed(transformer: &str, inputs: &[&str], kwargs: &serde_json::Value) -> Vec<Vec<f32>> {
60
crate::bindings::venv::activate();
61
62
let kwargs = serde_json::to_string(kwargs).unwrap();
0 commit comments