shivanis14 commited on
Commit
ecf2a0b
·
verified ·
1 Parent(s): 64ad84f

Create .github/workflows/huggingface-sync.yml

Browse files
.github/workflows/huggingface-sync.yml ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: Sync to Hugging Face
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - main
7
+
8
+ jobs:
9
+ deploy:
10
+ runs-on: ubuntu-latest
11
+
12
+ steps:
13
+ - name: Checkout repository
14
+ uses: actions/checkout@v3
15
+
16
+ - name: Install Hugging Face Hub
17
+ run: pip install huggingface_hub
18
+
19
+ - name: Push to Hugging Face Space
20
+ env:
21
+ HF_TOKEN: ${{ secrets.HF_TOKEN }}
22
+ run: |
23
+ huggingface-cli repo sync --repo-id shivanis1406/FoodLabelAnalyzer \
24
+ --local-dir . \
25
+ --token $HF_TOKEN