chore: add initial app scaffold
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
__pycache__/
|
||||
*.pyc
|
||||
*.pyo
|
||||
.git/
|
||||
.agents/
|
||||
.codex/
|
||||
|
||||
app.log
|
||||
server.out.log
|
||||
server.err.log
|
||||
pipe_survival_0331.db
|
||||
uploads/
|
||||
static/images/
|
||||
+36
@@ -0,0 +1,36 @@
|
||||
# Python
|
||||
__pycache__/
|
||||
*.py[cod]
|
||||
*$py.class
|
||||
.pytest_cache/
|
||||
.mypy_cache/
|
||||
.ruff_cache/
|
||||
.venv/
|
||||
venv/
|
||||
|
||||
# Runtime logs
|
||||
*.log
|
||||
server.out.log
|
||||
server.err.log
|
||||
|
||||
# Local environment
|
||||
.env
|
||||
.env.*
|
||||
!.env.example
|
||||
|
||||
# App runtime data
|
||||
data/
|
||||
uploads/
|
||||
static/images/
|
||||
pipe_survival_0331.db
|
||||
|
||||
# Large generated or local model artifacts
|
||||
*.joblib
|
||||
*.pkl
|
||||
*.pickle
|
||||
|
||||
# OS/editor files
|
||||
.DS_Store
|
||||
Thumbs.db
|
||||
.vscode/
|
||||
.idea/
|
||||
+28
@@ -0,0 +1,28 @@
|
||||
FROM condaforge/miniforge3:latest
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
ENV PYTHONDONTWRITEBYTECODE=1
|
||||
ENV PYTHONUNBUFFERED=1
|
||||
ENV MPLBACKEND=Agg
|
||||
|
||||
RUN apt-get update \
|
||||
&& apt-get install -y --no-install-recommends fontconfig fonts-noto-cjk \
|
||||
&& fc-cache -fv \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
COPY requirements.txt .
|
||||
|
||||
RUN conda create -n demo python=3.12 -y \
|
||||
&& conda run -n demo python -m pip install --no-cache-dir -r requirements.txt \
|
||||
&& conda clean -afy
|
||||
|
||||
COPY final_flask_app_0331_strict_fixed_F.py .
|
||||
COPY my_survival_forest_model_quxi-10-0331.joblib .
|
||||
COPY example.xlsx .
|
||||
|
||||
RUN mkdir -p data static/images uploads
|
||||
|
||||
EXPOSE 5005
|
||||
|
||||
CMD ["conda", "run", "--no-capture-output", "-n", "demo", "python", "final_flask_app_0331_strict_fixed_F.py"]
|
||||
@@ -0,0 +1,11 @@
|
||||
services:
|
||||
pipeline-lifetime:
|
||||
image: pipeline-lifetime:latest
|
||||
container_name: pipeline-lifetime
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- "5005:5005"
|
||||
volumes:
|
||||
- ./data:/app/data
|
||||
- ./data/uploads:/app/uploads
|
||||
- ./data/images:/app/static/images
|
||||
Binary file not shown.
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,22 @@
|
||||
# ?????Python 3.14??? 3.10+?
|
||||
# ???pip install -r requirements.txt
|
||||
# ???scikit-survival ? scikit-learn ?????????
|
||||
# ???? my_survival_forest_model_quxi-10-0331.joblib ????????
|
||||
|
||||
Flask==3.1.3
|
||||
Flask-SQLAlchemy==3.1.1
|
||||
Flask-Login==0.6.3
|
||||
Werkzeug==3.1.6
|
||||
SQLAlchemy==2.0.48
|
||||
|
||||
pandas==2.3.3
|
||||
numpy==2.0.2
|
||||
joblib==1.5.2
|
||||
matplotlib==3.10.8
|
||||
|
||||
openpyxl==3.1.5
|
||||
XlsxWriter==3.2.9
|
||||
xlrd==2.0.2
|
||||
|
||||
scikit-learn==1.8.0
|
||||
scikit-survival==0.27.0
|
||||
Reference in New Issue
Block a user