Skip to content

Commit

Permalink
don't show embedded sdui if no model
Browse files Browse the repository at this point in the history
  • Loading branch information
LostRuins committed May 11, 2024
1 parent 1effe16 commit 702be65
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion koboldcpp.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.")

Expand Down

0 comments on commit 702be65

Please sign in to comment.