Spaces:
Runtime error
Runtime error
File size: 689 Bytes
7e9f59c a8c39f5 7e9f59c a8c39f5 7e9f59c a8c39f5 7e9f59c a8c39f5 7e9f59c a8c39f5 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 |
name: Run Python script
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Poetry
run: pipx install poetry
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
cache: "poetry"
- name: Deploy
run: |-
pipx inject poetry poetry-plugin-export
poetry export --only=main,ml,ui,audio,misc >requirements.txt
poetry install --only=ci --no-root -q
PATH=$(poetry env info --path)/bin:$PATH
huggingface-cli login --token ${{ secrets.hf_token }}
gradio deploy
|