Spaces:
Sleeping
Sleeping
MusaedMusaedSadeqMusaedAl-Fareh225739
commited on
Commit
·
a59eb8d
1
Parent(s):
5f8640c
Fixed dockerfile
Browse files- Dockerfile +2 -2
Dockerfile
CHANGED
|
@@ -67,8 +67,8 @@ COPY --link --chown=1000:1000 app.py ./
|
|
| 67 |
RUN mkdir -p /app/weights /app/avatar/static
|
| 68 |
|
| 69 |
# Fix openface bug
|
| 70 |
-
|
| 71 |
-
|
| 72 |
# Build frontend
|
| 73 |
COPY avatar-frontend/package*.json ./frontend/
|
| 74 |
WORKDIR /app/frontend
|
|
|
|
| 67 |
RUN mkdir -p /app/weights /app/avatar/static
|
| 68 |
|
| 69 |
# Fix openface bug
|
| 70 |
+
# Fix openface bug
|
| 71 |
+
RUN python3.11 -c "import os; fp='/usr/local/lib/python3.11/dist-packages/openface/multitask_model.py'; c=open(fp).read() if os.path.exists(fp) else ''; open(fp,'w').write('import cv2\n'+c) if os.path.exists(fp) and 'import cv2' not in c else None; print('Patched')"
|
| 72 |
# Build frontend
|
| 73 |
COPY avatar-frontend/package*.json ./frontend/
|
| 74 |
WORKDIR /app/frontend
|