mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
Allow passing of civit api key via config
This commit is contained in:
committed by
Kent Keirsey
parent
14efc95707
commit
088e3420e6
@ -111,7 +111,7 @@ class ModelInstall(object):
|
||||
self.datasets = OmegaConf.load(Dataset_path)
|
||||
self.prediction_helper = prediction_type_helper
|
||||
self.access_token = access_token or HfFolder.get_token()
|
||||
self.civit_api_key = civit_api_key or os.environ.get("CIVIT_API_KEY")
|
||||
self.civit_api_key = civit_api_key or config.civit_api_key
|
||||
self.reverse_paths = self._reverse_paths(self.datasets)
|
||||
|
||||
def all_models(self) -> Dict[str, ModelLoadInfo]:
|
||||
|
Reference in New Issue
Block a user