From 28c1b8770ec6e2c3c0682db25a7b01aaa7513fa7 Mon Sep 17 00:00:00 2001 From: Gigi Date: Tue, 1 Apr 2025 11:08:42 +0100 Subject: [PATCH] Update run.sh to use the new watch_voice_memos.py script with force flag support --- run.sh | 25 ++++++++++++++++++++----- 1 file changed, 20 insertions(+), 5 deletions(-) diff --git a/run.sh b/run.sh index 2d9ceca..cf776ea 100755 --- a/run.sh +++ b/run.sh @@ -3,10 +3,25 @@ # Activate virtual environment source vibenv/bin/activate -echo "Processing voice memos to create transcripts..." -./src/process_voice_memos.sh +# Parse command line arguments +FORCE=false +while [[ "$#" -gt 0 ]]; do + case $1 in + -f|--force) FORCE=true ;; + *) echo "Unknown parameter: $1"; exit 1 ;; + esac + shift +done -echo "Creating summaries for transcripts..." -python src/summarize_transcripts.py +# Build command with optional force flag +CMD="python src/watch_voice_memos.py" +if [ "$FORCE" = true ]; then + CMD="$CMD --force" +fi -echo "Done! All voice memos have been processed and summarized." \ No newline at end of file +echo "Starting voice memo watcher..." +echo "Press Ctrl+C to stop" +echo "" + +# Run the watcher +$CMD \ No newline at end of file