mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2024-09-20 10:35:10 +02:00
Fix a minor bug
This commit is contained in:
parent
f06a1387f0
commit
bc58dc40bd
1 changed files with 2 additions and 0 deletions
|
@ -451,6 +451,8 @@ def save_history(mode, timestamp=False):
|
|||
with open(Path(f'logs/{fname}'), 'w', encoding='utf-8') as f:
|
||||
f.write(json.dumps({'data': shared.history['internal'], 'data_visible': shared.history['visible']}, indent=2))
|
||||
|
||||
return Path(f'logs/{fname}')
|
||||
|
||||
|
||||
def load_history(file, name1, name2):
|
||||
file = file.decode('utf-8')
|
||||
|
|
Loading…
Reference in a new issue