Fix directory structure
Browse filesFiles changed (2)
- Dockerfile+1-1
- app.py → webserver/app.pyRenamed+1-1
14 unmodified lines151617181814 unmodified linesCOPY --chown=user . /webserver
# 7. 启动:按下“开机键”CMD ["uvicorn", "webserver:app", "--host", "0.0.0.0", "--port", "7860"]CMD ["uvicorn", "webserver.app:app", "--host", "0.0.0.0", "--port", "7860"]25 unmodified lines262728292930313225 unmodified linesUPLOAD_DIR = os.path.join(BASE_DIR, "uploads")RUNS_DIR = os.path.join(BASE_DIR, "runs")PREDICTIONS_DIR = os.path.join(BASE_DIR, "predictions")TEMPLATE_DIR = os.path.join(BASE_DIR, "webserver/templates")TEMPLATE_DIR = os.path.join(BASE_DIR, "templates")
os.makedirs(UPLOAD_DIR, exist_ok=True)os.makedirs(RUNS_DIR, exist_ok=True)Dockerfile+1-1
app.py → webserver/app.pyRenamed+1-1