Kang Suhyun suhyun.kang commited on
Commit
d66dbee
1 Parent(s): a44d1c3

[#23] Sync with Hugging Face Spaces (#46)

Browse files

* [#23] Add Hugging Face Spaces configuration

* add 'pinned'

* Relocate config

* Add Github Action

* prod and dev

---------

Co-authored-by: suhyun.kang <suhyun.kang@yanolja.group>

.github/workflows/hf_dev.yaml ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Ref: https://huggingface.co/docs/hub/spaces-github-actions
2
+ name: Sync to Hugging Face dev space
3
+ on:
4
+ push:
5
+ branches: [main]
6
+
7
+ # To run this workflow manually from the Actions tab.
8
+ workflow_dispatch:
9
+
10
+ jobs:
11
+ sync-to-hub:
12
+ runs-on: ubuntu-latest
13
+ steps:
14
+ - uses: actions/checkout@v3
15
+ with:
16
+ fetch-depth: 0
17
+ lfs: true
18
+ - name: Push to hub
19
+ env:
20
+ HF_TOKEN: ${{ secrets.HF_TOKEN }}
21
+ run: git push https://ksh123134:$HF_TOKEN@huggingface.co/spaces/yanolja/arena-dev main
.github/workflows/hf_prod.yaml ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Ref: https://huggingface.co/docs/hub/spaces-github-actions
2
+ name: Sync to Hugging Face prod space
3
+ on:
4
+ # To run this workflow manually from the Actions tab.
5
+ workflow_dispatch:
6
+
7
+ jobs:
8
+ sync-to-hub:
9
+ runs-on: ubuntu-latest
10
+ steps:
11
+ - uses: actions/checkout@v3
12
+ with:
13
+ fetch-depth: 0
14
+ lfs: true
15
+ - name: Push to hub
16
+ env:
17
+ HF_TOKEN: ${{ secrets.HF_TOKEN }}
18
+ run: git push https://ksh123134:$HF_TOKEN@huggingface.co/spaces/yanolja/arena main
README.md CHANGED
@@ -1,3 +1,13 @@
 
 
 
 
 
 
 
 
 
 
1
  # Arena
2
 
3
  ## How to run locally
 
1
+ ---
2
+ title: Arena
3
+ emoji: ⚔️
4
+ colorFrom: red
5
+ colorTo: purple
6
+ sdk: gradio
7
+ app_file: app.py
8
+ pinned: false
9
+ ---
10
+
11
  # Arena
12
 
13
  ## How to run locally