Skip to content

Commit bda95fc

Browse files
author
“thucydides”
committed
fix(demo): avoid str/String mismatch when forwarding PyTorch json lines
1 parent 153048f commit bda95fc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

demo_visual/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1234,7 +1234,7 @@ async fn main() {
12341234
Ok(Some(l)) => {
12351235
println!("PyTorch Out: {}", l);
12361236
if serde_json::from_str::<serde_json::Value>(&l).is_ok() {
1237-
let _ = tx_clone_py.send(l);
1237+
let _ = tx_clone_py.send(l.to_string());
12381238
}
12391239
}
12401240
Ok(None) => stdout_done = true,

0 commit comments

Comments
 (0)