Skip to content

Commit

Permalink
fix adapt init
Browse files Browse the repository at this point in the history
  • Loading branch information
JarbasAl committed Nov 2, 2024
1 parent cc84d2f commit e5a667a
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 @@ -16,7 +16,7 @@
from typing import Tuple, Callable, Union

from ocp_pipeline.opm import OCPPipelineMatcher
from ovos_adapt.opm import AdaptPipeline as AdaptService
from ovos_adapt.opm import AdaptPipeline
from ovos_bus_client.message import Message
from ovos_bus_client.session import SessionManager
from ovos_bus_client.util import get_message_lang
Expand Down Expand Up @@ -84,15 +84,15 @@ def __init__(self, bus, config=None):

def _load_pipeline_plugins(self):
# TODO - replace with plugin loader from OPM
self._adapt_service = AdaptService(config=self.config.get("adapt", {}))
self._adapt_service = AdaptPipeline(bus=self.bus, config=self.config.get("adapt", {}))
if "padatious" not in self.config:
self.config["padatious"] = Configuration().get("padatious", {})
try:
if self.config["padatious"].get("disabled"):
LOG.info("padatious forcefully disabled in config")
else:
from ovos_padatious.opm import PadatiousPipeline as PadatiousService
self._padatious_service = PadatiousService(self.bus, self.config["padatious"])
from ovos_padatious.opm import PadatiousPipeline
self._padatious_service = PadatiousPipeline(self.bus, self.config["padatious"])
except ImportError:
LOG.error(f'Failed to create padatious intent handlers, padatious not installed')

Expand Down

0 comments on commit e5a667a

Please sign in to comment.