YC (S26) | Open Computer History | Continuously record your company computer work, map your workflows, help you find work worth automating, and power your agents' context
Rust agentsagiaiai-memoryaudio-recordingcomputer-visionhermeshermes-agentllmlocal-ailocal-firstmachine-learningmcpmultimodalopenclawprivacyrewindscreen-recordingspeech-to-textycombinator
style: cargo fmt screenpipe-engine bin + redact text_gate
Louis Beaumontd0ecbffd8d7d
diff --git a/crates/screenpipe-engine/src/bin/screenpipe-engine.rs b/crates/screenpipe-engine/src/bin/screenpipe-engine.rsindex a6828063a..ce10b0b32 100644--- a/crates/screenpipe-engine/src/bin/screenpipe-engine.rs+++ b/crates/screenpipe-engine/src/bin/screenpipe-engine.rs@@ -1912,8 +1912,7 @@ async fn main() -> anyhow::Result<()> {"fetching v45 phase 3 ONNX text redactor (~278 MB INT8 on first run, \cached at ~/.screenpipe/models/v45_phase3_onnx/)");- let (pipeline, gate) = match OnnxRedactor::load_or_download(OnnxConfig::default())- .await+ let (pipeline, gate) = match OnnxRedactor::load_or_download(OnnxConfig::default()).await{Ok(adapter) => {info!(diff --git a/crates/screenpipe-redact/src/image/text_gate.rs b/crates/screenpipe-redact/src/image/text_gate.rsindex eb9706c57..320a585ba 100644--- a/crates/screenpipe-redact/src/image/text_gate.rs+++ b/crates/screenpipe-redact/src/image/text_gate.rs@@ -131,10 +131,8 @@ fn region_text(words: &[OcrWord], bbox: [u32; 4], dims: (u32, u32)) -> String {inside.sort_by(|a, b| {let la = (a.cy / 0.008) as i64;let lb = (b.cy / 0.008) as i64;- la.cmp(&lb).then(- a.cx.partial_cmp(&b.cx)- .unwrap_or(std::cmp::Ordering::Equal),- )+ la.cmp(&lb)+ .then(a.cx.partial_cmp(&b.cx).unwrap_or(std::cmp::Ordering::Equal))});inside.iter()@@ -232,7 +230,7 @@ pub async fn gate_regions(#[cfg(test)]mod tests {use super::*;- use crate::{RedactError, RedactionOutput, RedactedSpan, SpanLabel};+ use crate::{RedactError, RedactedSpan, RedactionOutput, SpanLabel};use async_trait::async_trait;use sqlx::sqlite::SqlitePoolOptions;