-
Install dependencies:
pip install -r requirements.txt
-
Compile the .proto:
python -m grpc_tools.protoc -I. --python_out=. --grpc_python_out=. anomaly.proto
-
Run the gRPC server:
python anomaly_grpc_service.py
- Endpoint:
Detect(AnomalyRequest)
- Input:
- amount_due (double)
- amount_paid (double)
- delay_days (int)
- Output:
- anomaly_score (double)
- is_anomaly (bool)