forked from MorpheusAIs/moragents
-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.py
35 lines (26 loc) · 942 Bytes
/
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
import time
import logging
import webbrowser
from runtime_setup_macos import docker_setup as docker_setup_macos
from runtime_setup_windows import docker_setup as docker_setup_windows
from utils.logger_config import setup_logger
from utils.host_utils import get_os_and_arch
# Configure logging
logger = setup_logger(__name__)
if __name__ == '__main__':
try:
os_name, arch = get_os_and_arch()
if os_name == "macOS":
docker_setup_macos()
elif os_name == "Windows":
docker_setup_windows()
elif os_name == "Linux":
raise RuntimeError(
f"MORagents needs Linux support! Would you like to help?\n"
f"https://github.com/MorpheusAIs/moragents/issues/27")
except Exception as e:
logging.critical(f"Error during Docker setup: {str(e)}")
raise
time.sleep(7)
url = 'http://localhost:3333/'
webbrowser.open(url)