Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
JarbasAl committed Nov 12, 2024
1 parent c4271fd commit 2900533
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ovos_core/intent_services/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,7 @@ def __init__(self, bus, config=None):
self.bus = bus
self.config = config or Configuration().get("intents", {})

for p in OVOSPipelineFactory.get_installed_pipelines():
LOG.info(f"Found pipeline: {p}")
OVOSPipelineFactory.create(use_cache=True, bus=self.bus) # pre-loa
self.get_pipeline() # trigger initial load of pipeline plugins (more may be lazy loaded on demand)

self.utterance_plugins = UtteranceTransformersService(bus)
self.metadata_plugins = MetadataTransformersService(bus)
Expand All @@ -67,7 +65,6 @@ def __init__(self, bus, config=None):
# internal, track skills that call self.deactivate to avoid reactivating them again
self._deactivations = defaultdict(list)
self.bus.on('intent.service.skills.deactivate', self._handle_deactivate)
self.get_pipeline() # trigger initial load of pipeline plugins (more may be lazy loaded on demand)

def _handle_transformers(self, message):
"""
Expand Down Expand Up @@ -123,6 +120,9 @@ def get_pipeline(self, skips=None, session=None, skip_stage_matchers=False) -> L
log_deprecation("'skips' kwarg has been deprecated!", "1.0.0")
skips = [OVOSPipelineFactory._MAP.get(p, p) for p in skips]

for p in OVOSPipelineFactory.get_installed_pipelines():
LOG.info(f"Found pipeline: {p}")

pipeline: List[str] = [OVOSPipelineFactory._MAP.get(p, p)
for p in session.pipeline
if p not in skips]
Expand Down

0 comments on commit 2900533

Please sign in to comment.