Skip to content

Commit fd2c3e3

Browse files
authored
📌 Pin cached path to prevent error (#252)
1 parent 66c6e39 commit fd2c3e3

3 files changed

Lines changed: 33 additions & 30 deletions

File tree

demo.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@
7878
),
7979
}
8080

81+
8182
# Load and cache models (one at a time)
8283
@st.cache(allow_output_mutation=True, max_entries=1, ttl=3600)
8384
def load_model(model_name: str):

poetry.lock

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

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ more-itertools = "^8.10.0"
3737
allennlp = "^2.9.0"
3838
allennlp-models = "^2.9.0"
3939
fastai = "^2.5.3"
40+
cached-path = "~1.0.2"
4041

4142
[tool.poetry.dev-dependencies]
4243
black = "^22.1"

0 commit comments

Comments
 (0)