mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2026-04-05 06:35:15 +00:00
Minor logging improvements
This commit is contained in:
parent
3add2376cd
commit
4e34ae0587
2 changed files with 6 additions and 6 deletions
|
|
@ -187,7 +187,7 @@ if __name__ == "__main__":
|
|||
settings_file = Path('settings.json')
|
||||
|
||||
if settings_file is not None:
|
||||
logger.info(f"Loading settings from {settings_file}")
|
||||
logger.info(f"Loading settings from \"{settings_file}\"")
|
||||
file_contents = open(settings_file, 'r', encoding='utf-8').read()
|
||||
new_settings = json.loads(file_contents) if settings_file.suffix == "json" else yaml.safe_load(file_contents)
|
||||
shared.settings.update(new_settings)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue