File size: 278 Bytes
d4829ef |
1 2 3 4 5 6 7 8 9 10 11 12 |
from src.base.recommender import recommender
from src.base.recommender import Schema
import json
data_path = "./src/book_rec/data.json"
with open(data_path, 'rb') as f:
data = json.load(f)
# Request Handler
def book_rec(req):
# Sending to Base
return recommender(req, data) |