From 7b4d96652df7df2ad0e58949957651740cc16696 Mon Sep 17 00:00:00 2001 From: Torantulino Date: Wed, 29 Mar 2023 07:29:40 +0100 Subject: [PATCH] Increases typing speed. --- AutonomousAI/main.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/AutonomousAI/main.py b/AutonomousAI/main.py index 0dc6623995..f20a6ce456 100644 --- a/AutonomousAI/main.py +++ b/AutonomousAI/main.py @@ -8,7 +8,7 @@ from colorama import Fore, Style from spinner import Spinner import time -def print_to_console(title, title_color, content, min_typing_speed=0.1, max_typing_speed=0.3): +def print_to_console(title, title_color, content, min_typing_speed=0.05, max_typing_speed=0.01): print(title_color + title + " " + Style.RESET_ALL, end="") words = content.split() for i, word in enumerate(words): @@ -18,8 +18,8 @@ def print_to_console(title, title_color, content, min_typing_speed=0.1, max_typi typing_speed = random.uniform(min_typing_speed, max_typing_speed) time.sleep(typing_speed) # type faster after each word - min_typing_speed = min_typing_speed * 0.9 - max_typing_speed = max_typing_speed * 0.9 + min_typing_speed = min_typing_speed * 0.95 + max_typing_speed = max_typing_speed * 0.95 print() def print_assistant_thoughts(assistant_reply):