-
Notifications
You must be signed in to change notification settings - Fork 9
Description
Traceback (most recent call last):
File "/home/liyazhou/miniconda3/lib/python3.11/site-packages/streamlit/watcher/local_sources_watcher.py", line 217, in get_module_paths
potential_paths = extract_paths(module)
^^^^^^^^^^^^^^^^^^^^^
File "/home/liyazhou/miniconda3/lib/python3.11/site-packages/streamlit/watcher/local_sources_watcher.py", line 210, in
lambda m: list(m.path._path),
^^^^^^^^^^^^^^^^
File "/home/liyazhou/miniconda3/lib/python3.11/site-packages/torch/_classes.py", line 13, in getattr
proxy = torch._C._get_custom_class_python_wrapper(self.name, attr)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
RuntimeError: Tried to instantiate class 'path.path', but it does not exist! Ensure that it is registered via torch::class
当再次输入的时候,又会出现下面的错误
streamlit.errors.StreamlitAPIException: Failed to load the provided avatar value as an image.
Traceback:
File "/nfs/swyy/asia/DeepLiterature-main/src/service/platform_server.py", line 204, in
main()
File "/nfs/swyy/asia/DeepLiterature-main/src/service/platform_server.py", line 200, in main
page_chat()
File "/nfs/swyy/asia/DeepLiterature-main/src/service/platform_server.py", line 57, in page_chat
with st.chat_message(name = msg["role"], avatar=msg["avatar"]):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/liyazhou/miniconda3/lib/python3.11/site-packages/streamlit/runtime/metrics_util.py", line 410, in wrapped_func
result = non_optional_func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/liyazhou/miniconda3/lib/python3.11/site-packages/streamlit/elements/widgets/chat.py", line 314, in chat_message
avatar_type, converted_avatar = _process_avatar_input(
^^^^^^^^^^^^^^^^^^^^^^
File "/home/liyazhou/miniconda3/lib/python3.11/site-packages/streamlit/elements/widgets/chat.py", line 147, in _process_avatar_input
raise StreamlitAPIException(