nemoguardrails.integrations.langchain.providers.huggingface.streamers
Module Contents
Classes
Data
API
Bases: TextStreamer
Simple async implementation for HuggingFace Transformers streamers.
This follows closely how transformers.generation.streamers.TextIteratorStreamer works, with minor modifications to make it async.
loop
text_queue
async
Put the new text in the queue. If the stream is ending, also put a stop signal in the queue.