From efdd5ef75b4508cdae6a87dfd24447e0575bbec0 Mon Sep 17 00:00:00 2001 From: alex-bene Date: Wed, 29 May 2024 13:42:00 +0000 Subject: [PATCH] seperate README yml header; push to hf spaces action --- .github/workflows/hf_space_sunc.yml | 24 ++++++++++++++++++++++++ hf_space_metadata.yml | 10 ++++++++++ 2 files changed, 34 insertions(+) create mode 100644 .github/workflows/hf_space_sunc.yml create mode 100644 hf_space_metadata.yml diff --git a/.github/workflows/hf_space_sunc.yml b/.github/workflows/hf_space_sunc.yml new file mode 100644 index 0000000..8ebb159 --- /dev/null +++ b/.github/workflows/hf_space_sunc.yml @@ -0,0 +1,24 @@ +name: Sync with Hugging Face Space + +on: + push: + branches: + - main + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Sync with HF + uses: alex-bene/huggingface-space-sync-action@v0.1 + with: + # The github repo you are syncing from. Required. + github_repo_id: alex-bene/BianqueNet + # The yaml headers file to use (will be prepended to your README.md in the HF space). Required. + yaml_header_path: hf_space_metadata.yml + # The Hugging Face repo id you want to sync to. (ex. 'username/reponame'). Required. + huggingface_repo_id: alexbene/spine_analysis + # Hugging Face token with write access and corresponding username. Required. + # Here, we provide a token that we called `HF_TOKEN` when we added the secret to our GitHub repo. + hf_username: alexbene + hf_token: ${{ secrets.HF_TOKEN }} diff --git a/hf_space_metadata.yml b/hf_space_metadata.yml new file mode 100644 index 0000000..8447f38 --- /dev/null +++ b/hf_space_metadata.yml @@ -0,0 +1,10 @@ +title: Intervertebral Disc Degeneration Analysis +emoji: 🌍 +colorFrom: red +colorTo: indigo +sdk: streamlit +python_version: 3.8 +sdk_version: 1.35.0 +app_file: streamlit_app.py +pinned: false +models: [alexbene/BianqueNet]