Skip to content

Commit

Permalink
fix: load env vars in download_models.py
Browse files Browse the repository at this point in the history
  • Loading branch information
tazlin committed Oct 4, 2023
1 parent a13cf43 commit 809f95e
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions download_models.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
import hordelib
from loguru import logger

hordelib.initialise()

from horde_model_reference.model_reference_manager import ModelReferenceManager
from hordelib.shared_model_manager import SharedModelManager
from loguru import logger

from horde_worker_regen.bridge_data.load_config import BridgeDataLoader, reGenBridgeData
from horde_worker_regen.consts import BRIDGE_CONFIG_FILENAME
Expand All @@ -25,10 +20,16 @@ def main() -> None:
file_path=BRIDGE_CONFIG_FILENAME,
horde_model_reference_manager=horde_model_reference_manager,
)
bridge_data.load_env_vars()
except Exception as e:
logger.error(e)
input("Press any key to exit...")

import hordelib

hordelib.initialise()
from hordelib.shared_model_manager import SharedModelManager

SharedModelManager.load_model_managers()

if bridge_data.allow_controlnet:
Expand Down

0 comments on commit 809f95e

Please sign in to comment.