diff --git a/semantic_router/hybrid_layer.py b/semantic_router/hybrid_layer.py
index 853fb33208929903c61152efd31c098e6ba868ee..40c95d6340d3b9448ccb7e8becaecbe6acb052d7 100644
--- a/semantic_router/hybrid_layer.py
+++ b/semantic_router/hybrid_layer.py
@@ -36,7 +36,9 @@ class HybridRouteLayer:
         else:
             self.score_threshold = 0.82
         # if routes list has been passed, we initialize index now
-        if isinstance(self.sparse_encoder, TfidfEncoder) and hasattr(self.sparse_encoder, 'fit'):
+        if isinstance(self.sparse_encoder, TfidfEncoder) and hasattr(
+            self.sparse_encoder, "fit"
+        ):
             self.sparse_encoder.fit(routes)
         if routes:
             # initialize index now
@@ -54,7 +56,9 @@ class HybridRouteLayer:
             return None
 
     def add(self, route: Route):
-        if isinstance(self.sparse_encoder, TfidfEncoder) and hasattr(self.sparse_encoder, 'fit'):            
+        if isinstance(self.sparse_encoder, TfidfEncoder) and hasattr(
+            self.sparse_encoder, "fit"
+        ):
             self.sparse_encoder.fit(self.routes + [route])
             self.sparse_index = None
             for r in self.routes: