Skip to content

Commit f5539b4

Browse files
fix(nodes): rebase fixes
1 parent b9a2e42 commit f5539b4

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

invokeai/app/api/dependencies.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@ class ApiDependencies:
4646

4747
invoker: Invoker = None
4848

49-
def initialize(config, event_handler_id: int, logger: types.ModuleType=logger):
49+
@staticmethod
50+
def initialize(config, event_handler_id: int, logger: Logger = logger):
5051
logger.info(f"Internet connectivity is {config.internet_available}")
5152

5253
events = FastAPIEventService(event_handler_id)
@@ -91,7 +92,7 @@ def initialize(config, event_handler_id: int, logger: types.ModuleType=logger):
9192
),
9293
graph_execution_manager=graph_execution_manager,
9394
processor=DefaultInvocationProcessor(),
94-
restoration=RestorationServices(config,logger),
95+
restoration=RestorationServices(config, logger),
9596
configuration=config,
9697
logger=logger,
9798
)

invokeai/app/services/invocation_services.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def __init__(
4545
graph_execution_manager: ItemStorageABC["GraphExecutionState"],
4646
processor: "InvocationProcessorABC",
4747
restoration: RestorationServices,
48-
configuration: InvokeAISettings=None,
48+
configuration: InvokeAISettings = None,
4949
):
5050
self.model_manager = model_manager
5151
self.events = events
@@ -58,5 +58,3 @@ def __init__(
5858
self.processor = processor
5959
self.restoration = restoration
6060
self.configuration = configuration
61-
62-

0 commit comments

Comments
 (0)