Skip to content

Commit

Permalink
💅 Update sleep
Browse files Browse the repository at this point in the history
  • Loading branch information
asim-shrestha committed Jun 14, 2023
1 parent dc5eea6 commit d1528f4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@ async def stream_generator(data: str, delayed: bool) -> AsyncGenerator[bytes, No

for token in token_data:
yield encoding.decode([token]).encode("utf-8")
await asyncio.sleep(0.075) # simulate slow processing
await asyncio.sleep(0.025) # simulate slow processing
else:
yield data.encode()

1 comment on commit d1528f4

@vercel
Copy link

@vercel vercel bot commented on d1528f4 Jun 14, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

docs – ./docs

docs-reworkd.vercel.app
docs-git-main-reworkd.vercel.app
docs.reworkd.ai

Please sign in to comment.