Skip to content

Commit

Permalink
Loosen Keras' version restriction, which is now unnecessarily strict (#…
Browse files Browse the repository at this point in the history
…68)

* Loosen Keras' version restriction, which is now unnecessarily strict

* Correctly use the vision-based model
  • Loading branch information
Hiromu Hota authored Oct 2, 2020
1 parent 54065ad commit 1714b6d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Changed
- [@HiromuHota][HiromuHota]: Loosen Keras' version restriction, which is now unnecessarily strict.
([#68](https://github.com/HazyResearch/pdftotree/pull/68))

### Fixed
- [@HiromuHota][HiromuHota]: Fix a bug that an html file is not created at a given path.
([#64](https://github.com/HazyResearch/pdftotree/pull/64))
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
install_requires=[
"IPython",
"beautifulsoup4",
"keras==2.0.8",
"keras>=2.0.8,<2.4.0", # keras>=2.4.0 requires TensorFlow 2.2 or higher
"numpy",
"pandas",
"pdfminer.six>=20191020",
Expand Down
6 changes: 3 additions & 3 deletions tests/test_basic.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,11 @@ def test_ml_completion():
assert output is not None


def test_visual_completion():
"""Simply test that ML-based parse runs without errors."""
def test_vision_completion():
"""Simply test that vision-based parse runs without errors."""
output = pdftotree.parse(
"tests/input/paleo.pdf",
model_type="visual",
model_type="vision",
model_path="tests/input/paleo_visual_model.h5",
)
assert output is not None

0 comments on commit 1714b6d

Please sign in to comment.