-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdamo_run.sh
More file actions
executable file
·29 lines (23 loc) · 885 Bytes
/
Copy pathdamo_run.sh
File metadata and controls
executable file
·29 lines (23 loc) · 885 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/usr/bin/env bash
set -euo pipefail
cd "$(dirname "$0")"
export DAMO_WORKSPACE="${DAMO_WORKSPACE:-$(pwd)}"
previous_day() {
if date -v-1d +%F >/dev/null 2>&1; then
date -v-1d +%F
else
date -d yesterday +%F
fi
}
export DAMO_START_DATE="${DAMO_START_DATE:-$(previous_day)}"
export DAMO_END_DATE="${DAMO_END_DATE:-$DAMO_START_DATE}"
export DAMO_WHISPER_MODEL="${DAMO_WHISPER_MODEL:-tiny}"
./scripts/ensure_opencli_bridge.sh || echo "WARN: OpenCLI Browser Bridge unavailable; continuing with API/audio fallbacks." >&2
python3 damo_tracker.py
python3 damo_format_result.py
archive_dir="$DAMO_WORKSPACE/damo_runs"
mkdir -p "$archive_dir"
stamp="$(date +%Y%m%d_%H%M%S)"
range_key="${DAMO_START_DATE}_${DAMO_END_DATE}"
cp damo_result.json "$archive_dir/damo_result_${range_key}_${stamp}.json"
cp damo_report_current.md "$archive_dir/damo_report_${range_key}_${stamp}.md"