From 8dd362f84fec362ae41df56624aa8b7fd0462584 Mon Sep 17 00:00:00 2001 From: Andrew <15331990+ahuang11@users.noreply.github.com> Date: Mon, 28 Oct 2024 02:44:27 -0700 Subject: [PATCH] Replace asyncio.sleep with time.sleep in ChatFeed docs (#7439) * Remove asyncio sleep * use time instead of asyncio --- examples/reference/chat/ChatFeed.ipynb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/reference/chat/ChatFeed.ipynb b/examples/reference/chat/ChatFeed.ipynb index bf117aeb7c..fbc8bd0ab7 100644 --- a/examples/reference/chat/ChatFeed.ipynb +++ b/examples/reference/chat/ChatFeed.ipynb @@ -701,7 +701,7 @@ "source": [ "with chat_feed.add_step(title=\"Execute the plan\", status=\"running\") as step:\n", " step.stream(\"\\n\\n...Executing plan...\")\n", - " await asyncio.sleep(1)\n", + " time.sleep(1)\n", " step.stream(\"\\n\\n...Handing over to SQL Agent\")" ] }, @@ -720,7 +720,7 @@ "source": [ "with chat_feed.add_step(title=\"Running SQL query\", user='SQL Agent') as step:\n", " step.stream('Querying...')\n", - " await asyncio.sleep(1)\n", + " time.sleep(1)\n", " step.stream('\\nSELECT * FROM TABLE')" ] },