dani-ange commited on
Commit
6bcdc82
·
unverified ·
2 Parent(s): d214f1e 6fcbc9a

Merge branch 'master' into main

Browse files
.github/workflows/train-deploy.yaml CHANGED
@@ -35,6 +35,14 @@ jobs:
35
  HF_TOKEN: ${{ secrets.HUGGINGFACE_API_TOKEN }}
36
  run: huggingface-cli login --token $HF_TOKEN --add-to-git-credential
37
 
 
 
 
 
 
 
 
 
38
  - name: Deploy to Hugging Face
39
  env:
40
  HF_TOKEN: ${{ secrets.HUGGINGFACE_API_TOKEN }}
 
35
  HF_TOKEN: ${{ secrets.HUGGINGFACE_API_TOKEN }}
36
  run: huggingface-cli login --token $HF_TOKEN --add-to-git-credential
37
 
38
+ - name: Download Model Repository
39
+ run: huggingface-cli download danielle2003/diabeties-ml --repo-type space --local-dir diabetes-ml
40
+ - name: Push `main` changes to `master`
41
+ run: |
42
+ git checkout master # Switch to master branch
43
+ git pull origin master # Ensure latest master
44
+ git merge --no-ff origin/main -m "Merging latest changes from main"
45
+ git push origin master # Push changes to master
46
  - name: Deploy to Hugging Face
47
  env:
48
  HF_TOKEN: ${{ secrets.HUGGINGFACE_API_TOKEN }}