chore(ml): remove machine learning model files

This commit is contained in:
MythEclipse
2026-06-11 20:23:57 +07:00
parent 09602b3fe0
commit 3e2f04413e
27 changed files with 1140 additions and 1006 deletions
+11 -13
View File
@@ -28,8 +28,6 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
lfs: true
- name: Set image prefix
run: echo "IMAGE_PREFIX=ghcr.io/${GITHUB_REPOSITORY,,}" >> "$GITHUB_ENV"
@@ -37,19 +35,19 @@ jobs:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Set up Python for ONNX conversion
- name: Download ONNX model from Hugging Face Hub
if: matrix.service.name == 'ml'
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Generate ONNX model artifact
if: matrix.service.name == 'ml'
working-directory: Machine_Learning
env:
HF_TOKEN: ${{ secrets.HUGGINGFACE_TOKEN }}
run: |
python -m pip install --upgrade pip
python -m pip install 'tensorflow>=2.13.0' 'tf2onnx>=1.16.1' 'onnx>=1.16.0'
python convert_onnx.py
mkdir -p Machine_Learning/model
if [ -n "$HF_TOKEN" ]; then
AUTH_HEADER="-H Authorization: Bearer $HF_TOKEN"
fi
curl -fL $AUTH_HEADER \
"https://huggingface.co/MythEclipse2737/zeavis-edu-model/resolve/main/model/model.onnx" \
-o "Machine_Learning/model/model.onnx"
ls -lh Machine_Learning/model/model.onnx
- name: Log in to GHCR
uses: docker/login-action@v3