omni_bot / swarms /agents /stream_response.py
Zack Zitting Bradshaw
Upload folder using huggingface_hub
4962437
def stream(response):
"""
Yield the response token by token (word by word) from llm
"""
for token in response.split():
yield token