From 3b377449e291902b4104d67b7380871f8b68e272 Mon Sep 17 00:00:00 2001 From: Saifeddine ALOUI Date: Sat, 15 Feb 2025 20:21:38 +0100 Subject: [PATCH] upgraded sink --- lollms/personality.py | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/lollms/personality.py b/lollms/personality.py index 5e9f48f..059c05c 100644 --- a/lollms/personality.py +++ b/lollms/personality.py @@ -131,6 +131,7 @@ class AIPersonality: Raises: ValueError: If the provided path is not a folder or does not contain a config.yaml file. """ + self.sink_id = 0 self.config = config self.bot_says = "" @@ -463,7 +464,15 @@ class AIPersonality: ) def sink(self, s=None,i=None,d=None): - pass + if self.config.debug: + print(s,end="") + else: + animation = "⠋⠙⠹⠸⠼⠴⠦⠧⠇⠏" + ASCIIColors.yellow(animation[self.sink_id]+"\r") + if self.sink_id<9: + self.sink_id += 1 + else: + self.sink_id = 0 def yes_no( self,