forked from sjsreehari/PyroScan-AI
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.py
More file actions
42 lines (30 loc) · 1.78 KB
/
main.py
File metadata and controls
42 lines (30 loc) · 1.78 KB
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
39
40
41
42
from src.server.app import app
from colorama import Fore, Style, init
from src.agent.main_agent import main_agent
import threading
init(autoreset=True)
def banner():
print(
Fore.GREEN + r"""
/$$$$$$$ /$$ /$$ /$$$$$$$ /$$$$$$ /$$$$$$ /$$$$$$ /$$$$$$ /$$ /$$ /$$$$$$ /$$$$$$
| $$__ $$| $$ /$$/| $$__ $$ /$$__ $$ /$$__ $$ /$$__ $$ /$$__ $$| $$$ | $$ /$$__ $$|_ $$_/
| $$ \ $$ \ $$ /$$/ | $$ \ $$| $$ \ $$| $$ \__/| $$ \__/| $$ \ $$| $$$$| $$ | $$ \ $$ | $$
| $$$$$$$/ \ $$$$/ | $$$$$$$/| $$ | $$| $$$$$$ | $$ | $$$$$$$$| $$ $$ $$ | $$$$$$$$ | $$
| $$____/ \ $$/ | $$__ $$| $$ | $$ \____ $$| $$ | $$__ $$| $$ $$$$ | $$__ $$ | $$
| $$ | $$ | $$ \ $$| $$ | $$ /$$ \ $$| $$ $$| $$ | $$| $$\ $$$ | $$ | $$ | $$
| $$ | $$ | $$ | $$| $$$$$$/| $$$$$$/| $$$$$$/| $$ | $$| $$ \ $$ | $$ | $$ /$$$$$$
|__/ |__/ |__/ |__/ \______/ \______/ \______/ |__/ |__/|__/ \__/ |__/ |__/|______/
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=--=-=-=-=-=-=-=-=-=-=-=-=-=-=
""" + Fore.YELLOW + Style.BRIGHT + """
Contributers:
- Sreehari
- Aromal
Star us on GitHub if you like it! \n
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=--=-=-=-=-=-=-=-=-=-=-=-=-=-=
""" + Style.RESET_ALL
)
if __name__ == "__main__":
banner()
agent_thread = threading.Thread(target=main_agent, daemon=True)
agent_thread.start()
app.run(host="0.0.0.0", port=8434, debug=True)