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

@@ -187,8 +187,8 @@ async def main():
allow_interruptions=False, # We don't want to interrupt the translator bot
enable_metrics=True,
enable_usage_metrics=True,
observers=[RTVIObserver(rtvi)],
),
observers=[RTVIObserver(rtvi)],
)
@transport.event_handler("on_first_participant_joined")