name: Run Python script on: push: branches: - develop jobs: build: runs-on: ubuntu-latest steps: - name: Checkout uses: actions/checkout@v2 - name: Set up Python uses: actions/setup-python@v2 with: python-version: '3.12' - name: Install Poetry run: pip install poetry # Fixed indentation - name: Install Dependencies run: poetry install --no-root - name: Log in to Hugging Face run: python -c 'import huggingface_hub; huggingface_hub.login(token="${{ secrets.hf_token }}")' - name: Deploy to Spaces run: poetry run gradio deploy # Fixed command