Spaces:
Sleeping
Sleeping
refactor api to recommendation-api
Browse files- Dockerfile +9 -1
- custom_models.py β recommendation-api/custom_models.py +0 -0
- model.pkl β recommendation-api/model.pkl +0 -0
- recommender.py β recommendation-api/recommender.py +0 -0
- requirements.txt β recommendation-api/requirements.txt +0 -0
- server.py β recommendation-api/server.py +0 -0
- tracks.py β recommendation-api/tracks.py +0 -0
Dockerfile
CHANGED
@@ -1,5 +1,13 @@
|
|
1 |
FROM python:3.10.9-slim
|
|
|
2 |
WORKDIR /app
|
3 |
-
|
|
|
|
|
|
|
|
|
|
|
4 |
RUN pip install -r requirements.txt
|
|
|
|
|
5 |
CMD ["python", "server.py"]
|
|
|
1 |
FROM python:3.10.9-slim
|
2 |
+
|
3 |
WORKDIR /app
|
4 |
+
|
5 |
+
COPY recommendation-api .
|
6 |
+
COPY data/music_info.csv data/music_info.csv
|
7 |
+
COPY data/user_listening_history_10k.csv data/user_listening_history_10k.csv
|
8 |
+
|
9 |
+
# Install dependencies from the requirements.txt file located within the recommendation-api directory
|
10 |
RUN pip install -r requirements.txt
|
11 |
+
|
12 |
+
# Command to run the server, assuming server.py is inside the recommendation-api directory
|
13 |
CMD ["python", "server.py"]
|
custom_models.py β recommendation-api/custom_models.py
RENAMED
File without changes
|
model.pkl β recommendation-api/model.pkl
RENAMED
File without changes
|
recommender.py β recommendation-api/recommender.py
RENAMED
File without changes
|
requirements.txt β recommendation-api/requirements.txt
RENAMED
File without changes
|
server.py β recommendation-api/server.py
RENAMED
File without changes
|
tracks.py β recommendation-api/tracks.py
RENAMED
File without changes
|