PipelineTask: pass observers in contructor parameter

This commit is contained in:
Aleix Conchillo Flaqué
2025-02-24 17:19:30 -08:00
parent e9a0959e28
commit 6028f0f23a
8 changed files with 29 additions and 13 deletions

View File

@@ -92,10 +92,8 @@ async def main():
task = PipelineTask(
pipeline,
params=PipelineParams(
allow_interruptions=True,
observers=[rtvi.observer()],
),
params=PipelineParams(allow_interruptions=True),
observers=[rtvi.observer()],
)
@rtvi.event_handler("on_client_ready")