Fix Windows console encoding in generate-batch progress output.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-06-07 15:36:29 +01:00
parent 98890b9581
commit 316dde4919
+2 -1
View File
@@ -49,7 +49,8 @@ async def generate_batch(count: int) -> None:
print(f"Batch: {count} vocal tracks (daily limit ignored)\n")
for i, hint in enumerate(hints, 1):
print(f"\n{'=' * 60}\n[{i}/{count}] {hint[:72]}\n{'=' * 60}")
preview = hint[:72].encode("ascii", errors="replace").decode()
print(f"\n{'=' * 60}\n[{i}/{count}] {preview}...\n{'=' * 60}", flush=True)
try:
await generate_one(hint)
except Exception as exc: