feat: restricting the demo to the `trf` model only
Browse files- README.md +6 -0
- app.py +0 -1
- poetry.lock +0 -0
- poetry.toml +2 -0
- pyproject.toml +17 -0
- requirements.txt +87 -4
README.md
CHANGED
@@ -12,3 +12,9 @@ pinned: true
|
|
12 |
# π HuSpaCy Demo
|
13 |
|
14 |
This repository contains an app demonstrating the capabilities of [HuSpaCy](https://github.com/spacy-hu/spacy-hungarian-models). The demo is available at [Hugging Face Spaces](https://huggingface.co/spaces/huspacy/demo)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
12 |
# π HuSpaCy Demo
|
13 |
|
14 |
This repository contains an app demonstrating the capabilities of [HuSpaCy](https://github.com/spacy-hu/spacy-hungarian-models). The demo is available at [Hugging Face Spaces](https://huggingface.co/spaces/huspacy/demo)
|
15 |
+
|
16 |
+
## Development
|
17 |
+
|
18 |
+
To start the demo: `poetry run python app.py`
|
19 |
+
|
20 |
+
If you upgrade dependencies via poetry don't forget to update `requirements.txt` with `poetry export --without-hashes > requirements.txt`
|
app.py
CHANGED
@@ -4,7 +4,6 @@ import streamlit as st
|
|
4 |
st.set_page_config(layout="wide")
|
5 |
|
6 |
models = {
|
7 |
-
"hu_core_news_lg": "hu_core_news_lg",
|
8 |
"hu_core_news_trf": "hu_core_news_trf"
|
9 |
}
|
10 |
|
|
|
4 |
st.set_page_config(layout="wide")
|
5 |
|
6 |
models = {
|
|
|
7 |
"hu_core_news_trf": "hu_core_news_trf"
|
8 |
}
|
9 |
|
poetry.lock
ADDED
The diff for this file is too large to render.
See raw diff
|
|
poetry.toml
ADDED
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
1 |
+
[virtualenvs]
|
2 |
+
in-project = true
|
pyproject.toml
ADDED
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
[tool.poetry]
|
2 |
+
name = "HuSpaCy Streamlit Demo"
|
3 |
+
version = "0.1.0"
|
4 |
+
description = ""
|
5 |
+
authors = ["Gyorgy Orosz <[email protected]>"]
|
6 |
+
license = "MIT"
|
7 |
+
|
8 |
+
[tool.poetry.dependencies]
|
9 |
+
python = "^3.7.1"
|
10 |
+
spacy-streamlit = "==1.0.4"
|
11 |
+
hu-core-news-trf = {url = "https://huggingface.co/huspacy/hu_core_news_trf/resolve/v3.4.0/hu_core_news_trf-any-py3-none-any.whl"}
|
12 |
+
|
13 |
+
[tool.poetry.dev-dependencies]
|
14 |
+
|
15 |
+
[build-system]
|
16 |
+
requires = ["poetry-core>=1.0.0"]
|
17 |
+
build-backend = "poetry.core.masonry.api"
|
requirements.txt
CHANGED
@@ -1,4 +1,87 @@
|
|
1 |
-
|
2 |
-
|
3 |
-
|
4 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
altair==4.2.0 ; python_full_version >= "3.7.1" and python_full_version < "4.0.0"
|
2 |
+
attrs==22.1.0 ; python_full_version >= "3.7.1" and python_full_version < "4.0.0"
|
3 |
+
backports-zoneinfo==0.2.1 ; python_full_version >= "3.7.1" and python_version < "3.9"
|
4 |
+
blinker==1.5 ; python_full_version >= "3.7.1" and python_full_version < "4.0.0"
|
5 |
+
blis==0.7.9 ; python_full_version >= "3.7.1" and python_full_version < "4.0.0"
|
6 |
+
cachetools==5.2.0 ; python_full_version >= "3.7.1" and python_version < "4.0"
|
7 |
+
catalogue==2.0.8 ; python_full_version >= "3.7.1" and python_full_version < "4.0.0"
|
8 |
+
certifi==2022.9.24 ; python_full_version >= "3.7.1" and python_version < "4"
|
9 |
+
charset-normalizer==2.1.1 ; python_full_version >= "3.7.1" and python_version < "4"
|
10 |
+
click==8.1.3 ; python_full_version >= "3.7.1" and python_full_version < "4.0.0"
|
11 |
+
colorama==0.4.6 ; python_full_version >= "3.7.1" and python_full_version < "4.0.0" and platform_system == "Windows"
|
12 |
+
commonmark==0.9.1 ; python_full_version >= "3.7.1" and python_full_version < "4.0.0"
|
13 |
+
confection==0.0.3 ; python_full_version >= "3.7.1" and python_full_version < "4.0.0"
|
14 |
+
cymem==2.0.7 ; python_full_version >= "3.7.1" and python_full_version < "4.0.0"
|
15 |
+
decorator==5.1.1 ; python_full_version >= "3.7.1" and python_full_version < "4.0.0"
|
16 |
+
entrypoints==0.4 ; python_full_version >= "3.7.1" and python_full_version < "4.0.0"
|
17 |
+
filelock==3.8.0 ; python_full_version >= "3.7.1" and python_full_version < "4.0.0"
|
18 |
+
gitdb==4.0.10 ; python_full_version >= "3.7.1" and python_full_version < "4.0.0"
|
19 |
+
gitpython==3.1.29 ; python_full_version >= "3.7.1" and python_full_version < "4.0.0"
|
20 |
+
hu-core-news-trf @ https://huggingface.co/huspacy/hu_core_news_trf/resolve/v3.4.0/hu_core_news_trf-any-py3-none-any.whl ; python_full_version >= "3.7.1" and python_full_version < "4.0.0"
|
21 |
+
huggingface-hub==0.11.0 ; python_full_version >= "3.7.1" and python_full_version < "4.0.0"
|
22 |
+
idna==3.4 ; python_full_version >= "3.7.1" and python_version < "4"
|
23 |
+
importlib-metadata==5.0.0 ; python_full_version >= "3.7.1" and python_full_version < "4.0.0"
|
24 |
+
importlib-resources==5.10.0 ; python_full_version >= "3.7.1" and python_version < "3.9"
|
25 |
+
jinja2==3.1.2 ; python_full_version >= "3.7.1" and python_full_version < "4.0.0"
|
26 |
+
jsonschema==4.17.1 ; python_full_version >= "3.7.1" and python_full_version < "4.0.0"
|
27 |
+
langcodes==3.3.0 ; python_full_version >= "3.7.1" and python_full_version < "4.0.0"
|
28 |
+
markupsafe==2.1.1 ; python_full_version >= "3.7.1" and python_full_version < "4.0.0"
|
29 |
+
murmurhash==1.0.9 ; python_full_version >= "3.7.1" and python_full_version < "4.0.0"
|
30 |
+
numpy==1.21.1 ; python_full_version < "4.0.0" and python_full_version >= "3.7.1"
|
31 |
+
nvidia-cublas-cu11==11.10.3.66 ; python_full_version >= "3.7.1" and python_full_version < "4.0.0"
|
32 |
+
nvidia-cuda-nvrtc-cu11==11.7.99 ; python_full_version >= "3.7.1" and python_full_version < "4.0.0"
|
33 |
+
nvidia-cuda-runtime-cu11==11.7.99 ; python_full_version >= "3.7.1" and python_full_version < "4.0.0"
|
34 |
+
nvidia-cudnn-cu11==8.5.0.96 ; python_full_version >= "3.7.1" and python_full_version < "4.0.0"
|
35 |
+
packaging==21.3 ; python_full_version >= "3.7.1" and python_full_version < "4.0.0"
|
36 |
+
pandas==1.3.5 ; python_full_version >= "3.7.1" and python_full_version < "4.0.0"
|
37 |
+
pathy==0.10.0 ; python_full_version >= "3.7.1" and python_full_version < "4.0.0"
|
38 |
+
pillow==9.3.0 ; python_full_version >= "3.7.1" and python_full_version < "4.0.0"
|
39 |
+
pkgutil-resolve-name==1.3.10 ; python_full_version >= "3.7.1" and python_version < "3.9"
|
40 |
+
preshed==3.0.8 ; python_full_version >= "3.7.1" and python_full_version < "4.0.0"
|
41 |
+
protobuf==3.20.3 ; python_full_version >= "3.7.1" and python_full_version < "4.0.0"
|
42 |
+
pyarrow==10.0.1 ; python_full_version >= "3.7.1" and python_full_version < "4.0.0"
|
43 |
+
pydantic==1.10.2 ; python_full_version >= "3.7.1" and python_full_version < "4.0.0"
|
44 |
+
pydeck==0.8.0 ; python_full_version >= "3.7.1" and python_full_version < "4.0.0"
|
45 |
+
pygments==2.13.0 ; python_full_version >= "3.7.1" and python_full_version < "4.0.0"
|
46 |
+
pympler==1.0.1 ; python_full_version >= "3.7.1" and python_full_version < "4.0.0"
|
47 |
+
pyparsing==3.0.9 ; python_full_version >= "3.7.1" and python_full_version < "4.0.0"
|
48 |
+
pyrsistent==0.19.2 ; python_full_version >= "3.7.1" and python_full_version < "4.0.0"
|
49 |
+
python-dateutil==2.8.2 ; python_full_version >= "3.7.1" and python_full_version < "4.0.0"
|
50 |
+
pytz-deprecation-shim==0.1.0.post0 ; python_full_version >= "3.7.1" and python_full_version < "4.0.0"
|
51 |
+
pytz==2022.6 ; python_full_version >= "3.7.1" and python_full_version < "4.0.0"
|
52 |
+
pyyaml==6.0 ; python_full_version >= "3.7.1" and python_full_version < "4.0.0"
|
53 |
+
regex==2022.10.31 ; python_full_version >= "3.7.1" and python_full_version < "4.0.0"
|
54 |
+
requests==2.28.1 ; python_full_version >= "3.7.1" and python_version < "4"
|
55 |
+
rich==12.6.0 ; python_full_version >= "3.7.1" and python_full_version < "4.0.0"
|
56 |
+
semver==2.13.0 ; python_full_version >= "3.7.1" and python_full_version < "4.0.0"
|
57 |
+
setuptools==65.6.3 ; python_full_version >= "3.7.1" and python_full_version < "4.0.0"
|
58 |
+
six==1.16.0 ; python_full_version >= "3.7.1" and python_full_version < "4.0.0"
|
59 |
+
smart-open==5.2.1 ; python_full_version >= "3.7.1" and python_version < "4.0"
|
60 |
+
smmap==5.0.0 ; python_full_version >= "3.7.1" and python_full_version < "4.0.0"
|
61 |
+
spacy-alignments==0.8.6 ; python_full_version >= "3.7.1" and python_full_version < "4.0.0"
|
62 |
+
spacy-experimental==0.6.1 ; python_full_version >= "3.7.1" and python_full_version < "4.0.0"
|
63 |
+
spacy-legacy==3.0.10 ; python_full_version >= "3.7.1" and python_full_version < "4.0.0"
|
64 |
+
spacy-loggers==1.0.3 ; python_full_version >= "3.7.1" and python_full_version < "4.0.0"
|
65 |
+
spacy-streamlit==1.0.4 ; python_full_version >= "3.7.1" and python_full_version < "4.0.0"
|
66 |
+
spacy-transformers==1.1.8 ; python_full_version >= "3.7.1" and python_full_version < "4.0.0"
|
67 |
+
spacy==3.4.3 ; python_full_version >= "3.7.1" and python_full_version < "4.0.0"
|
68 |
+
srsly==2.4.5 ; python_full_version >= "3.7.1" and python_full_version < "4.0.0"
|
69 |
+
streamlit==1.12.0 ; python_full_version >= "3.7.1" and python_full_version < "4.0.0"
|
70 |
+
thinc==8.1.5 ; python_full_version >= "3.7.1" and python_full_version < "4.0.0"
|
71 |
+
tokenizers==0.12.1 ; python_full_version >= "3.7.1" and python_full_version < "4.0.0"
|
72 |
+
toml==0.10.2 ; python_full_version >= "3.7.1" and python_full_version < "4.0.0"
|
73 |
+
toolz==0.12.0 ; python_full_version >= "3.7.1" and python_full_version < "4.0.0"
|
74 |
+
torch==1.13.0 ; python_full_version >= "3.7.1" and python_full_version < "4.0.0"
|
75 |
+
tornado==6.2 ; python_full_version >= "3.7.1" and python_full_version < "4.0.0"
|
76 |
+
tqdm==4.64.1 ; python_full_version >= "3.7.1" and python_full_version < "4.0.0"
|
77 |
+
transformers==4.21.3 ; python_full_version >= "3.7.1" and python_full_version < "4.0.0"
|
78 |
+
typer==0.7.0 ; python_full_version >= "3.7.1" and python_full_version < "4.0.0"
|
79 |
+
typing-extensions==4.1.1 ; python_full_version >= "3.7.1" and python_full_version < "4.0.0"
|
80 |
+
tzdata==2022.6 ; python_full_version >= "3.7.1" and python_full_version < "4.0.0"
|
81 |
+
tzlocal==4.2 ; python_full_version >= "3.7.1" and python_full_version < "4.0.0"
|
82 |
+
urllib3==1.26.13 ; python_full_version >= "3.7.1" and python_version < "4"
|
83 |
+
validators==0.20.0 ; python_full_version >= "3.7.1" and python_full_version < "4.0.0"
|
84 |
+
wasabi==0.10.1 ; python_full_version >= "3.7.1" and python_full_version < "4.0.0"
|
85 |
+
watchdog==2.1.9 ; python_full_version >= "3.7.1" and python_full_version < "4.0.0" and platform_system != "Darwin"
|
86 |
+
wheel==0.38.4 ; python_full_version >= "3.7.1" and python_full_version < "4.0.0"
|
87 |
+
zipp==3.10.0 ; python_full_version >= "3.7.1" and python_full_version < "4.0.0"
|