From ea3bfb6652d9e8a896193a108187fbe00843c8f8 Mon Sep 17 00:00:00 2001 From: freddyaboulton Date: Thu, 4 Apr 2024 13:23:37 -0400 Subject: [PATCH] Lint --- gradio/routes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gradio/routes.py b/gradio/routes.py index 0212713fb5ec..6b75776cbd5e 100644 --- a/gradio/routes.py +++ b/gradio/routes.py @@ -612,7 +612,7 @@ async def stop_stream(): # locally and in deployment we should use the event-based approach if os.getenv("GRADIO_IS_E2E_TEST") and sys.version_info < (3, 9): while app.get_blocks().is_running: - await asyncio.sleep(0.) + await asyncio.sleep(0.25) return "stop" else: await app.stop_event.wait()