File size: 395 Bytes
cf23d85
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
"""Run saved Stage 01 LDA model on the provided synthetic example."""
from pathlib import Path
import json
from src.predict import predict_cancellation

sample = json.loads((Path(__file__).resolve().parent / 'integration' / 'request_example.json').read_text(encoding='utf-8'))
result = predict_cancellation(sample.get('features', sample))
print(json.dumps(result, indent=2, ensure_ascii=False))