This repository was archived by the owner on Oct 26, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathmain.py
38 lines (32 loc) · 1.54 KB
/
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
import tkinter as tk
from gui.task_board_gui import TaskBoardGUI
from models.workflow_manager import WorkflowManager
from data.job_management_system import JobManagementSystem
from gui.game_planning_gui import GamePlanningGUI
import json
from openai import OpenAI
client = OpenAI(base_url="http://localhost:5001/v1", api_key="not-needed")
llm_config = [
{
"model": "mistralai_mistral-7b-instruct-v0.2",
"api_base": "http://127.0.0.1:5001/v1",
"api_type": "open_ai",
"api_key": "sk-111111111111111111111111111111111111111111111111",
}
]
#this is the main function that runs the main program in the main.py file
#in this function, we create the root window, and then create the task board gui, game planning gui, and the workflow manager
if __name__ == "__main__":
root = tk.Tk()
game = []
chat_input = []
company = "MasterMindGPT company"
master = []
task = []
team = []
task_board_gui = TaskBoardGUI(root, game, chat_input, company, master, llm_config,task, team)
job_management_system = JobManagementSystem(root, task_board_gui.Job_listbox, task_board_gui,task_board_gui.chat_output, task_board_gui.task_queue)
task_board_gui.job_management_system = job_management_system
game_planning_gui = GamePlanningGUI(root,task_board_gui.chat_output)
Workf_lowManager = WorkflowManager(llm_config, task_board_gui.chat_output, job_management_system, task_board_gui.ceo_boss, task_board_gui.agent_listbox,task_board_gui.task_queue)
root.mainloop()