Add direct download for session/chat history JSONs
This commit is contained in:
parent
32a2bbee4a
commit
0e8f9354b5
5 changed files with 66 additions and 63 deletions
|
@ -15,6 +15,8 @@ with open(Path(__file__).resolve().parent / '../css/main.js', 'r') as f:
|
|||
main_js = f.read()
|
||||
with open(Path(__file__).resolve().parent / '../css/chat.js', 'r') as f:
|
||||
chat_js = f.read()
|
||||
with open(Path(__file__).resolve().parent / '../css/save_files.js', 'r') as f:
|
||||
save_files_js = f.read()
|
||||
|
||||
refresh_symbol = '🔄'
|
||||
delete_symbol = '🗑️'
|
||||
|
@ -145,9 +147,6 @@ def gather_interface_values(*args):
|
|||
|
||||
if not shared.args.multi_user:
|
||||
shared.persistent_interface_state = output
|
||||
Path('logs').mkdir(exist_ok=True)
|
||||
with open(Path(f'logs/session_{shared.get_mode()}_autosave.json'), 'w') as f:
|
||||
f.write(json.dumps(output, indent=4))
|
||||
|
||||
return output
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue