Skip to content

Commit

Permalink
set gh action
Browse files Browse the repository at this point in the history
  • Loading branch information
seplee committed Jul 23, 2024
1 parent f76cae5 commit 9f6ce36
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions .github/workflows/update_space.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,26 +3,26 @@ name: Run Python script
on:
push:
branches:
- y
- main

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v2
- name: Checkout
uses: actions/checkout@v2

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.9'
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: "3.9"

- name: Install Gradio
run: python -m pip install gradio
- name: Install Gradio
run: python -m pip install gradio

- name: Log in to Hugging Face
run: python -c 'import huggingface_hub; huggingface_hub.login(token="${{ secrets.hf_token }}")'
- name: Log in to Hugging Face
run: python -c 'import huggingface_hub; huggingface_hub.login(token="${{ secrets.hf_token }}")'

- name: Deploy to Spaces
run: gradio deploy
- name: Deploy to Spaces
run: gradio deploy

0 comments on commit 9f6ce36

Please sign in to comment.