From 8082cc67f5759284c2f4dea21b6fd9eee686acb4 Mon Sep 17 00:00:00 2001 From: harshalmore31 Date: Fri, 15 Aug 2025 20:46:49 +0530 Subject: [PATCH] updates --- swarms/utils/formatter.py | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/swarms/utils/formatter.py b/swarms/utils/formatter.py index a56c9f1f..09178914 100644 --- a/swarms/utils/formatter.py +++ b/swarms/utils/formatter.py @@ -27,12 +27,6 @@ dashboard_live = None # Create a spinner for loading animation spinner = Spinner("dots", style="yellow") -# Global lock to ensure only a single Rich Live context is active at any moment. -# Rich's Live render is **not** thread-safe; concurrent Live contexts on the same -# console raise runtime errors. Using a module-level lock serialises access and -# prevents crashes when multiple agents stream simultaneously in different -# threads (e.g., in ConcurrentWorkflow). -live_render_lock = threading.Lock() def choose_random_color(): import random @@ -314,7 +308,6 @@ class Formatter: ): # Add ONLY the new chunk to the Text object with random color style chunk = part.choices[0].delta.content - streaming_text.append( chunk, style=text_style ) @@ -447,4 +440,4 @@ class Formatter: self._dashboard_live = None -formatter = Formatter() +formatter = Formatter() \ No newline at end of file