Spaces:
Sleeping
Sleeping
alvaroalon2
commited on
Commit
·
66ba84c
1
Parent(s):
23acbef
chore
Browse files
.github/workflows/sync_hf_space.yml
CHANGED
@@ -40,16 +40,13 @@ jobs:
|
|
40 |
uses: snok/install-poetry@v1
|
41 |
|
42 |
- name: Generate requirements.txt from poetry
|
43 |
-
run: poetry export --without-hashes -f requirements.txt --output
|
44 |
-
|
45 |
-
- name: Generate pre-requirements.txt
|
46 |
-
run: echo "pip>=24.0" > pre-requirements.txt
|
47 |
|
48 |
- name: Add HF model card
|
49 |
run: cat model_card.md | cat - README.md > temp && mv temp README.md
|
50 |
|
51 |
- name: Update HF README
|
52 |
run: |
|
53 |
-
git add README.md
|
54 |
-
git commit -m "Update HF README adding model card, added requirements.txt
|
55 |
git push https://$HF_USERNAME:[email protected]/spaces/$HF_USERNAME/$SPACE_NAME
|
|
|
40 |
uses: snok/install-poetry@v1
|
41 |
|
42 |
- name: Generate requirements.txt from poetry
|
43 |
+
run: poetry export --without-hashes -f requirements.txt --output requirements.txt
|
|
|
|
|
|
|
44 |
|
45 |
- name: Add HF model card
|
46 |
run: cat model_card.md | cat - README.md > temp && mv temp README.md
|
47 |
|
48 |
- name: Update HF README
|
49 |
run: |
|
50 |
+
git add README.md requirements.txt
|
51 |
+
git commit -m "Update HF README adding model card, added requirements.txt"
|
52 |
git push https://$HF_USERNAME:[email protected]/spaces/$HF_USERNAME/$SPACE_NAME
|