Buckets:
AnonymousSpottedToad/human_verified_bucket / codebase /python /Chainlit_chainlit /cypress /e2e /streaming /main.py
| import chainlit as cl | |
| token_list = ["the ", "quick ", "brown ", "fox"] | |
| sequence_list = ["the", "the quick", "the quick brown", "the quick brown fox"] | |
| async def main(): | |
| msg = cl.Message(content="") | |
| for token in token_list: | |
| await msg.stream_token(token) | |
| await cl.sleep(0.2) | |
| await msg.send() | |
| msg = cl.Message(content="") | |
| for seq in sequence_list: | |
| await msg.stream_token(token=seq, is_sequence=True) | |
| await cl.sleep(0.2) | |
| await msg.send() | |
| step = cl.Step(type="tool", name="tool1") | |
| for token in token_list: | |
| await step.stream_token(token) | |
| await cl.sleep(0.2) | |
| await step.send() | |
Xet Storage Details
- Size:
- 680 Bytes
- Xet hash:
- a1dd6a593dda1f82f5ff06f9d617f255665f924af8ec32d1a0c8a4eb116990a4
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.