dani-ange commited on
Commit
013bf4c
·
unverified ·
1 Parent(s): b9985b0

Update train-deploy.yaml

Browse files
.github/workflows/train-deploy.yaml CHANGED
@@ -22,16 +22,10 @@ jobs:
22
  - name: Install dependencies
23
  run: pip install -r requirements.txt
24
 
25
- - name: Upgrade Hugging Face Hub
26
- run: pip install --upgrade huggingface_hub
27
-
28
  - name: Authenticate with Hugging Face
29
  run: |
30
  huggingface-cli login --token "${{ secrets.HUGGINGFACE_API_TOKEN }}" --add-to-git-credential
31
 
32
- - name: Download Model Repository
33
- run: huggingface-cli download danielle2003/diabeties-ml --repo-type space --local-dir diabetes-ml
34
-
35
  - name: Deploy to Hugging Face
36
  env:
37
  HF_TOKEN: ${{ secrets.HUGGINGFACE_API_TOKEN }}
@@ -40,5 +34,6 @@ jobs:
40
  git config --global user.email "[email protected]"
41
  git config --global user.name "dani-ange"
42
  git add .
43
- git commit -m "Updated model"
44
- git push
 
 
22
  - name: Install dependencies
23
  run: pip install -r requirements.txt
24
 
 
 
 
25
  - name: Authenticate with Hugging Face
26
  run: |
27
  huggingface-cli login --token "${{ secrets.HUGGINGFACE_API_TOKEN }}" --add-to-git-credential
28
 
 
 
 
29
  - name: Deploy to Hugging Face
30
  env:
31
  HF_TOKEN: ${{ secrets.HUGGINGFACE_API_TOKEN }}
 
34
  git config --global user.email "[email protected]"
35
  git config --global user.name "dani-ange"
36
  git add .
37
+ git commit -m "Updated model
38
+ git lfs migrate import --everything --include "*.joblib"
39
+ git push https://danielle2003:[email protected]/spaces/danielle2003/diabeties-ml