Skip to content

Commit

Permalink
update todo comments
Browse files Browse the repository at this point in the history
  • Loading branch information
WHALEEYE committed Oct 29, 2024
1 parent 2d3e913 commit b1b8767
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions gui/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ def assign_task():
agent_policy=agent_policy,
log_dir=log_dir,
)
# TODO: redirect the output to the GUI
expeirment.start_benchmark()


Expand All @@ -55,6 +56,7 @@ def display_message(message, sender="user"):


if __name__ == "__main__":
# TODO: make this choosable by the user
model = OpenAIModel(model="gpt-4o", history_messages_len=2)
agent_policy = SingleAgentPolicy(model_backend=model)
log_dir = (Path(__file__).parent / "logs").resolve()
Expand All @@ -73,14 +75,10 @@ def display_message(message, sender="user"):
)
chat_display.pack()

# Frame for input and send button side-by-side
input_frame = ctk.CTkFrame(app)
input_frame.pack(pady=10, padx=10, fill="x")

# Entry widget for user input
input_entry = ctk.CTkEntry(
input_frame, placeholder_text="Type your message here..."
)
input_entry = ctk.CTkEntry(input_frame)
input_entry.pack(side="left", fill="x", expand=True, padx=(0, 10))

send_button = ctk.CTkButton(input_frame, text="Send", command=assign_task)
Expand Down

0 comments on commit b1b8767

Please sign in to comment.