Spaces:
Sleeping
Sleeping
sergipastor
commited on
Commit
·
41887a9
1
Parent(s):
9aafbba
add creation of correct output
Browse files- Dockerfile +2 -0
- app.py +1 -1
Dockerfile
CHANGED
|
@@ -12,6 +12,8 @@ RUN git clone https://github.com/serkansulun/midi-emotion.git /app/midi-emotion
|
|
| 12 |
COPY --chown=user ./requirements.txt requirements.txt
|
| 13 |
RUN pip install --no-cache-dir --upgrade -r requirements.txt
|
| 14 |
|
|
|
|
|
|
|
| 15 |
RUN ls /app/midi-emotion
|
| 16 |
RUN ls /app/midi-emotion/src
|
| 17 |
|
|
|
|
| 12 |
COPY --chown=user ./requirements.txt requirements.txt
|
| 13 |
RUN pip install --no-cache-dir --upgrade -r requirements.txt
|
| 14 |
|
| 15 |
+
RUN mkdir -p /app/midi-emotion/output/models/discrete_token
|
| 16 |
+
RUN mv /app/models/discrete_token /app/midi-emotion/output/models/discrete_token
|
| 17 |
RUN ls /app/midi-emotion
|
| 18 |
RUN ls /app/midi-emotion/src
|
| 19 |
|
app.py
CHANGED
|
@@ -34,6 +34,6 @@ def generate(arousal: float, valence: float):
|
|
| 34 |
|
| 35 |
@app.get("/show")
|
| 36 |
def show():
|
| 37 |
-
resultado = subprocess.run(["ls", "
|
| 38 |
print(resultado)
|
| 39 |
return {}
|
|
|
|
| 34 |
|
| 35 |
@app.get("/show")
|
| 36 |
def show():
|
| 37 |
+
resultado = subprocess.run(["ls", "midi-emotion/output/"])
|
| 38 |
print(resultado)
|
| 39 |
return {}
|