mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
Fix event args
This commit is contained in:
parent
79fecba274
commit
5431dd5f50
@ -119,13 +119,13 @@ class EventServiceBase:
|
|||||||
graph_execution_state_id=graph_execution_state_id,
|
graph_execution_state_id=graph_execution_state_id,
|
||||||
node=node,
|
node=node,
|
||||||
source_node_id=source_node_id,
|
source_node_id=source_node_id,
|
||||||
model_name=str,
|
model_name=model_name,
|
||||||
model_type=model_type,
|
model_type=model_type.name,
|
||||||
submodel=submodel,
|
submodel=submodel,
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
|
|
||||||
def emit_model_load_completed (
|
def emit_model_load_completed(
|
||||||
self,
|
self,
|
||||||
graph_execution_state_id: str,
|
graph_execution_state_id: str,
|
||||||
node: dict,
|
node: dict,
|
||||||
@ -137,13 +137,13 @@ class EventServiceBase:
|
|||||||
) -> None:
|
) -> None:
|
||||||
"""Emitted when a model is correctly loaded (returns model info)"""
|
"""Emitted when a model is correctly loaded (returns model info)"""
|
||||||
self.__emit_session_event(
|
self.__emit_session_event(
|
||||||
event_name="model_load_started",
|
event_name="model_load_completed",
|
||||||
payload=dict(
|
payload=dict(
|
||||||
graph_execution_state_id=graph_execution_state_id,
|
graph_execution_state_id=graph_execution_state_id,
|
||||||
node=node,
|
node=node,
|
||||||
source_node_id=source_node_id,
|
source_node_id=source_node_id,
|
||||||
model_name=str,
|
model_name=model_name,
|
||||||
model_type=model_type,
|
model_type=model_type.name,
|
||||||
submodel=submodel,
|
submodel=submodel,
|
||||||
model_info=model_info,
|
model_info=model_info,
|
||||||
),
|
),
|
||||||
|
Loading…
Reference in New Issue
Block a user