Anirudh Balaraman commited on
Commit
6ef86f6
·
1 Parent(s): 67207d1

updated readme

Browse files
Files changed (2) hide show
  1. .github/workflows/ci.yaml +19 -2
  2. README.md +0 -10
.github/workflows/ci.yaml CHANGED
@@ -1,4 +1,4 @@
1
- name: CI
2
 
3
  on:
4
  push:
@@ -42,9 +42,26 @@ jobs:
42
  HF_USERNAME: "anirudh0410"
43
  SPACE_NAME: "WSA_Prostate"
44
  run: |
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
45
  git config --global user.email "action@github.com"
46
  git config --global user.name "GitHub Action"
47
-
 
48
  # Add Hugging Face as a remote
49
  git remote add space https://$HF_USERNAME:$HF_TOKEN@huggingface.co/spaces/$HF_USERNAME/$SPACE_NAME
50
 
 
1
+ name: CI/CD
2
 
3
  on:
4
  push:
 
42
  HF_USERNAME: "anirudh0410"
43
  SPACE_NAME: "WSA_Prostate"
44
  run: |
45
+ # Create a temporary file with the metadata
46
+ echo "---" > hf_header.txt
47
+ echo "title: Prostate Inference" >> hf_header.txt
48
+ echo "emoji: 🚀" >> hf_header.txt
49
+ echo "colorFrom: blue" >> hf_header.txt
50
+ echo "colorTo: red" >> hf_header.txt
51
+ echo "sdk: docker" >> hf_header.txt
52
+ echo "pinned: false" >> hf_header.txt
53
+ echo "short_description: Predicts csPCa risk and PI-RADS score from bpMRI sequences" >> hf_header.txt
54
+ echo "app_port: 8501" >> hf_header.txt
55
+ echo "---" >> hf_header.txt
56
+
57
+ # Combine metadata with the real README
58
+ cat hf_header.txt README.md > README_new.md
59
+ mv README_new.md README.md
60
+
61
  git config --global user.email "action@github.com"
62
  git config --global user.name "GitHub Action"
63
+ git add README.md
64
+ git commit -m "Add HF metadata for deployment"
65
  # Add Hugging Face as a remote
66
  git remote add space https://$HF_USERNAME:$HF_TOKEN@huggingface.co/spaces/$HF_USERNAME/$SPACE_NAME
67
 
README.md CHANGED
@@ -1,13 +1,3 @@
1
- ---
2
- title: Prostate Inference
3
- emoji: 🚀
4
- colorFrom: blue
5
- colorTo: red
6
- sdk: docker
7
- pinned: false
8
- short_description: Predicts csPCa risk and PI-RADS score from bpMRI sequences
9
- app_port: 8501
10
- ---
11
  <p align="center">
12
  <img src="docs/assets/logo.svg" alt="WSAttention-Prostate Logo" width="560">
13
  </p>
 
 
 
 
 
 
 
 
 
 
 
1
  <p align="center">
2
  <img src="docs/assets/logo.svg" alt="WSAttention-Prostate Logo" width="560">
3
  </p>