We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0d4c176 commit c9bd268Copy full SHA for c9bd268
.github/workflows/update_space.yml
@@ -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