Spaces:
Runtime error
Runtime error
Martijn van Beers
commited on
Commit
•
141b0e4
1
Parent(s):
9fa77d1
Add github actions
Browse filesAdd actions to push to the huggingface space and check for file sizes
- .github/workflows/hf_sync.yml +19 -0
- .github/workflows/sizecheck.yml +19 -0
.github/workflows/hf_sync.yml
ADDED
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
name: Sync to Hugging Face hub
|
2 |
+
on:
|
3 |
+
push:
|
4 |
+
branches: [main]
|
5 |
+
|
6 |
+
# to run this workflow manually from the Actions tab
|
7 |
+
workflow_dispatch:
|
8 |
+
|
9 |
+
jobs:
|
10 |
+
sync-to-hub:
|
11 |
+
runs-on: ubuntu-latest
|
12 |
+
steps:
|
13 |
+
- uses: actions/checkout@v2
|
14 |
+
with:
|
15 |
+
fetch-depth: 0
|
16 |
+
- name: Push to hub
|
17 |
+
env:
|
18 |
+
HF_TOKEN: ${{ secrets.HF_TOKEN }}
|
19 |
+
run: git push https://njitram:$HF_TOKEN@huggingface.co/spaces/amsterdamNLP/IEAI_CLIPGroundingExplainability main
|
.github/workflows/sizecheck.yml
ADDED
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
name: Check file size
|
2 |
+
on:
|
3 |
+
pull_request:
|
4 |
+
branches: [main]
|
5 |
+
|
6 |
+
push:
|
7 |
+
branches: [main]
|
8 |
+
|
9 |
+
# to run this workflow manually from the Actions tab
|
10 |
+
workflow_dispatch:
|
11 |
+
|
12 |
+
jobs:
|
13 |
+
sync-to-hub:
|
14 |
+
runs-on: ubuntu-latest
|
15 |
+
steps:
|
16 |
+
- name: Check large files
|
17 |
+
uses: ActionsDesk/lfs-warning@v2.0
|
18 |
+
with:
|
19 |
+
filesizelimit: 10485760 # this is 10MB so we can sync to HF Spaces
|