Possible colab aria2 status fix

This commit is contained in:
Henk
2022-09-21 19:48:17 +02:00
parent 06f4d9addf
commit fef946c173

View File

@ -186,7 +186,7 @@ def _download_with_aria2(aria2_config: str, total_length: int, directory: str =
if bar != "": if bar != "":
try: try:
print(bar, end="\r") print('\r' + bar, end='')
try: try:
emit('from_server', {'cmd': 'model_load_status', 'data': bar.replace(" ", " ")}, broadcast=True) emit('from_server', {'cmd': 'model_load_status', 'data': bar.replace(" ", " ")}, broadcast=True)
except: except: