mirror of
https://github.com/KoboldAI/KoboldAI-Client.git
synced 2025-02-17 12:10:49 +01:00
Merge pull request #174 from ebolam/united
Fix for blank model info box when downloading model
This commit is contained in:
commit
a63f7cfa5a
@ -1319,7 +1319,8 @@ def patch_transformers_download():
|
|||||||
import copy, requests, tqdm, time
|
import copy, requests, tqdm, time
|
||||||
class Send_to_socketio(object):
|
class Send_to_socketio(object):
|
||||||
def write(self, bar):
|
def write(self, bar):
|
||||||
bar = bar.replace("\r", "")
|
bar = bar.replace("\r", "").replace("\n", "")
|
||||||
|
if bar != "":
|
||||||
try:
|
try:
|
||||||
print(bar, end="\r")
|
print(bar, end="\r")
|
||||||
emit('from_server', {'cmd': 'model_load_status', 'data': bar.replace(" ", " ")}, broadcast=True)
|
emit('from_server', {'cmd': 'model_load_status', 'data': bar.replace(" ", " ")}, broadcast=True)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user