Merge pull request #186 from ebolam/united

Fix for Aria2 download status not showing in colab console
This commit is contained in:
henk717 2022-08-19 18:18:03 +02:00 committed by GitHub
commit 0d4bffe8f8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -177,6 +177,7 @@ class Send_to_socketio(object):
def write(self, bar):
time.sleep(0.01)
try:
print(bar)
emit('from_server', {'cmd': 'model_load_status', 'data': bar.replace(" ", " ")}, broadcast=True)
except:
pass