HAI Playlist Continuation Task
Download the song_meta.json
, test.json
, train.json
, val.json
to api/
After that, use these commands
$> pip install -r requirements.txt
$> npm install
$> npm run build
$> export FLASK_APP=api.py
$> npm run start-api
Then, the server will open in localhost:5000
Implement inference
in api/recommender/test_recommender.py
class RecInterface:
def __init__(self):
pass
def inference(self, user_playlist):
"""Recommend Playlist with given user playlist
:return: (List) song_ids of the recommended playlist
"""
raise NotImplementedError