don't show embedded sdui if no model

This commit is contained in:
Concedo 2024-05-11 08:56:56 +08:00
parent 1effe16861
commit 702be65ed1

View file

@ -3185,7 +3185,8 @@ def main(launch_args,start_server=True):
basepath = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(basepath, "kcpp_sdui.embd"), mode='rb') as f:
embedded_kcpp_sdui = f.read()
print("Embedded SDUI loaded.")
if args.sdmodel:
print("Embedded SDUI loaded.")
except Exception as e:
print("Could not find Embedded SDUI.")