Fix for blank model info box when downloading model

This commit is contained in:
ebolam
2022-07-28 19:40:27 -04:00
parent 3b5ab92a02
commit f97c10b794

View File

@ -1310,7 +1310,8 @@ def patch_transformers_download():
import copy, requests, tqdm, time
class Send_to_socketio(object):
def write(self, bar):
bar = bar.replace("\r", "")
bar = bar.replace("\r", "").replace("\n", "")
if bar != "":
try:
print(bar, end="\r")
emit('from_server', {'cmd': 'model_load_status', 'data': bar.replace(" ", " ")}, broadcast=True)