Add print in console for model downloading when using Aria2
This commit is contained in:
parent
10e3e64b0b
commit
ec90b76064
2
utils.py
2
utils.py
|
@ -176,7 +176,9 @@ from flask_socketio import emit
|
|||
class Send_to_socketio(object):
|
||||
def write(self, bar):
|
||||
time.sleep(0.01)
|
||||
print("got bar data")
|
||||
try:
|
||||
print(bar, end="\r")
|
||||
emit('from_server', {'cmd': 'model_load_status', 'data': bar.replace(" ", " ")}, broadcast=True)
|
||||
except:
|
||||
pass
|
||||
|
|
Loading…
Reference in New Issue