Spaces:
Sleeping
Sleeping
sergipastor
commited on
Commit
·
d6af74f
1
Parent(s):
7c29f88
test midi-emotion import
Browse files- Dockerfile +2 -0
- app.py +4 -1
Dockerfile
CHANGED
|
@@ -16,5 +16,7 @@ RUN git clone https://github.com/serkansulun/midi-emotion.git /app/midi-emotion
|
|
| 16 |
COPY --chown=user ./requirements.txt requirements.txt
|
| 17 |
RUN pip install --no-cache-dir --upgrade -r requirements.txt
|
| 18 |
|
|
|
|
|
|
|
| 19 |
COPY --chown=user . /app
|
| 20 |
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
|
|
|
|
| 16 |
COPY --chown=user ./requirements.txt requirements.txt
|
| 17 |
RUN pip install --no-cache-dir --upgrade -r requirements.txt
|
| 18 |
|
| 19 |
+
RUN ls /app/midi-emotion
|
| 20 |
+
|
| 21 |
COPY --chown=user . /app
|
| 22 |
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
|
app.py
CHANGED
|
@@ -1,4 +1,7 @@
|
|
| 1 |
-
import
|
|
|
|
|
|
|
|
|
|
| 2 |
|
| 3 |
from fastapi import FastAPI
|
| 4 |
|
|
|
|
| 1 |
+
import sys
|
| 2 |
+
sys.path.append('/app/midi-emotion')
|
| 3 |
+
|
| 4 |
+
from midi_emotion.src.utils import split_list
|
| 5 |
|
| 6 |
from fastapi import FastAPI
|
| 7 |
|