Spaces:
Sleeping
Sleeping
alvaroalon2
commited on
Commit
·
ebbf021
1
Parent(s):
29839a8
chore
Browse files- .github/workflows/sync_hf_space.yml +5 -2
- poetry.lock +0 -0
- pyproject.toml +2 -2
.github/workflows/sync_hf_space.yml
CHANGED
@@ -25,6 +25,9 @@ jobs:
|
|
25 |
HF_USERNAME: "alvaroalon2"
|
26 |
SPACE_NAME: "LinguAIcoach"
|
27 |
run: git push https://$HF_USERNAME:$HF_TOKEN@huggingface.co/spaces/$HF_USERNAME/$SPACE_NAME main
|
|
|
|
|
|
|
28 |
|
29 |
- name: Add HF model card
|
30 |
run: cat model_card.md | cat - README.md > temp && mv temp README.md
|
@@ -38,6 +41,6 @@ jobs:
|
|
38 |
git config --global user.name "${{ github.actor }}"
|
39 |
git config --global user.email "${{ github.actor_id }}+${{ github.actor }}@users.noreply.github.com"
|
40 |
git pull https://$HF_USERNAME:$HF_TOKEN@huggingface.co/spaces/$HF_USERNAME/$SPACE_NAME
|
41 |
-
git add README.md
|
42 |
-
git commit -m "Update HF README adding model card"
|
43 |
git push https://$HF_USERNAME:$HF_TOKEN@huggingface.co/spaces/$HF_USERNAME/$SPACE_NAME
|
|
|
25 |
HF_USERNAME: "alvaroalon2"
|
26 |
SPACE_NAME: "LinguAIcoach"
|
27 |
run: git push https://$HF_USERNAME:$HF_TOKEN@huggingface.co/spaces/$HF_USERNAME/$SPACE_NAME main
|
28 |
+
|
29 |
+
- name: Generate requirements.txt from poetry
|
30 |
+
run: poetry export --without-hashes -f requirements.txt --output requeriments.txt
|
31 |
|
32 |
- name: Add HF model card
|
33 |
run: cat model_card.md | cat - README.md > temp && mv temp README.md
|
|
|
41 |
git config --global user.name "${{ github.actor }}"
|
42 |
git config --global user.email "${{ github.actor_id }}+${{ github.actor }}@users.noreply.github.com"
|
43 |
git pull https://$HF_USERNAME:$HF_TOKEN@huggingface.co/spaces/$HF_USERNAME/$SPACE_NAME
|
44 |
+
git add README.md requeriments.txt
|
45 |
+
git commit -m "Update HF README adding model card, added requirements.txt"
|
46 |
git push https://$HF_USERNAME:$HF_TOKEN@huggingface.co/spaces/$HF_USERNAME/$SPACE_NAME
|
poetry.lock
CHANGED
The diff for this file is too large to render.
See raw diff
|
|
pyproject.toml
CHANGED
@@ -11,7 +11,7 @@ repository = "https://github.com/alvaroalon2/LinguAIcoach"
|
|
11 |
classifiers = [
|
12 |
'Development Status :: 2 - Pre-Alpha',
|
13 |
"Operating System :: Unix",
|
14 |
-
"Programming Language :: Python :: 3.
|
15 |
]
|
16 |
|
17 |
packages = [{ include = "src" }]
|
@@ -21,7 +21,7 @@ requires = ["poetry-core"]
|
|
21 |
build-backend = "poetry.core.masonry.api"
|
22 |
|
23 |
[tool.poetry.dependencies]
|
24 |
-
python = "^3.
|
25 |
langchain = "^0.1.12"
|
26 |
langchain-openai = "^0.0.6"
|
27 |
openai = "^1.12.0"
|
|
|
11 |
classifiers = [
|
12 |
'Development Status :: 2 - Pre-Alpha',
|
13 |
"Operating System :: Unix",
|
14 |
+
"Programming Language :: Python :: 3.11",
|
15 |
]
|
16 |
|
17 |
packages = [{ include = "src" }]
|
|
|
21 |
build-backend = "poetry.core.masonry.api"
|
22 |
|
23 |
[tool.poetry.dependencies]
|
24 |
+
python = "^3.11"
|
25 |
langchain = "^0.1.12"
|
26 |
langchain-openai = "^0.0.6"
|
27 |
openai = "^1.12.0"
|