Evaluation scripts for the Open TTS Leaderboard: https://huggingface.co/spaces/hf-audio/open_tts_leaderboard
Python
Fix run_stage temp file on macOS: keep the Xs last in mktemp (#44)
zohuyhieuzo03b5ee77f4d1f7
diff --git a/scripts/tts_jobs_common.sh b/scripts/tts_jobs_common.shindex f6e2dc0..5be8934 100644--- a/scripts/tts_jobs_common.sh+++ b/scripts/tts_jobs_common.sh@@ -189,7 +189,7 @@ _is_transient_job_failure() {# Output is tee'd, not buffered, so the chain log still streams `hf jobs run`'s live job logs.run_stage() {local stage_fn="$1" attempt=1 delay="${STAGE_RETRY_SLEEP}" rc out- out="$(mktemp "${TMPDIR:-/tmp}/tts_stage_XXXXXX.log")"+ out="$(mktemp "${TMPDIR:-/tmp}/tts_stage_XXXXXX")" # Xs must be last: BSD/macOS mktemp keeps a ".log" suffix literalwhile :; do"${stage_fn}" 2>&1 | tee "${out}"rc=${PIPESTATUS[0]}