Skip to content

Commit 040dcb5

Browse files
Add huggingface hub login to CI, and update poetry
1 parent 6a2ce7e commit 040dcb5

File tree

3 files changed

+10
-4
lines changed

3 files changed

+10
-4
lines changed

.github/workflows/examples_check.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ jobs:
1212
env:
1313
COHERE_API_KEY: ${{ secrets.COHERE_API_KEY }}
1414
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
15+
HUGGINGFACE_API_KEY: ${{ secrets.HUGGINGFACE_API_KEY }}
1516

1617

1718
steps:
@@ -46,6 +47,9 @@ jobs:
4647
- name: Check for pypdfium2
4748
run: poetry run pip show pypdfium2
4849

50+
- name: Huggingface Hub Login
51+
run: huggingface-cli login --token $HUGGINGFACE_API_KEY
52+
4953
- name: Execute notebooks and check for errors
5054
run: ./.github/workflows/scripts/run_notebooks.sh
5155

poetry.lock

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ spacy = {version = "^3.7.2", optional = true}
4646
anthropic = {version = "^0.7.2", optional = true}
4747
torch = {version = "^2.1.1", optional = true}
4848
unbabel-comet = {git = "https://github.com/Unbabel/COMET.git", rev="45cb572", optional = true}
49+
huggingface_hub = {version = "^0.16.4", optional = true}
4950

5051

5152
[tool.poetry.extras]
@@ -55,12 +56,13 @@ vectordb = ["faiss-cpu", "tiktoken", "numpy"]
5556
profanity = ["alt-profanity-check"]
5657
detect-secrets = ["detect-secrets"]
5758
manifest = ["manifest-ml"]
58-
high_quality_translation = ["unbabel-comet"]
59+
high_quality_translation = ["unbabel-comet", "huggingface_hub"]
5960
toxic_language = ["transformers", "torch"]
6061
pii = ["presidio_analyzer", "presidio_anonymizer"]
6162
competitor-check = ["spacy"]
6263
anthropic = ["anthropic"]
6364

65+
6466
[tool.poetry.group.dev.dependencies]
6567
pytest = "^7.4.3"
6668
pytest-asyncio = "^0.21.1"

0 commit comments

Comments
 (0)