Abhi-1001 commited on
Commit
f68fa3b
·
unverified ·
1 Parent(s): 976cabb

Update Hugging Face push URL in workflow

Browse files
Files changed (2) hide show
  1. .gitattributes +1 -0
  2. .github/workflows/hf_sync.yml +23 -0
.gitattributes CHANGED
@@ -1,3 +1,4 @@
 
1
  *.png filter=lfs diff=lfs merge=lfs -text
2
  *.jpg filter=lfs diff=lfs merge=lfs -text
3
  *.jpeg filter=lfs diff=lfs merge=lfs -text
 
1
+ /singular_ticker_causal/debug_data/data_text.npy filter=lfs diff=lfs merge=lfs -text
2
  *.png filter=lfs diff=lfs merge=lfs -text
3
  *.jpg filter=lfs diff=lfs merge=lfs -text
4
  *.jpeg filter=lfs diff=lfs merge=lfs -text
.github/workflows/hf_sync.yml ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: Sync to Hugging Face Org Hub
2
+
3
+ on:
4
+ push:
5
+ branches: [main] # Change this to the branch you are hosting from
6
+
7
+ workflow_dispatch:
8
+
9
+ jobs:
10
+ sync-to-hub:
11
+ runs-on: ubuntu-latest
12
+ steps:
13
+ - name: Checkout repository
14
+ uses: actions/checkout@v4
15
+ with:
16
+ fetch-depth: 0
17
+ lfs: true # Set to true if you are hosting large weights or model files
18
+
19
+ - name: Push to Org Hugging Face Space
20
+ env:
21
+ HF_TOKEN: ${{ secrets.HF_TOKEN }}
22
+ run: |
23
+ git push --force https://huggingface.co/smolhuman:$HF_TOKEN@huggingface.co/spaces/build-small-hackathon/Noisy_News HEAD:main