Skip to content

Commit

Permalink
Minor formatting improvement for async job status
Browse files Browse the repository at this point in the history
  • Loading branch information
ThioJoe committed Jan 11, 2024
1 parent df66bde commit ddde1c7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Scripts/TTS.py
Original file line number Diff line number Diff line change
Expand Up @@ -459,6 +459,7 @@ async def synthesize_dictionary_async(subsDict, langDict, skipSynthesize=False,
progress = 0
total_tasks = len(subsDict)

print("Beginning TTS Synthesis...")
async def synthesize_and_save(key, value):
nonlocal progress
# Use this to set max concurrent jobs
Expand All @@ -478,7 +479,7 @@ async def synthesize_and_save(key, value):
# Update and display progress
async with lock:
progress += 1
print(f"Synthesizing TTS: {progress} of {total_tasks}", end="\r")
print(f" Synthesizing TTS: {progress} of {total_tasks}", end="\r")

tasks = []

Expand Down

0 comments on commit ddde1c7

Please sign in to comment.