NER Space isn't working because there is a runtime error

#2
by jt120lz - opened

Hello,

Firstly, thanks for creating this space!

I noticed that the space isn't working correctly because there is a runtime error.

It would be great if you could take a look at this because this space is being embedded on https://gradio.app.

Thanks!

https://huggingface.co/spaces/gradio/text_analysis

kq2cg 2023-03-23T14:29:35.211Z Defaulting to user installation because normal site-packages is not writeable
kq2cg 2023-03-23T14:29:35.428Z Collecting en-core-web-sm==3.5.0
kq2cg 2023-03-23T14:29:35.528Z   ERROR: HTTP error 502 while getting https://github.com/explosion/spacy-models/releases/download/en_core_web_sm-3.5.0/en_core_web_sm-3.5.0-py3-none-any.whl
kq2cg 2023-03-23T14:29:35.529Z ERROR: Could not install requirement en-core-web-sm==3.5.0 from https://github.com/explosion/spacy-models/releases/download/en_core_web_sm-3.5.0/en_core_web_sm-3.5.0-py3-none-any.whl because of HTTP error 502 Server Error: Bad Gateway for url: https://github.com/explosion/spacy-models/releases/download/en_core_web_sm-3.5.0/en_core_web_sm-3.5.0-py3-none-any.whl for URL https://github.com/explosion/spacy-models/releases/download/en_core_web_sm-3.5.0/en_core_web_sm-3.5.0-py3-none-any.whl
kq2cg 2023-03-23T14:29:35.649Z 
kq2cg 2023-03-23T14:29:35.649Z [notice] A new release of pip available: 22.3.1 -> 23.0.1
kq2cg 2023-03-23T14:29:35.649Z [notice] To update, run: python -m pip install --upgrade pip
kq2cg 2023-03-23T14:29:36.141Z Traceback (most recent call last):
kq2cg 2023-03-23T14:29:36.141Z   File "run.py", line 7, in <module>
kq2cg 2023-03-23T14:29:36.141Z     nlp = spacy.load("en_core_web_sm")
kq2cg 2023-03-23T14:29:36.141Z   File "/home/user/.local/lib/python3.8/site-packages/spacy/__init__.py", line 54, in load
kq2cg 2023-03-23T14:29:36.141Z     return util.load_model(
kq2cg 2023-03-23T14:29:36.141Z   File "/home/user/.local/lib/python3.8/site-packages/spacy/util.py", line 439, in load_model
kq2cg 2023-03-23T14:29:36.142Z     raise IOError(Errors.E050.format(name=name))
kq2cg 2023-03-23T14:29:36.142Z OSError: [E050] Can't find model 'en_core_web_sm'. It doesn't seem to be a Python package or a valid path to a data directory.

Sign up or log in to comment