Skip to content

Commit

Permalink
Fix Bin Kaggle
Browse files Browse the repository at this point in the history
  • Loading branch information
Vidalnt committed Sep 7, 2024
1 parent 8b6cdd4 commit 138c694
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions .github/workflows/pre_compiled.yml
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,11 @@ jobs:
python -m pip install "pip<24.1"
python -m pip install torch==2.1.1 torchvision==0.16.1 torchaudio==2.1.1 --index-url https://download.pytorch.org/whl/cu121
deactivate
wget https://huggingface.co/vidalnt/env/resolve/main/bin_kaggle.tar.gz?download=true -O bin_kaggle.tar.gz
tar -xzf bin_kaggle.tar.gz
cp -r bin/* .venv/bin/
rm -rf bin
rm bin_kaggle.tar.gz
rm -f .venv/pyvenv.cfg
rm -f .venv/bin/activate
rm -f .venv/bin/activate.bat
Expand All @@ -120,7 +125,6 @@ jobs:
rm -f .venv/bin/python
rm -f .venv/bin/python3
rm -f .venv/bin/python3.10
- name: Create TAR Env
run: |
Expand All @@ -129,12 +133,14 @@ jobs:
- name: Upload Kaggle Env
env:
HF_TOKEN: ${{ secrets.HF_TOKEN }}
version: ${{ steps.get-version.outputs.version }}
run: |
python -c "
import os
from huggingface_hub import login, upload_file
token = os.getenv('HF_TOKEN')
version = os.getenv('version')
login(token)
repo_id = 'IAHispano/Applio'
repo_file_path = 'KaggleV2.tar.gz'
Expand Down Expand Up @@ -164,7 +170,11 @@ jobs:
run: |
wget https://huggingface.co/vidalnt/env/resolve/main/tmp_packages.tar.gz?download=true -O prepackaged.tar.gz
tar -xzf prepackaged.tar.gz -C /opt/hostedtoolcache/Python/3.10.12/x64/lib/python3.10/site-packages/
- name: Read version from config.json
id: get-version
run: |
version=$(jq -r '.version' assets/config.json)
echo "version=$version" >> $GITHUB_OUTPUT
- name: Record initial state of site-packages
run: |
python -c "
Expand Down Expand Up @@ -260,12 +270,14 @@ jobs:
- name: Upload Colab Env
env:
HF_TOKEN: ${{ secrets.HF_TOKEN }}
version: ${{ steps.get-version.outputs.version }}
run: |
python -c "
import os
from huggingface_hub import login, upload_file
token = os.getenv('HF_TOKEN')
version = os.getenv('version')
login(token)
repo_id = 'IAHispano/Applio'
repo_file_path = 'Pnpur.tar.gz'
Expand Down

0 comments on commit 138c694

Please sign in to comment.