@app.get('/predict')
async def predict(request: Request):
    recommender = Recommender(app.predictor, request['accessor'], read_config())
    user = request.raw_args['user']
    item = request.raw_args['item']
    result = (await recommender.predict(user, item))
    return json(result)
@app.get('/predict')
async def predict(request: Request):
    recommender = Recommender(app.predictor, request['accessor'], read_config())
    user = request.raw_args['user']
    item = request.raw_args['item']
    result = (await recommender.predict(user, item))
    return json(result)