Update inference_manager.py
Browse files- inference_manager.py +3 -2
inference_manager.py
CHANGED
@@ -86,9 +86,10 @@ class AuthHelper:
|
|
86 |
|
87 |
class InferenceManager:
|
88 |
def __init__(self, config_path="config.json"):
|
89 |
-
|
90 |
with open(config_path, "r", encoding="utf-8") as f:
|
91 |
-
|
|
|
92 |
lora_options_path = cfg.get("loras", "")
|
93 |
self.lora_load_options = self.load_json(lora_options_path) # Load LoRA load options
|
94 |
self.lora_models = self.load_index_file("index.json") # Load index.json
|
|
|
86 |
|
87 |
class InferenceManager:
|
88 |
def __init__(self, config_path="config.json"):
|
89 |
+
cfg = {}
|
90 |
with open(config_path, "r", encoding="utf-8") as f:
|
91 |
+
cfg = json.load(f)
|
92 |
+
self.cfg = cfg
|
93 |
lora_options_path = cfg.get("loras", "")
|
94 |
self.lora_load_options = self.load_json(lora_options_path) # Load LoRA load options
|
95 |
self.lora_models = self.load_index_file("index.json") # Load index.json
|