Spaces:
Runtime error
Runtime error
metadata
title: Ai Academy 2024 Gr8 Recommender Api
emoji: π
colorFrom: green
colorTo: pink
sdk: docker
pinned: false
license: mit
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference.
ai-academy-2024-group8
A lightweight backend API for song recommender.
Dataset used in this project is public and available from online
What's in here
data/
: Contains the trainedmodel.pkl
and relatedmodel.csv
that has the training set in csv formatnotebooks/
: Contains any jupyter notebooks used in the projectrecommendation-api/
: A FastAPI app to serve user recommendations
Running service locally
- (Optional) Create an activate python venv
- Install the requirements
pip install -r requirements.txt
- Start the service
python recommendation-api/server.py
Then
curl http://localhost:7860/users
to fetch list of supported userscurl http://localhost:7860/users/<id>
to fetch track history for individual usercurl http://localhost:7860/recommend/<id>
to recommend tracks for the specific user
Running in Huggingface
Application is built and started on push to master.
Application is available from here