name: Deploy Streamlit App to Hugging Face Spaces on: push: branches: - main jobs: deploy: runs-on: ubuntu-latest steps: - name: Checkout repository uses: actions/checkout@v2 - name: Setup Python uses: actions/setup-python@v2 with: python-version: '3.10' - name: Install dependencies run: | pip install streamlit pip install -r requirements.txt pip install tensorflow pip install huggingface_hub - name: Run Streamlit app run: streamlit run app.py - name: Publish to Hugging Face Spaces uses: hf spaces push -o praj2408/Onsite-Health-Diagnostic app.py env: HUGGINGFACE_API_KEY: ${{ secrets.HUGGINGFACE_API_KEY }}