You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
TypeError: This app has encountered an error. The original error message is redacted to prevent data leaks. Full error details have been recorded in the logs (if you're on Streamlit Cloud, click on 'Manage app' in the lower right of your app).
Traceback:
File "/home/adminuser/venv/lib/python3.8/site-packages/streamlit/runtime/scriptrunner/exec_code.py", line 75, in exec_func_with_error_handling
result = func()
File "/home/adminuser/venv/lib/python3.8/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 574, in code_to_exec
exec(code, module.__dict__)
File "/mount/src/spacy-streamlit-demo/app.py", line 20, in <module>
spacy_streamlit.visualize(
File "/home/adminuser/venv/lib/python3.8/site-packages/spacy_streamlit/visualizer.py", line 80, in visualize
nlp = load_model(spacy_model)
File "/home/adminuser/venv/lib/python3.8/site-packages/streamlit/runtime/caching/cache_utils.py", line 168, in wrapper
return cached_func(*args, **kwargs)
File "/home/adminuser/venv/lib/python3.8/site-packages/streamlit/runtime/caching/cache_utils.py", line 197, in __call__
return self._get_or_create_cached_value(args, kwargs)
File "/home/adminuser/venv/lib/python3.8/site-packages/streamlit/runtime/caching/cache_utils.py", line 224, in _get_or_create_cached_value
return self._handle_cache_miss(cache, value_key, func_args, func_kwargs)
File "/home/adminuser/venv/lib/python3.8/site-packages/streamlit/runtime/caching/cache_utils.py", line 280, in _handle_cache_miss
computed_value = self._info.func(*func_args, **func_kwargs)
File "/home/adminuser/venv/lib/python3.8/site-packages/spacy_streamlit/util.py", line 9, in load_model
return spacy.load(name)
File "/home/adminuser/venv/lib/python3.8/site-packages/spacy/__init__.py", line 50, in load
return util.load_model(
File "/home/adminuser/venv/lib/python3.8/site-packages/spacy/util.py", line 324, in load_model
return load_model_from_package(name, **kwargs)
File "/home/adminuser/venv/lib/python3.8/site-packages/spacy/util.py", line 357, in load_model_from_package
return cls.load(vocab=vocab, disable=disable, exclude=exclude, config=config)
File "/home/adminuser/venv/lib/python3.8/site-packages/en_core_web_sm/__init__.py", line 10, in load
return load_model_from_init_py(__file__, **overrides)
File "/home/adminuser/venv/lib/python3.8/site-packages/spacy/util.py", line 517, in load_model_from_init_py
return load_model_from_path(
File "/home/adminuser/venv/lib/python3.8/site-packages/spacy/util.py", line 392, in load_model_from_path
nlp = load_model_from_config(config, vocab=vocab, disable=disable, exclude=exclude)
File "/home/adminuser/venv/lib/python3.8/site-packages/spacy/util.py", line 429, in load_model_from_config
nlp = lang_cls.from_config(
File "/home/adminuser/venv/lib/python3.8/site-packages/spacy/language.py", line 1672, in from_config
nlp.add_pipe(
File "/home/adminuser/venv/lib/python3.8/site-packages/spacy/language.py", line 774, in add_pipe
pipe_component = self.create_pipe(
File "/home/adminuser/venv/lib/python3.8/site-packages/spacy/language.py", line 660, in create_pipe
resolved = registry.resolve(cfg, validate=validate)
File "/home/adminuser/venv/lib/python3.8/site-packages/thinc/config.py", line 746, in resolve
resolved, _ = cls._make(
File "/home/adminuser/venv/lib/python3.8/site-packages/thinc/config.py", line 795, in _make
filled, _, resolved = cls._fill(
File "/home/adminuser/venv/lib/python3.8/site-packages/thinc/config.py", line 850, in _fill
filled[key], validation[v_key], final[key] = cls._fill(
File "/home/adminuser/venv/lib/python3.8/site-packages/thinc/config.py", line 849, in _fill
promise_schema = cls.make_promise_schema(value, resolve=resolve)
File "/home/adminuser/venv/lib/python3.8/site-packages/thinc/config.py", line 1057, in make_promise_schema
return create_model("ArgModel", **sig_args)
File "pydantic/main.py", line 990, in pydantic.main.create_model
File "pydantic/main.py", line 299, in pydantic.main.ModelMetaclass.__new__
File "pydantic/fields.py", line 411, in pydantic.fields.ModelField.infer
File "pydantic/fields.py", line 342, in pydantic.fields.ModelField.__init__
File "pydantic/fields.py", line 451, in pydantic.fields.ModelField.prepare
File "pydantic/fields.py", line 550, in pydantic.fields.ModelField._type_analysis
File "/usr/local/lib/python3.8/typing.py", line 774, in __subclasscheck__
return issubclass(cls, self.__origin__)
The text was updated successfully, but these errors were encountered:
When I click on the link (https://share.streamlit.io/ines/spacy-streamlit-demo/master/app.py) to view the running app, it gives the following error:
The text was updated successfully, but these errors were encountered: