From 5a31594343d8c5a535fd8bb1c98ed9c3b0c80492 Mon Sep 17 00:00:00 2001 From: "adam.promo@gmail.com" <27074934+adamyodinsky@users.noreply.github.com> Date: Tue, 26 Dec 2023 13:03:04 +0200 Subject: [PATCH] print faster --- terminalgpt/printer.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/terminalgpt/printer.py b/terminalgpt/printer.py index c431bce..219ac45 100644 --- a/terminalgpt/printer.py +++ b/terminalgpt/printer.py @@ -13,7 +13,7 @@ class Printer(ABC): - PRINT_DELAY = 0.004 + PRINT_DELAY = 0.006 @abstractmethod def printt(self, text: str = ""): @@ -53,7 +53,7 @@ def printt(self, text: str = "", style="yellow"): self.__console.print(text_markdown, style=style) text_markdown = capture.get() if txt.startswith("```"): - delay = self.PRINT_DELAY / 10 + delay = self.PRINT_DELAY / 14 else: delay = self.PRINT_DELAY self._print_with_delay(text_markdown, delay)