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

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