Skip to content

Commit

Permalink
seperate README yml header; push to hf spaces action
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-bene committed May 29, 2024
1 parent b149587 commit efdd5ef
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/hf_space_sunc.yml
Original file line number Diff line number Diff line change
@@ -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/[email protected]
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 }}
10 changes: 10 additions & 0 deletions hf_space_metadata.yml
Original file line number Diff line number Diff line change
@@ -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]

0 comments on commit efdd5ef

Please sign in to comment.