oroszgy commited on
Commit
363098e
β€’
1 Parent(s): c713802

dep: downgraded gradio and minor fixes

Browse files

https://github.com/gradio-app/gradio/issues/3514

Files changed (5) hide show
  1. README.md +1 -1
  2. examples/dbpedia.py +0 -2
  3. poetry.lock +13 -67
  4. pyproject.toml +3 -1
  5. requirements.txt +2 -5
README.md CHANGED
@@ -4,7 +4,7 @@ emoji: πŸ‘
4
  colorFrom: red
5
  colorTo: indigo
6
  sdk: gradio
7
- sdk_version: "3.28.2"
8
  app_file: app.py
9
  pinned: false
10
  license: apache-2.0
 
4
  colorFrom: red
5
  colorTo: indigo
6
  sdk: gradio
7
+ sdk_version: "3.20.0"
8
  app_file: app.py
9
  pinned: false
10
  license: apache-2.0
examples/dbpedia.py CHANGED
@@ -9,8 +9,6 @@ NLP.add_pipe("dbpedia_spotlight", config={'dbpedia_rest_endpoint': 'https://dbpe
9
  def process(text: str) -> pd.DataFrame:
10
  doc = NLP(text)
11
 
12
- print([(ent.text, ent.kb_id_, ent._.dbpedia_raw_result) for ent in doc.spans["dbpedia_spotlight"]])
13
-
14
  return pd.DataFrame([{"Text": ent.text, "Resource": ent.kb_id_, "Similarity Score": ent._.dbpedia_raw_result['@similarityScore']}
15
  for ent in doc.spans["dbpedia_spotlight"]])
16
 
 
9
  def process(text: str) -> pd.DataFrame:
10
  doc = NLP(text)
11
 
 
 
12
  return pd.DataFrame([{"Text": ent.text, "Resource": ent.kb_id_, "Similarity Score": ent._.dbpedia_raw_result['@similarityScore']}
13
  for ent in doc.spans["dbpedia_spotlight"]])
14
 
poetry.lock CHANGED
@@ -971,14 +971,14 @@ tqdm = ["tqdm"]
971
 
972
  [[package]]
973
  name = "gradio"
974
- version = "3.28.2"
975
  description = "Python library for easily interacting with trained machine learning models"
976
  category = "main"
977
  optional = false
978
  python-versions = ">=3.7"
979
  files = [
980
- {file = "gradio-3.28.2-py3-none-any.whl", hash = "sha256:a28a7c9bccaa7662ceb08902586847e23431a69a304d14334ea290da5eb740df"},
981
- {file = "gradio-3.28.2.tar.gz", hash = "sha256:93d0d0e70e7129c38980a989aa45ee7ce4b3b7fa1e6b326c024323e3a54e24ea"},
982
  ]
983
 
984
  [package.dependencies]
@@ -987,9 +987,8 @@ aiohttp = "*"
987
  altair = ">=4.2.0"
988
  fastapi = "*"
989
  ffmpy = "*"
990
- gradio-client = ">=0.1.3"
991
  httpx = "*"
992
- huggingface-hub = ">=0.13.0"
993
  jinja2 = "*"
994
  markdown-it-py = {version = ">=2.0.0", extras = ["linkify"]}
995
  markupsafe = "*"
@@ -999,38 +998,16 @@ numpy = "*"
999
  orjson = "*"
1000
  pandas = "*"
1001
  pillow = "*"
 
1002
  pydantic = "*"
1003
  pydub = "*"
1004
- pygments = ">=2.12.0"
1005
  python-multipart = "*"
1006
  pyyaml = "*"
1007
  requests = "*"
1008
- semantic-version = "*"
1009
  typing-extensions = "*"
1010
  uvicorn = "*"
1011
  websockets = ">=10.0"
1012
 
1013
- [[package]]
1014
- name = "gradio-client"
1015
- version = "0.1.4"
1016
- description = "Python library for easily interacting with trained machine learning models"
1017
- category = "main"
1018
- optional = false
1019
- python-versions = ">=3.7"
1020
- files = [
1021
- {file = "gradio_client-0.1.4-py3-none-any.whl", hash = "sha256:4232f5a0fed817f39eb1e3a3336ac5a203ac674d451846d0039ab1ea92138d40"},
1022
- {file = "gradio_client-0.1.4.tar.gz", hash = "sha256:d67b6d5d5cd92976c10585c1fce808e7745ee700b63ed4e923f7de4b4bdc94c0"},
1023
- ]
1024
-
1025
- [package.dependencies]
1026
- fsspec = "*"
1027
- httpx = "*"
1028
- huggingface-hub = ">=0.13.0"
1029
- packaging = "*"
1030
- requests = "*"
1031
- typing-extensions = "*"
1032
- websockets = "*"
1033
-
1034
  [[package]]
1035
  name = "h11"
1036
  version = "0.14.0"
@@ -1839,21 +1816,21 @@ files = [
1839
 
1840
  [[package]]
1841
  name = "networkx"
1842
- version = "3.1"
1843
  description = "Python package for creating and manipulating graphs and networks"
1844
  category = "main"
1845
  optional = false
1846
  python-versions = ">=3.8"
1847
  files = [
1848
- {file = "networkx-3.1-py3-none-any.whl", hash = "sha256:4f33f68cb2afcf86f28a45f43efc27a9386b535d567d2127f8f61d51dec58d36"},
1849
- {file = "networkx-3.1.tar.gz", hash = "sha256:de346335408f84de0eada6ff9fafafff9bcda11f0a0dfaa931133debb146ab61"},
1850
  ]
1851
 
1852
  [package.extras]
1853
- default = ["matplotlib (>=3.4)", "numpy (>=1.20)", "pandas (>=1.3)", "scipy (>=1.8)"]
1854
- developer = ["mypy (>=1.1)", "pre-commit (>=3.2)"]
1855
- doc = ["nb2plots (>=0.6)", "numpydoc (>=1.5)", "pillow (>=9.4)", "pydata-sphinx-theme (>=0.13)", "sphinx (>=6.1)", "sphinx-gallery (>=0.12)", "texext (>=0.6.7)"]
1856
- extra = ["lxml (>=4.6)", "pydot (>=1.4.2)", "pygraphviz (>=1.10)", "sympy (>=1.10)"]
1857
  test = ["codecov (>=2.1)", "pytest (>=7.2)", "pytest-cov (>=4.0)"]
1858
 
1859
  [[package]]
@@ -2553,21 +2530,6 @@ files = [
2553
  {file = "pydub-0.25.1.tar.gz", hash = "sha256:980a33ce9949cab2a569606b65674d748ecbca4f0796887fd6f46173a7b0d30f"},
2554
  ]
2555
 
2556
- [[package]]
2557
- name = "pygments"
2558
- version = "2.15.1"
2559
- description = "Pygments is a syntax highlighting package written in Python."
2560
- category = "main"
2561
- optional = false
2562
- python-versions = ">=3.7"
2563
- files = [
2564
- {file = "Pygments-2.15.1-py3-none-any.whl", hash = "sha256:db2db3deb4b4179f399a09054b023b6a586b76499d36965813c71aa8ed7b5fd1"},
2565
- {file = "Pygments-2.15.1.tar.gz", hash = "sha256:8ace4d3c1dd481894b2005f560ead0f9f19ee64fe983366be1a21e171d12775c"},
2566
- ]
2567
-
2568
- [package.extras]
2569
- plugins = ["importlib-metadata"]
2570
-
2571
  [[package]]
2572
  name = "pyparsing"
2573
  version = "3.0.9"
@@ -2943,22 +2905,6 @@ files = [
2943
  [package.dependencies]
2944
  numpy = ">=1.17.3,<1.25.0"
2945
 
2946
- [[package]]
2947
- name = "semantic-version"
2948
- version = "2.10.0"
2949
- description = "A library implementing the 'SemVer' scheme."
2950
- category = "main"
2951
- optional = false
2952
- python-versions = ">=2.7"
2953
- files = [
2954
- {file = "semantic_version-2.10.0-py2.py3-none-any.whl", hash = "sha256:de78a3b8e0feda74cabc54aab2da702113e33ac9d9eb9d2389bcf1f58b7d9177"},
2955
- {file = "semantic_version-2.10.0.tar.gz", hash = "sha256:bdabb6d336998cbb378d4b9db3a4b56a1e3235701dc05ea2690d9a997ed5041c"},
2956
- ]
2957
-
2958
- [package.extras]
2959
- dev = ["Django (>=1.11)", "check-manifest", "colorama (<=0.4.1)", "coverage", "flake8", "nose2", "readme-renderer (<25.0)", "tox", "wheel", "zest.releaser[recommended]"]
2960
- doc = ["Sphinx", "sphinx-rtd-theme"]
2961
-
2962
  [[package]]
2963
  name = "setuptools"
2964
  version = "67.7.2"
@@ -4095,4 +4041,4 @@ multidict = ">=4.0"
4095
  [metadata]
4096
  lock-version = "2.0"
4097
  python-versions = "~3.10"
4098
- content-hash = "42c1089b26fd3e6c7a1fb4549f8ad86d9d55f5d720554fc21e73501bb1a58809"
 
971
 
972
  [[package]]
973
  name = "gradio"
974
+ version = "3.20.1"
975
  description = "Python library for easily interacting with trained machine learning models"
976
  category = "main"
977
  optional = false
978
  python-versions = ">=3.7"
979
  files = [
980
+ {file = "gradio-3.20.1-py3-none-any.whl", hash = "sha256:fbdb96a461ce7180538008342d7011b87d9cca4847be0a5a845a12f57e322e25"},
981
+ {file = "gradio-3.20.1.tar.gz", hash = "sha256:a06f7b1b07a1c815a3597cc3ab27e3fb1da601f33a39085829d0378f446ff15b"},
982
  ]
983
 
984
  [package.dependencies]
 
987
  altair = ">=4.2.0"
988
  fastapi = "*"
989
  ffmpy = "*"
990
+ fsspec = "*"
991
  httpx = "*"
 
992
  jinja2 = "*"
993
  markdown-it-py = {version = ">=2.0.0", extras = ["linkify"]}
994
  markupsafe = "*"
 
998
  orjson = "*"
999
  pandas = "*"
1000
  pillow = "*"
1001
+ pycryptodome = "*"
1002
  pydantic = "*"
1003
  pydub = "*"
 
1004
  python-multipart = "*"
1005
  pyyaml = "*"
1006
  requests = "*"
 
1007
  typing-extensions = "*"
1008
  uvicorn = "*"
1009
  websockets = ">=10.0"
1010
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1011
  [[package]]
1012
  name = "h11"
1013
  version = "0.14.0"
 
1816
 
1817
  [[package]]
1818
  name = "networkx"
1819
+ version = "2.8.8"
1820
  description = "Python package for creating and manipulating graphs and networks"
1821
  category = "main"
1822
  optional = false
1823
  python-versions = ">=3.8"
1824
  files = [
1825
+ {file = "networkx-2.8.8-py3-none-any.whl", hash = "sha256:e435dfa75b1d7195c7b8378c3859f0445cd88c6b0375c181ed66823a9ceb7524"},
1826
+ {file = "networkx-2.8.8.tar.gz", hash = "sha256:230d388117af870fce5647a3c52401fcf753e94720e6ea6b4197a5355648885e"},
1827
  ]
1828
 
1829
  [package.extras]
1830
+ default = ["matplotlib (>=3.4)", "numpy (>=1.19)", "pandas (>=1.3)", "scipy (>=1.8)"]
1831
+ developer = ["mypy (>=0.982)", "pre-commit (>=2.20)"]
1832
+ doc = ["nb2plots (>=0.6)", "numpydoc (>=1.5)", "pillow (>=9.2)", "pydata-sphinx-theme (>=0.11)", "sphinx (>=5.2)", "sphinx-gallery (>=0.11)", "texext (>=0.6.6)"]
1833
+ extra = ["lxml (>=4.6)", "pydot (>=1.4.2)", "pygraphviz (>=1.9)", "sympy (>=1.10)"]
1834
  test = ["codecov (>=2.1)", "pytest (>=7.2)", "pytest-cov (>=4.0)"]
1835
 
1836
  [[package]]
 
2530
  {file = "pydub-0.25.1.tar.gz", hash = "sha256:980a33ce9949cab2a569606b65674d748ecbca4f0796887fd6f46173a7b0d30f"},
2531
  ]
2532
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2533
  [[package]]
2534
  name = "pyparsing"
2535
  version = "3.0.9"
 
2905
  [package.dependencies]
2906
  numpy = ">=1.17.3,<1.25.0"
2907
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2908
  [[package]]
2909
  name = "setuptools"
2910
  version = "67.7.2"
 
4041
  [metadata]
4042
  lock-version = "2.0"
4043
  python-versions = "~3.10"
4044
+ content-hash = "952065d6158b3ebd5e1f81a95d955549a29d2f6d9cfff818c427e750f48298ee"
pyproject.toml CHANGED
@@ -10,12 +10,14 @@ python = "~3.10"
10
  textacy = "^0.12.0"
11
  scipy = "~1.8"
12
  newspaper3k = "^0.2.8"
13
- gradio = "~3.28.2"
14
  Faker = "^13.13.0"
15
  presidio-analyzer = "^2.2.28"
16
  presidio-anonymizer = "^2.2.28"
17
  hu-core-news-trf = {url = "https://huggingface.co/huspacy/hu_core_news_trf/resolve/v3.5.1/hu_core_news_trf-any-py3-none-any.whl"}
18
  spacy-dbpedia-spotlight = "^0.2.2"
 
 
19
 
20
  [tool.poetry.dev-dependencies]
21
 
 
10
  textacy = "^0.12.0"
11
  scipy = "~1.8"
12
  newspaper3k = "^0.2.8"
13
+ gradio = "~3.20.0"
14
  Faker = "^13.13.0"
15
  presidio-analyzer = "^2.2.28"
16
  presidio-anonymizer = "^2.2.28"
17
  hu-core-news-trf = {url = "https://huggingface.co/huspacy/hu_core_news_trf/resolve/v3.5.1/hu_core_news_trf-any-py3-none-any.whl"}
18
  spacy-dbpedia-spotlight = "^0.2.2"
19
+ # Textacy fails to use pined versions
20
+ networkx = "~2.8.8"
21
 
22
  [tool.poetry.dev-dependencies]
23
 
requirements.txt CHANGED
@@ -30,8 +30,7 @@ filelock==3.12.0 ; python_version >= "3.10" and python_version < "3.11"
30
  fonttools==4.39.3 ; python_version >= "3.10" and python_version < "3.11"
31
  frozenlist==1.3.3 ; python_version >= "3.10" and python_version < "3.11"
32
  fsspec==2023.4.0 ; python_version >= "3.10" and python_version < "3.11"
33
- gradio-client==0.1.4 ; python_version >= "3.10" and python_version < "3.11"
34
- gradio==3.28.2 ; python_version >= "3.10" and python_version < "3.11"
35
  h11==0.14.0 ; python_version >= "3.10" and python_version < "3.11"
36
  httpcore==0.17.0 ; python_version >= "3.10" and python_version < "3.11"
37
  httpx==0.24.0 ; python_version >= "3.10" and python_version < "3.11"
@@ -58,7 +57,7 @@ mdurl==0.1.2 ; python_version >= "3.10" and python_version < "3.11"
58
  mpmath==1.3.0 ; python_version >= "3.10" and python_version < "3.11"
59
  multidict==6.0.4 ; python_version >= "3.10" and python_version < "3.11"
60
  murmurhash==1.0.9 ; python_version >= "3.10" and python_version < "3.11"
61
- networkx==3.1 ; python_version >= "3.10" and python_version < "3.11"
62
  newspaper3k==0.2.8 ; python_version >= "3.10" and python_version < "3.11"
63
  nltk==3.8.1 ; python_version >= "3.10" and python_version < "3.11"
64
  numpy==1.24.3 ; python_version >= "3.10" and python_version < "3.11"
@@ -85,7 +84,6 @@ presidio-anonymizer==2.2.32 ; python_version >= "3.10" and python_version < "3.1
85
  pycryptodome==3.17 ; python_version >= "3.10" and python_version < "3.11"
86
  pydantic==1.10.7 ; python_version >= "3.10" and python_version < "3.11"
87
  pydub==0.25.1 ; python_version >= "3.10" and python_version < "3.11"
88
- pygments==2.15.1 ; python_version >= "3.10" and python_version < "3.11"
89
  pyparsing==3.0.9 ; python_version >= "3.10" and python_version < "3.11"
90
  pyphen==0.14.0 ; python_version >= "3.10" and python_version < "3.11"
91
  pyrsistent==0.19.3 ; python_version >= "3.10" and python_version < "3.11"
@@ -98,7 +96,6 @@ requests-file==1.5.1 ; python_version >= "3.10" and python_version < "3.11"
98
  requests==2.29.0 ; python_version >= "3.10" and python_version < "3.11"
99
  scikit-learn==1.2.2 ; python_version >= "3.10" and python_version < "3.11"
100
  scipy==1.8.1 ; python_version >= "3.10" and python_version < "3.11"
101
- semantic-version==2.10.0 ; python_version >= "3.10" and python_version < "3.11"
102
  setuptools==67.7.2 ; python_version >= "3.10" and python_version < "3.11"
103
  sgmllib3k==1.0.0 ; python_version >= "3.10" and python_version < "3.11"
104
  six==1.16.0 ; python_version >= "3.10" and python_version < "3.11"
 
30
  fonttools==4.39.3 ; python_version >= "3.10" and python_version < "3.11"
31
  frozenlist==1.3.3 ; python_version >= "3.10" and python_version < "3.11"
32
  fsspec==2023.4.0 ; python_version >= "3.10" and python_version < "3.11"
33
+ gradio==3.20.1 ; python_version >= "3.10" and python_version < "3.11"
 
34
  h11==0.14.0 ; python_version >= "3.10" and python_version < "3.11"
35
  httpcore==0.17.0 ; python_version >= "3.10" and python_version < "3.11"
36
  httpx==0.24.0 ; python_version >= "3.10" and python_version < "3.11"
 
57
  mpmath==1.3.0 ; python_version >= "3.10" and python_version < "3.11"
58
  multidict==6.0.4 ; python_version >= "3.10" and python_version < "3.11"
59
  murmurhash==1.0.9 ; python_version >= "3.10" and python_version < "3.11"
60
+ networkx==2.8.8 ; python_version >= "3.10" and python_version < "3.11"
61
  newspaper3k==0.2.8 ; python_version >= "3.10" and python_version < "3.11"
62
  nltk==3.8.1 ; python_version >= "3.10" and python_version < "3.11"
63
  numpy==1.24.3 ; python_version >= "3.10" and python_version < "3.11"
 
84
  pycryptodome==3.17 ; python_version >= "3.10" and python_version < "3.11"
85
  pydantic==1.10.7 ; python_version >= "3.10" and python_version < "3.11"
86
  pydub==0.25.1 ; python_version >= "3.10" and python_version < "3.11"
 
87
  pyparsing==3.0.9 ; python_version >= "3.10" and python_version < "3.11"
88
  pyphen==0.14.0 ; python_version >= "3.10" and python_version < "3.11"
89
  pyrsistent==0.19.3 ; python_version >= "3.10" and python_version < "3.11"
 
96
  requests==2.29.0 ; python_version >= "3.10" and python_version < "3.11"
97
  scikit-learn==1.2.2 ; python_version >= "3.10" and python_version < "3.11"
98
  scipy==1.8.1 ; python_version >= "3.10" and python_version < "3.11"
 
99
  setuptools==67.7.2 ; python_version >= "3.10" and python_version < "3.11"
100
  sgmllib3k==1.0.0 ; python_version >= "3.10" and python_version < "3.11"
101
  six==1.16.0 ; python_version >= "3.10" and python_version < "3.11"