Fix Windows console encoding in generate-batch progress output.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user