Skip to content

Commit c9bd268

Browse files
Add gradio CI/CD
1 parent 0d4c176 commit c9bd268

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

.github/workflows/update_space.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Run Python script
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Checkout
14+
uses: actions/checkout@v2
15+
16+
- name: Set up Python
17+
uses: actions/setup-python@v2
18+
with:
19+
python-version: '3.9'
20+
21+
- name: Install Gradio
22+
run: python -m pip install gradio
23+
24+
- name: Log in to Hugging Face
25+
run: python -c 'import huggingface_hub; huggingface_hub.login(token="${{ secrets.hf_token }}")'
26+
27+
- name: Deploy to Spaces
28+
run: gradio deploy

0 commit comments

Comments
 (0)