mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2024-11-26 01:30:20 +01:00
Windows doesn't like : in filenames
This commit is contained in:
parent
b4fc8dfa8f
commit
2207d44986
@ -564,7 +564,7 @@ if args.chat or args.cai_chat:
|
||||
return _history
|
||||
|
||||
def save_history():
|
||||
fname = f"{character or ''}{'_' if character else ''}{datetime.now().strftime('%Y%m%d-%H:%M:%S')}.json"
|
||||
fname = f"{character or ''}{'_' if character else ''}{datetime.now().strftime('%Y%m%d-%H%M%S')}.json"
|
||||
if not Path('logs').exists():
|
||||
Path('logs').mkdir()
|
||||
with open(Path(f'logs/{fname}'), 'w') as f:
|
||||
|
Loading…
Reference in New Issue
Block a user