Spaces:
Running
Running
agent commited on
Commit ·
00787fb
1
Parent(s): 72acce1
fix Dockerfile: copy models/ folder
Browse files- Dockerfile +2 -1
- app.py +0 -11
Dockerfile
CHANGED
|
@@ -7,6 +7,7 @@ WORKDIR /app
|
|
| 7 |
COPY requirements.txt .
|
| 8 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 9 |
COPY app.py .
|
|
|
|
| 10 |
|
| 11 |
EXPOSE 7860
|
| 12 |
-
CMD ["python", "app.py"]
|
|
|
|
| 7 |
COPY requirements.txt .
|
| 8 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 9 |
COPY app.py .
|
| 10 |
+
COPY models ./models
|
| 11 |
|
| 12 |
EXPOSE 7860
|
| 13 |
+
CMD ["python", "app.py"]
|
app.py
CHANGED
|
@@ -262,16 +262,5 @@ async def lipsync(face: UploadFile = File(...), audio: UploadFile = File(...)):
|
|
| 262 |
|
| 263 |
|
| 264 |
|
| 265 |
-
@app.get("/debug")
|
| 266 |
-
def debug():
|
| 267 |
-
import sys
|
| 268 |
-
return {
|
| 269 |
-
"sys_path": sys.path[:10],
|
| 270 |
-
"cwd": os.getcwd(),
|
| 271 |
-
"files_in_cwd": sorted(os.listdir("."))[:20],
|
| 272 |
-
"models_files": sorted(os.listdir("models")) if os.path.exists("models") else None,
|
| 273 |
-
}
|
| 274 |
-
|
| 275 |
-
|
| 276 |
if __name__ == "__main__":
|
| 277 |
uvicorn.run(app, host="0.0.0.0", port=7860)
|
|
|
|
| 262 |
|
| 263 |
|
| 264 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 265 |
if __name__ == "__main__":
|
| 266 |
uvicorn.run(app, host="0.0.0.0", port=7860)
|