remove reference to legacy opt.hf_token, clean up whitespace in invokeai_configure

This commit is contained in:
Eugene 2023-05-17 20:39:00 -04:00
parent 4e7dd7d3f6
commit f9710dd6ed

View File

@ -704,9 +704,6 @@ def write_opts(opts: Namespace, init_file: Path):
with open(init_file,'w', encoding='utf-8') as file:
file.write(config.to_yaml())
if opts.hf_token:
HfLogin(opts.hf_token)
# -------------------------------------
def default_output_dir() -> Path:
return config.root / "outputs"
@ -722,7 +719,6 @@ def default_lora_dir() -> Path:
# -------------------------------------
def write_default_options(program_opts: Namespace, initfile: Path):
opt = default_startup_options(initfile)
opt.hf_token = HfFolder.get_token()
write_opts(opt, initfile)
# -------------------------------------