File size: 421 Bytes
6753ed5 | 1 2 3 4 5 6 7 8 9 10 | """Educational inference demo using original saved HRP Stage06 model."""
import json
from pathlib import Path
from src.predict import predict_room_rate
if __name__ == '__main__':
examples=json.loads((Path(__file__).parent/'examples'/'sample_cases.json').read_text(encoding='utf-8'))
for name, features in examples.items():
print(name, json.dumps(predict_room_rate(features),ensure_ascii=False,indent=2))
|