Skip to content

Commit

Permalink
Merge pull request #310 from weedge/fix/StatelessTextTransformer
Browse files Browse the repository at this point in the history
fix: push_frame use TextFrame
  • Loading branch information
aconchillo authored Jul 22, 2024
2 parents ffc157d + e5363f6 commit ab63ff2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pipecat/processors/text_transformer.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,6 @@ async def process_frame(self, frame: Frame, direction: FrameDirection):
result = self._transform_fn(frame.text)
if isinstance(result, Coroutine):
result = await result
await self.push_frame(result)
await self.push_frame(TextFrame(text=result))
else:
await self.push_frame(frame, direction)

0 comments on commit ab63ff2

Please sign in to comment.