Skip to content

Commit

Permalink
Oh, right, this is a *markdown* output.
Browse files Browse the repository at this point in the history
I can force it to be monospaced.

Current known issue: dl model preview is currently downloading all
previews to the same filename. It should just download one and
stop.
  • Loading branch information
zixaphir committed Oct 14, 2023
1 parent 63d8d6f commit 6f896ef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/ch_lib/downloader.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,9 @@ def alt_progressbar(percent:int) -> str:

percent_as_int = int(percent)
progress = "\u2588" * percent_as_int
remaining = "\u2003" * (100 - percent_as_int)
remaining = "\u00a0" * (100 - percent_as_int)

return f"[{progress}{remaining}] {percent}%"
return f"`[{progress}{remaining}] {percent}%`"


def download_progress(url:str, file_path:str, total_size:int) -> bool | float:
Expand Down

0 comments on commit 6f896ef

Please sign in to comment.