Evaluation scripts for the Open TTS Leaderboard: https://huggingface.co/spaces/hf-audio/open_tts_leaderboard
Python
Fix inject_cmd on macOS: read the file from stdin (#32)
zohuyhieuzo039c363691f539
diff --git a/scripts/tts_jobs_common.sh b/scripts/tts_jobs_common.shindex 00cc990..1e45219 100644--- a/scripts/tts_jobs_common.sh+++ b/scripts/tts_jobs_common.sh@@ -107,7 +107,7 @@ stage_enabled() { [[ " ${STAGES} " == *" $1 "* ]]; }# inject_cmd <local_file> <container_dest> → `... &&` snippet recreating the file in the job.inject_cmd() {local b64- b64=$(base64 -w0 "$1")+ b64=$(base64 -w0 < "$1")echo "mkdir -p $(dirname "$2") && echo '${b64}' | base64 -d > $2 &&"}# inject_cmd_gz <local_file> <container_path> → same, but gzipped first, for large payloads: a job