Formatting for python binding.

Signed-off-by: Morgan Funtowicz <morgan@huggingface.co>
This commit is contained in:
Morgan Funtowicz
2020-02-22 00:17:44 +01:00
parent fefc7a1822
commit 0fc8be9d69

View File

@@ -30,15 +30,12 @@ impl Model {
for (key, value) in kwargs {
let key: &str = key.extract()?;
match key {
"name" => {
name = value.extract()?
}
"name" => name = value.extract()?,
_ => println!("Ignored unknown kwarg option {}", key),
}
}
}
let saved: PyResult<Vec<_>> = ToPyResult(
self.model
.execute(|model| model.save(Path::new(folder), name)),