Skip to content

Commit

Permalink
updates to deps; add readme to __init__
Browse files Browse the repository at this point in the history
  • Loading branch information
aalok-sathe committed Nov 21, 2023
1 parent 0da7a77 commit 0e944d7
Show file tree
Hide file tree
Showing 3 changed files with 73 additions and 9 deletions.
53 changes: 51 additions & 2 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

25 changes: 18 additions & 7 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,19 +18,30 @@ transformers = {version = "^4.20.1", optional = true}
openai = {version = "^0.23.0", optional = true}
kenlm = {version = "^0.2.0", optional = true}

[tool.poetry.dev-dependencies]
ipython = "^8.4.0"
ipykernel = "^6.15.1"
ipywidgets = "^7.7.1"
pytest = "^7.2.0"
black = {version = "^22.6.0", allow-prereleases = true}


[tool.poetry.extras]
transformers = ["transformers", "torch"]
openai = ["openai"]
kenlm = ["kenlm"]


[tool.poetry.group.docs]
optional = true

[tool.poetry.group.dev]
optional = true

[tool.poetry.group.docs.dependencies]
pdoc = "^14.1.0"

[tool.poetry.group.dev.dependencies]
ipython = "^8.4.0"
ipykernel = "^6.15.1"
ipywidgets = "^7.7.1"
pytest = "^7.2.0"
black = "^22.6.0"


[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
4 changes: 4 additions & 0 deletions surprisal/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
"""
.. include:: ../README.md
"""

from surprisal.model import (
AutoHuggingFaceModel,
AutoTransformerModel,
Expand Down

0 comments on commit 0e944d7

Please sign in to comment.