From c18b7af2c4f82c94a6086912066ccc79b68dc11c Mon Sep 17 00:00:00 2001 From: Dallas98 <40557804+Dallas98@users.noreply.github.com> Date: Wed, 10 Dec 2025 12:25:25 +0800 Subject: [PATCH] docs: update README and Makefile for clarity and new development instructions (#147) * feat(synthesis): add evaluation task creation functionality and UI enhancements * feat(synthesis): implement synthesis data management features including loading, editing, and deleting * feat(synthesis): add endpoints for deleting and updating synthesis data and chunks * fix: Correctly extract file values from selectedFilesMap in AddDataDialog * docs: update README and Makefile for clarity and new development instructions --- Makefile | 2 +- runtime/datamate-python/README.md | 9 +------ .../images/label-studio-adapter/Dockerfile | 27 ------------------- 3 files changed, 2 insertions(+), 36 deletions(-) delete mode 100644 scripts/images/label-studio-adapter/Dockerfile diff --git a/Makefile b/Makefile index 46b12ec..e44ca5b 100644 --- a/Makefile +++ b/Makefile @@ -497,4 +497,4 @@ load-images: exit 1; \ else \ echo "Successfully loaded $$count image(s)"; \ - fi \ No newline at end of file + fi diff --git a/runtime/datamate-python/README.md b/runtime/datamate-python/README.md index 78da2cb..dd19944 100644 --- a/runtime/datamate-python/README.md +++ b/runtime/datamate-python/README.md @@ -27,13 +27,6 @@ cd runtime/datamate-python 3. 安装依赖 由于项目使用poetry管理依赖,你可以使用以下命令安装:: -```bash -poetry install -``` - -3. 安装依赖 -由于项目使用poetry管理依赖,你可以使用以下命令安装: - ```bash poetry install ``` @@ -62,7 +55,7 @@ alembic upgrade head - 本地开发(默认 host/port,自动重载): ```bash -set -a && source .env && set +a && poetry run uvicorn app.main:app --port 18000 --reload +set -a && source .env && set +a && poetry run uvicorn app.main:app --port 18000 --log-level debug --reload ``` 或者 ```bash diff --git a/scripts/images/label-studio-adapter/Dockerfile b/scripts/images/label-studio-adapter/Dockerfile deleted file mode 100644 index b240214..0000000 --- a/scripts/images/label-studio-adapter/Dockerfile +++ /dev/null @@ -1,27 +0,0 @@ -FROM python:3.11-slim - -WORKDIR /app - -# 安装系统依赖 -RUN apt-get update && apt-get install -y \ - gcc \ - && rm -rf /var/lib/apt/lists/* - -# 复制requirements文件 -COPY runtime/label-studio-adapter/requirements.txt . - -# 安装Python依赖 -RUN pip install --no-cache-dir -r requirements.txt - -# 复制应用代码 -COPY runtime/label-studio-adapter . - -# 复制并设置 entrypoint 脚本权限 -COPY runtime/label-studio-adapter/deploy/docker-entrypoint.sh /docker-entrypoint.sh -RUN chmod +x /docker-entrypoint.sh - -# 暴露端口 -EXPOSE 8088 - -# 使用 entrypoint 脚本启动 -ENTRYPOINT ["/docker-entrypoint.sh"] \ No newline at end of file