Skip to content

Commit 13766f7

Browse files
committed
increase render speed
1 parent 93b7069 commit 13766f7

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

AgentCrew/modules/gui/components/message_handlers.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def handle_response_chunk(self, data):
4343
self.chunk_buffer = assistant_response
4444
# Restart timer (50ms delay)
4545
self.chat_window.chunk_timer.stop()
46-
self.chat_window.chunk_timer.start(50)
46+
self.chat_window.chunk_timer.start(34)
4747

4848
def handle_user_message_created(self, data):
4949
"""Handle user message creation."""
@@ -82,7 +82,7 @@ def handle_thinking_chunk(self, data):
8282

8383
# Restart timer (50ms delay, same as response chunks)
8484
self.chat_window.thinking_timer.stop()
85-
self.chat_window.thinking_timer.start(50)
85+
self.chat_window.thinking_timer.start(34)
8686

8787
def handle_thinking_completed(self):
8888
"""Handle thinking process completion."""

AgentCrew/modules/gui/qt_ui.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import os
12
from typing import Any, Optional
23

34
from PySide6.QtWidgets import (
@@ -70,7 +71,11 @@ def __init__(self, message_handler: MessageHandler):
7071
self.setGeometry(100, 100, 1000, 700) # Adjust size for sidebar
7172

7273
# Set application icon
73-
icon_path = "AgentCrew/assets/agentcrew_logo.png"
74+
icon_path = os.path.join(
75+
os.path.dirname(os.path.dirname(os.path.abspath(__file__))),
76+
"agentcrew_logo.png",
77+
)
78+
print(icon_path)
7479
self.setWindowIcon(QIcon(icon_path))
7580

7681
self.setAttribute(Qt.WidgetAttribute.WA_InputMethodEnabled)

0 commit comments

Comments
 (0)