diff --git a/aiserver.py b/aiserver.py index 7adf0e0c..5002feb5 100644 --- a/aiserver.py +++ b/aiserver.py @@ -1038,6 +1038,8 @@ def savesettings(): if(vars.seed_specified): js["seed"] = vars.seed + else: + js["seed"] = None js["newlinemode"] = vars.newlinemode @@ -1153,7 +1155,10 @@ def processsettings(js): if("seed" in js): vars.seed = js["seed"] - vars.seed_specified = True + if(vars.seed is not None): + vars.seed_specified = True + else: + vars.seed_specified = False else: vars.seed_specified = False diff --git a/utils.py b/utils.py index f7ea95b8..9a35c623 100644 --- a/utils.py +++ b/utils.py @@ -175,7 +175,6 @@ def num_layers(config): from flask_socketio import emit class Send_to_socketio(object): def write(self, bar): - print("should be emitting: ", bar, end="") time.sleep(0.01) try: emit('from_server', {'cmd': 'model_load_status', 'data': bar.replace(" ", " ")}, broadcast=True)