Skip to content

启动之后,可以查阅一些资料,但是端口有报错 #2

@lucky-asia

Description

@lucky-asia

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(

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions