Update run.sh to use the new watch_voice_memos.py script with force flag support

This commit is contained in:
Gigi
2025-04-01 11:08:42 +01:00
parent 87c9428aea
commit 28c1b8770e

25
run.sh
View File

@@ -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."
echo "Starting voice memo watcher..."
echo "Press Ctrl+C to stop"
echo ""
# Run the watcher
$CMD