Bugfix for save function not appending .json extension by default

Bugfix for New Story function not clearing World Info from previous story
Torch will not be initialized unless you select a local model, as there's no reason to invoke it for InferKit/Colab
Changed JSON file writes to use indentation for readability
This commit is contained in:
KoboldAI Dev
2021-05-15 19:29:41 -04:00
parent 429c9b13f5
commit 2cef3bceaf
2 changed files with 40 additions and 39 deletions

View File

@ -10,7 +10,8 @@ def getsavepath(dir, title, types):
path = tk.filedialog.asksaveasfile(
initialdir=dir,
title=title,
filetypes = types
filetypes = types,
defaultextension="*.*"
)
root.destroy()
if(path != "" and path != None):