mirror of
https://github.com/aljazceru/vibeline.git
synced 2026-01-15 04:24:22 +01:00
Update run.sh to use the new watch_voice_memos.py script with force flag support
This commit is contained in:
25
run.sh
25
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."
|
||||
echo "Starting voice memo watcher..."
|
||||
echo "Press Ctrl+C to stop"
|
||||
echo ""
|
||||
|
||||
# Run the watcher
|
||||
$CMD
|
||||
Reference in New Issue
Block a user