garvitcpp commited on
Commit
e648975
·
verified ·
1 Parent(s): 398778b

Upload 3 files

Browse files
Files changed (3) hide show
  1. Dockerfile +10 -0
  2. README.md +40 -0
  3. requirements.txt +50 -0
Dockerfile ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.9-slim
2
+
3
+ WORKDIR /code
4
+
5
+ COPY ./requirements.txt /code/requirements.txt
6
+ COPY ./Backend /code/
7
+
8
+ RUN pip install --no-cache-dir --upgrade -r requirements.txt
9
+
10
+ CMD ["gunicorn", "--bind", "0.0.0.0:7860", "run:app"]
README.md ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ title: Revibe Music Recommendation API
3
+ emoji: 🎵
4
+ colorFrom: indigo
5
+ colorTo: purple
6
+ sdk: docker
7
+ pinned: false
8
+ ---
9
+
10
+ # Revibe Music Recommendation API
11
+
12
+ This is a Flask-based API that provides music recommendations using machine learning models.
13
+
14
+ ## API Endpoints
15
+
16
+ ### Health Check
17
+ - GET `/health`
18
+ - Returns API health status
19
+
20
+ ### Get Recommendations
21
+ - POST `/recommend`
22
+ - Request body:
23
+ ```json
24
+ {
25
+ "song": "Song Name - Artist Name"
26
+ }
27
+ ```
28
+ OR
29
+ ```json
30
+ {
31
+ "artist": "Artist Name",
32
+ "genre": "Genre Name"
33
+ }
34
+ ```
35
+
36
+ ## Development
37
+ Run locally with:
38
+ ```bash
39
+ flask run
40
+ ```
requirements.txt ADDED
@@ -0,0 +1,50 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ blinker==1.8.1
2
+ certifi==2024.2.2
3
+ charset-normalizer==3.3.2
4
+ click==8.1.7
5
+ colorama==0.4.6
6
+ contourpy==1.2.0
7
+ cycler==0.12.1
8
+ distlib==0.3.8
9
+ filelock==3.13.1
10
+ Flask==3.0.3
11
+ fonttools==4.47.2
12
+ fsspec==2024.2.0
13
+ graphviz==0.20.1
14
+ idna==3.6
15
+ itsdangerous==2.2.0
16
+ Jinja2==3.1.3
17
+ joblib==1.3.2
18
+ kiwisolver==1.4.5
19
+ MarkupSafe==2.1.5
20
+ matplotlib==3.8.2
21
+ mpmath==1.3.0
22
+ networkx==3.2.1
23
+ numpy==1.26.3
24
+ packaging==23.2
25
+ pandas==2.2.0
26
+ pillow==10.2.0
27
+ platformdirs==4.2.0
28
+ psutil==5.9.7
29
+ pyarrow==15.0.0
30
+ pyparsing==3.1.1
31
+ python-dateutil==2.8.2
32
+ pytz==2023.4
33
+ requests==2.31.0
34
+ scikit-learn==1.4.0
35
+ scipy==1.12.0
36
+ seaborn==0.13.2
37
+ six==1.16.0
38
+ sympy==1.12
39
+ threadpoolctl==3.2.0
40
+ torch==2.2.0
41
+ torchvision==0.17.0
42
+ tqdm==4.66.2
43
+ typing_extensions==4.9.0
44
+ tzdata==2023.4
45
+ urllib3==2.2.1
46
+ virtualenv==20.25.0
47
+ Werkzeug==3.0.2
48
+ flask-cors==4.0.1
49
+ python-dotenv==1.0.1
50
+ gunicorn==20.1.0