Spaces:
Sleeping
Sleeping
alvaroalon2
commited on
Commit
·
fc10617
1
Parent(s):
08a18f8
chore
Browse files
.github/workflows/sync_hf_space.yml
CHANGED
@@ -42,11 +42,14 @@ jobs:
|
|
42 |
- name: Generate requirements.txt from poetry
|
43 |
run: poetry export --without-hashes -f requirements.txt --output requeriments.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 requeriments.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
|
|
|
42 |
- name: Generate requirements.txt from poetry
|
43 |
run: poetry export --without-hashes -f requirements.txt --output requeriments.txt
|
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 requeriments.txt pre-requirements.txt
|
54 |
+
git commit -m "Update HF README adding model card, added requirements.txt and pre-requirements.txt"
|
55 |
git push https://$HF_USERNAME:[email protected]/spaces/$HF_USERNAME/$SPACE_NAME
|