Skip to content

Commit

Permalink
fix api address and release contraint on torch
Browse files Browse the repository at this point in the history
  • Loading branch information
badGarnet committed Oct 20, 2024
1 parent 2feeea5 commit 4de9924
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 17 deletions.
4 changes: 0 additions & 4 deletions requirements/deps/constraints.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,3 @@ botocore<1.34.132
importlib-metadata>=8.5.0
# (austin): Versions below this have a different interface for passing parameters
unstructured-client>=0.23.0
# (yao): torchvision 0.20 deprecates `extension`
torchvision<0.20.0
# (yao): torchvision 0.19.x requires torch 2.4.1
torch<=2.4.1
10 changes: 4 additions & 6 deletions requirements/extra-pdf-image.txt
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ pdfminer-six==20231228
# pdfplumber
pdfplumber==0.11.4
# via layoutparser
pi-heif==0.18.0
pi-heif==0.20.0
# via -r ./extra-pdf-image.in
pikepdf==9.3.0
# via -r ./extra-pdf-image.in
Expand Down Expand Up @@ -243,7 +243,7 @@ six==1.16.0
# via
# -c ./base.txt
# python-dateutil
sympy==1.13.3
sympy==1.13.1
# via
# onnxruntime
# torch
Expand All @@ -255,16 +255,14 @@ tokenizers==0.19.1
# via
# -c ././deps/constraints.txt
# transformers
torch==2.4.1
torch==2.5.0
# via
# -c ././deps/constraints.txt
# effdet
# timm
# torchvision
# unstructured-inference
torchvision==0.19.1
torchvision==0.20.0
# via
# -c ././deps/constraints.txt
# effdet
# timm
tqdm==4.66.5
Expand Down
8 changes: 3 additions & 5 deletions requirements/huggingface.txt
Original file line number Diff line number Diff line change
Expand Up @@ -82,16 +82,14 @@ six==1.16.0
# via
# -c ./base.txt
# langdetect
sympy==1.13.3
sympy==1.13.1
# via torch
tokenizers==0.19.1
# via
# -c ././deps/constraints.txt
# transformers
torch==2.4.1
# via
# -c ././deps/constraints.txt
# -r ./huggingface.in
torch==2.5.0
# via -r ./huggingface.in
tqdm==4.66.5
# via
# -c ./base.txt
Expand Down
4 changes: 2 additions & 2 deletions test_unstructured/partition/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@

DIRECTORY = pathlib.Path(__file__).parent.resolve()

# NOTE(crag): point to freemium API for now
API_URL = "https://api.unstructured.io/general/v0/general"
# NOTE(yao): point to paid API for now
API_URL = "https://api.unstructuredapp.io/general/v0/general"

is_in_ci = os.getenv("CI", "").lower() not in {"", "false", "f", "0"}
skip_not_on_main = os.getenv("GITHUB_REF_NAME", "").lower() != "main"
Expand Down

0 comments on commit 4de9924

Please sign in to comment.