-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.py
More file actions
27 lines (23 loc) · 858 Bytes
/
Copy pathmain.py
File metadata and controls
27 lines (23 loc) · 858 Bytes
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
import sys
def main():
if len(sys.argv) < 2:
print("AI Recommendation Engine Prototype")
print("Usage: python main.py [evaluate | api]")
print(" evaluate : Run the offline Evaluation logic (Hit Rate@5, etc)")
print(" api : Start the FastAPI server to serve recommendations")
sys.exit(1)
command = sys.argv[1].lower()
if command == "evaluate":
from src.evaluation import evaluate_system
evaluate_system()
elif command == "api":
from src.api_layer import start_server
start_server()
elif command == "report":
from src.reporting import generate_reports
generate_reports()
else:
print(f"Unknown command: {command}")
print("Usage: python main.py [evaluate | api | report]")
if __name__ == "__main__":
main()