From 06f4d9addf44d8107274693887f179e57476c8d1 Mon Sep 17 00:00:00 2001 From: Henk Date: Wed, 21 Sep 2022 19:36:57 +0200 Subject: [PATCH 1/2] No Aria2 spam --- utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils.py b/utils.py index f59c256f..e376a3d1 100644 --- a/utils.py +++ b/utils.py @@ -186,7 +186,7 @@ def _download_with_aria2(aria2_config: str, total_length: int, directory: str = if bar != "": try: - print(bar, end="\n") + print(bar, end="\r") try: emit('from_server', {'cmd': 'model_load_status', 'data': bar.replace(" ", " ")}, broadcast=True) except: From fef946c173b2464472c4d8b5a4cccc49621d3d56 Mon Sep 17 00:00:00 2001 From: Henk Date: Wed, 21 Sep 2022 19:48:17 +0200 Subject: [PATCH 2/2] Possible colab aria2 status fix --- utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils.py b/utils.py index e376a3d1..a5bea541 100644 --- a/utils.py +++ b/utils.py @@ -186,7 +186,7 @@ def _download_with_aria2(aria2_config: str, total_length: int, directory: str = if bar != "": try: - print(bar, end="\r") + print('\r' + bar, end='') try: emit('from_server', {'cmd': 'model_load_status', 'data': bar.replace(" ", " ")}, broadcast=True) except: